/* ==========================================================
   Arogya Panchakarma — Design tokens & base styles
   ========================================================== */

/* Fonts are loaded via <link> tags in <head> (not @import) for faster rendering — see includes/header.php and landing.php */

:root {
    /* Colour tokens */
    --green-deep: #1F3A2E;
    --green-ink: #141F19;
    --parchment: #F6F0E4;
    --sandalwood: #EDE3D0;
    --gold: #C89B3C;
    --gold-soft: #E4C77E;
    --copper: #A8551E;
    --copper-dark: #8A4116;
    --white: #FFFDF8;
    --line: rgba(20, 31, 25, 0.12);

    /* Type */
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;

    /* Layout */
    --max-width: 1180px;
    --radius: 4px;

    /* Depth — soft, warm-toned shadows (tinted with green-ink, not pure black) */
    --shadow-sm: 0 2px 8px rgba(20, 31, 25, 0.06), 0 1px 2px rgba(20, 31, 25, 0.05);
    --shadow-md: 0 8px 24px rgba(20, 31, 25, 0.10), 0 2px 6px rgba(20, 31, 25, 0.06);
    --shadow-lg: 0 20px 48px rgba(20, 31, 25, 0.16), 0 6px 16px rgba(20, 31, 25, 0.08);
    --shadow-gold: 0 10px 28px rgba(200, 155, 60, 0.28);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* ==========================================================
   Theme palettes — selected in Admin > Clinic Settings.
   Each overrides the base tokens above; layout/spacing stays identical.
   ========================================================== */

/* Theme 2: Saffron & Sandalwood — warm, devotional, temple-inspired */
html[data-theme="saffron"] {
    --green-deep: #7A2E12;
    --green-ink: #2B1810;
    --parchment: #FBF1E4;
    --sandalwood: #F0DEC4;
    --gold: #E08A2B;
    --gold-soft: #F0AE63;
    --copper: #B5451D;
    --copper-dark: #8F3315;
}

/* Theme 3: Royal Indigo & Gold — premium, classical Ayurvedic court feel */
html[data-theme="indigo"] {
    --green-deep: #2A2A5C;
    --green-ink: #1B1B33;
    --parchment: #F5F1E6;
    --sandalwood: #E9E2CE;
    --gold: #C9A227;
    --gold-soft: #E0C158;
    --copper: #8C1F28;
    --copper-dark: #6E1720;
}

/* Theme 4: Earthy Clay & Sage — grounded, natural, herbal-garden feel */
html[data-theme="clay"] {
    --green-deep: #3E4F3B;
    --green-ink: #22281F;
    --parchment: #F3EEE1;
    --sandalwood: #E6DCC6;
    --gold: #C1652F;
    --gold-soft: #DA8F5E;
    --copper: #9C4A21;
    --copper-dark: #7C3A19;
}

/* Theme 5: Moss & Sindoor Rose — deep, calming, traditional */
html[data-theme="rose"] {
    --green-deep: #2F3D26;
    --green-ink: #1C2417;
    --parchment: #F7F0E8;
    --sandalwood: #ECDFC9;
    --gold: #B23A48;
    --gold-soft: #D97A85;
    --copper: #7A1F2B;
    --copper-dark: #5E1520;
}

/* ==========================================================
   Font pairings — selected in Admin > Clinic Settings > Typography.
   Curated combinations only, so the type system always stays legible
   and on-brand — no arbitrary font mixing that could break layout.
   ========================================================== */

html[data-font="elegant"] {
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}
html[data-font="modern"] {
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}
html[data-font="traditional"] {
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Nunito Sans', sans-serif;
}
html[data-font="warm"] {
    --font-display: 'Libre Baskerville', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* Font size scale — root font-size drives all rem-based sizing site-wide */
html[data-fontsize="compact"] { font-size: 15px; }
html[data-fontsize="comfortable"] { font-size: 16px; }
html[data-fontsize="large"] { font-size: 18px; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--green-ink);
    background: var(--parchment);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em 0;
    color: var(--green-deep);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--copper);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--copper-dark) 0%, var(--copper) 100%); box-shadow: 0 12px 24px rgba(168, 85, 30, 0.32); }

.btn-outline {
    background: transparent;
    border-color: var(--green-deep);
    color: var(--green-deep);
}
.btn-outline:hover { background: var(--green-deep); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--green-deep); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 20px;
    flex-wrap: nowrap;
    transition: padding 0.25s var(--ease);
}
.site-header.scrolled .header-inner { padding: 10px 24px; }
.site-header.scrolled .brand-logo { height: 34px; }
.site-header.scrolled .brand svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) {
    .header-inner, .brand-logo, .brand svg { transition: none; }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-deep);
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.82; }
.brand-logo { height: 46px; max-width: 220px; width: auto; object-fit: contain; flex-shrink: 0; transition: height 0.25s var(--ease), transform 0.25s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; transition: width 0.25s var(--ease), height 0.25s var(--ease), transform 0.25s var(--ease); }
.brand:hover svg { transform: rotate(-6deg) scale(1.05); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    flex-shrink: 1;
    min-width: 0;
}
.nav-links a {
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--copper); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone { font-weight: 600; color: var(--green-deep); font-size: 0.92rem; white-space: nowrap; transition: color 0.2s ease; }
.nav-phone:hover { color: var(--copper); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-shrink: 0; }

/* Wide-but-not-huge screens (roughly laptop width): tighten spacing and drop
   the phone number before the layout gets squeezed. With 9 nav items this
   range needs to be generous — it's easy to underestimate how much width
   a full menu actually needs once labels like "Testimonials" are in play. */
@media (max-width: 1500px) and (min-width: 1201px) {
    .header-inner { gap: 14px; }
    .nav-links { gap: 16px; font-size: 0.88rem; }
    .brand { font-size: 1.1rem; }
    .nav-phone { display: none; }
}

/* Below this, switch to the mobile dropdown menu entirely rather than
   keep squeezing a 9-item menu into a shrinking horizontal row. */
@media (max-width: 1200px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--parchment); flex-direction: column; align-items: flex-start; gap: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0s;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 24px; width: 100%; }
    .nav-links a::after { display: none; }
    .nav-links a.active { background: var(--sandalwood); }
    .nav-toggle { display: block; }
    .nav-phone { display: none; }
}
@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
    .nav-links { transition: none; }
    .nav-links.open { transition: none; }
}

/* ---------- Hero (signature: shirodhara pour motif) ---------- */
.hero {
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-ink) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
/* soft radial glow, off to one side, so the gradient reads as lit rather than flat */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(720px 480px at 82% 18%, rgba(228, 199, 126, 0.16), transparent 65%);
    z-index: 1;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: 88px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
}
.hero h1 { color: var(--white); animation: fade-up 0.8s var(--ease) both; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 2em; animation: fade-up 0.8s var(--ease) 0.12s both; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fade-up 0.8s var(--ease) 0.24s both; }
.hero .eyebrow { animation: fade-up 0.8s var(--ease) both; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero-sub, .hero-cta, .hero .eyebrow { animation: none; }
}

.hero-visual { position: relative; z-index: 2; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.28)); }
.pour-drop { position: absolute; left: 50%; top: 0; width: 3px; background: var(--gold-soft); opacity: 0.85; transform: translateX(-50%); animation: pour 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes pour {
    0% { height: 0; opacity: 0; }
    15% { opacity: 0.9; }
    60% { height: 140px; opacity: 0.9; }
    100% { height: 140px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pour-drop { animation: none; height: 100px; opacity: 0.6; }
}

/* ---------- Hero layout variants (chosen in Admin > Clinic Settings) ---------- */

/* Variant: centered — big centered headline, no side visual, badge above title */
.hero-inner.layout-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 780px;
    padding-top: 100px;
    padding-bottom: 60px;
}
.hero-inner.layout-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner.layout-centered .hero-cta { justify-content: center; }
.hero-inner.layout-centered .hero-visual { margin: 40px auto 0 auto; max-width: 220px; }

/* Variant: stacked — visual on top (full width band), text centered below */
.hero-inner.layout-stacked {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
}
.hero-inner.layout-stacked .hero-visual { max-width: 200px; margin: 0 auto 32px auto; order: -1; }
.hero-inner.layout-stacked .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner.layout-stacked .hero-cta { justify-content: center; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px auto; text-align: center; }
.section-head.left { margin: 0 0 40px 0; text-align: left; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card {
    background: var(--sandalwood);
    border: none;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover { background: var(--gold-soft); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.service-card h3 { margin-bottom: 10px; }
.service-card a { font-weight: 600; color: var(--copper); font-size: 0.9rem; display: inline-block; transition: transform 0.2s ease; }
.service-card:hover a { transform: translateX(3px); }

/* ---------- Process (earned numbering: 5 real Panchakarma steps) ---------- */
.process-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.process-item {
    counter-increment: step;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 28px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius);
    transition: background 0.25s ease, padding-left 0.25s var(--ease);
}
.process-item:last-child { border-bottom: none; }
.process-item:hover { background: var(--sandalwood); padding-left: 24px; }
.process-item::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--copper);
    transition: transform 0.25s var(--ease);
}
.process-item:hover::before { transform: scale(1.12); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px auto; border: 3px solid var(--gold-soft); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.team-card:hover .team-photo { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-md); }
.team-role { color: var(--copper); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.team-bio { font-size: 0.95rem; color: rgba(20,31,25,0.8); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: var(--white); border-left: 3px solid var(--gold); box-shadow: var(--shadow-sm); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-name { font-weight: 600; margin-top: 14px; font-size: 0.9rem; color: var(--green-deep); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--green-deep); }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--parchment);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: rgba(20,31,25,0.6); margin-top: 4px; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.95rem; }
.alert-success { background: #E4F0E6; color: #1F3A2E; border: 1px solid #B9D9BE; }
.alert-error { background: #FBE7E2; color: #7A2A15; border: 1px solid #F1BCAA; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-deep) 0%, var(--copper-dark) 140%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,0.75); padding: 56px 0 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold-soft); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { display: inline-block; transition: color 0.2s ease, transform 0.2s var(--ease); }
.footer-grid a:hover { color: var(--white); transform: translateX(3px); }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-logo-wrap { display: inline-flex; align-items: center; background: rgba(255,255,255,0.08); padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; transition: background 0.2s ease; }
.footer-logo-wrap:hover { background: rgba(255,255,255,0.14); }
.footer-logo-wrap img { height: 40px; max-width: 180px; width: auto; object-fit: contain; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.5); }

/* ---------- Social icons row ---------- */
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    transition: background 0.25s ease, transform 0.25s var(--ease), color 0.2s ease;
}
.social-icons a svg { width: 18px; height: 18px; fill: currentColor; }
.social-icons a:hover { background: var(--copper); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
    .social-icons a:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-grid a { transition: color 0.2s ease; }
    .footer-grid a:hover { transform: none; }
}

/* ---------- Floating call/whatsapp (mobile-first clinic pattern) ---------- */
.floating-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: none;
    z-index: 60;
    border-top: 1px solid var(--line);
}
.floating-bar a { flex: 1; text-align: center; padding: 14px; font-weight: 700; font-size: 0.95rem; }
.floating-bar .call { background: var(--copper); color: var(--white); }
.floating-bar .whatsapp { background: var(--green-deep); color: var(--white); }
@media (max-width: 720px) {
    .floating-bar { display: flex; }
    body { padding-bottom: 54px; }
}

/* ---------- Blog ---------- */
.blog-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-card:hover img { transform: scale(1.05); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.8rem; color: var(--copper); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-excerpt { font-size: 0.92rem; color: rgba(20,31,25,0.75); flex: 1; }
.blog-readmore { font-weight: 600; color: var(--copper); font-size: 0.9rem; margin-top: 12px; }
.blog-post-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.blog-post-body { max-width: 720px; margin: 0 auto; font-size: 1.02rem; }
.blog-post-body p { margin-bottom: 1.2em; }

/* ---------- Hero Slider mode (rotating photo background) ---------- */
.hero.slider-mode { position: relative; overflow: hidden; }
.hero-slider-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slider-bg img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease;
}
.hero-slider-bg img.active {
    opacity: 1;
    animation: ken-burns 6.5s ease-out forwards;
}
@keyframes ken-burns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider-bg img.active { animation: none; transform: scale(1); }
}
.hero-slider-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,31,25,0.6), rgba(20,31,25,0.8)); z-index: 1; }
.hero.slider-mode .hero-inner { position: relative; z-index: 2; grid-template-columns: 1fr; text-align: center; max-width: 780px; padding: 110px 24px; }
.hero.slider-mode .hero-sub { margin-left: auto; margin-right: auto; }
.hero.slider-mode .hero-cta { justify-content: center; }

/* Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(20,31,25,0.35);
    color: var(--white);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s var(--ease), border-color 0.2s ease;
}
.hero-slider-arrow:hover { background: rgba(20,31,25,0.6); border-color: var(--gold-soft); transform: translateY(-50%) scale(1.08); }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }
@media (max-width: 720px) {
    .hero-slider-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
    .hero-slider-arrow.prev { left: 10px; }
    .hero-slider-arrow.next { right: 10px; }
}

/* Dots — now clickable, with an animated progress fill instead of a flat swap */
.hero-slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hero-slider-dots span {
    position: relative;
    width: 28px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease;
}
.hero-slider-dots span i {
    position: absolute; inset: 0;
    background: var(--gold);
    transform-origin: left;
    transform: scaleX(0);
    display: block;
}
.hero-slider-dots span.active i { animation: dot-fill 5.5s linear forwards; }
.hero-slider-dots span.done i { transform: scaleX(1); }
@keyframes dot-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.hero-slider-dots span:hover { background: rgba(255,255,255,0.5); }

/* Optional per-slide caption, only rendered if the admin set a title */
.hero-slide-captions {
    position: absolute;
    left: 24px;
    bottom: 60px;
    z-index: 3;
}
.hero-slide-caption {
    display: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding: 8px 18px;
    background: rgba(20,31,25,0.4);
    border-left: 3px solid var(--gold);
    backdrop-filter: blur(4px);
    animation: fade-up 0.6s var(--ease) both;
}
.hero-slide-caption.active { display: inline-block; }
@media (max-width: 720px) {
    .hero-slide-captions { left: 12px; bottom: 48px; }
    .hero-slide-caption { font-size: 0.9rem; padding: 6px 14px; }
}

/* ---------- Pills row (condition/category tags) — legacy compact style, still used in admin preview ---------- */
.pills-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--green-deep); box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease; }
.pill-badge:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pill-icon { font-size: 1.1rem; }

/* ---------- Conditions We Treat — image pill cards with scroll-in motion ---------- */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
}
.condition-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 16px 26px 16px;
    background: var(--white);
    border-radius: 999px 999px var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
    cursor: default;
}
.condition-pill:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}
.condition-pill-media {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sandalwood);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 4px var(--white), 0 0 0 1px var(--line);
    transition: transform 0.3s var(--ease);
}
.condition-pill:hover .condition-pill-media { transform: scale(1.06); }
.condition-pill-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.condition-pill:hover .condition-pill-media img { transform: scale(1.12); }
.condition-pill-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--white);
}
.condition-pill-label { font-weight: 600; font-size: 0.95rem; color: var(--green-deep); }

/* ---------- Generic scroll-reveal (fade + rise, staggered via inline --reveal-delay) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Stats counter strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; transition: transform 0.25s var(--ease); }
.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); font-weight: 600; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.stats-section { background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-ink) 100%); padding: 56px 0; }
.stat-item:hover { transform: translateY(-3px); }

/* ---------- Gallery grid + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--sandalwood); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset: auto 0 0 0; background: linear-gradient(180deg, transparent, rgba(20,31,25,0.85)); color: var(--white); font-size: 0.82rem; padding: 24px 12px 10px 12px; opacity: 0; transition: opacity 0.2s ease; }
.gallery-item:hover .gallery-caption { opacity: 1; }
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(20,31,25,0.92); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 40px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.lightbox-overlay.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}
.lightbox-overlay > div { transform: scale(0.94); transition: transform 0.3s var(--ease); }
.lightbox-overlay.open > div { transform: scale(1); }
.lightbox-overlay img { max-width: 90vw; max-height: 82vh; border-radius: 4px; }
.lightbox-caption { color: var(--white); text-align: center; margin-top: 14px; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: var(--white); font-size: 2rem; background: none; border: none; cursor: pointer; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
    .lightbox-overlay, .lightbox-overlay > div { transition: none; }
}

/* ---------- FAQ accordion (animated open/close via grid-rows trick) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 4px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--green-deep);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.faq-icon { font-size: 1.4rem; color: var(--copper); flex-shrink: 0; transition: transform 0.3s var(--ease); line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer-inner p { padding: 0 4px 20px 4px; font-size: 0.95rem; color: rgba(20,31,25,0.8); margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .faq-answer, .faq-icon { transition: none; }
}

/* ---------- Testimonial photo ---------- */
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid var(--gold-soft); }
.testimonial-avatar-fallback { width: 48px; height: 48px; border-radius: 50%; background: var(--sandalwood); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 10px; }

/* ---------- Testimonial carousel (same slider mechanics as the hero, adapted for cards) ---------- */
.testimonial-carousel { position: relative; max-width: 680px; margin: 0 auto; }
.testimonial-carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.testimonial-track { display: flex; transition: transform 0.5s var(--ease); }
.testimonial-slide { flex: 0 0 100%; padding: 4px; box-sizing: border-box; }
.testimonial-slide .testimonial-card { text-align: center; max-width: 100%; margin: 0 auto; box-shadow: var(--shadow-md); }
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--green-deep);
    font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.2s var(--ease), border-color 0.2s ease;
}
.testimonial-arrow:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-50%) scale(1.08); }
.testimonial-arrow.prev { left: -8px; }
.testimonial-arrow.next { right: -8px; }
@media (max-width: 780px) {
    .testimonial-arrow { display: none; }
}
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.testimonial-dots span {
    position: relative;
    width: 28px; height: 4px;
    border-radius: 2px;
    background: var(--line);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease;
}
.testimonial-dots span i {
    position: absolute; inset: 0;
    background: var(--copper);
    transform-origin: left;
    transform: scaleX(0);
    display: block;
}
.testimonial-dots span.active i { animation: dot-fill 6s linear forwards; }
.testimonial-dots span.done i { transform: scaleX(1); }
.testimonial-dots span:hover { background: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) {
    .testimonial-dots span.active i { animation: none; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .testimonial-track { transition: none; }
}

/* ---------- Popup enquiry modal ---------- */
.enquiry-modal-overlay {
    position: fixed; inset: 0; background: rgba(20,31,25,0.75); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.enquiry-modal-overlay.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}
.enquiry-modal { background: var(--white); border-radius: 6px; max-width: 440px; width: 100%; padding: 32px; position: relative; max-height: 90vh; overflow-y: auto; transform: scale(0.94) translateY(8px); transition: transform 0.3s var(--ease); }
.enquiry-modal-overlay.open .enquiry-modal { transform: scale(1) translateY(0); }
.enquiry-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--green-ink); line-height: 1; }
.enquiry-trigger-btn { position: fixed; bottom: 24px; right: 24px; z-index: 55; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
@media (max-width: 720px) { .enquiry-trigger-btn { bottom: 66px; right: 16px; } }
@media (prefers-reduced-motion: reduce) {
    .enquiry-modal-overlay, .enquiry-modal { transition: none; }
}

/* ---------- Why Choose Us ---------- */
.why-us-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.why-us-grid.no-image { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (max-width: 880px) { .why-us-grid { grid-template-columns: 1fr; } }
.why-us-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.why-us-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.why-us-list { display: grid; gap: 24px; }
.why-us-item { display: flex; gap: 16px; align-items: flex-start; }
.why-us-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--sandalwood);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s var(--ease);
}
.why-us-item:hover .why-us-icon { background: var(--gold-soft); transform: scale(1.08) rotate(-4deg); }
.why-us-item h3 { margin-bottom: 4px; font-size: 1.1rem; }
.why-us-item p { font-size: 0.92rem; color: rgba(20,31,25,0.75); margin: 0; }

/* ---------- Treatment Packages ---------- */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.package-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.package-card-img { height: 180px; overflow: hidden; }
.package-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.package-card:hover .package-card-img img { transform: scale(1.06); }
.package-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.package-duration { display: inline-block; background: var(--sandalwood); color: var(--green-deep); font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.package-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--copper); margin: 8px 0; }
.package-features { list-style: none; margin: 16px 0; padding: 0; flex: 1; }
.package-features li { font-size: 0.9rem; padding: 6px 0 6px 26px; position: relative; color: rgba(20,31,25,0.8); }
.package-features li::before { content: '✓'; position: absolute; left: 0; color: var(--copper); font-weight: 700; }
.package-card .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ---------- Google Business Profile embed (above footer) ---------- */
.gmb-section { background: var(--white); padding: 56px 0; }
.gmb-frame-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gmb-frame-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Back to top button ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 55;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green-deep);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s, background 0.2s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s, background 0.2s ease;
}
.back-to-top:hover { background: var(--copper); }
@media (max-width: 720px) { .back-to-top { bottom: 66px; left: 16px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity 0.2s ease; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--gold-soft); color: var(--green-ink); padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 18px; }
