/* ============================================================
   SevaKri — design system
   ============================================================ */
:root {
    --saffron: #e8701a;
    --saffron-600: #d5620f;
    --saffron-050: #fff2e6;
    --saffron-text: #a84b0a; /* saffron dark enough for text: 4.7:1 on cream, 5.3:1 on paper (WCAG AA) */
    --maroon: #4a1420;
    --maroon-800: #611a2a;
    --gold: #c9a24b;
    --ink: #241a17;
    --ink-soft: #6b5d56;
    --line: #ecdfcc;
    --paper: #fbf5ec;
    --cream: #f4e8d5;
    --card: #ffffff;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(74, 20, 32, .06), 0 2px 8px rgba(74, 20, 32, .05);
    --shadow-md: 0 6px 20px rgba(74, 20, 32, .09), 0 2px 6px rgba(74, 20, 32, .06);
    --shadow-lg: 0 24px 60px -18px rgba(74, 20, 32, .28);

    --container: 1200px;
    --nav-h: 68px;
    --bottomnav-h: 62px;

    --ease: cubic-bezier(.22, .68, 0, 1);
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    color-scheme: light;
    scroll-behavior: smooth;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    letter-spacing: -0.01em;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--maroon);
}

a { color: var(--saffron-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--maroon); text-decoration: none; }

.container { max-width: var(--container); }

.text-saffron { color: var(--saffron) !important; }
.text-maroon { color: var(--maroon) !important; }
.bg-saffron { background: var(--saffron) !important; color: #fff; }
.bg-cream { background: var(--cream) !important; }

.section { padding: clamp(2rem, 3.2vw, 3rem) 0; position: relative; }
.section.bg-cream { background: var(--cream); border-block: 1px solid var(--line); }
.section-tight { padding: clamp(1.5rem, 2.6vw, 2.25rem) 0; }

.section-title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    margin-bottom: .25rem;
    line-height: 1.15;
}
.section-kicker {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--saffron-text);
    margin-bottom: .5rem;
}
.section-lead { color: var(--ink-soft); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; padding: .62rem 1.4rem; transition: transform .18s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: .85rem 1.8rem; }
.btn-sm { padding: .4rem .95rem; }

.btn-saffron {
    background: linear-gradient(180deg, var(--saffron), var(--saffron-600));
    border: none; color: #fff;
    box-shadow: 0 8px 20px -8px rgba(232, 112, 26, .6);
}
.btn-saffron:hover, .btn-saffron:focus { background: linear-gradient(180deg, var(--saffron-600), #b8540c); color: #fff; box-shadow: 0 12px 26px -8px rgba(232, 112, 26, .7); }

.btn-outline-dark, .btn-outline-secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline-dark:hover, .btn-outline-secondary:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.btn-light { background: #fff; border: none; color: var(--maroon); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--maroon); }

/* ---------- header ---------- */
header .topbar { background: var(--maroon); color: #fff; font-size: .8rem; }
header .topbar a { color: #fff; opacity: .85; }
header .topbar a:hover { opacity: 1; }

.navbar {
    min-height: var(--nav-h);
    background: rgba(253, 249, 243, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s, background .3s;
}
header.scrolled .navbar { box-shadow: var(--shadow-md); border-color: var(--line); background: rgba(253, 249, 243, .95); }

.navbar-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--maroon) !important; }
.navbar-brand i { color: var(--saffron); }
.navbar .nav-link { font-weight: 500; color: var(--ink) !important; border-radius: 999px; padding: .45rem .9rem !important; transition: background .2s, color .2s; }
.navbar .nav-link:hover, .navbar .nav-link.show { background: var(--saffron-050); color: var(--saffron-600) !important; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: .4rem; }
.dropdown-item { border-radius: 8px; font-size: .92rem; padding: .5rem .7rem; }
.dropdown-item:hover { background: var(--saffron-050); color: var(--saffron-600); }

/* ============================================================
   Home opening sequence (diya → ring of light → Devi → iris reveal)
   ============================================================ */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }

.intro { display: none; }
html.intro-on .intro {
    --ring: clamp(168px, 22vmin, 220px);
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(70% 60% at 50% 46%, #2a120a 0%, #140805 60%, #0b0403 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent calc(var(--iris) - 12vmax), #000 var(--iris));
            mask-image: radial-gradient(circle at 50% 46%, transparent calc(var(--iris) - 12vmax), #000 var(--iris));
    animation: introIris 1s cubic-bezier(.6, 0, .2, 1) 3.5s forwards;
    cursor: pointer;
}
html.intro-lock { overflow: hidden; }
main:has(.intro) { animation: none; } /* a transformed <main> would trap the fixed overlay */

.intro-stage { position: relative; width: var(--ring); height: var(--ring); margin-top: -8vh; }
.intro-glow {
    position: absolute; left: 50%; top: 50%; width: 320%; aspect-ratio: 1; translate: -50% -50%;
    background: radial-gradient(circle, rgba(240, 150, 60, .30) 0%, rgba(200, 90, 30, .10) 35%, transparent 65%);
    opacity: 0; animation: introFade 1.4s ease .3s forwards;
}
.intro-ring { position: absolute; inset: 0; }
.intro-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-ring-line {
    fill: none; stroke: #f6b65a; stroke-width: 1.6;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    filter: drop-shadow(0 0 4px #ffb347) drop-shadow(0 0 10px rgba(255, 150, 50, .6));
    animation: introDraw 1.2s linear .9s forwards;
}
.intro-tick {
    position: absolute; left: 50%; top: 50%; width: 2px; height: 7px; margin: -3.5px 0 0 -1px; border-radius: 2px;
    background: #ffc36b; box-shadow: 0 0 6px #ffae45;
    transform: rotate(calc(var(--i) * 15deg)) translateY(calc(var(--ring) * -.5 - 6px));
    opacity: 0; animation: introFade .25s ease forwards;
    animation-delay: calc(.9s + var(--i) * .05s);
}
.intro-spark {
    position: absolute; inset: 0; opacity: 0;
    animation: introSpin 1.2s linear .9s forwards;
}
.intro-spark::before {
    content: ""; position: absolute; left: 50%; top: 2%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 6px 2px #ffd28a, 0 0 18px 6px rgba(255, 160, 60, .7);
}
.intro-devi {
    position: absolute; inset: 7%; width: 86%; height: 86%; border-radius: 50%;
    object-fit: cover; object-position: 50% 18%;
    background: radial-gradient(circle at 50% 45%, #f7b85a 0%, #d97a26 55%, #7a2c0c 100%);
    box-shadow: 0 0 40px rgba(255, 150, 60, .35);
    opacity: 0; animation: introDevi .9s var(--ease) 2.1s forwards;
}
.intro-diya {
    position: absolute; left: 50%; top: 50%; width: 46px; margin: -26px 0 0 -23px;
    opacity: 0; animation: introDiyaIn .7s var(--ease) .15s forwards, introDiyaDown .7s var(--ease) 2.1s forwards;
}
.intro-diya svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 170, 60, .55)); }
.intro-flame { transform-origin: 40px 40px; animation: flicker 1.6s ease-in-out infinite; }
.intro-brand {
    position: absolute; left: 50%; top: calc(100% + 78px); translate: -50% 0;
    display: flex; flex-direction: column; align-items: center; gap: .45rem; white-space: nowrap;
    opacity: 0; animation: introBrand 1s var(--ease) 2.6s forwards;
}
.intro-name {
    font-family: "Cormorant Garamond", var(--font-display); font-weight: 500;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem); text-transform: uppercase; letter-spacing: .42em; margin-right: -.42em;
    color: #e8c98e;
}
.intro-sub { font-size: .72rem; letter-spacing: .2em; color: rgba(232, 201, 142, .55); }
.intro-skip {
    position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
    background: none; border: 1px solid rgba(232, 201, 142, .3); border-radius: 999px;
    color: rgba(232, 201, 142, .75); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .9rem;
}
.intro-skip:hover, .intro-skip:focus-visible { color: #f6dca8; border-color: rgba(232, 201, 142, .7); }
html.intro-done .intro { animation: introOut .45s ease forwards; pointer-events: none; }

@keyframes introFade { to { opacity: 1; } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introSpin { 0% { opacity: 1; transform: rotate(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: rotate(1turn); } }
@keyframes introDevi { from { opacity: 0; filter: blur(14px); transform: scale(1.12); } to { opacity: 1; filter: none; transform: none; } }
@keyframes introDiyaIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes introDiyaDown { from { opacity: 1; translate: 0 0; } to { opacity: 1; translate: 0 calc(var(--ring) * .5 + 26px); } }
@keyframes introBrand { from { opacity: 0; translate: -50% 12px; } to { opacity: 1; translate: -50% 0; } }
@keyframes introIris {
    0% { --iris: 0px; }
    70% { opacity: 1; }
    99% { --iris: 160vmax; opacity: 0; visibility: visible; }
    100% { --iris: 160vmax; opacity: 0; visibility: hidden; }
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes flicker {
    0%, 100% { transform: scale(1, 1) skewX(0); }
    25% { transform: scale(.94, 1.06) skewX(2deg); }
    50% { transform: scale(1.03, .96) skewX(-1.5deg); }
    75% { transform: scale(.97, 1.04) skewX(1deg); }
}

/* ============================================================
   Home hero — "Maa · Devi · Durga." on a cream mandala
   ============================================================ */
.devi-hero {
    --hd: .1s; /* entrance delay; waits for the opening sequence when it plays */
    --serif: "Cormorant Garamond", var(--font-display);
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(55% 60% at 50% 38%, #fffaf1 0%, rgba(255, 250, 241, 0) 70%),
        linear-gradient(180deg, #f4ecdf 0%, #efe5d5 100%);
    border-bottom: 1px solid var(--line);
}
html.intro-on:not(.intro-done) .devi-hero { --hd: 3.75s; }

@keyframes spin { to { transform: rotate(1turn); } }

.devi-grid {
    display: grid; align-items: center;
    grid-template-columns: 1fr minmax(0, 540px) 1fr;
    grid-template-areas: "left fig right" "foot foot foot";
    min-height: clamp(560px, calc(100svh - var(--nav-h) - 30px), 860px);
    padding-top: 1.4rem;
}
.devi-kicker {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #8a6a43;
}
.devi-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.devi-side { position: relative; z-index: 2; transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px)); transition: transform .6s var(--ease); }
/* the headline's two halves start at the same height, reading across the Devi like "Maa … Durga." in the reel */
.devi-left, .devi-right { align-self: start; padding-top: clamp(80px, 14vh, 150px); }
.devi-right { padding-top: calc(clamp(80px, 14vh, 150px) + 1.7rem); } /* clears the kicker line on the left */
.devi-left { grid-area: left; }
.devi-right { grid-area: right; text-align: right; }
.devi-word { font-family: var(--serif); font-weight: 500; line-height: .9; letter-spacing: -.02em; font-size: clamp(3.4rem, 8.4vw, 8.2rem); }
.devi-maa { color: var(--maroon); }
.devi-durga {
    font-style: italic; padding-right: .06em;
    background: linear-gradient(180deg, #dcb662 10%, #b8862a 60%, #8f6118 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* the headline is longer than the reel's two words: smaller, balanced, still the same serif voice */
.devi-word.is-title { font-size: clamp(2.6rem, 4.4vw, 4.5rem); line-height: 1.02; text-wrap: balance; }

/* subtitle points, gold diamond bullets */
.devi-points { list-style: none; margin: clamp(1.2rem, 3vh, 2rem) 0 0; padding: 0; display: grid; gap: .45rem; }
.devi-points li {
    position: relative; padding-left: 1.2rem;
    font-family: var(--serif); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.35; color: #6f5f55;
}
.devi-points li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; rotate: 45deg;
    background: linear-gradient(135deg, #e3c06a, #b8862a);
}

.devi-figure {
    grid-area: fig; position: relative; margin: 0; align-self: end; text-align: center;
    transform: translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px)); transition: transform .6s var(--ease);
}
.devi-stage { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }

/* the line-art circle behind her crown: mandala turning one way, spoke halo the other, arched text on top */
.devi-halo {
    position: absolute; left: 50%; top: 27%; width: 94%; aspect-ratio: 1; translate: -50% -50%; /* centred on crown + face */
    z-index: 0; pointer-events: none;
}
.devi-halo::before { /* soft light behind the head */
    content: ""; position: absolute; inset: 18%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 226, 160, .55), rgba(255, 226, 160, 0) 68%);
}
.devi-halo img, .devi-halo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.devi-halo-mandala { opacity: .6; animation: spin 90s linear infinite; }
.devi-halo-rays { inset: 12% !important; width: 76% !important; height: 76% !important; opacity: .7; animation: spin 70s linear infinite reverse; }
.devi-halo-text { overflow: visible; }
.devi-halo-text text { font-size: 20px; letter-spacing: 7px; fill: #8a6a43; font-family: var(--font-sans); }

/* the Devi herself: a transparent cut-out seated on her lotus, so she sits in the hero instead of inside a frame */
.devi-bust {
    position: relative; z-index: 1; display: block; height: auto; max-width: 100%;
    width: clamp(320px, calc(100svh - var(--nav-h) - 300px), 540px); /* leaves headroom for the halo's arched text */
    aspect-ratio: 1000 / 973; object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(122, 60, 20, .16));
}
.devi-hero:not(.is-photo) .devi-bust { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%); mask-image: linear-gradient(180deg, #000 72%, transparent 99%); object-fit: contain; }

.devi-credit {
    position: absolute; right: 0; bottom: 0; z-index: 3; font-size: .6rem; letter-spacing: .02em; color: #a3917f;
}
.devi-credit a { color: inherit; }
.devi-credit a:hover { color: var(--maroon); }

.devi-cta {
    position: relative; z-index: 3; margin: .5rem 0 1.1rem;
    display: flex; gap: .5rem; align-items: center; justify-content: center; white-space: nowrap;
}
.devi-ghost { background: rgba(255, 251, 244, .85); border: 1px solid #e3cfa9; color: var(--maroon); backdrop-filter: blur(6px); }
.devi-ghost:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* social proof under the gold half of the headline */
.devi-proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .2rem .5rem; margin-top: 1.1rem; font-size: .82rem; color: #6f5f55; }
.devi-proof > span:last-child { white-space: nowrap; }
.devi-stars { color: #e3a72f; letter-spacing: .08em; font-size: .9rem; }

/* booking card under "Durga." — the service, not just the mood */
.devi-spot {
    display: grid; gap: .3rem; margin: 1.3rem 0 0 auto; width: min(100%, 290px); text-align: left;
    padding: .95rem 1.05rem; border-radius: 16px; color: var(--ink);
    background: rgba(255, 252, 246, .82); border: 1px solid #ead8b6;
    box-shadow: 0 14px 34px -18px rgba(74, 20, 32, .35);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.devi-spot:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 18px 40px -16px rgba(74, 20, 32, .4); }
.devi-spot-tag { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-text); font-weight: 600; }
.devi-spot-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--maroon); }
.devi-spot-meta { font-size: .8rem; color: var(--ink-soft); }
.devi-spot-row { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; padding-top: .55rem; border-top: 1px dashed #e6d3b0; }
.devi-spot-price { font-weight: 700; color: var(--maroon); }
.devi-spot-go { font-size: .82rem; font-weight: 600; color: var(--saffron-text); }

/* trust pills along the base */
.devi-foot {
    grid-area: foot; display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap;
    list-style: none; margin: 0; border-top: 1px solid rgba(184, 145, 63, .28); padding: 1rem 0 1.2rem;
}
.devi-foot li {
    display: flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px;
    font-size: .8rem; font-weight: 500; color: var(--maroon);
    background: rgba(255, 252, 246, .7); border: 1px solid #ead8b6;
}
.devi-foot i { color: #b8862a; }

/* falling petals */
.devi-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.petal {
    position: absolute; top: -6%; width: var(--s, 10px); height: calc(var(--s, 10px) * .7);
    border-radius: 80% 0 80% 0; background: var(--c, #e8701a); opacity: 0;
    animation: petalFall var(--t, 12s) linear var(--delay, 0s) infinite;
}
@keyframes petalFall {
    0% { opacity: 0; transform: translate(0, 0) rotate(0); }
    8% { opacity: .85; }
    50% { transform: translate(var(--sway, 40px), 55vh) rotate(220deg); }
    90% { opacity: .7; }
    100% { opacity: 0; transform: translate(calc(var(--sway, 40px) * -.4), 112vh) rotate(420deg); }
}

/* cursor bubble (fine pointers only; enabled by site.js) */
.devi-cursor {
    position: fixed; left: 0; top: 0; z-index: 5; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; pointer-events: none;
    background: var(--maroon); color: #f6dca8; font-size: .66rem; letter-spacing: .04em;
    box-shadow: 0 10px 24px -8px rgba(74, 20, 32, .55);
    opacity: 0; scale: .4; transition: opacity .3s, scale .35s var(--ease);
}
.devi-cursor.is-on { opacity: 1; scale: 1; }
.devi-cursor.is-small { scale: .35; }

/* entrance — only when JS is on, so content never stays hidden */
html.js .devi-hero [data-enter] { animation: deviFadeUp 1s var(--ease) both; animation-delay: calc(var(--hd) + var(--ed, 0s)); }
html.js .devi-hero .devi-kicker { --ed: .1s; }
html.js .devi-hero .devi-bust { animation-name: deviRise; animation-duration: 1.3s; --ed: .05s; }
html.js .devi-hero .devi-maa { animation-name: deviFromLeft; animation-duration: 1.2s; --ed: .25s; }
html.js .devi-hero .devi-durga { animation-name: deviFromRight; animation-duration: 1.2s; --ed: .35s; }
html.js .devi-hero .devi-points { --ed: .6s; }
html.js .devi-hero .devi-proof { --ed: .75s; }
html.js .devi-hero .devi-spot { --ed: .9s; }
html.js .devi-hero .devi-cta { --ed: .8s; }
html.js .devi-hero .devi-foot { --ed: 1s; }
html.js .devi-halo { animation: deviHaloIn 1.8s var(--ease) both; animation-delay: calc(var(--hd) + .15s); }

@keyframes deviFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* opacity + transform only: compositor-friendly (a blur on this large image cost ~0.5s of main thread on mid-range phones) */
@keyframes deviRise { from { opacity: 0; transform: translateY(40px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes deviFromLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes deviFromRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes deviHaloIn { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }

@media (max-width: 991.98px) {
    /* phones/tablets: one centred column — headline, points, Devi, card, proof, pills */
    .devi-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "eyebrow" "tl" "tr" "points" "fig" "spot" "proof" "foot";
        min-height: 0; row-gap: .3rem; padding-top: 1.1rem; text-align: center;
    }
    .devi-left, .devi-right { display: contents; }
    .devi-kicker { grid-area: eyebrow; justify-content: center; margin: .5rem 0 .4rem; font-size: .6rem; letter-spacing: .22em; }
    .devi-kicker::before { display: none; }
    .devi-maa { grid-area: tl; }
    .devi-durga { grid-area: tr; justify-self: center; }
    .devi-word.is-title { font-size: clamp(2.3rem, 9.5vw, 3.6rem); }
    .devi-points { grid-area: points; justify-content: center; margin-top: .8rem; gap: .3rem; }
    .devi-points li { font-size: .95rem; text-align: left; }
    .devi-figure { margin: 3.4rem 0 .4rem; }
    .devi-bust { width: min(92vw, 420px); }
    .devi-halo { width: 100%; }
    .devi-halo-text text { font-size: 24px; }
    .devi-spot { grid-area: spot; margin: .9rem auto 0; width: 100%; max-width: 420px; }
    .devi-proof { grid-area: proof; justify-content: center; margin: .7rem 0 .2rem; }
    .devi-foot { padding-bottom: 1.2rem; }
    .devi-foot li { font-size: .76rem; padding: .4rem .8rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .devi-grid { padding-top: 2.6rem; }
    .devi-bust { width: clamp(320px, calc(100svh - var(--nav-h) - 330px), 470px); }
}
@media (max-width: 420px) {
    .devi-cta .btn { padding: .55rem 1.05rem; font-size: .9rem; }
}

/* ---------- cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }

.puja-card, .product-card { height: 100%; }
.puja-card:hover, .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.puja-card .card-img-top, .product-card .card-img-top {
    aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
    width: 100%; max-height: 196px; background: var(--cream);
    border-bottom: 1px solid var(--line);
    transition: transform .5s var(--ease);
}
.product-card .card-img-top { aspect-ratio: 4 / 3; max-height: 172px; }
.puja-card:hover .card-img-top, .product-card:hover .card-img-top { transform: scale(1.04); }
.card-body { padding: 1rem 1.05rem 1.1rem; }
.card-title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.22; margin-bottom: .35rem; }
.card-text.small { font-size: .84rem; line-height: 1.45; }
.stretched-link-title { color: var(--maroon); }
.stretched-link-title:hover { color: var(--saffron-600); }
.badge.bg-danger { background: var(--saffron) !important; }
.badge.bg-saffron { background: var(--saffron) !important; }

.category-tile {
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.category-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); color: var(--ink); }
.category-tile i {
    color: var(--saffron); display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; background: var(--saffron-050);
    border: 1px solid #f4d9bf; margin-bottom: .25rem;
}

.steps-row > [class*="col-"] { position: relative; }
.steps-row > [class*="col-"]::after { content: ""; position: absolute; top: 22%; right: 0; height: 56%; width: 1px; background: var(--line); }
.steps-row > [class*="col-"]:last-child::after { display: none; }
@media (max-width: 767.98px) {
    .steps-row > [class*="col-"]:nth-child(2)::after { display: none; }
    .steps-row > [class*="col-"]:nth-child(1)::before,
    .steps-row > [class*="col-"]:nth-child(2)::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 1px; background: var(--line); }
}

.content-html { line-height: 1.75; color: #3b2f2a; }
.content-html img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.content-html h2, .content-html h3 { margin-top: 1.6em; }

/* trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .item { display: flex; gap: .7rem; align-items: center; }
.trust-strip i { font-size: 1.5rem; color: var(--saffron); }

/* list pages: compact search toolbar + category chips */
.list-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: .5rem; margin-bottom: .9rem; }
.search-field { position: relative; }
.search-field i { position: absolute; left: .95rem; top: 50%; translate: 0 -50%; color: var(--ink-soft); pointer-events: none; }
.search-field .form-control { padding-left: 2.5rem; border-radius: 999px; }
.list-toolbar .form-select { border-radius: 999px; }
.chip-rail {
    display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0 0 1.5rem; padding: 2px 0 4px;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip {
    flex: none; scroll-snap-align: start; white-space: nowrap;
    padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gold); color: var(--maroon); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pagination .page-link { color: var(--maroon); border-color: var(--line); }
.pagination .page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* forms */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); padding: .62rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 .2rem rgba(232, 112, 26, .16); }
.form-control:user-invalid { border-color: #d64545; }
.list-group-item { border-color: var(--line); }

/* ---------- footer ---------- */
.footer { background: #1c0a11; color: rgba(255, 255, 255, .72); }
.footer h5, .footer h6 { color: #fff; }
.footer .footer-title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: normal; color: #fff; margin-bottom: .5rem; }
.footer li a { display: inline-block; padding-block: .2rem; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer .brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }

/* ---------- floating whatsapp ---------- */
.whatsapp-fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: var(--shadow-lg); z-index: 1040; transition: transform .2s;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

/* ============================================================
   Scroll reveal animations
   ============================================================ */
/* content is always visible if JS is off/slow; the animation only engages under html.js */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; }
/* stagger siblings in a grid row (pure CSS: no inline style writes at startup) */
.row > .reveal:nth-child(2), .row > .reveal-scale:nth-child(2) { --d: .06s; }
.row > .reveal:nth-child(3), .row > .reveal-scale:nth-child(3) { --d: .12s; }
.row > .reveal:nth-child(4), .row > .reveal-scale:nth-child(4) { --d: .18s; }
.row > .reveal:nth-child(5), .row > .reveal-scale:nth-child(5) { --d: .24s; }
.row > .reveal:nth-child(n+6), .row > .reveal-scale:nth-child(n+6) { --d: .3s; }
html.js .reveal-scale { opacity: 0; transform: scale(.95); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
    .intro, .devi-cursor, .devi-petals { display: none !important; }
    .devi-hero [data-enter], .devi-halo, .devi-halo img { animation: none !important; }
    .devi-side, .devi-figure { transform: none !important; }
    .puja-card:hover, .product-card:hover { transform: none; }
}

/* ============================================================
   App-like mobile shell
   ============================================================ */
.app-bottom-nav { display: none; }

@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }

    .app-bottom-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        display: flex; justify-content: space-around; align-items: stretch;
        height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .92);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--line);
    }
    .app-bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 2px; font-size: .66rem; font-weight: 600; color: var(--ink-soft);
        letter-spacing: .01em; position: relative;
    }
    .app-bottom-nav a i { font-size: 1.28rem; transition: transform .2s var(--ease); }
    .app-bottom-nav a.active { color: var(--saffron-600); }
    .app-bottom-nav a.active i { transform: translateY(-2px); }
    .app-bottom-nav a .dot {
        position: absolute; top: 6px; right: 50%; transform: translateX(16px);
        min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
        background: var(--saffron); color: #fff; font-size: .6rem; display: flex; align-items: center; justify-content: center;
    }

    .topbar { display: none !important; }

    /* app shell: slim top bar (cart lives in the tab bar), compact footer */
    :root { --nav-h: 58px; }
    .navbar { padding-block: .35rem; }
    .navbar-brand { font-size: 1.22rem; }
    .footer { margin-top: 2rem !important; padding-top: 1.6rem !important; }
    .footer .footer-about, .footer .footer-reach { display: none; }
    .footer .footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
    .footer li a { padding-block: .45rem; min-width: 48px; }

    /* tab bar: active pill behind the icon */
    .app-bottom-nav a i { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; transition: background .2s, transform .2s var(--ease); }
    .app-bottom-nav a.active i { background: var(--saffron-050); }
    .app-bottom-nav a:active i { transform: scale(.92); }

    /* list toolbars: search + button on one line, the filter select beneath */
    .list-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .list-toolbar .form-select { grid-column: 1 / -1; grid-row: 2; }
    .section { padding: 2.6rem 0; }

    /* sticky action bar for detail pages */
    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
        z-index: 1030; background: #fff; border-top: 1px solid var(--line);
        padding: .7rem 1rem calc(.7rem); box-shadow: 0 -8px 24px -12px rgba(74, 20, 32, .25);
        display: flex; gap: .8rem; align-items: center;
    }
    .mobile-cta .price { font-family: var(--font-display); font-weight: 600; color: var(--maroon); }
    .has-mobile-cta { padding-bottom: 84px; }
}

@media (min-width: 992px) { .d-lg-none-cta { display: none; } }

/* phones: home sections become swipeable rails, like an app's shelves */
@media (max-width: 767.98px) {
    .app-rail {
        flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
        --bs-gutter-x: .85rem;
        /* bleed to the screen edges (container padding is 12px) while the first card lines up with the text */
        margin-inline: -12px; padding: 4px calc(12px - var(--bs-gutter-x) * .5) 10px;
        scroll-snap-type: x mandatory; scroll-padding-inline: calc(12px - var(--bs-gutter-x) * .5); scrollbar-width: none;
    }
    .app-rail::-webkit-scrollbar { display: none; }
    .app-rail > * { scroll-snap-align: start; }
    .app-rail.rail-lg > * { flex: 0 0 84%; max-width: 84%; }
    .app-rail.rail-md > * { flex: 0 0 47%; max-width: 47%; }
    .app-rail.rail-sm > * { flex: 0 0 42%; max-width: 42%; }
    .app-rail.rail-trust > * { flex: 0 0 auto; max-width: none; }
    .app-rail .category-tile { padding: 1rem .8rem !important; }
    .app-rail .category-tile .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* items off to the side never intersect vertically: don't hide them behind the scroll-reveal */
    html.js .app-rail .reveal, html.js .app-rail .reveal-scale, html.js .app-rail.reveal { opacity: 1; transform: none; }
}

/* main spacing: hero-led pages sit flush under the nav; content-led pages get breathing room */
main { padding-bottom: clamp(2.5rem, 5vw, 4rem); animation: pageIn .4s var(--ease) both; }
main > .container:first-child:not(:only-child) { margin-top: 0; }
main > .container:first-child { padding-top: 1.1rem; }        /* the flash-message zone */
main:has(> .devi-hero) > .container:first-child { padding-top: 0; } /* home: no gap before the hero */

@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* alerts */
.alert { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.alert-success { background: #edf7ee; border-color: #cfe8d2; color: #1f5127; }
.alert-danger { background: #fdeceb; border-color: #f3c9c6; color: #8a2b26; }

/* admin (kept minimal) */
.admin-sidebar { background: #1f1a18; min-height: 100vh; color: #cbbfb8; }
.admin-sidebar a { color: #cbbfb8; display: block; padding: .55rem 1rem; border-radius: 10px; font-size: .93rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-sidebar .nav-section { text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: #7a6c64; padding: 1rem 1rem .25rem; }
.stat-card { border-left: 4px solid var(--saffron); }
