/* ============================================================
   Mata Vaishno Devi Gufa Yog Mandir — style.css
   A hand-crafted, dependency-light design system.
   Sections: 1) Tokens 2) Reset/base 3) Typography 4) Layout
   5) Buttons 6) Header/Nav 7) Hero 8) Components 9) Sections
   10) Gallery/Lightbox 11) Forms 12) Footer 13) Utilities
   14) Motion/Reveal 15) Responsive
   ============================================================ */

/* ---------------- 1) DESIGN TOKENS ---------------- */
:root {
    /* Brand palette */
    --saffron:      #E8853B;
    --saffron-deep: #C0392B;
    --orange:       #F2994A;
    --gold:         #C9A24B;
    --gold-soft:    #E7C877;
    --cream:        #FBF4E9;
    --cream-2:      #F6ECDA;
    --warm-white:   #FFFDF9;
    --forest:       #2F5548;
    --forest-deep:  #223f35;
    --maroon:       #5A1A26;
    --maroon-deep:  #3E1019;
    --stone:        #6B6459;
    --ink:          #2B2119;
    --ink-soft:     #574b3e;

    /* Semantic */
    --bg:           var(--warm-white);
    --bg-alt:       var(--cream);
    --text:         var(--ink);
    --muted:        var(--ink-soft);
    --line:         rgba(43, 33, 25, 0.10);

    /* Gradients */
    --grad-warm:    linear-gradient(135deg, #F7B267 0%, #E8853B 45%, #C0392B 100%);
    --grad-gold:    linear-gradient(135deg, #E7C877 0%, #C9A24B 100%);
    --grad-soft:    linear-gradient(180deg, #FFFDF9 0%, #FBF4E9 100%);

    /* Typography */
    --f-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --f-serif:   'Cormorant Garamond', Georgia, serif;
    --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Radius / shadow */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 40px;
    --shadow-sm: 0 4px 14px rgba(43, 33, 25, 0.08);
    --shadow-md: 0 12px 34px rgba(43, 33, 25, 0.12);
    --shadow-lg: 0 26px 60px rgba(43, 33, 25, 0.16);
    --shadow-glow: 0 18px 50px rgba(232, 133, 59, 0.30);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --header-h: 118px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------- 2) RESET / BASE ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
    font-family: var(--f-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

/* ---------------- 3) TYPOGRAPHY ---------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); }

.lead { font-family: var(--f-serif); font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.5; color: var(--ink-soft); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--f-body); font-weight: 600; font-size: .78rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::before { background: var(--gold-soft); }

.text-grad {
    background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.script { font-family: var(--f-serif); font-style: italic; }

/* ---------------- 4) LAYOUT ---------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--grad-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 5) BUTTONS ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--f-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
    padding: .85rem 1.6rem; border-radius: 999px; position: relative; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
}
.btn i { font-size: 1.15rem; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 22px 60px rgba(232, 133, 59, 0.45); }
.btn--gold { background: var(--grad-gold); color: #3a2c10; box-shadow: 0 12px 30px rgba(201, 162, 75, .35); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--saffron); color: var(--saffron-deep); }
.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: #fff; color: var(--saffron-deep); border-color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
/* ripple */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); pointer-events: none; animation: ripple .6s var(--ease); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------------- 6) HEADER / NAV ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 253, 249, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,253,249,.94); }

.topbar { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(232,133,59,.06), rgba(201,162,75,.06)); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.topbar__socials { display: flex; gap: .35rem; }
.topbar__right { display: flex; align-items: center; gap: .6rem; }
.social-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--stone); transition: all .25s var(--ease); }
.social-ico:hover { background: var(--saffron); color: #fff; transform: translateY(-2px); }
.social-ico--light { color: var(--gold-soft); }
.social-ico--light:hover { background: var(--gold); color: var(--maroon-deep); }

.navbar { transition: padding .35s var(--ease); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; transition: padding .35s var(--ease); }
.site-header.is-scrolled .navbar__inner { padding-block: .5rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand__logo {
    width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gold-soft); box-shadow: var(--shadow-sm); background: var(--cream);
    transition: width .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled .brand__logo { width: 50px; height: 50px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--saffron-deep); letter-spacing: .02em; }
.brand__name--light { color: #fff; }
.brand__sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }

.nav-desktop__list { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
    position: relative; padding: .5rem .8rem; font-weight: 500; font-size: .93rem; color: var(--ink-soft); border-radius: 8px;
    transition: color .25s var(--ease);
}
.nav-link::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
    background: var(--grad-warm); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--saffron-deep); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--saffron-deep); font-weight: 600; }

/* Desktop dropdown */
.has-dropdown { position: relative; }
.nav-caret { display: inline-block; width: 6px; height: 6px; margin-left: .18rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: rotate(-135deg) translateY(1px); }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 210px; margin-top: .45rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
    padding: .5rem; display: flex; flex-direction: column; gap: .12rem; z-index: 50;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
/* invisible bridge so the gap between link and menu doesn't drop the hover */
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .5rem; }
.dropdown-link { display: block; padding: .6rem .9rem; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), padding .2s var(--ease); }
.dropdown-link:hover, .dropdown-link.is-active { background: var(--cream); color: var(--saffron-deep); padding-left: 1.1rem; }

.hamburger { width: 46px; height: 46px; border-radius: 12px; display: none; align-items: center; justify-content: center; gap: 5px; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-actions { display: none; align-items: center; gap: .6rem; }

/* Mobile slide-out */
.mobile-nav { position: fixed; inset: 0; z-index: 1500; visibility: hidden; pointer-events: none; }
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__backdrop { position: absolute; inset: 0; z-index: 1; background: rgba(43,33,25,.5); opacity: 0; transition: opacity .35s var(--ease); backdrop-filter: blur(2px); }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
    position: absolute; top: 0; right: 0; z-index: 2; height: 100%; width: min(360px, 86vw);
    background: var(--warm-white); box-shadow: var(--shadow-lg); padding: 1.4rem;
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav__close { font-size: 2rem; line-height: 1; color: var(--stone); width: 40px; height: 40px; border-radius: 10px; }
.mobile-nav__close:hover { background: var(--cream); color: var(--saffron-deep); }
.mobile-nav__list { display: flex; flex-direction: column; padding-block: 1rem; gap: .2rem; flex: 1; }
.mobile-nav__link { display: block; padding: .85rem 1rem; border-radius: 12px; font-weight: 500; font-size: 1.05rem; color: var(--ink); transition: all .25s var(--ease); }
.mobile-nav__link:hover, .mobile-nav__link.is-active { background: var(--cream); color: var(--saffron-deep); padding-left: 1.4rem; }
/* Mobile accordion sub-menu (native <details>) */
.mnav-group { border-radius: 12px; }
.mnav-summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-radius: 12px; font-weight: 500; font-size: 1.05rem; color: var(--ink); cursor: pointer; list-style: none; transition: background .25s var(--ease), color .25s var(--ease); }
.mnav-summary::-webkit-details-marker { display: none; }
.mnav-summary:hover { background: var(--cream); color: var(--saffron-deep); }
.mnav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--cream); color: var(--saffron-deep); font-size: 1.25rem; line-height: 1; transition: background .25s var(--ease); }
.mnav-summary:hover .mnav-toggle { background: #fff; }
.mnav-minus { display: none; }
.mnav-group[open] .mnav-plus { display: none; }
.mnav-group[open] .mnav-minus { display: inline-flex; }
.mnav-sub { padding: .1rem 0 .3rem .5rem; margin-left: .4rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
.mobile-nav__link--sub { font-size: .98rem; color: var(--ink-soft); padding-block: .7rem; }
.mobile-nav__foot { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Google Translate elegance */
.gtranslate { position: relative; display: inline-flex; align-items: center; max-width: 190px; overflow: hidden; }
.goog-te-gadget { font-family: var(--f-body) !important; font-size: 0 !important; color: transparent !important; }
.goog-te-gadget .goog-te-combo {
    font-family: var(--f-body) !important; font-size: .82rem !important; color: var(--ink) !important;
    padding: .4rem .7rem !important; border: 1px solid var(--line) !important; border-radius: 999px !important;
    background: #fff !important; margin: 0 !important; cursor: pointer; max-width: 170px;
}
.goog-te-gadget span { display: none !important; }
body { top: 0 !important; }               /* neutralise GT banner offset */
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
#goog-gt-tt, .goog-tooltip { display: none !important; }

/* ---------------- 7) HERO ---------------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(28,18,10,.55) 0%, rgba(28,18,10,.35) 40%, rgba(28,18,10,.78) 100%),
                radial-gradient(120% 80% at 20% 20%, rgba(232,133,59,.28), transparent 60%);
}

/* Hero slider */
.hero__slider { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slider::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(28,18,10,.55) 0%, rgba(28,18,10,.35) 40%, rgba(28,18,10,.80) 100%),
                radial-gradient(120% 80% at 20% 20%, rgba(232,133,59,.28), transparent 60%);
}
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff;
    backdrop-filter: blur(6px); transition: background .25s var(--ease), color .25s var(--ease);
}
.hero__arrow:hover { background: #fff; color: var(--saffron-deep); }
.hero__prev { left: 1.2rem; }
.hero__next { right: 1.2rem; }
.hero__dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .5rem; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s var(--ease); }
.hero__dot.is-active { background: #fff; width: 28px; border-radius: 6px; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); max-width: 820px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.1rem; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px);
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero__badge i { font-size: 1rem; }
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero__tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); color: rgba(255,255,255,.92); margin-top: 1.2rem; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1; display: grid; justify-items: center; gap: .5rem; color: rgba(255,255,255,.85); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll .mouse { width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 3px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Page hero (interior pages) */
.page-hero {
    position: relative; color: #fff; text-align: center;
    overflow: hidden; isolation: isolate;
    padding-top: clamp(3.4rem, 5vw, 4.5rem);      /* slim banner */
    padding-bottom: clamp(1.75rem, 2.8vw, 2.5rem);
    background: radial-gradient(120% 150% at 50% 40%, #5A1723 0%, #3E1019 60%, #2C0B12 100%);
}
/* Photo layer is replaced by the rangoli design; hide it.
   To use a real photo banner on a page instead, set this back to block. */
.page-hero__bg { display: none; }

/* Faint colourful rangoli watermark, centred behind the heading, slow spin.
   Kept light over the darker background so text stays readable. */
.page-hero::before {
    content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
    width: min(620px, 128vw); aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: url("../images/rangoli-full.svg") center / contain no-repeat;
    opacity: .16;
    animation: rangoli-spin 150s linear infinite;
    will-change: transform;
}
@keyframes rangoli-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* subtle vignette to deepen the edges and lift the centred text */
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 85% at 50% 45%, transparent 30%, rgba(20,6,10,.55) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }

/* Small gold ornament divider under the title */
.page-hero h1::after {
    content: ""; display: block; width: 150px; height: 18px; margin: .75rem auto 0;
    background: url("../images/ornament.svg") center / contain no-repeat;
    opacity: .95;
}
.page-hero .eyebrow { margin-bottom: .45rem; }
.page-hero .eyebrow--light { color: var(--gold-soft); }
.page-hero .eyebrow--light::before { background: var(--gold-soft); }
.page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; margin: .7rem auto 0; font-size: 1.02rem; }
.breadcrumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .9rem; }
.breadcrumbs a { color: var(--gold-soft); font-weight: 500; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { opacity: .6; }

/* ---------------- 8) COMPONENTS ---------------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--saffron-deep); font-size: .72rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.card__date { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--saffron-deep); font-weight: 600; }
.card__title { font-size: 1.25rem; }
.card__text { font-size: .95rem; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--saffron-deep); }
.card__link i { font-size: 1.1rem; transition: transform .3s var(--ease); }
.card__link:hover i { transform: translateX(4px); }

/* Feature (icon) card */
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem;
    box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); height: 100%;
    position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--saffron-deep); margin-bottom: 1.2rem; }
.feature__icon i { font-size: 1.9rem; line-height: 1; }
.feature h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.feature p { font-size: .96rem; }

.ico { font-size: 1.35rem; line-height: 1; display: inline-flex; align-items: center; vertical-align: middle; }
.ico--sm { font-size: 1.05rem; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
/* Intro variant: narrower image column, wider text column */
.split--intro { grid-template-columns: 5fr 7fr; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 4/5; }
.split__media--wide { aspect-ratio: 16/9; }
.split__media--square { aspect-ratio: 1/1; }

/* Auto-fade slider (used in the intro section) */
.fade-slides { position: absolute; inset: 0; }
.fade-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.fade-slide.is-active { opacity: 1; }
.fade-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Drag affordance: allow vertical page scroll, block native image drag */
[data-fade-slider] { touch-action: pan-y; cursor: grab; }
[data-fade-slider]:active { cursor: grabbing; }
[data-fade-slider] img { user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* Ken Burns — slow continuous zoom/pan for feature images */
@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
.ken-burns img { animation: kenburns 16s ease-in-out infinite alternate; transform-origin: center; }
.split__badge {
    position: absolute; bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
    background: rgba(255,253,249,.9); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--r-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .9rem;
}
.split__badge i { color: var(--saffron-deep); font-size: 1.8rem; }
.split__content h2 { margin-bottom: 1rem; }
.split__content > p + p { margin-top: 1rem; }
.split__content .btn { margin-top: 1.8rem; }

/* Checklist */
.checklist { display: grid; gap: .8rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist i { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-warm); border-radius: 50%; font-size: .82rem; margin-top: 3px; }
.checklist span { color: var(--ink-soft); }
.checklist strong { display: block; color: var(--ink); }

/* Stats / counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.stat__num { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; color: var(--saffron-deep); line-height: 1; }
.stat__num .suffix { color: var(--gold); }
.stat__label { margin-top: .5rem; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; color: var(--stone); }

/* Schedule table */
.schedule { display: grid; gap: .6rem; }
.schedule__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease); }
.schedule__row:hover { transform: translateX(6px); border-color: var(--gold-soft); }
.schedule__time { font-weight: 700; color: var(--saffron-deep); font-family: var(--f-display); }
.schedule__act { font-weight: 500; color: var(--ink); }
.schedule__tag { font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; background: var(--cream); color: var(--stone); }

/* Timeline */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--grad-gold); }
.timeline__item { position: relative; padding: 0 0 2.4rem 1.6rem; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--saffron); box-shadow: 0 0 0 4px rgba(232,133,59,.15); }
.timeline__year { font-family: var(--f-display); font-weight: 700; color: var(--saffron-deep); font-size: 1.05rem; }
.timeline__item h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }

/* Quote block */
.quote-block { text-align: center; max-width: 820px; margin-inline: auto; }
.quote-block i { font-size: 2.8rem; color: var(--gold); display: inline-block; margin-bottom: .6rem; }
.quote-block blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.4; color: var(--ink); }
.quote-block cite { display: block; margin-top: 1.3rem; font-style: normal; font-weight: 600; color: var(--saffron-deep); font-family: var(--f-body); letter-spacing: .05em; }

/* Testimonials slider */
.testi-slider { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform .6s var(--ease); }
.testi-card { flex: 0 0 100%; padding: .5rem; }
.testi-card__inner { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-sm); text-align: center; max-width: 760px; margin-inline: auto; }
.testi-stars { display: flex; justify-content: center; gap: .2rem; color: var(--gold); margin-bottom: 1rem; }
.testi-stars .ico { width: 20px; height: 20px; fill: var(--gold); stroke: var(--gold); }
.testi-quote { font-family: var(--f-serif); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.5; color: var(--ink); font-style: italic; }
.testi-person { margin-top: 1.3rem; }
.testi-person strong { display: block; font-family: var(--f-display); color: var(--saffron-deep); }
.testi-person span { font-size: .85rem; color: var(--stone); }
.testi-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.testi-dots { display: flex; gap: .5rem; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .3s var(--ease); }
.testi-dot.is-active { background: var(--saffron); width: 26px; border-radius: 6px; }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: all .25s var(--ease); }
.testi-arrow:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); color: #fff; isolation: isolate; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-warm); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 80% 0%, rgba(255,255,255,.22), transparent 55%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 620px; margin: 1rem auto 0; }
.cta-band .hero__actions, .cta-band .btn-row { justify-content: center; margin-top: 2rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Info list (contact) */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: grid; gap: 1.3rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--saffron-deep); border: 1px solid var(--line); }
.info-item__icon i { font-size: 1.4rem; }
.info-item h4 { font-family: var(--f-body); font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.info-item p, .info-item a { color: var(--ink-soft); font-size: .95rem; }
.info-item a:hover { color: var(--saffron-deep); }

/* Pills / filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { padding: .55rem 1.3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .9rem; color: var(--ink-soft); transition: all .25s var(--ease); }
.filter-btn:hover { border-color: var(--saffron); color: var(--saffron-deep); }
.filter-btn.is-active { background: var(--grad-warm); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

/* Donate tiers / QR */
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); text-align: center; }
.qr-frame { width: 220px; height: 220px; margin: 1rem auto; border-radius: var(--r-md); border: 2px dashed var(--gold-soft); display: grid; place-items: center; background: var(--cream); color: var(--stone); font-size: .85rem; padding: 1rem; }
.bank-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.bank-row:last-child { border-bottom: none; }
.bank-row span:first-child { color: var(--stone); }
.bank-row span:last-child { font-weight: 600; color: var(--ink); }

/* Map */
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Facebook page embed */
.fb-wrap { display: flex; justify-content: center; }
.fb-wrap iframe { width: 100%; max-width: 500px; height: 640px; border: none; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: #fff; }

/* Decorative mandala divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: 2rem auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(120px, 20vw); background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------------- 10) GALLERY / LIGHTBOX ---------------- */
.masonry { columns: 3 260px; column-gap: 1.2rem; }
.masonry__item { break-inside: avoid; margin-bottom: 1.2rem; border-radius: var(--r-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); cursor: zoom-in; display: block; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,18,10,.72)); opacity: 0; transition: opacity .4s var(--ease); }
.masonry__cap { position: absolute; left: 1rem; bottom: .8rem; right: 1rem; color: #fff; font-size: .9rem; font-weight: 500; z-index: 2; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover::after, .masonry__item:hover .masonry__cap { opacity: 1; transform: translateY(0); }
.masonry__item.is-hidden { display: none; }
/* Homepage gallery preview: fixed 3:2 tiles */
.gallery-tile { margin: 0; aspect-ratio: 3 / 2; cursor: pointer; }
.gallery-tile img { height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,14,8,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease); backdrop-filter: blur(4px); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: min(1000px, 92vw); max-height: 86vh; margin: 0; }
.lightbox__figure img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { text-align: center; color: rgba(255,255,255,.85); margin-top: 1rem; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.4rem; line-height: 1; color: #fff; width: 48px; height: 48px; border-radius: 50%; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.15); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: #fff; width: 60px; height: 60px; border-radius: 50%; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ---------------- 11) FORMS ---------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field input, .field textarea, .field select {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--warm-white); color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232,133,59,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--stone); }

/* ---------------- 12) FOOTER ---------------- */
.site-footer { background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%); color: rgba(255,255,255,.80); }
.footer-cta { background: var(--grad-warm); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem); color: #fff; }
.footer-cta__title { color: #fff; margin: .4rem 0; }
.footer-cta__text { color: rgba(255,255,255,.9); max-width: 460px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-about { margin: 1.2rem 0; font-size: .95rem; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-socials { display: flex; gap: .5rem; }
.footer-heading { font-family: var(--f-display); font-size: 1.1rem; color: #fff; margin-bottom: 1.3rem; position: relative; padding-bottom: .6rem; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--grad-gold); }
.footer-links { display: grid; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-links a:hover { color: var(--gold-soft); padding-left: 6px; }
.footer-info { display: grid; gap: 1rem; }
.footer-info li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.footer-info strong { color: #fff; }
.footer-info .ico { flex: none; color: var(--gold-soft); margin-top: 3px; }
.footer-info a:hover { color: var(--gold-soft); }
.footer-note { margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; font-size: .85rem; color: rgba(255,255,255,.88); }
.footer-bottom__inner p { color: #F4EFE6; }
.footer-credit { display: inline-flex; align-items: center; gap: .4rem; }
.footer-credit .ico { color: var(--gold-soft); }
.footer-namaste { width: 1.35em; height: 1.35em; color: var(--gold-soft); flex: none; }

/* Back to top */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 800; width: 50px; height: 50px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------------- 13) UTILITIES ---------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw-720 { max-width: 720px; }
.maxw-640 { max-width: 640px; }
.mx-auto { margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- 14) MOTION / REVEAL ---------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* subtle parallax target */
[data-parallax] { will-change: transform; }

/* ---------------- 15) RESPONSIVE ---------------- */
@media (max-width: 1080px) {
    :root { --header-h: 96px; }
    .nav-desktop { display: none; }
    .nav-mobile-actions { display: flex; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .topbar { display: none; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .masonry { columns: 2 200px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    :root { --gutter: 1.15rem; }
    .brand__sub { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
    .stats { grid-template-columns: 1fr 1fr; }
    .nav-mobile-donate { display: none; }
    .schedule__row { grid-template-columns: auto 1fr; }
    .schedule__tag { display: none; }
    .hero__actions .btn, .btn-row .btn { flex: 1 1 auto; }
    .hero__arrow { display: none; }          /* no slider arrows on mobile */
    .hero__tagline { display: none; }        /* hide tagline on mobile */
    .split__badge { display: none; }         /* hide floating image badge on mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .footer-bottom__inner { justify-content: center; text-align: center; }
    /* Card badge moves to the bottom-right on phones (anchored, not offset,
       so it stays put whatever height the card image is) */
    .card__tag { top: auto; bottom: 1rem; left: auto; right: 1rem; }
}
