*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --surro-green: #1a935e;
    --surro-gold: #c5a358;
    --surro-cream: #f9f7f2;
    --surro-text: #2d3e40;
    --surro-dark: #123d2b;
}

html,
body {
    font-family: 'Jost', sans-serif;
    background-color: var(--surro-cream);
    color: var(--surro-text);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

.serif-heading {
    font-family: 'Cormorant Garamond', serif;
}

.text-gold-gradient {
    background: linear-gradient(to right, #c5a358, #e3c487, #c5a358);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-gold {
    background-color: var(--surro-gold);
    color: white;
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.05em;
}

.cta-gold:hover {
    background-color: var(--surro-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 147, 94, 0.3);
}

.section-card {
    background: white;
    border-radius: 40px;
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 4rem;
    color: var(--surro-gold);
    opacity: 0.2;
    line-height: 1;
}

/* Pan Animation Logic */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.input-field {
    background-color: white;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--surro-gold);
    box-shadow: 0 0 0 3px rgba(197, 163, 88, 0.1);
}

/* Notification Container */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification.show {
    transform: translateX(0);
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 70px;
    /* Mobile-first anchor */
    z-index: 100;
    background: #25d366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease !important;
}

@media (min-width: 1025px) {
    .whatsapp-btn {
        right: 30px !important;
        transition: transform 0.3s ease, right 0s !important;
    }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.call-btn {
    position: fixed;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.call-btn {
    bottom: 105px;
    right: 70px;
    /* Mobile-first anchor */
    background: var(--surro-green);
    color: white;
}

@media (min-width: 1025px) {
    .call-btn {
        right: 30px !important;
        transition: transform 0.3s ease, right 0s !important;
    }
}



/* Navigation Styles */
.nav-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 147, 94, 0.05);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    left: 0;
    right: 0;
}

nav .cta-gold {
    margin-right: 60px !important;
    /* Mobile-first anchor */
    transition: none !important;
}

@media (min-width: 1025px) {
    nav .cta-gold {
        margin-right: 5rem !important;
        transition: transform 0.3s ease !important;
    }
}


.bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
}

/* Hero Background Image styling - Full Overlay */
.hero-bg-full {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(249, 247, 242, 0.88), rgba(249, 247, 242, 0.88)),
        url('Brown Autumn Photo Collage.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
}

.review-section-bg {
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)),
        url("review section bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 1rem;
}

.faq-icon-line {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* 90-degree close animation */
.faq-item.active .faq-icon-line.vertical {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Placeholder for your rectangular logo */
.logo-container {
    width: 200px;
    height: 80px;
    background: #ffffff;
    /*  placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Booking Modal */
#booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(18, 61, 43, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Swiper Customization */
.swiper-pagination-bullet-active {
    background: var(--surro-gold) !important;
}

.reel-container {
    aspect-ratio: 9/16;
    width: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.review-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.google-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1a935e;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}


/* Custom Colors */
.text-primary {
    color: var(--surro-green);
}

.bg-primary {
    background-color: var(--surro-green);
}

.border-primary {
    border-color: var(--surro-green);
}

.bg-dark {
    background-color: var(--surro-dark);
}

/* Hero Section - Account for fixed navbar */
/* ============================================
   HERO SECTION - ACCOUNT FOR FIXED NAVBAR
   ============================================ */
section.relative.min-h-screen {
    padding-top: 140px;
}

@media (max-width: 1024px) {
    section.relative.min-h-screen {
        padding-top: 120px;
    }
}

@media (max-width: 640px) {
    section.relative.min-h-screen {
        padding-top: 100px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Base Mobile Overrides (768px and down) */
@media (max-width: 768px) {

    /* Prevent any horizontal content shift */
    html,
    body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Hierarchy Scaling */
    .serif-heading.text-5xl,
    .serif-heading.text-6xl,
    .serif-heading.text-7xl,
    .serif-heading.text-\[80px\] {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    h2.text-4xl {
        font-size: 1.5rem !important;
    }

    h3.text-2xl {
        font-size: 1.125rem !important;
    }

    p.text-xl,
    p.text-lg {
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
    }

    /* Section Padding */
    section.py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Layout Shifts */
    .flex-col-mobile {
        flex-direction: column !important;
    }

    .lg\:w-1\/2,
    .lg\:w-2\/5,
    .lg\:w-3\/5 {
        width: 100% !important;
    }
}

/* Small Device Optimizations (768px and down) */
@media (max-width: 768px) {

    /* Navbar Scaling */
    nav .container {
        padding-left: 15px !important;
        padding-right: 75px !important;
        /* Move spacing here for stability */
        width: 100% !important;
        max-width: 100% !important;
    }

    .logo-container {
        width: 110px !important;
        height: 45px !important;
    }

    nav .cta-gold {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.625rem !important;
        margin-right: 0 !important;
        /* Margin moved to container padding */
        letter-spacing: 0.02em !important;
        position: relative !important;
        right: 0 !important;
        transition: none !important;
    }

    /* Floating Buttons - Moved inward and stabilized */
    .whatsapp-btn {
        bottom: 20px !important;
        right: 70px !important;
        padding: 10px !important;
        transition: transform 0.3s ease !important;
        /* Only transform */
    }

    .call-btn {
        bottom: 80px !important;
        right: 70px !important;
        width: 45px !important;
        height: 45px !important;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    /* Form Adjustments */
    .input-field {
        font-size: 16px !important;
        /* iOS zoom prevention */
        padding: 0.75rem !important;
    }

    .serif-heading {
        font-size: 1.5rem !important;
    }
}

/* Verification Fixes for Specific Components */
@media (max-width: 768px) {
    .grid-cols-mobile-1 {
        grid-template-columns: 1fr !important;
    }

    #appointment-section .bg-white {
        border-radius: 24px !important;
        padding: 1.5rem !important;
    }

    footer .grid {
        text-align: center !important;
    }

    footer .flex {
        justify-content: center !important;
    }

    /* Component-Specific Mobile Refinements */
    /* Carousel */
    .reel-container {
        border-radius: 16px !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .review-card {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .faq-item h4 {
        font-size: 0.9rem !important;
    }

    .faq-icon {
        width: 6px !important;
        height: 6px !important;
    }

    .faq-icon-line {
        height: 0.8px !important;
    }

    .faq-icon-line.vertical {
        width: 0.8px !important;
    }

    /* Footer */
    footer .grid {
        gap: 2rem !important;
    }

    footer .w-12.h-12 {
        width: 44px !important;
        height: 44px !important;
    }

    /* Specific Fix for the "Reveal" shift issue */
    .reveal-left,
    .reveal-right,
    .reveal-up {
        overflow: hidden !important;
        /* Contain the animation potential overflow */
    }
}
