/* CSS Variables for Header Heights */
:root {
    /* Header Heights */
    --header-height-mobile: 60px;
    --header-height-tablet: 72px;
    --header-height-desktop: 80px;
    
    /* Sticky Header Heights - More generous to prevent text squeezing */
    --header-height-mobile-sticky: 58px;
    --header-height-tablet-sticky: 66px;
    --header-height-desktop-sticky: 72px;
    
    /* Logo Heights */
    --logo-height-mobile: 38px;
    --logo-height-tablet: 46px;
    --logo-height-desktop: 52px;
    
    /* Sticky Logo Heights */
    --logo-height-mobile-sticky: 34px;
    --logo-height-tablet-sticky: 42px;
    --logo-height-desktop-sticky: 46px;
    
    /* Navigation */
    --nav-padding-mobile: 12px;
    --nav-padding-tablet: 16px;
    --nav-padding-desktop: 20px;
    
    /* Transitions */
    --header-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
    width: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw; /* Prevent horizontal overflow */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
        overflow-x: hidden; /* Prevent container overflow */
    }
    
    body {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        max-width: 100vw;
    }
}

/* Optimized animations for better performance */
.animated-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animated-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Simplified delay classes */
.animated-box.delay-1 { transition-delay: 0.1s; }
.animated-box.delay-2 { transition-delay: 0.2s; }
.animated-box.delay-3 { transition-delay: 0.3s; }
.animated-box.delay-4 { transition-delay: 0.4s; }
.animated-box.delay-5 { transition-delay: 0.5s; }
.animated-box.delay-6 { transition-delay: 0.6s; }

/* Simplified directional animations */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Icon Styles - Fixed for proper color display */
.icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Remove global filter - handle individually based on context */
}

/* Feature Icon Containers - preserve original colors for better visibility */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.feature-icon .icon {
    filter: none; /* Preserve original icon colors */
}

/* Step Icon Containers - preserve original colors for better visibility */
.step-icon {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
    display: block;
    width: 80px;
    height: 80px;
    margin: 1.5rem auto 1rem;
}

.step-icon .icon {
    filter: none; /* Preserve original icon colors */
}

/* Value Icon Containers - preserve original colors for better visibility */
.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.value-icon .icon {
    filter: none; /* Preserve original icon colors */
}

/* Highlight Icon Containers */
.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    padding: 12px;
}

.highlight-icon .icon {
    filter: brightness(0) invert(1); /* Make icons white */
}

/* Benefit Icon Containers - Centered for both desktop and mobile */
.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    padding: 15px;
    margin: 0 auto 1.5rem; /* Center the icon container and add bottom margin */
}


.benefit-icon .icon {
    filter: brightness(0) invert(1); /* Make icons white */
}

/* Contact Feature Icon Containers */
.contact-feature .feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.contact-feature .feature-icon .icon {
    filter: brightness(0) invert(1); /* Make icons white */
}

/* Contact Method Large Icons - preserve original colors for better visibility */
.contact-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.contact-icon-large .icon {
    filter: none; /* Preserve original icon colors */
}

/* Button Icons - preserve original colors for better visibility */
.btn-icon {
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* Preserve original icon colors for better visibility */
}

/* Floating Action Button Icons */
.fab-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Call icon - make it white */
.fab-call .fab-icon {
    filter: brightness(0) invert(1); /* Make call icon white */
}

/* WhatsApp icon - use original colors (already has white icon on green) */
.fab-whatsapp .fab-icon {
    filter: none; /* Don't apply any filter to preserve original colors */
}

/* Responsive Icon Adjustments */
@media (min-width: 768px) {
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon {
        width: 90px;
        height: 90px;
    }
    
    .value-icon {
        width: 90px;
        height: 90px;
    }
    
    .highlight-icon {
        width: 70px;
        height: 70px;
        padding: 15px;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
        padding: 18px;
    }
    
    .contact-icon-large {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 1024px) {
    .benefit-icon {
        width: 80px;
        height: 80px;
        font-size: 2.75rem;
        padding: 18px;
    }
}
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.2;
}

/* Mobile-first typography */
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Homepage-specific H1 styling - adopts hero-title styling */
body:has(.hero) h1,
.hero h1 {
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Buttons - Enhanced for mobile touch targets */
.btn-primary, .btn-secondary, .btn-call, .btn-whatsapp, .btn-whatsapp-small {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    text-transform: none;
    letter-spacing: 0.025em;
    min-height: 48px; /* Minimum touch target size */
    min-width: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Mobile button optimizations */
@media (max-width: 767px) {
    .btn-primary, .btn-secondary, .btn-call, .btn-whatsapp, .btn-whatsapp-small {
        padding: 18px 36px;
        font-size: 1.1rem;
        min-height: 52px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-call {
        padding: 14px 24px;
        min-height: 48px;
        width: auto;
        max-width: none;
    }
}

.btn-primary {
    background-color: #ed8936;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(237, 137, 54, 0.39);
}

.btn-primary:hover {
    background-color: #dd7724;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(237, 137, 54, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #1a202c;
    border: 2px solid #1a202c;
}

.btn-secondary:hover {
    background-color: #1a202c;
    color: white;
}

.btn-call {
    background-color: #1a202c;
    color: white;
    font-size: 0.875rem;
    padding: 12px 20px;
}

.btn-call:hover {
    background-color: #2d3748;
}

.btn-whatsapp {
    background-color: #ed8936;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(237, 137, 54, 0.39);
}

.btn-whatsapp:hover {
    background-color: #dd7724;
    transform: translateY(-2px);
}

.btn-whatsapp-small {
    background-color: #25d366;
    color: white;
    font-size: 0.875rem;
    padding: 10px 18px;
}

/* Header - Professional Responsive System with Fixed Positioning */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(237, 137, 54, 0.1);
    transition: var(--header-transition);
    
    /* Mobile First - Fixed Height */
    height: var(--header-height-mobile);
    min-height: var(--header-height-mobile);
    max-height: var(--header-height-mobile);
}

/* Sticky Header State - Enhanced visibility */
.header.sticky {
    height: var(--header-height-mobile-sticky);
    min-height: var(--header-height-mobile-sticky);
    max-height: var(--header-height-mobile-sticky);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(237, 137, 54, 0.2);
}

/* Navigation Container */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--nav-padding-mobile);
    gap: 0.5rem;
}

/* Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    max-width: 280px;
    overflow: hidden;
    min-width: 200px; /* Prevent excessive squeezing */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    transition: var(--header-transition);
    padding: 4px 0; /* Reduced padding for sticky state */
    width: 100%;
}

.logo-text {
    font-size: 1rem;
    color: #1a202c;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #ed8936 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--header-transition);
    line-height: 1.1; /* Tighter line height for sticky state */
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sticky state adjustments for brand */
.header.sticky .logo-text {
    font-size: 0.9rem; /* Slightly smaller in sticky state */
    line-height: 1.1;
}

.header.sticky .logo-link {
    padding: 2px 0; /* Even tighter padding when sticky */
}

.logo-link:hover .logo-text {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Navigation Menu - Mobile First - Slide-in from right */
.nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -50%; /* Start off-screen to the right */
    width: 50%; /* Half screen width */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding-top: calc(var(--header-height-mobile) + 2rem); /* Start below header */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Menu Overlay */
.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu.active {
    right: 0; /* Slide in to visible position */
}

.nav-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a202c;
    padding: 8px;
    border-radius: 8px;
    transition: var(--header-transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu-close:hover {
    border-color: #ed8936;
    background-color: rgba(237, 137, 54, 0.05);
    transform: scale(1.05);
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: var(--header-transition);
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%; /* Take most of the menu width */
    border: 2px solid transparent;
    text-align: center;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a:focus {
    color: #ed8936;
    background-color: rgba(237, 137, 54, 0.05);
    transform: translateY(-2px);
    border-color: rgba(237, 137, 54, 0.2);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.1);
}

/* Call-to-Action Button */
.nav-cta {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    margin-right: auto; /* Push hamburger to the right but keep some space */
}

.btn-call {
    background: linear-gradient(135deg, #ed8936 0%, #dd7724 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    transition: var(--header-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 2px solid transparent;
    min-height: 44px;
    justify-content: center;
    min-width: 120px;
}

.btn-call:hover {
    background: linear-gradient(135deg, #dd7724 0%, #c96d1f 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

.btn-call:active {
    transform: translateY(-1px) scale(1.01);
}

/* Call button icon */
.btn-call::after {
    content: '📞';
    font-size: 0.8rem;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid #e2e8f0;
    font-size: 1.25rem;
    cursor: pointer;
    color: #1a202c;
    border-radius: 8px;
    transition: var(--header-transition);
    flex-shrink: 0;
    margin-left: 0.5rem; /* Add some space from the call button */
}

.nav-toggle:hover {
    border-color: #ed8936;
    background-color: rgba(237, 137, 54, 0.1);
    transform: scale(1.05);
}

.nav-toggle:active {
    background-color: rgba(237, 137, 54, 0.15);
    transform: scale(0.98);
}

.nav-toggle:focus {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
}

/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) {
    .header {
        height: var(--header-height-tablet);
        min-height: var(--header-height-tablet);
        max-height: var(--header-height-tablet);
    }
    
    .header.sticky {
        height: var(--header-height-tablet-sticky);
        min-height: var(--header-height-tablet-sticky);
        max-height: var(--header-height-tablet-sticky);
    }
    
    .nav {
        padding: 0 var(--nav-padding-tablet);
        gap: 1.5rem;
    }
    
    .nav-brand {
        max-width: 340px;
        min-width: 260px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header.sticky .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: auto;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0;
        box-shadow: none;
        transition: none;
        right: auto; /* Reset right positioning */
        flex: 1;
        max-width: 600px;
    }
    
    .nav-menu-overlay {
        display: none; /* Hide overlay on tablet and desktop */
    }
    
    .nav-menu-close {
        display: none;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        min-width: auto;
        min-height: auto;
        border-radius: 8px;
        background: none;
        transform: none;
        border: 1px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active,
    .nav-menu a:focus {
        background-color: rgba(237, 137, 54, 0.08);
        transform: translateY(-1px);
        border-color: rgba(237, 137, 54, 0.2);
        box-shadow: 0 2px 8px rgba(237, 137, 54, 0.1);
    }
    
    .btn-call {
        font-size: 0.9rem;
        padding: 12px 24px;
        min-width: 140px;
    }
}

/* Desktop Styles (≥ 1200px) */
@media (min-width: 1200px) {
    .header {
        height: var(--header-height-desktop);
        min-height: var(--header-height-desktop);
        max-height: var(--header-height-desktop);
    }
    
    .header.sticky {
        height: var(--header-height-desktop-sticky);
        min-height: var(--header-height-desktop-sticky);
        max-height: var(--header-height-desktop-sticky);
    }
    
    .nav {
        padding: 0 var(--nav-padding-desktop);
        gap: 2rem;
    }
    
    .nav-brand {
        max-width: 400px;
        min-width: 300px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .header.sticky .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 1rem;
        max-width: 700px;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .btn-call {
        font-size: 1rem;
        padding: 14px 28px;
        min-width: 160px;
    }
}
/* Focus States for Accessibility */
.logo-link:focus,
.nav-menu a:focus,
.btn-call:focus,
.nav-toggle:focus {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .nav {
        gap: 0.25rem; /* Tighter spacing on mobile */
        padding: 0 var(--nav-padding-mobile);
    }
    
    .nav-brand {
        min-width: 160px;
        max-width: 200px; /* Reduce brand width to make more room */
    }
    
    .nav-cta {
        margin-right: 0.5rem; /* Smaller margin on mobile */
    }
    
    .btn-call {
        padding: 8px 16px; /* Smaller call button on mobile */
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .nav-toggle {
        width: 40px;
        height: 40px;
        margin-left: 0.25rem;
        margin-right: 0.25rem; /* Add right margin to prevent edge touching */
    }
    
    .nav-menu {
        width: 60%; /* Slightly wider on mobile for better usability */
        right: -60%;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .header.sticky .logo-text {
        font-size: 0.8rem;
    }
    
    /* Very small screens */
    @media (max-width: 480px) {
        .nav {
            padding: 0 8px; /* Even tighter padding on very small screens */
        }
        
        .nav-brand {
            min-width: 140px;
            max-width: 180px;
        }
        
        .btn-call {
            padding: 6px 12px;
            font-size: 0.75rem;
            min-width: 80px;
        }
        
        .nav-toggle {
            width: 36px;
            height: 36px;
            font-size: 1.1rem;
        }
        
        .nav-menu {
            width: 70%; /* Even wider on very small screens */
            right: -70%;
        }
        
        .logo-text {
            font-size: 0.8rem;
        }
        
        .header.sticky .logo-text {
            font-size: 0.75rem;
        }
    }
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent Layout Shifts */
.header * {
    box-sizing: border-box;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid #1a202c;
    }
    
    .logo-text {
        -webkit-text-fill-color: #1a202c;
        background: #1a202c;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .header,
    .logo-link,
    .logo-text,
    .nav-menu,
    .nav-menu a,
    .btn-call,
    .nav-toggle {
        transition: none;
    }
}

/* Focus states for accessibility */
.logo-link:focus,
.nav-link:focus,
.cta-button:focus,
.nav-toggle:focus {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Hero Section - Mobile-first with high-quality background */
.hero {
    background: url('assets/images/wedding-planning-nakuru-venue.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 3rem 0 4rem;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* High-quality image optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('assets/images/wedding-planning-nakuru-venue.webp');
    }
}

/* Alternative high-quality images for variety */
.hero.hero-wedding {
    background-image: url('assets/images/wedding-coordination-nakuru.webp');
}

.hero.hero-corporate {
    background-image: url('assets/images/corporate-event-management-nakuru.webp');
}

.hero.hero-party {
    background-image: url('assets/images/affordable-birthday-party-nakuru.webp');
}

/* Responsive high-quality backgrounds */
@media (max-width: 767px) {
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
        min-height: 60vh;
        background-position: center center;
    }
}

@media (min-width: 768px) {
    .hero {
        min-height: 75vh;
        background-position: center center;
    }
}

@media (min-width: 1200px) {
    .hero {
        min-height: 80vh;
        background-position: center center;
    }
}

/* Ultra-high resolution displays */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .hero {
        background-image: url('assets/images/wedding-planning-nakuru-venue.webp');
    }
}

/* Hero overlay for better text visibility */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Ensure crisp image rendering */
.hero {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Page Hero - Light background with proper spacing for fixed header */
.page-hero {
    background-color: #f7fafc;
    padding: calc(var(--header-height-mobile) + 2.5rem) 0 2.5rem 0; /* Top padding includes header height */
    text-align: center;
}

.page-hero h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.page-hero p {
    font-size: 1rem;
    color: #4a5568;
}

/* Services Preview - Premium Professional Design */
.services-preview {
    padding: 3rem 0;
    background-color: #f8fafc; /* Light neutral background */
    position: relative;
    z-index: 2; /* Higher than animated-box elements */
    isolation: isolate; /* Create isolated stacking context */
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 800;
    position: relative;
    z-index: 100; /* Very high z-index within isolated context */
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: stretch; /* Ensure equal height cards */
    justify-items: center; /* Center cards in grid */
    width: 100%;
}

/* Ensure 3 services per row on larger screens */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 2rem;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns per row */
        gap: 2.5rem;
        align-items: stretch;
        justify-items: center; /* Center items in their grid areas */
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* Large screens: keep 3 columns */
        gap: 2.5rem;
        max-width: 1200px;
        margin: 0 auto 2.5rem;
        align-items: stretch;
        justify-items: center;
    }
}

/* Premium Service Card Design */
.service-card {
    background: white;
    border-radius: 12px; /* Subtle rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Very soft shadow */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal card height */
    width: 100%; /* Ensure full width */
    max-width: 400px; /* Prevent cards from getting too wide */
    margin: 0 auto; /* Center cards in their grid areas */
    position: relative;
    z-index: 1; /* Lower than section headers */
}

/* Calm hover effect */
.service-card:hover {
    transform: translateY(-4px); /* Subtle elevation increase */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(237, 137, 54, 0.2); /* Soft border color change */
    z-index: 2; /* Slightly higher on hover, but still below headers */
}

/* Image Area - Fixed height, covers container */
.service-image {
    width: 100%;
    height: 200px; /* Fixed height */
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0; /* Rounded top corners only */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* No distortion */
    transition: transform 0.3s ease;
}

/* Minimal image zoom on hover */
.service-card:hover .service-image img {
    transform: scale(1.03); /* Very slight zoom */
}

/* Content Area - Clear internal padding */
.service-content {
    padding: 1.5rem; /* Generous, not tight */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left; /* Ensure consistent text alignment */
    justify-content: space-between; /* Distribute content evenly */
    align-items: flex-start; /* Align all content to the left */
}

/* Service Title - Clear hierarchy */
.service-card h3 {
    color: #1a202c;
    font-size: 1.125rem; /* Medium-large font size */
    font-weight: 700; /* Strong weight */
    line-height: 1.3;
    margin-bottom: 0.75rem; /* Clear separation from image */
    margin-top: 0;
    text-align: left; /* Consistent alignment */
    width: 100%; /* Full width for proper alignment */
}

/* Description - Scannable paragraph */
.service-card p {
    color: #4a5568; /* Neutral tone */
    font-size: 0.9rem; /* Smaller than title */
    line-height: 1.5; /* Comfortable line height */
    margin-bottom: 1.25rem;
    flex-grow: 1; /* Push CTA to bottom */
    text-align: left; /* Consistent alignment */
    width: 100%; /* Full width for proper alignment */
}

/* CTA Element - Subtle accent color */
.service-cta-link {
    color: #ed8936; /* Accent color subtly */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    align-self: flex-start; /* Not visually dominant */
    margin-top: auto; /* Positioned at bottom of card */
    text-align: left; /* Consistent alignment */
}

.service-cta-link:hover {
    color: #dd7724;
    text-decoration: underline;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 0 1rem; /* Add padding for mobile */
}

/* Service Highlights Section */
.service-highlights {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #ed8936;
}

.highlight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

.highlight-content {
    padding: 1.5rem;
    text-align: center;
}

.highlight-content h3 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive highlights */
@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .highlight-image {
        height: 180px;
    }
}

/* Services Detailed */
.services-detailed {
    padding: 4rem 0;
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-detail-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d69e2e;
    font-weight: bold;
}

.service-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Why Choose Us - Mobile-first */
.why-choose {
    padding: 3rem 0;
    background-color: white;
    position: relative;
    z-index: 2; /* Higher than cards */
    isolation: isolate; /* Create isolated stacking context */
}

.why-choose h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 800;
    position: relative;
    z-index: 100; /* Very high z-index within isolated context */
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h3 {
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.feature p {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* About Content */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}



.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.875rem;
}

/* About Content */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    order: -1;
}

.about-image .placeholder-image {
    aspect-ratio: 4/3;
    border-radius: 10px;
}

/* Mission & Values */
.mission-values {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.value-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Local Expertise */
.local-expertise {
    padding: 4rem 0;
}

.local-expertise h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.expertise-content ul {
    margin: 2rem 0;
    padding-left: 2rem;
}

.expertise-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Event Types */
.event-types {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.event-types h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.event-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.event-type {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.event-type h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form-section,
.contact-info-section {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form-section h2,
.contact-info-section h2 {
    margin-bottom: 2rem;
    color: #1a365d;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a365d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d69e2e;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #d69e2e;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.quick-contact {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.quick-contact h3 {
    margin-bottom: 1rem;
    color: #1a365d;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Why Contact */
.why-contact {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.why-contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center; /* Center grid items */
    align-items: start; /* Align items to start for consistent height */
}

.benefit {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all child elements */
    max-width: 300px; /* Limit width for better appearance */
    width: 100%; /* Full width within max-width constraint */
}

.benefit h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* CTA Section - Proper color scheme and mobile-first */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.cta-section p {
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Footer - Professional Design */
.footer {
    background-color: #1a202c;
    color: white;
    position: relative;
}

/* Top divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin-bottom: 0;
}

/* Main footer content */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
    text-align: center;
}

/* Brand Block */
.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.footer-brand-desc {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-brand-divider {
    width: 60px;
    height: 2px;
    background-color: #ed8936;
    margin: 0 auto;
}

/* Section titles */
.footer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Links Block */
.footer-services {
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links-list a:hover {
    color: #ed8936;
    transform: translateX(4px);
}

/* Contact Block */
.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-phone,
.footer-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    white-space: nowrap; /* Prevent line breaks */
}

.footer-phone {
    background-color: #2d3748;
    border: 2px solid transparent;
}

.footer-phone:hover {
    background-color: #4a5568;
    border-color: #ed8936;
    transform: translateY(-2px);
}

.footer-whatsapp {
    background-color: #25d366;
    border: 2px solid transparent;
}

.footer-whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e0;
    font-size: 0.9rem;
    justify-content: center;
    white-space: nowrap; /* Prevent line breaks */
}

.contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text {
    white-space: nowrap; /* Ensure phone number stays in one line */
}

.whatsapp-icon {
    color: #25d366;
}

/* Quick CTA Block */
.footer-cta {
    margin-bottom: 1rem;
}

.footer-cta-text {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-cta-button {
    display: inline-block;
    background-color: #ed8936;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    min-width: 200px;
    text-align: center;
}

.footer-cta-button:hover {
    background-color: #dd7724;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

/* Bottom Bar (Sub-footer) */
.footer-bottom {
    background-color: #171923;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #2d3748;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 400;
}

.design-credit {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.design-link {
    color: #ed8936;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.design-link:hover {
    color: #dd7724;
    border-bottom-color: #dd7724;
}

/* Mobile-specific design credit styling */
@media (max-width: 767px) {
    .design-credit {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }
    
    .design-link {
        display: inline-block;
        padding: 2px 4px;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .design-link:hover {
        background-color: rgba(237, 137, 54, 0.1);
        border-bottom-color: transparent;
    }
}

/* Focus states for accessibility */
.footer-links-list a:focus,
.footer-phone:focus,
.footer-whatsapp:focus,
.footer-cta-button:focus,
.design-link:focus {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
}

/* Tablet and Desktop Responsive Design */
@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
        padding: 4rem 0 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-brand-divider {
        margin: 0 auto;
    }
    
    .footer-contact-items {
        align-items: flex-start;
    }
    
    .footer-phone,
    .footer-whatsapp {
        justify-content: flex-start;
        min-width: auto;
    }
    
    .footer-location {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 4rem;
        padding: 5rem 0 3rem;
    }
    
    .footer-brand {
        grid-column: 1;
        text-align: left;
        margin-bottom: 0;
    }
    
    .footer-brand-divider {
        margin: 0;
    }
    
    .footer-cta-button {
        min-width: auto;
        padding: 1rem 1.5rem;
    }
}

/* Floating Action Buttons - Updated colors */
.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000; /* Ensure always on top */
    opacity: 1; /* Always visible */
    transform: translateY(0); /* Always in position */
    transition: all 0.3s ease;
    pointer-events: auto; /* Ensure buttons are clickable */
}

.fab-call,
.fab-whatsapp {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-call {
    background-color: #1a202c;
    color: white;
}

.fab-whatsapp {
    background-color: transparent; /* Let the SVG handle the background */
    color: white;
}

.fab-call:hover,
.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    body {
        padding-top: var(--header-height-tablet); /* Account for tablet header */
    }
    
    /* Typography scales up */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    /* Homepage H1 styling at tablet size */
    body:has(.hero) h1,
    .hero h1 {
        font-size: 2.25rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .nav {
        padding: 1.5rem 24px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .nav-toggle {
        display: none; /* Hide hamburger menu on tablet and desktop */
    }
    
    .nav-menu {
        display: flex; /* Show navigation on tablet */
        position: static; /* Remove fixed positioning */
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        z-index: auto;
        flex-direction: row; /* Horizontal layout */
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    
    .nav-menu-close {
        display: none; /* Hide close button on desktop */
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.75rem 1rem; /* Smaller padding for horizontal layout */
        min-width: auto;
        min-height: auto;
        border-radius: 6px;
        background: none;
        transform: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active,
    .nav-menu a:focus {
        background-color: rgba(237, 137, 54, 0.1);
        transform: none;
    }
    
    .hero {
        padding: calc(var(--header-height-tablet) + 4rem) 0 5rem; /* Top padding includes header height */
    }
    
    .hero-title {
        font-size: 2.25rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .page-hero {
        padding: calc(var(--header-height-tablet) + 4rem) 0 4rem 0; /* Top padding includes tablet header height */
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    .page-hero p {
        font-size: 1.125rem;
    }
    
    .services-preview {
        padding: 4rem 0;
    }
    
    .services-preview h2 {
        font-size: 1.875rem;
        margin-bottom: 3rem;
    }
    
    /* Tablet: 2 columns for service cards */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .feature {
        padding: 2rem;
    }
    
    .feature h3 {
        font-size: 1.25rem;
    }
    
    .feature p {
        font-size: 1rem;
    }
    
    .why-choose {
        padding: 4rem 0;
    }
    
    .why-choose h2 {
        font-size: 1.875rem;
        margin-bottom: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .about-image {
        order: 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .event-types-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .service-cta {
        flex-direction: row;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .cta-section p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .quick-contact-buttons {
        flex-direction: row;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        justify-items: center; /* Center grid items on tablet */
    }
}

/* Desktop Styles - 1024px and up */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    body {
        padding-top: var(--header-height-desktop); /* Account for desktop header */
    }
    
    /* Typography scales up further */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.875rem; }
    
    /* Homepage H1 styling at desktop size */
    body:has(.hero) h1,
    .hero h1 {
        font-size: 3rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .nav {
        padding: 1.75rem 32px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        gap: 1rem; /* Increase gap on desktop */
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.875rem 1.25rem; /* Larger padding on desktop */
    }
    
    .hero {
        padding: calc(var(--header-height-desktop) + 5rem) 0 6rem; /* Top padding includes header height */
    }
    
    .hero-title {
        font-size: 3rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }
    
    .page-hero {
        padding: calc(var(--header-height-desktop) + 5rem) 0 5rem 0; /* Top padding includes desktop header height */
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
    
    .page-hero p {
        font-size: 1.25rem;
    }
    
    .services-preview {
        padding: 5rem 0;
    }
    
    .services-preview h2 {
        font-size: 2.25rem;
    }
    
    .why-choose {
        padding: 5rem 0;
    }
    
    .why-choose h2 {
        font-size: 2.25rem;
    }
    
    .feature {
        padding: 2.5rem;
    }
    
    .gallery-preview {
        padding: 5rem 0;
    }
    
    .gallery-preview h2 {
        font-size: 2.25rem;
    }
    
    .gallery-preview .gallery-grid {
        max-width: 900px; /* Larger on desktop but still contained */
        gap: 2rem;
    }
    
    /* Desktop: 3 columns for service cards */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .service-image {
        height: 220px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .services-grid-detailed {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .event-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        justify-items: center; /* Center grid items on desktop */
    }
    
    .cta-section {
        padding: 5rem 0;
    }
    
    .cta-section h2 {
        font-size: 2.25rem;
    }
    
    .cta-section p {
        font-size: 1.25rem;
    }
}

/* Large Desktop - Better layout for services with 3 per row */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .service-image {
        height: 240px;
    }
    
    .service-card h3 {
        font-size: 1.375rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .footer::after {
        animation: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #d69e2e;
    outline-offset: 2px;
}
/* Enhanced animations for better user experience */
@media (prefers-reduced-motion: no-preference) {
    .service-card.animated-box {
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s ease;
    }
    
    .service-card.animated-box:hover {
        transform: translateY(-8px) !important;
    }
    
    .feature.fade-in-left:hover,
    .feature.animated-box:hover,
    .feature.fade-in-right:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .gallery-item.scale-in:hover {
        transform: scale(1.05);
    }
}

/* Ensure animations are smooth on all devices */
.animated-box,
.fade-in-left,
.fade-in-right,
.scale-in {
    will-change: transform, opacity;
}

/* Loading state for the entire page */
body.loading .animated-box,
body.loading .fade-in-left,
body.loading .fade-in-right,
body.loading .scale-in {
    opacity: 0;
    transform: translateY(30px);
}

/* Stagger animation delays for better visual flow */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }

.features-grid .feature:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature:nth-child(3) { transition-delay: 0.3s; }

.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.4s; }

/* Gallery Page Styles */
.gallery-filter {
    padding: 2rem 0;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: #ed8936;
    color: #ed8936;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #ed8936;
    color: white;
    border-color: #ed8936;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

/* Main Gallery */
.gallery-main {
    padding: 4rem 0;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Stats Section */
.gallery-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.gallery-stats .container {
    position: relative;
    z-index: 1;
}

.gallery-stats .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-stats .stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 137, 54, 0.1), transparent);
    transition: left 0.6s ease;
}

.gallery-stats .stat-item:hover::before {
    left: 100%;
}

.gallery-stats .stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(237, 137, 54, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ed8936;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-stats .stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(237, 137, 54, 0.4);
}

.gallery-stats .stat-label {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Enhanced animations for stats */
.gallery-stats .stat-item.animated-box {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-stats .stat-item.animated-box.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive stats */
@media (min-width: 768px) {
    .gallery-stats {
        padding: 5rem 0;
    }
    
    .gallery-stats .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery-stats .stat-item {
        padding: 2.5rem 1.5rem;
    }
    
    .gallery-stats .stat-number {
        font-size: 3rem;
    }
    
    .gallery-stats .stat-label {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .gallery-stats {
        padding: 6rem 0;
    }
    
    .gallery-stats .stats-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-stats .stat-item {
        padding: 2rem 1rem;
    }
    
    .gallery-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-stats .stat-label {
        font-size: 0.95rem;
    }
}

/* Gallery Page CTA Section */
.gallery-page-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.gallery-page-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 800;
}

.gallery-page-cta p {
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Gallery Item Filtering */
.gallery-item.hidden {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .filter-buttons {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .gallery-main {
        padding: 5rem 0;
    }
    
    .gallery-cta {
        padding: 5rem 0;
    }
    
    .gallery-cta h2 {
        font-size: 2.25rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .gallery-main {
        padding: 6rem 0;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Enhanced About Page Styles */

/* About Content Section */
.about-content .about-intro {
    margin-bottom: 3rem;
}

.about-content .lead-text {
    font-size: 1.25rem;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #ed8936;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: #edf2f7;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.highlight-content h4 {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced About Image */
.about-image .image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-image .placeholder-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.125rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 32, 44, 0.9));
    padding: 2rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ed8936;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #e2e8f0;
    margin-top: 0.25rem;
}

/* Enhanced Mission & Values */
.mission-values .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-values .section-header h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.mission-values .section-header p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.mission-values .value-card {
    position: relative;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mission-values .value-card:hover {
    border-color: #ed8936;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.mission-values .value-card h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mission-values .value-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Local Expertise */
.local-expertise {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.expertise-layout {
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-header h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.expertise-intro {
    font-size: 1.125rem;
    color: #4a5568;
    margin: 0;
}

.expertise-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #ed8936;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.benefit-text h4 {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Enhanced About Page */
@media (min-width: 768px) {
    .about-content .lead-text {
        font-size: 1.375rem;
    }
    
    .highlight-item {
        padding: 2rem;
    }
    
    .highlight-icon {
        width: 70px;
        height: 70px;
        font-size: 2.25rem;
    }
    
    .stats-grid {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .expertise-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .about-highlights {
        gap: 2.5rem;
    }
    
    .highlight-item {
        padding: 2.5rem;
    }
    
    .mission-values .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .expertise-benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .benefit-item {
        padding: 3rem 2rem;
    }
}

/* Animation enhancements */
@media (prefers-reduced-motion: no-preference) {
    .highlight-item:hover {
        animation: slideInRight 0.3s ease;
    }
    
    .benefit-item:hover {
        animation: bounceUp 0.3s ease;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(8px);
        }
    }
    
    @keyframes bounceUp {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-6px);
        }
        100% {
            transform: translateY(-4px);
        }
    }
}
/* Contact Visual Section */
.contact-visual {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.contact-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-visual-content h2 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-visual-content p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-feature span:last-child {
    font-weight: 600;
    color: #1a202c;
}

.contact-visual-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.contact-visual-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Responsive contact visual */
@media (min-width: 768px) {
    .contact-visual-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .contact-features {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .contact-feature {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-visual-image img {
        height: 400px;
    }
}

/* Enhanced Contact Page Styles */
.contact-main {
    padding: 4rem 0;
    background-color: white;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-intro h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-intro p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-method-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #ed8936;
}

.contact-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-method-card h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-method-card > p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap; /* Prevent text wrapping */
}

.call-btn {
    background-color: #1a202c;
    color: white;
}

.call-btn:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 32, 44, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    font-size: 1.25rem;
}

.contact-details {
    margin-top: 1rem;
}

.contact-details p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Location Info */
.location-info {
    margin-bottom: 2rem;
}

.location-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.location-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.location-content h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.location-content p {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.location-content p:last-child {
    margin-bottom: 0;
}

/* Enhanced Why Contact Section */
.why-contact .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-contact .section-header h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 800;
}

.why-contact .section-header p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.why-contact .benefit {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content */
    max-width: 280px; /* Optimal width for 4-column layout */
    width: 100%;
}

.why-contact .benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #ed8936;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.why-contact .benefit h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-contact .benefit p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .contact-methods-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-method-card {
        padding: 4rem 3rem;
    }
    
    .location-card {
        padding: 3rem;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .location-icon {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .contact-main {
        padding: 6rem 0;
    }
    
    .contact-intro {
        margin-bottom: 5rem;
    }
    
    .contact-intro h2 {
        font-size: 2.5rem;
    }
    
    .contact-methods-grid {
        gap: 4rem;
        max-width: 900px;
        margin: 0 auto 5rem;
    }
    
    .location-card {
        flex-direction: row;
        text-align: left;
        max-width: 800px;
        margin: 0 auto;
    }
}
/* Mobile-Specific Optimizations */

/* Viewport height fix for mobile browsers */
:root {
    --vh: 1vh;
}

/* Mobile device optimizations */
.mobile-device * {
    -webkit-tap-highlight-color: rgba(237, 137, 54, 0.2);
}

/* Enhanced mobile typography */
@media (max-width: 767px) {
    h1 { 
        font-size: 1.75rem; 
        line-height: 1.3;
    }
    
    /* Homepage H1 styling on mobile */
    body:has(.hero) h1,
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    h2 { 
        font-size: 1.4rem; 
        line-height: 1.3;
    }
    h3 { 
        font-size: 1.2rem; 
        line-height: 1.3;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    /* Improve readability on small screens */
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    }
}

/* Mobile-optimized sections */
@media (max-width: 767px) {
    .hero {
        padding: calc(var(--header-height-mobile) + 2rem) 0 3rem; /* Top padding includes header height */
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .services-preview {
        padding: 2.5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin: 1.25rem 1rem 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin: 0 1rem 1.5rem;
        line-height: 1.4;
    }
    
    .why-choose {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.25rem;
    }
    
    .gallery-preview {
        padding: 2.5rem 0;
    }
    
    .gallery-preview .gallery-grid {
        gap: 0.75rem;
        max-width: 400px; /* Smaller on mobile */
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on mobile */
    }
    
    .gallery-cta {
        margin-top: 2rem;
    }
    
    .gallery-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-buttons {
        gap: 1.25rem;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Mobile-optimized floating action buttons */
@media (max-width: 767px) {
    .floating-actions {
        bottom: 20px;
        right: 10px; /* Further reduced to ensure visibility */
        z-index: 1001; /* Higher z-index to ensure visibility */
        opacity: 1; /* Always visible */
        transform: translateY(0); /* Always in position */
        position: fixed; /* Ensure fixed positioning */
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: auto; /* Ensure buttons are clickable */
    }
    
    .fab-call,
    .fab-whatsapp {
        width: 50px; /* Slightly smaller for mobile */
        height: 50px;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative; /* Ensure proper positioning */
    }
    
    .fab-icon {
        width: 22px;
        height: 22px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .floating-actions {
        right: 6px; /* Very close to edge but still visible */
        bottom: 16px;
    }
    
    .fab-call,
    .fab-whatsapp {
        width: 48px;
        height: 48px;
    }
    
    .fab-icon {
        width: 20px;
        height: 20px;
    }
}

/* Mobile landscape orientation fix */
@media (max-width: 767px) and (orientation: landscape) {
    .floating-actions {
        right: 8px;
        bottom: 12px;
        gap: 8px; /* Smaller gap in landscape */
    }
    
    .fab-call,
    .fab-whatsapp {
        width: 46px;
        height: 46px;
    }
    
    .fab-icon {
        width: 18px;
        height: 18px;
    }
}

/* Comprehensive mobile overflow prevention */
@media (max-width: 767px) {
    /* Ensure all major containers respect viewport width */
    .hero-cta,
    .services-grid,
    .features-grid,
    .benefits-grid,
    .process-grid,
    .testimonials-grid,
    .events-grid,
    .gallery-grid {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Prevent button overflow */
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp,
    .btn-call {
        max-width: 100%;
        min-width: auto;
        word-wrap: break-word;
    }
    
    /* Ensure text doesn't cause overflow */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* Mobile gallery optimizations */
@media (max-width: 767px) {
    .gallery-main {
        padding: 2.5rem 0;
    }
    
    .gallery-grid {
        gap: 1rem;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        border-radius: 20px;
        white-space: nowrap;
    }
}

/* Mobile contact page optimizations */
@media (max-width: 767px) {
    .contact-main {
        padding: 2.5rem 0;
    }
    
    .contact-visual {
        padding: 2.5rem 0;
    }
    
    .contact-visual-content {
        text-align: center; /* Center content on mobile */
        margin-bottom: 2rem;
    }
    
    .contact-visual-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-visual-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-features {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center; /* Center features on mobile */
    }
    
    .contact-feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-feature .feature-icon {
        margin-bottom: 0.5rem;
    }
    
    .contact-visual-image {
        margin-top: 2rem;
    }
    
    .contact-visual-image img {
        height: 250px;
    }
    
    .contact-methods-grid {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-method-card {
        padding: 2rem 1.5rem;
        text-align: center; /* Center all content in cards */
    }
    
    .contact-icon-large {
        margin: 0 auto 1.5rem; /* Center large icons */
        display: block;
    }
    
    .contact-action-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
        margin: 1.5rem auto 1rem; /* Center action buttons */
        display: inline-flex;
        justify-content: center;
    }
    
    .why-contact .benefit {
        padding: 2rem 1.5rem;
        max-width: 100%; /* Full width on mobile */
        margin: 0 auto; /* Center the benefit cards */
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1.25rem; /* Center icon and adjust spacing for mobile */
    }
    
    .location-card {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .location-icon {
        margin: 0 auto 1rem;
        display: block;
    }
}

/* Mobile about page optimizations */
@media (max-width: 767px) {
    .about-content {
        padding: 2.5rem 0;
    }
    
    .highlight-item {
        padding: 1.25rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        align-self: center;
    }
    
    .mission-values {
        padding: 2.5rem 0;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .local-expertise {
        padding: 2.5rem 0;
    }
    
    .benefit-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        align-self: center;
    }
}

/* Mobile services page optimizations */
@media (max-width: 767px) {
    .services-preview {
        padding: 2.5rem 0;
        margin-bottom: 1rem; /* Add spacing to prevent overlap */
    }
    
    .services-preview h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        text-align: center;
        position: relative;
        z-index: 100; /* Very high z-index within isolated context */
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Mobile: 1 column */
        gap: 1.5rem;
        justify-items: center; /* Center cards in grid */
        align-items: stretch; /* Equal height cards */
    }
    
    .service-card {
        width: 100%;
        max-width: 100%; /* Full width on mobile */
        margin: 0; /* Remove auto margin */
        text-align: left; /* Ensure left alignment */
    }
    
    .service-image {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }
    
    .service-content {
        padding: 1.5rem;
        text-align: left; /* Explicit left alignment */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align content to left */
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        text-align: left;
        margin: 0 0 0.75rem 0;
        width: 100%;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
        margin: 0 0 1.25rem 0;
        width: 100%;
    }
    
    .service-cta-link {
        text-align: left;
        align-self: flex-start;
        margin-top: auto;
    }
    
    .section-cta {
        text-align: center;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .services-detailed {
        padding: 2.5rem 0;
    }
    
    .services-grid-detailed {
        gap: 2rem;
    }
    
    .service-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .service-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Recent Events Mobile Optimizations */
    .recent-events {
        padding: 2.5rem 0; /* Reduced excessive top padding */
        margin-top: 1rem; /* Add spacing to prevent overlap */
    }
    
    .section-header {
        margin-bottom: 2rem;
        position: relative;
        z-index: 100; /* Very high z-index within isolated context */
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        position: relative;
        z-index: 101; /* Even higher within isolated context */
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem; /* Add horizontal padding on mobile */
        position: relative;
        z-index: 100; /* High z-index within isolated context */
    }
    
    .events-grid {
        grid-template-columns: 1fr; /* Mobile: 1 column full-width */
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .event-image {
        aspect-ratio: 16/10; /* Slightly wider on mobile for better viewing */
    }
    
    /* No hover effects on mobile - touch-friendly */
    .event-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

/* Improved touch targets for mobile */
@media (max-width: 767px) {
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    .footer-links-list a {
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .footer-phone,
    .footer-whatsapp {
        min-height: 52px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap; /* Ensure phone number stays in one line on mobile */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .footer-cta-button {
        min-height: 52px;
        padding: 1rem 2rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767px) {
    /* Reduce animation complexity on mobile */
    .animated-box,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce box shadows on mobile for better performance */
    .service-card,
    .value-card,
    .gallery-item {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Landscape mobile optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: calc(var(--header-height-mobile) + 1.5rem) 0 2rem; /* Top padding includes header height */
    }
    
    /* Homepage H1 styling in landscape mobile */
    body:has(.hero) h1,
    .hero h1 {
        font-size: 1.5rem !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    }
    
    .nav-menu {
        padding-top: 2rem;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .nav-menu {
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        height: calc(var(--vh, 1vh) * 100);
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}
/* High-Conversion Homepage Styles */

/* Enhanced Hero Section */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-cta .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-top: 0.5rem;
}

.hero-cta .btn-secondary:hover {
    background-color: white;
    color: #1a202c;
}

/* How It Works Section (NEW) */
.how-it-works {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    z-index: 2; /* Higher than cards */
    isolation: isolate; /* Create isolated stacking context */
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #1a202c;
    font-weight: 800;
    position: relative;
    z-index: 100; /* Very high z-index within isolated context */
}

.how-it-works .section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 3rem; /* Proper spacing before process grid */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Process Grid and Steps */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #ed8936;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ed8936, #dd7724);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
    display: block;
}

.process-step h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Why Choose Us with Icons */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
}

/* Recent Events Section - Professional Image-Led Design */
.recent-events {
    padding: 3rem 0; /* Reduced from excessive 80px top padding */
    background-color: white; /* White background */
    position: relative;
    z-index: 2; /* Higher than cards */
    isolation: isolate; /* Create isolated stacking context */
}

/* Section Header - Simple and clean */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Reduced from 3rem */
    position: relative;
    z-index: 100; /* Very high z-index within isolated context */
}

.section-header h2 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 800;
    margin-bottom: 1rem; /* Increased for better separation */
    line-height: 1.2;
    position: relative;
    z-index: 101; /* Even higher within isolated context */
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280; /* Softer gray for better hierarchy */
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}

/* Image Grid Layout - Disciplined Structure */
.events-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 1.5rem; /* Consistent gap */
    margin-bottom: 3rem;
}

/* Individual Event Card - Clean Structure */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Subtle rounded corners */
    transition: all 0.3s ease;
    background: white;
    z-index: 1; /* Lower than section headers */
}

/* Image Container - Fixed aspect ratio */
.event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Uniform aspect ratio */
    overflow: hidden;
    border-radius: 8px; /* Clean edges */
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* No stretching */
    transition: transform 0.3s ease;
    display: block;
}

/* Subtle Overlay - Hover only */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Light gradient overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Refined Hover Interaction - Desktop only */
@media (hover: hover) {
    .event-card:hover {
        transform: translateY(-4px); /* Soft elevation increase */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* Soft shadow */
        z-index: 2; /* Slightly higher on hover, but still below headers */
    }
    
    .event-card:hover .event-image img {
        transform: scale(1.03); /* Minimal scale-in effect */
    }
    
    .event-card:hover .image-overlay {
        opacity: 1; /* Show overlay on hover */
    }
}

/* Section CTA */
.section-cta {
    text-align: center;
}

/* Tablet Layout - 2 columns */
@media (min-width: 768px) {
    .recent-events {
        padding: 4rem 0; /* Reduced from excessive 100px top padding */
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem; /* Slightly larger on tablet */
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 2rem;
        margin-bottom: 4rem;
    }
}

/* Desktop Layout - 3 columns */
@media (min-width: 1024px) {
    .recent-events {
        padding: 5rem 0; /* Reduced from excessive 120px top padding */
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.375rem; /* Larger on desktop */
    }
    
    .events-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
        gap: 2.5rem;
    }
}

/* Large Desktop - 4 columns for wider screens */
@media (min-width: 1400px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr); /* Large desktop: 4 columns */
        gap: 2rem;
    }
}

/* Testimonials Section (Hidden by default) */
.testimonials {
    padding: 4rem 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1a202c;
    font-weight: 800;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #ed8936;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #1a202c;
    font-weight: 700;
}

.testimonial-author span {
    color: #4a5568;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
    z-index: 2; /* Higher than cards */
    isolation: isolate; /* Create isolated stacking context */
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(237, 137, 54, 0.05), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.testimonials .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials .section-header h2 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.testimonials .section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #ed8936;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 137, 54, 0.1), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-left-color: #dd7724;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 4rem;
    color: #ed8936;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.author-info strong {
    color: #1a202c;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info span {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Slide animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive testimonials */
@media (min-width: 768px) {
    .testimonials {
        padding: 5rem 0;
    }
    
    .testimonials .section-header h2 {
        font-size: 2.25rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .testimonial-card {
        padding: 3rem;
    }
    
    .quote-icon {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .testimonial-card {
        padding: 3.5rem;
    }
}

/* Enhanced hover effects for desktop */
@media (hover: hover) {
    .testimonial-card:hover .quote-icon {
        animation: bounce 0.6s ease;
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Final CTA Section */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
}

.final-cta p {
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.final-cta .cta-buttons .btn-primary,
.final-cta .cta-buttons .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

/* Responsive Design for New Sections */
@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .final-cta .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .final-cta .cta-buttons .btn-primary,
    .final-cta .cta-buttons .btn-whatsapp {
        width: auto;
        min-width: 180px; /* Reduced from 200px to prevent overflow */
        max-width: 100%; /* Ensure buttons don't exceed container width */
    }
}

@media (min-width: 768px) {
    .how-it-works .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3.5rem; /* Increased spacing on tablet */
    }
    
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .how-it-works {
        padding: 5rem 0;
    }
    
    .how-it-works h2 {
        font-size: 2.5rem;
    }
    
    .how-it-works .section-subtitle {
        font-size: 1.25rem; /* Larger on desktop */
        margin-bottom: 4rem; /* More space on desktop */
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .process-step {
        padding: 3rem 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        top: -20px;
    }
    
    .final-cta {
        padding: 5rem 0;
    }
    
    .final-cta h2 {
        font-size: 2.5rem;
    }
}

/* Mobile optimizations for new sections */
@media (max-width: 767px) {
    .how-it-works {
        padding: 2.5rem 0;
        margin-top: 1rem; /* Add spacing to prevent overlap */
    }
    
    .why-choose {
        padding: 2.5rem 0;
        margin-top: 1rem; /* Add spacing to prevent overlap */
    }
    
    .how-it-works .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem; /* Proper spacing on mobile */
        padding: 0 1rem; /* Horizontal padding for mobile */
    }
    
    .process-step {
        padding: 2rem 1.5rem;
        text-align: center; /* Center all content on mobile */
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -12px;
        margin: 0 auto; /* Center step number */
    }
    
    .step-icon {
        font-size: 2.5rem;
        margin: 1rem auto 0.75rem; /* Center icon on mobile */
        display: block;
        width: 80px;
        height: 80px;
    }
    
    .final-cta {
        padding: 2.5rem 0;
    }
    
    .final-cta .cta-buttons {
        max-width: 300px;
        flex-direction: column;
        gap: 1rem;
    }
    
    .final-cta .cta-buttons .btn-primary,
    .final-cta .cta-buttons .btn-whatsapp {
        width: 100%;
        max-width: 100%;
        min-width: auto; /* Remove min-width on mobile */
    }
    
    .hero-cta .btn-secondary {
        margin-top: 0;
        order: 3;
        width: 100%;
        max-width: 250px;
    }
}