/* ============ IMPORTS & VARIABLES ============ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #1b2a22;
    --secondary: #73846a;
    --accent: #d4c5b0;
    --bg-light: #f9f8f6;
    --bg-alt: #f0ede8;
    --white: #ffffff;
    --text-dark: #2b2b2b;
    --text-light: #6a6a6a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Hide default cursor */
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; color: var(--primary); }

/* ============ SINGLE FLOWER CURSOR ============ */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 50px; height: 50px; /* Much larger */
    pointer-events: none;
    z-index: 9999;
    /* Centered on mouse */
    transform-origin: center;
    transition: width 0.3s ease, height 0.3s ease, filter 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    /* Strong golden glow */
    filter: drop-shadow(0 0 10px rgba(212, 197, 176, 0.8));
    will-change: transform;
}

.custom-cursor svg {
    width: 100%; height: 100%;
}

/* Grow state on hover */
.cursor-grow.custom-cursor {
    width: 70px; height: 70px;
    filter: drop-shadow(0 0 20px rgba(212, 197, 176, 1));
}

/* Hide custom cursor on mobile */
@media (max-width: 900px) {
    body, a, button { cursor: auto; }
    .custom-cursor { display: none; }
}

/* ============ TYPOGRAPHY & LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: left;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.section-title.center { text-align: center; display: block; }
.section-title span { font-style: italic; color: var(--secondary); }

/* Golden underline sweep */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible .section-title::after,
.reveal-up.is-visible.section-title::after {
    transform: scaleX(1);
}

.section-cta { text-align: center; margin-top: 50px; }

/* ============ HEADER ============ */
.site-header {
    background: var(--primary);
    color: var(--primary);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    position: relative;
}
.logo-link { display: flex; align-items: center; }
.header-logo { max-height: 60px; width: auto; object-fit: contain; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
    color: var(--white); position: relative; padding-bottom: 4px;
    transition: color 0.3s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--accent); transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none; border: none; font-size: 1.8rem; cursor: pointer;
    color: var(--accent);
}

/* ============ CINEMATIC SPLIT HERO ============ */
.hero-split {
    display: flex;
    min-height: 90vh;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8%;
    position: relative;
    z-index: 10;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    z-index: 5;
    perspective: 1000px;
    transition: box-shadow 0.5s ease;
}

.hero-image-side {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-image: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(240, 237, 232, 0.4) 0%, rgba(240, 237, 232, 0) 30%);
    z-index: 6;
    pointer-events: none;
}

.hero-text-side h1 {
    font-size: 5.5rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-text-side h1 span { font-style: italic; color: var(--secondary); }

.hero-text-side p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; }

.animate-up-1 { animation: fadeUpHero 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; transform: translateY(40px); }
.animate-up-2 { animation: fadeUpHero 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; transform: translateY(40px); }
.animate-up-3 { animation: fadeUpHero 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; transform: translateY(40px); }

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

/* ============ BUTTONS ============ */
.btn {
    display: inline-block; padding: 16px 36px; border-radius: 0;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: none; border: 1px solid var(--primary);
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ============ CARDS & FEATURES ============ */
.therapy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.therapy-card {
    background: transparent;
    position: relative;
    cursor: none;
}
.therapy-image-wrap {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
}
.therapy-image-wrap img {
    width: 100%; height: 100%;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.therapy-card:hover .therapy-image-wrap img { transform: scale(1.08); }

.therapy-price {
    position: absolute; bottom: -20px; left: 30px;
    background: var(--white); padding: 12px 24px;
    font-family: var(--font-heading); font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 2; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.therapy-card:hover .therapy-price { transform: translateY(-5px); }

.therapy-content {
    padding: 50px 30px 30px 30px;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    background: var(--white);
}
.therapy-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.therapy-content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }
.therapy-meta {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px;
    margin-top: 20px;
}
.duration { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); font-weight: 600; }

.three-col {
    display: grid; gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature {
    background: var(--white); padding: 50px 40px; border-radius: 0;
    text-align: center; border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.feature h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 30px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--primary); color: #b8c0b5; }
.footer-inner {
    display: grid; gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 80px 20px;
    max-width: 1280px; margin: 0 auto;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; font-family: var(--font-heading); }
.footer-col p { font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 10px; color: #b8c0b5; transition: color 0.3s; cursor: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
    padding: 24px; font-size: 0.85rem; color: #7d8a7f;
}

/* ============ DIRECTIONAL REVEAL ANIMATIONS ============ */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-up {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.therapy-grid .reveal-up:nth-child(1) { transition-delay: 0s; }
.therapy-grid .reveal-up:nth-child(2) { transition-delay: 0.15s; }
.therapy-grid .reveal-up:nth-child(3) { transition-delay: 0.3s; }
.therapy-grid .reveal-up:nth-child(4) { transition-delay: 0.45s; }

/* ============ PREMIUM IMAGE PLACEHOLDERS ============ */
.premium-placeholder {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e6e2d8 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--secondary); font-family: var(--font-heading); font-size: 1.2rem;
    letter-spacing: 1px; text-align: center; padding: 20px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.5);
}
/* Shimmer effect */
.premium-placeholder::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg); animation: shimmer 4s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 50% { left: 200%; } 100% { left: 200%; } }
.premium-placeholder svg { width: 40px !important; height: 40px !important; margin-bottom: 15px; opacity: 0.5; z-index: 1; }
.premium-placeholder span { z-index: 1; font-size: 1rem; line-height: 1.4; }

/* ============ RESPONSIVE (Mobile) ============ */
@media (max-width: 900px) {
    body, a, button, .nav-toggle {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
    }

    .main-nav.open {
        display: flex !important;
    }

    .main-nav a {
        color: var(--white);
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a::after {
        display: none;
    }

    /* ============ CINEMATIC OVERLAY HERO (MOBILE) ============ */
@media (max-width: 900px) {
    .hero-split {
        min-height: 85vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Hero background image directly on the hero container */
        background-image: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?q=80&w=2070&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }

    /* Dark luxury gradient overlay over the image */
    .hero-split::before {
        content: '';
        position: absolute;
        top: 0; left: 0; 
        width: 100%; height: 100%;
        background: linear-gradient(
            180deg, 
            rgba(27, 42, 34, 0.85) 0%, 
            rgba(27, 42, 34, 0.65) 50%, 
            rgba(27, 42, 34, 0.9) 100%
        );
        z-index: 1;
    }

    .hero-text-side {
        position: relative;
        z-index: 2;
        padding: 100px 24px 60px;
        text-align: center;
        width: 100%;
        background: transparent;
    }

    .hero-text-side h1 {
        font-size: 3.2rem;
        color: var(--white);
        margin-bottom: 16px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }

    .hero-text-side h1 span {
        color: var(--accent);
    }

    .hero-text-side p {
        margin: 0 auto 32px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.05rem;
        max-width: 90%;
        line-height: 1.6;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn-outline {
        border-color: var(--accent);
        color: var(--accent);
    }

    /* Hide the second image wrapper block on mobile since image is now hero background */
    .hero-image-wrapper {
        display: none !important;
    }
}

    .section-title { font-size: 2.2rem; text-align: center; }
    .therapy-grid { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .section-title.center::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
    .reveal-up.is-visible .section-title.center::after { transform: translateX(-50%) scaleX(1); }
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex !important; /* Guarantee display on mobile */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999; /* Ensure high layer stack above main containers */
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-green 2s infinite;
    cursor: auto;
}

.floating-whatsapp svg,
.floating-whatsapp img,
.floating-whatsapp i {
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 900px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        cursor: pointer !important;
    }
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ DESKTOP HEADER & MENU CURSOR FIX ============ */
.site-header,
.site-header *,
.main-nav,
.main-nav * {
    cursor: default !important; /* Force standard arrow cursor on header container */
}

.site-header a,
.site-header button,
.site-header .logo-link,
.main-nav a {
    cursor: pointer !important; /* Force standard hand pointer cursor on links & buttons */
}

/* Hide flower cursor when hovering over header elements */
.site-header:hover ~ .custom-cursor,
.site-header:hover ~ .custom-cursor-follower,
.main-nav:hover ~ .custom-cursor {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0) !important;
}

/* ============ FLOATING WHATSAPP BUTTON (STABLE MOBILE) ============ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999999 !important; /* Above all sticky/fixed sections */
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-green 2s infinite;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force GPU layer to prevent dynamic scroll hiding */
    will-change: transform;
}

.floating-whatsapp svg,
.floating-whatsapp img,
.floating-whatsapp i {
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateZ(0);
    background-color: #1EBE5D;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 900px) {
    .floating-whatsapp {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
        cursor: pointer !important;
    }
}
