/* === BOOKING POLICY MODAL === */
.policy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2000;
}

.policy-modal.active {
    opacity: 1;
    pointer-events: all;
}

.policy-modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 3.25rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);

    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.policy-modal.active .policy-modal-content {
    transform: scale(1);
    opacity: 1;
}

.policy-modal-content h2 {
    margin-bottom: 1rem;
}

.policy-modal-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #555;
}

.policy-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.policy-modal-actions .btn {
    min-width: 160px;
}

.policy-modal .policy-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-burgundy-rose);
    text-decoration: underline;
    cursor: pointer;
}

/* === CAL.COM BOOKING TOGGLE === */
.cal-hidden {
    display: none;
}

.cal-open-btn {
    margin: 2rem auto;
    display: inline-block;
}

.cal-embed-wrapper {
    margin-top: 3rem;
    transition: opacity 0.3s ease;
}

/*
    Hair By Lindee - Luxury Salon Style Sheet
    Primary Vibe: Luxury, Modern, Feminine, Clean, Premium
*/

/* --- 1. Variables & Global Reset --- */
:root {
    --color-blush-pink: #EAC8D5;
    /* Primary Accent */
    --color-deep-plum: #592837;
    /* Primary Text / Dark Accent */
    --color-burgundy-rose: #682A3E;
    /* Secondary Accent / Hover */
    --color-off-white: #FAFAFA;
    /* Clean Background */
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft, elegant depth */
    --transition-speed: 0.3s;
    --spacing-large: 4rem;
    /* Luxury spacing */
}

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

body {
    font-family: var(--font-body);
    color: var(--color-deep-plum);
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
    opacity: 0;
    animation: pageFadeIn 0.6s ease-out forwards;
}

/* === PAGE TRANSITION FADE === */
@keyframes pageFadeIn {
    to {
        opacity: 1;
    }
}

/* === DESKTOP STICKY BOOK CTA === */
.desktop-sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: none;
    /* Hidden by default */
}

.desktop-sticky-cta a {
    background-color: var(--color-burgundy-rose);
    color: var(--color-white);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-sticky-cta a:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-deep-plum);
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-burgundy-rose);
    margin-bottom: var(--spacing-large);
    display: block;
}

/* Hero subtitle should be white for contrast */
.hero-section .section-subtitle {
    color: var(--color-white);
}

/* --- 2. Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-large);
    height: 96px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-deep-plum);
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;

    opacity: 0;
    transform: translateY(-6px);
    transform-origin: center;

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

nav a {
    color: var(--color-deep-plum);
    text-decoration: none;
    margin-left: 1.5rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}



/* Elegant Underline Hover Effect */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-burgundy-rose);
    left: 0;
    bottom: 0;
    transition: width var(--transition-speed);
}

/* Hover underline only */
nav a:hover::after {
    width: 100%;
}

/* Remove browser underline everywhere */
nav a {
    text-decoration: none;
}

.nav-cta-btn {
    background-color: var(--color-blush-pink);
    color: var(--color-deep-plum);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 2rem;
    font-weight: 700;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.nav-cta-btn:hover {
    background-color: var(--color-burgundy-rose);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.menu-toggle {
    display: none;
}

/* Hide on desktop */

/* === HEADER SCROLL & LOGO ANIMATIONS === */

/* Smooth header transitions */
header {
    transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Logo visible after load */
.logo-img.logo-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shrunk header state (NO height change to prevent jitter) */
header.header-shrink {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Shrunk logo (scale instead of resize to prevent reflow) */
header .logo-img {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

header.header-shrink .logo-img {
    transform: scale(0.85);
}

/* --- 3. Utility Classes & Buttons --- */
.section {
    padding: var(--spacing-large) 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-booking .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* --- BOOKING PAGE SPACING & POLISH --- */

/* Luxury breathing room for booking section */
.page-booking .booking-section {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

/* Relaxed FAQ heading spacing */
.page-booking .faq-section {
    padding-top: 3rem;
    margin-top: 0;
}

/* Booking section visual refinement */
.page-booking .booking-container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Subtle divider to separate booking from FAQ */
.page-booking .booking-container::after {
    content: "";
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--color-blush-pink);
    margin: 5rem auto 2.5rem;
    border-radius: .5px;
    opacity: 0.8;
}

/* Button micro-interaction (premium feel) */
/* Updated booking button for premium look */
.page-booking .booking-section .btn {
    padding: 1.6rem 3.75rem;
    font-size: 1.2rem;
    min-width: 280px;
}

/* Soft shimmer on hover */
.page-booking .booking-section .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.page-booking .booking-section .btn:hover::after {
    left: 120%;
}


/* === TEXT SHIMMER (LETTERS ONLY, RUNS ONCE) === */
.shimmer-text {
    position: relative;
    display: inline-block;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.25) 100%);
    background-size: 200% 100%;
    background-position: 200% 0;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shimmerTextOnce 2.2s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* === HERO SHIMMER BLOCK OVERRIDES === */
.hero-content h1.shimmer-text {
    display: block;
}

.hero-content .value-prop.shimmer-text {
    display: block;
}

@keyframes shimmerTextOnce {
    0% {
        background-position: 200% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0);
    }

    5% {
        background-position: 185% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.05);
    }

    10% {
        background-position: 170% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.1);
    }

    15% {
        background-position: 155% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.15);
    }

    20% {
        background-position: 140% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.2);
    }

    25% {
        background-position: 125% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.25);
    }

    30% {
        background-position: 110% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
    }

    35% {
        background-position: 95% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.35);
    }

    40% {
        background-position: 80% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
    }

    45% {
        background-position: 65% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
    }

    50% {
        background-position: 50% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
    }

    55% {
        background-position: 35% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
    }

    60% {
        background-position: 20% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
    }

    65% {
        background-position: 10% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.65);
    }

    70% {
        background-position: 0% 0;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
    }

    75% {
        -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
    }

    80% {
        -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
    }

    85% {
        -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    }

    90% {
        -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
    }

    95% {
        -webkit-text-fill-color: rgba(255, 255, 255, 0.98);
    }

    100% {
        background-position: 0% 0;
        -webkit-text-fill-color: #FFFFFF;
    }
}

/* === BUTTON SHIMMER (PRESERVES COLOR) === */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%);
    animation: buttonShimmerOnce 1.6s ease-out forwards;
    pointer-events: none;
}

@keyframes buttonShimmerOnce {
    to {
        left: 120%;
    }
}

/* Gentle entrance animation */
.page-booking .booking-container {
    animation: bookingFadeUp 0.8s ease-out both;
}

@keyframes bookingFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.primary-btn {
    background-color: var(--color-deep-plum);
    color: var(--color-white);
}

.primary-btn:hover {
    background-color: var(--color-burgundy-rose);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(89, 40, 55, 0.2);
}

.secondary-btn {
    background-color: var(--color-blush-pink);
    color: var(--color-deep-plum);
    border: 1px solid var(--color-blush-pink);
}

.secondary-btn:hover {
    background-color: var(--color-white);
    border-color: var(--color-burgundy-rose);
    color: var(--color-burgundy-rose);
}

.text-link {
    color: var(--color-burgundy-rose);
    text-decoration: none;
    border-bottom: 1px solid var(--color-burgundy-rose);
    transition: all var(--transition-speed);
}

.text-link:hover {
    color: var(--color-deep-plum);
    border-color: var(--color-deep-plum);
}

.card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- 4. Hero Section --- */
.hero-section {
    position: relative;
    height: 70vh;
    /* Premium, full-width feel */
    overflow: hidden;
    /* Clean up any overflow from the img */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Behind everything */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* LIGHTER VERSION */
    /* I changed the last numbers from 0.6/0.4 to 0.3/0.1 */
    background: linear-gradient(135deg,
            rgba(89, 40, 55, 0.3) 0%,
            /* Starts 30% dark */
            rgba(104, 42, 62, 0.1) 100%
            /* Ends only 10% dark */
        );

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.value-prop {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    font-family: var(--font-heading);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scarcity-text {
    color: #FFFFFF;
    font-weight: 700;
}

/* --- 5. Services Preview --- */
.services-preview-section {
    padding-top: calc(var(--spacing-large) * 1.5);
    /* Extra space from hero */
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-large);
}

.service-card {
    text-align: left;
    padding: 0;
    /* Content padding inside other elements */
    overflow: hidden;
}

.service-card h3 {
    margin: 1rem 0 0.5rem;
    padding: 0 2rem;
}

.service-card p {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.service-card .text-link {
    display: inline-block;
    margin: 0 2rem 2rem;
}

.card-image-placeholder {
    height: 200px;
    background-color: var(--color-blush-pink);
    /* Fallback */
    background-size: cover;
    background-position: center;
    transition: transform 5s ease;
}

.service-card:hover .card-image-placeholder {
    transform: scale(1.05);
    /* Slow, subtle zoom on hover */
}


/* === SERVICES PREVIEW IMAGES (INDEX PAGE) === */
.balayage-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url('../img/haircuts-index.jpg');
}

.color-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url('../img/customcolor-index.jpg');
}

.haircut-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url('../img/eyebrowtreatment-index.jpg');
}


/* --- 6. Why Lindee & Testimonials (Layout adjusted for readability) --- */
.why-lindee-section {
    text-align: left;
    background-color: var(--color-white);
    padding: var(--spacing-large) 5%;
    border-top: 1px solid var(--color-blush-pink);
    border-bottom: 1px solid var(--color-blush-pink);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-content ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.why-content ul li {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
}

.why-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.why-support {
    font-size: 0.95rem;
    color: #666;
    max-width: 620px;
    margin-bottom: 2.25rem;
}

.why-content ul li strong {
    display: inline-block;
    margin-bottom: 0.15rem;
}

.why-content ul li::before {
    content: '★';
    /* Elegant bullet point */
    color: var(--color-burgundy-rose);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 5px;
}

/* Testimonials */
.testimonial-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--color-deep-plum);
    line-height: 1.7;
    background: none;
}

.testimonial-card footer {
    font-weight: 700;
    color: var(--color-burgundy-rose);
    font-size: 0.95rem;
    text-align: right;
    background: none;
}

/* Removed .testimonial-card::before decorative quote mark for clean look */

/* === TESTIMONIAL STARS === */
.testimonial-stars {
    color: var(--color-burgundy-rose);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

/* --- 7. Gallery & Instagram Placeholders --- */

/* === STATIC BEFORE / AFTER (NO SLIDER) === */
.before-after-static {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1000px;
    height: 420px;
    margin: 0 auto 2rem;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.before-after-static .static-image {
    position: relative;
    overflow: hidden;
}

.before-after-static .static-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Removed background-position rules as we use object-fit on img now */

.before-after-static .label {
    position: absolute;
    bottom: 18px;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.before-after-static .static-image.before .label {
    left: 18px;
}

.before-after-static .static-image.after .label {
    right: 18px;
}

/* Mobile: keep before/after side by side, fixed height */
@media (max-width: 768px) {
    .before-after-static {
        grid-template-columns: 1fr 1fr;
        /* keep side-by-side */
        height: 280px;
    }

    .before-after-static .static-image {
        height: 100%;
    }
}

.instagram-section {
    background-color: var(--color-white);
    padding: calc(var(--spacing-large) * 1.5) 5%;
}

.instagram-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.insta-post {
    aspect-ratio: 1 / 1;
    background-color: var(--color-blush-pink);
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.insta-post:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* === INSTAGRAM GRID IMAGES (INDEX PAGE) === */
.insta-post {
    background-size: cover;
    background-position: center;
    filter: brightness(1.15) contrast(1.05);
    transition: transform var(--transition-speed), filter var(--transition-speed);
}

.insta-post:hover {
    filter: brightness(1.2) contrast(1.08);
}

.insta-post.post-1 {
    background-image: url('../img/insta-post-1.jpg');
}

.insta-post.post-2 {
    background-image: url('../img/insta-post-2.jpg');
}

.insta-post.post-3 {
    background-image: url('../img/insta-post-3.jpg');
}

.insta-post.post-4 {
    background-image: url('../img/insta-post-4.jpg');
}

/* --- 8. Final CTA Banner --- */
.final-cta-banner {
    background-color: var(--color-burgundy-rose);
    color: var(--color-white);
    padding: 4rem 5%;
    text-align: center;
}

.final-cta-banner h2 {
    color: var(--color-white);
    font-size: 2.5rem;
}

.final-cta-banner p {
    font-size: 1.2rem;
    margin: 1rem auto 2rem;
    max-width: 700px;
}

/* --- 9. Footer --- */
footer {
    background-color: var(--color-deep-plum);
    color: var(--color-blush-pink);
    padding: 3rem 5%;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    text-align: left;
}

.footer-grid h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-social a {
    display: block;
    color: var(--color-blush-pink);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-white);
}

/* === MOBILE FLOATING STICKY CTA (MATCHES DESKTOP STYLE) === */
.mobile-sticky-cta {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-burgundy-rose);
    color: var(--color-white);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- 11. Animations (Subtle Micro-interactions) --- */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-on-hover:hover {
    animation: pulse 0.8s ease-in-out infinite;
}

/* Scroll Fade In Animation */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. Media Queries (Mobile-First Responsive) --- */
@media (max-width: 1024px) {
    :root {
        --spacing-large: 3rem;
    }

    /* --- Booking Page Mobile Fixes --- */
    .page-booking .hero-section {
        height: auto;
        min-height: 50vh;
    }

    .page-booking .hero-content {
        padding: 3rem 1.5rem;
    }

    .page-booking .hero-content h1 {
        font-size: 2.2rem;
    }

    .page-booking .section-subtitle {
        font-size: 1.1rem;
    }

    .page-booking .booking-section .btn {
        width: 100%;
        max-width: 320px;
        font-size: 1rem;
    }

    header {
        padding: 1.1rem 5%;
    }

    .logo-img {
        max-height: 44px;
    }

    nav {
        position: absolute;
        top: 96px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-soft);
        z-index: 999;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 0.75rem 0;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-deep-plum);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .testimonial-card-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid-placeholder {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-branding,
    .footer-links,
    .footer-social {
        margin-bottom: 1.5rem;
    }

    /* Show the floating CTA on mobile devices */
    .mobile-sticky-cta {
        display: block;
    }

    /* No extra padding needed since CTA is floating */
    main {
        padding-bottom: 0;
    }
}

/* --- PAGE SPECIFIC STYLES --- */

/* Page Headers */
.page-header {
    background-color: var(--color-deep-plum);
    color: var(--color-white);
    padding: 6rem 5% 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-header .section-subtitle {
    color: var(--color-blush-pink);
    margin-bottom: 0;
}

/* About Page: Split Layout */
.about-split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.about-image {
    flex: 1;
}

.portrait-placeholder {
    width: 100%;
    height: 500px;
    background-color: #ddd;
    /* Replace with real img */
    border-radius: 10px;
    box-shadow: 20px 20px 0px var(--color-blush-pink);
    /* Offset decorative border */
}

.about-text {
    flex: 1;
}

.luxury-list li {
    margin-bottom: 1rem;
}

.brand-banner {
    background-color: var(--color-off-white);
    border-top: 1px solid #ddd;
}

.brand-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-weight: 700;
    color: var(--color-deep-plum);
    text-transform: uppercase;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Services Menu */
.menu-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 4.5rem 5%;
}

.menu-category {
    margin-bottom: 5rem;
    scroll-margin-top: 140px;
}

.menu-category h2 {
    border-bottom: 2px solid var(--color-blush-pink);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 2.75rem;
    letter-spacing: 1px;
}

.menu-item {
    margin-bottom: 2.75rem;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.menu-header .price {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.menu-desc {
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
    max-width: 520px;
}

/* === GALLERY GRID (FIXED LAYOUT) === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed);

    will-change: transform;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
    cursor: pointer;
}



/* Booking & FAQs */
.booking-placeholder {
    background: #f4f4f4;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--color-deep-plum);
    border-radius: 10px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    color: var(--color-deep-plum);
    display: flex;
    justify-content: space-between;
}

.accordion-header::after {
    content: '+';
    font-weight: bold;
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease-out,
        box-shadow 0.35s ease,
        transform 0.35s ease;

    margin-top: 0.9rem;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    border: 1px solid rgba(0, 0, 0, 0.04);
}

.accordion-item:hover .accordion-content {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.accordion-content p {
    padding: 1.5rem 1.75rem;
    color: #555;
    line-height: 1.7;
}

.accordion-content p:last-child {
    padding-bottom: 2rem;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-deep-plum);
    background-color: #fafafa;
}

/* Responsive Adjustments for Subpages */
@media (max-width: 768px) {

    .about-split-layout,
    .contact-container {
        grid-template-columns: 1fr;
        display: block;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .portrait-placeholder {
        height: 350px;
    }

    .gallery-item.large {
        aspect-ratio: 1 / 2;
        grid-row: span 2;
    }
}


/* === PAGE-SPECIFIC HERO BACKGROUNDS === */

/* .page-home .hero-section handled by HTML picture element now */

.page-about .hero-section {
    background-image: url('../img/about-hero.jpg');
}

.page-services .hero-section {
    background-image: url('../img/services-hero.jpg');
}

.page-gallery .hero-section {
    background-image: url('../img/gallery-hero.jpg');
}

.page-contact .hero-section {
    background-image: url('../img/contact-hero.jpg');
}

.page-booking .hero-section {
    background-image: url('../img/booking-hero.jpg');
}

/* === CLEAN PAGE-AWARE ACTIVE NAV UNDERLINE === */

/* Home */
.page-home nav a[href="index.html"] {
    color: var(--color-burgundy-rose);
}

.page-home nav a[href="index.html"]::after {
    width: 100%;
}

/* About */
.page-about nav a[href="about.html"] {
    color: var(--color-burgundy-rose);
}

.page-about nav a[href="about.html"]::after {
    width: 100%;
}

/* Services */
.page-services nav a[href="services.html"] {
    color: var(--color-burgundy-rose);
}

.page-services nav a[href="services.html"]::after {
    width: 100%;
}

/* Gallery */
.page-gallery nav a[href="gallery.html"] {
    color: var(--color-burgundy-rose);
}

.page-gallery nav a[href="gallery.html"]::after {
    width: 100%;
}

/* Contact */
.page-contact nav a[href="contact.html"] {
    color: var(--color-burgundy-rose);
}

.page-contact nav a[href="contact.html"]::after {
    width: 100%;
}

/* Booking */
.page-booking nav a[href="book.html"] {
    color: var(--color-burgundy-rose);
}

.page-booking nav a[href="book.html"]::after {
    width: 100%;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-portrait {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === DESKTOP STICKY CTA VISIBILITY === */
@media (min-width: 1025px) {
    .desktop-sticky-cta {
        display: block;
    }

    /* Hide mobile CTA on desktop */
    .mobile-sticky-cta {
        display: none;
    }
}

/* Spacing for booking intro paragraph */
.page-booking .booking-intro {
    max-width: 640px;
    margin: 1.25rem auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* === SPLIT HERO BOOKING LAYOUT === */
.booking-split-hero {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 80vh;
    background-color: var(--color-off-white);
}

.booking-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
        url('../img/booking-split.jpg');
    background-size: cover;
    background-position: 65% center;
}

.booking-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: var(--shadow-soft);
}

.booking-card h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.booking-card .section-subtitle {
    margin-bottom: 2.5rem;
}

.booking-card h2 {
    margin-bottom: 1rem;
}

.booking-card .booking-intro {
    margin-bottom: 2.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .booking-split-hero {
        grid-template-columns: 1fr;
    }

    .booking-image {
        min-height: 40vh;
    }

    .booking-card {
        padding: 3rem 1.75rem;
        backdrop-filter: none;
        background: #ffffff;
    }
}

/* === EDITORIAL BOOKING CANVAS (OPTION 2) === */

.booking-editorial {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 4%;
    background-color: var(--color-off-white);
}

.booking-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    min-height: 78vh;
    background-color: #f3f1ef;
    border-radius: 24px;
    overflow: hidden;
    position: relative;

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.14),
        0 12px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.booking-frame:hover {
    box-shadow:
        0 55px 110px rgba(0, 0, 0, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.accordion-item:hover .accordion-content,
.booking-frame:hover {
    /* fallback for specificity, overridden in mobile safety block below */
}


.booking-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.booking-panel-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
        url('../img/booking-split.jpg');
    background-size: cover;
    background-position: 56% 50%;
}

.booking-panel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 4rem;
}

.booking-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 3.75rem 3.25rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.booking-glass-card h1 {
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
}

.booking-glass-card .booking-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.75rem;
}

/* === ENHANCED BOOK NOW BUTTON (EDITORIAL CARD ONLY) === */
.booking-glass-card .btn {
    position: relative;
    padding: 1.85rem 4.25rem;
    font-size: 1.25rem;
    letter-spacing: 2px;
    overflow: hidden;
}

.booking-glass-card .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.booking-glass-card .btn:hover::after {
    left: 120%;
}

@media (max-width: 1024px) {
    .booking-frame {
        grid-template-columns: 1fr;
    }

    .booking-panel-image {
        min-height: 50vh;
    }

    .booking-panel-content {
        padding: 2.75rem 1.75rem;
    }

    .booking-glass-card {
        padding: 3rem 2rem;
        backdrop-filter: none;
        background: #ffffff;
    }
}

/* === BOOKING CONFIRMATION GATE === */
.booking-confirmation-gate {
    margin-top: 2rem;
}

.policy-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.policy-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    cursor: pointer;
    user-select: none;
}

.policy-checkbox input {
    display: none;
}

.policy-checkbox span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-burgundy-rose);
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.policy-checkbox input:checked+span::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 14px;
    color: var(--color-burgundy-rose);
    font-weight: 700;
}

.booking-confirmation-gate .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (hover: none) {

    .accordion-item:hover .accordion-content,
    .booking-frame:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* === ABOUT PAGE HERO EDITORIAL STACK === */
.page-about .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.about-location {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-burgundy-rose);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.page-about .hero-content h1 {
    font-size: 3.2rem;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.about-handle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-deep-plum);
    opacity: 0.85;
}

.about-body p {
    margin-bottom: 1.75rem;
}

.about-body p:last-child {
    margin-bottom: 0;
}