/* Performance-Optimized CSS for Pink Bra Escorts */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #e91e63;
    --secondary-pink: #f48fb1;
    --dark-pink: #ad1457;
    --light-pink: #fce4ec;
    --accent-pink: #ff69b4;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #e91e63, #f48fb1);
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improve font loading performance */
.font-inter {
    font-display: swap;
}

/* Critical CSS for above-the-fold content - Mobile Optimized */
.hero-section {
    min-height: 100svh; /* Mobile viewport units */
    background: linear-gradient(135deg, #e91e63 0%, #ec4899 50%, #f43f5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
    padding: 80px 1rem 2rem;
}

/* Mobile-specific hero adjustments */
@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0.75rem 2rem;
    }
}

.hero-content {
    text-align: center;
    color: white;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Mobile-optimized typography - Updated with word-break fix */
@media (max-width: 640px) {
    .hero-content h1,
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        padding: 0 0.5rem !important;
    }
    .hero-content h2 {
        font-size: 1.25rem !important;
    }
    .hero-content p {
        font-size: 0.9375rem !important;
    }
}

/* Optimized animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loaded .hero-content > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.loaded .hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.loaded .hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.loaded .hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* Intersection Observer Animations */
.animate-out {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header scroll effect */
.header.scrolled {
    background: rgba(233, 30, 99, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

/* Form error styles */
.field-error {
    color: var(--primary-pink);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile menu body lock */
.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Performance optimizations */
.service-card, .location-card {
    will-change: transform;
    transform: translateZ(0); /* Enable hardware acceleration */
}

.service-card:hover, .location-card:hover {
    transform: translateY(-5px) translateZ(0);
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-placeholder 1.5s infinite;
}

@keyframes loading-placeholder {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Critical performance styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Optimize font rendering */
.hero-title, h1, h2, h3 {
    font-display: swap;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--gradient);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--light-pink);
}

.mobile-menu {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 105, 180, 0.8), rgba(255, 182, 193, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 800"><rect fill="%23FFB6C1" width="1000" height="800"/><circle fill="%23FF69B4" cx="200" cy="200" r="150" opacity="0.3"/><circle fill="%23C71585" cx="800" cy="600" r="200" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-pink);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-pink);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: var(--light-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-pink);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-pink);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px 0;
    color: var(--primary-pink);
    padding: 0 20px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 20px 30px 20px;
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.location-card {
    background: var(--gradient);
    color: var(--white);
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.location-card:hover .location-image img {
    transform: scale(1.05);
    opacity: 1;
}

.location-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    padding: 0 20px;
}

.location-card p {
    margin: 0 0 10px 0;
    padding: 0 20px;
}

.location-btn {
    background: var(--white);
    color: var(--primary-pink);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 15px 0 25px 0;
}

.location-btn:hover {
    background: var(--light-pink);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-pink);
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--gradient);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-pink);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--primary-pink);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--light-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.875rem !important; /* 30px - tablet */
        line-height: 1.4 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem !important; /* 28px - mobile */
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-description {
        font-size: 0.9375rem !important; /* 15px */
        line-height: 1.6 !important;
    }
    
    .section-title {
        font-size: 1.5rem !important; /* 24px */
    }
    
    /* CTA Button optimization for mobile */
    .cta-btn, .btn-primary, .btn-secondary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
    
    /* Trust badges compact on mobile */
    .trust-badge {
        font-size: 0.6875rem !important;
        padding: 0.625rem 0.5rem !important;
    }
}

/* Force mobile-friendly images */
@media (max-width: 640px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent text overflow */
    body {
        overflow-x: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* Optimize touch targets */
    a, button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}
