/* ==========================================================================
   ISKCON Tampa — public website styles
   Warm, devotional, uncluttered. One file, no build step.
   1. Tokens   2. Base   3. Layout helpers   4. Header & nav   5. Hero slider
   6. Sections & cards   7. Content pages   8. Events & calendar   9. Gallery
   10. Forms   11. Footer   12. Utilities & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --saffron: #e8912d;
    --saffron-dark: #b9651a;      /* text-safe saffron on cream (AA) */
    --saffron-soft: #fbe6cc;
    --maroon: #6b1f2a;
    --maroon-dark: #4e141d;
    --maroon-soft: #f3e3e1;
    --gold: #c9a24a;
    --gold-soft: #efe2bf;
    --cream: #fbf6ee;
    --cream-deep: #f5ecdd;
    --paper: #fffdf9;
    --ink: #2e2321;
    --ink-soft: #5e504b;
    --line: #e8dccb;

    --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(78, 20, 29, .05), 0 8px 24px -12px rgba(78, 20, 29, .18);
    --shadow-lift: 0 2px 4px rgba(78, 20, 29, .06), 0 18px 40px -16px rgba(78, 20, 29, .28);
    --wrap: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(3.5rem, 8vw, 6.5rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--maroon);
    margin: 0 0 .5em;
    letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--maroon); text-decoration-color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--saffron-dark); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--saffron-soft); color: var(--maroon-dark); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--maroon); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout helpers -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section-tint { background: var(--cream-deep); }
.section-paper { background: var(--paper); }
.section-maroon { background: var(--maroon); color: #f8ece4; }
.section-maroon h2, .section-maroon h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head-row h2 { margin: 0; }
.eyebrow {
    display: inline-block; font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; color: var(--saffron-dark); margin-bottom: .6rem;
}
.section-maroon .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-soft); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split-wide-left { grid-template-columns: 1.3fr 1fr; } }

/* Ornament divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--gold); margin: .25rem auto 1.25rem; }
.ornament span { height: 1px; width: min(90px, 18vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-lotus { width: 44px; height: auto; }
.ornament.left { justify-content: flex-start; }
.ornament.left span:first-child { display: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 .95rem/1.2 var(--font-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #2a1406; box-shadow: 0 6px 18px -8px rgba(232, 145, 45, .8); }
.btn-primary:hover { background: #f09c3b; color: #2a1406; box-shadow: 0 10px 24px -10px rgba(232, 145, 45, .9); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--maroon); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--maroon); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 4. Header & nav ---------------------------------------------------------- */
.announce { background: var(--maroon); color: #f6e7d7; font-size: .88rem; text-align: center; padding: .5rem var(--gutter); }
.announce a { color: #fff; text-decoration-color: var(--gold); }
.announce p { margin: 0; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 246, 238, .92); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--maroon); }
.brand-mark {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff6e6, var(--saffron-soft)); color: var(--saffron-dark);
    border: 1px solid var(--gold-soft); flex: none;
}
.brand-mark svg { width: 32px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; }
.brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }

.nav-toggle {
    display: none; align-items: center; gap: .4rem; background: none; border: 1.5px solid var(--line);
    border-radius: 999px; padding: .5rem .9rem; color: var(--maroon); font: 700 .9rem var(--font-sans); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.main-nav a, .main-nav .sub-toggle {
    display: flex; align-items: center; gap: .25rem; padding: .55rem .7rem; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
    background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover, .main-nav [aria-current="page"], .main-nav .is-active > a { color: var(--maroon); background: var(--saffron-soft); }
.main-nav .nav-donate a { background: var(--saffron); color: #2a1406; padding: .6rem 1.2rem; margin-left: .4rem; box-shadow: 0 6px 16px -8px rgba(232, 145, 45, .9); }
.main-nav .nav-donate a:hover { background: #f09c3b; color: #2a1406; }
.has-sub { position: relative; }
.has-sub .sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-sub > .sub-wrap { display: flex; align-items: center; }
.has-sub > .sub-wrap > a { padding-right: .2rem; }
.has-sub > .sub-wrap > .sub-toggle { padding-left: .2rem; padding-right: .5rem; }
.submenu {
    list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + .4rem);
    min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.submenu a { border-radius: 8px; padding: .55rem .8rem; font-weight: 500; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .sub-toggle .icon { transform: rotate(180deg); }

@media (max-width: 1140px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lift); max-height: calc(100vh - 76px); overflow-y: auto; display: none;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .1rem; }
    .main-nav a, .main-nav .sub-toggle { padding: .75rem .9rem; font-size: 1rem; }
    .has-sub > .sub-wrap { justify-content: space-between; }
    .has-sub > .sub-wrap > a { flex: 1; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 .4rem 1rem; background: transparent; min-width: 0; }
    .has-sub.open > .submenu { display: block; }
    .has-sub:hover > .submenu { display: none; }
    .has-sub.open:hover > .submenu { display: block; }
    .main-nav .nav-donate a { margin: .6rem 0 0; justify-content: center; }
}
@media (max-width: 480px) { .brand-tag { display: none; } .brand-name { font-size: 1.35rem; } .nav-toggle .label { display: none; } }

/* 5. Hero slider ----------------------------------------------------------- */
.hero { position: relative; background: var(--maroon-dark); color: #fff; overflow: hidden; }
.hero-track { position: relative; min-height: clamp(520px, 78vh, 760px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero:not(.is-ready) .slide:first-child { opacity: 1; visibility: visible; }
.slide-inner { height: 100%; }

/* photo style: full-bleed image with overlay text */
.slide-photo .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide-photo.is-active .slide-bg { transform: scale(1); }
.slide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46, 12, 18, .82) 0%, rgba(46, 12, 18, .5) 45%, rgba(46, 12, 18, .1) 100%), linear-gradient(0deg, rgba(46, 12, 18, .55), transparent 40%); }
.slide-photo .slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; padding-block: 5rem 6rem; }

.slide-content h1, .slide-content h2 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: .35em; text-wrap: balance; }
.slide-content .slide-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #f6e7d7; max-width: 34em; margin-bottom: 1.75rem; }
.slide-content .eyebrow { color: var(--gold); }

/* poster style: flyer shown complete beside the text */
.slide-poster { background: radial-gradient(1200px 600px at 75% 40%, #7a2a34 0%, var(--maroon-dark) 60%); }
.slide-poster .slide-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px) saturate(1.2); opacity: .35; }
.slide-poster .slide-inner { position: relative; z-index: 2; display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1.1fr .9fr; padding-block: 3rem 5rem; }
.slide-poster .poster-frame {
    justify-self: center; height: clamp(380px, 62vh, 620px); aspect-ratio: 3 / 4; max-width: 100%;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 162, 74, .45); border-radius: var(--radius);
    padding: .6rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
}
.slide-poster .poster-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
@media (max-width: 820px) {
    .hero-track { min-height: 0; height: auto; display: grid; }
    .slide { position: relative; grid-area: 1 / 1; }
    .slide-poster .slide-inner { grid-template-columns: 1fr; text-align: center; padding-block: 2.5rem 5rem; }
    .slide-poster .poster-frame { height: auto; width: min(68vw, 300px); aspect-ratio: 3 / 4; order: -1; padding: .4rem; }
    .slide-content h1, .slide-content h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .slide-content .slide-sub { margin-bottom: 1.25rem; }
    .slide-poster .btn-row { justify-content: center; }
    .slide-photo .slide-content { min-height: 520px; padding-block: 4rem 6rem; }
}

.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 1.5rem; }
.hero-controls .wrap { display: flex; align-items: center; gap: .75rem; }
.hero-dots { display: flex; gap: .5rem; margin-right: auto; }
.hero-dot { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dot span { display: block; width: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: background .3s, width .3s; }
.hero-dot[aria-current="true"] span { background: var(--saffron); width: 34px; }
.hero-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: background .2s;
}
.hero-btn:hover { background: rgba(255, 255, 255, .25); }
.hero-btn .icon { width: 20px; height: 20px; }
.hero-btn .icon-play { display: none; }
.hero.is-paused .hero-btn .icon-play { display: block; }
.hero.is-paused .hero-btn .icon-pause { display: none; }
.hero-single .hero-controls { display: none; }

/* Fallback hero when no slides */
.hero-static { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; background: radial-gradient(900px 500px at 50% 0%, #7a2a34, var(--maroon-dark)); }
.hero-static h1, .hero-static h2 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
.hero-static p { color: #f6e7d7; max-width: 38em; margin-inline: auto; }

/* 6. Sections & cards ------------------------------------------------------ */
.card {
    position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(232, 220, 203, .7);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-media { aspect-ratio: 16 / 10; background: var(--cream-deep); 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.04); }
.card-media img.is-placeholder, .card-media img.is-flyer { object-fit: contain; padding: .5rem; }
.card-media img.is-placeholder { padding: 1.25rem; opacity: .9; mix-blend-mode: multiply; }
.card-media:has(img.is-placeholder) { aspect-ratio: 16 / 7; background: radial-gradient(circle at 50% 130%, var(--saffron-soft), var(--cream-deep) 70%); }
.card:hover .card-media img.is-placeholder { transform: none; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { text-decoration: none; color: inherit; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.card-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--saffron-dark); font-weight: 700; }
.card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta .icon { width: 16px; height: 16px; }
.card-foot { margin-top: auto; padding-top: .6rem; }
.card a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 3px; }
.card .btn, .card .card-foot a { position: relative; z-index: 2; }

/* simple text card (services, causes) */
.card-plain { padding: 1.75rem; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--saffron-soft); color: var(--saffron-dark); margin-bottom: .5rem; }
.card-icon svg { width: 34px; height: auto; }

/* card title used as h2 on index pages */
.card-title { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 0; }
.card-title a { text-decoration: none; color: inherit; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.link-list a { display: block; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; }
.link-list a:hover, .link-list a[aria-current="page"] { background: var(--saffron-soft); color: var(--maroon); }

/* Welcome */
.welcome-media { position: relative; }
.welcome-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lift); }
.welcome-media::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.welcome-media { z-index: 0; max-width: 480px; justify-self: center; width: 100%; }

/* Visit strip */
.visit-strip { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 880px) { .visit-strip { grid-template-columns: 1.4fr 1fr; } }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.schedule-list li { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; align-items: baseline; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.schedule-when { font-weight: 800; color: var(--maroon); font-size: .95rem; min-width: 8.5rem; }
.schedule-when small { display: block; font-weight: 700; color: var(--saffron-dark); font-size: .85rem; }
.schedule-what strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.schedule-what span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 520px) { .schedule-list li { grid-template-columns: 1fr; } }
.address-card { background: var(--maroon); color: #f8ece4; border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.address-card h3 { color: #fff; margin: 0; }
.address-card a { color: #fff; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.contact-lines li { display: flex; gap: .7rem; align-items: flex-start; min-width: 0; }
.contact-lines li > :not(.icon) { min-width: 0; overflow-wrap: anywhere; }
.contact-lines .icon { flex: none; margin-top: .25rem; color: var(--gold); }

/* Donation CTA */
.donate-cta { position: relative; overflow: hidden; }
.donate-cta::before {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid rgba(201, 162, 74, .35); box-shadow: 0 0 0 40px rgba(201, 162, 74, .06), 0 0 0 80px rgba(201, 162, 74, .04);
}
.cause-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.cause-chips a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, border-color .2s; }
.cause-chips a:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); color: #fff; }

.live-banner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); }
.live-banner h2 { font-size: 1.7rem; margin: 0; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d23b2f; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(210, 59, 47, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(210, 59, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 59, 47, 0); } }

/* 7. Content pages --------------------------------------------------------- */
.page-hero { position: relative; background: var(--maroon-dark); color: #f8ece4; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 4.5rem); text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0%, rgba(232, 145, 45, .28), transparent 70%); }
.page-hero.has-image .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .25em; text-wrap: balance; }
.page-hero p { max-width: 40em; margin: 0 auto; color: #f1dccb; font-size: 1.12rem; }
.page-hero .ornament { color: var(--gold); }
.breadcrumbs { font-size: .85rem; margin-bottom: 1rem; color: #e6cdb9; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--gold); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--saffron-dark); }
.prose blockquote { margin: 1.8rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--maroon); }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem auto; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .75rem; text-align: left; }
.prose iframe { border: 0; border-radius: var(--radius-sm); }
.prose a { word-break: break-word; }
.video-embed, .embed { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: #1d0e10; margin: 1.6rem 0; }
.video-embed iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; }
.article-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.aside-box + .aside-box { margin-top: 1.25rem; }
.aside-box h2, .aside-box h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.aside-sticky { position: sticky; top: 100px; }
.feature-img { border-radius: var(--radius); box-shadow: var(--shadow-lift); margin-bottom: 2rem; width: 100%; max-height: 560px; object-fit: cover; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; margin-top: 2.5rem; }
.back-link .icon { width: 18px; height: 18px; }

/* 8. Events & calendar ----------------------------------------------------- */
.event-date-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--paper); border-radius: 12px;
    text-align: center; padding: .4rem .7rem; box-shadow: var(--shadow); line-height: 1.1; min-width: 58px;
}
.event-date-badge .m { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-dark); }
.event-date-badge .d { display: block; font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--maroon); }
.event-card .card-media { aspect-ratio: 4 / 3; }
.event-list { display: grid; gap: 1rem; }
.event-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.25rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; transition: box-shadow .3s, transform .3s var(--ease); position: relative; }
.event-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-row .event-date-badge { position: static; box-shadow: none; background: var(--saffron-soft); }
.event-row h3 { margin: 0 0 .15rem; font-size: 1.35rem; }
.event-row h3 a { text-decoration: none; color: inherit; }
.event-row h3 a::after { content: ""; position: absolute; inset: 0; }
.event-row p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.event-row .thumb { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
@media (max-width: 640px) { .event-row { grid-template-columns: 70px 1fr; } .event-row .thumb { display: none; } }

.event-detail { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .event-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .event-detail.no-flyer { grid-template-columns: minmax(0, 1fr) 340px; } }
.flyer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow-lift); }
.flyer img { width: 100%; height: auto; border-radius: 12px; }
.flyer a { display: block; }
.facts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.facts li { display: flex; gap: .85rem; align-items: flex-start; }
.facts .icon { flex: none; color: var(--saffron-dark); width: 22px; height: 22px; margin-top: .2rem; }
.facts strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.facts span, .facts a { font-weight: 600; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--gold-soft); color: var(--maroon); }
.tag-past { background: var(--line); color: var(--ink-soft); }

.tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tabs a { padding: .55rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.tabs a[aria-current="page"], .tabs a:hover { border-color: var(--maroon); background: var(--maroon); color: #fff; }

.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.calendar-nav h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.calendar { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.calendar th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding: .3rem; font-weight: 800; }
.calendar td { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; vertical-align: top; height: 112px; padding: .45rem; }
.calendar td.out { background: transparent; border-color: transparent; }
.calendar td.today { border-color: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); }
.calendar .day-num { font-weight: 800; font-size: .9rem; color: var(--ink-soft); }
.calendar td.today .day-num { color: var(--saffron-dark); }
.calendar .cal-event { display: block; margin-top: .3rem; font-size: .8rem; line-height: 1.3; padding: .3rem .45rem; border-radius: 6px; background: var(--saffron-soft); color: var(--maroon-dark); text-decoration: none; font-weight: 600; }
.calendar .cal-event.festival { background: var(--maroon); color: #fff; }
.calendar .cal-event:hover { filter: brightness(.95); }
@media (max-width: 760px) {
    .calendar, .calendar tbody, .calendar tr, .calendar td { display: block; }
    .calendar thead { display: none; }
    .calendar td { height: auto; margin-bottom: 6px; }
    .calendar td.out, .calendar td.empty { display: none; }
}

/* 9. Gallery --------------------------------------------------------------- */
.album-card .card-media { aspect-ratio: 4 / 3; }
.photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.photo-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--cream-deep); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.photo-grid a:hover img { transform: scale(1.05); }
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin-top: 2rem; }
.video-grid figure { margin: 0; }
.video-grid .embed { margin: 0; }
.video-grid figcaption { margin-top: .5rem; font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28, 10, 12, .94); display: none; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #f1dccb; margin-top: .75rem; text-align: center; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 4rem .75rem; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* 10. Forms ---------------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.field .req { color: var(--saffron-dark); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 145, 45, .18); }
.field.error input, .field.error textarea { border-color: #b3261e; }
.error-message { color: #b3261e; font-size: .88rem; margin-top: .3rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--ink-soft); }

.flash { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-weight: 600; border: 1px solid; display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.flash-success { background: #edf6ea; border-color: #b9d9ae; color: #24501a; }
.flash-error { background: #fbeceb; border-color: #efbdb8; color: #8a1f17; }
.flash-info, .flash-default { background: var(--saffron-soft); border-color: #f1c99a; color: var(--maroon-dark); }
.flash-warning { background: #fff4d6; border-color: #ecd391; color: #5c4200; }
.flash-region { padding-top: 1.5rem; }
.flash-region:empty { display: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream-deep); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { display: grid; place-items: center; text-align: center; padding: 2rem; height: 100%; }

.schedule-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th, .schedule-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table thead th { background: var(--maroon); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td small { display: block; color: var(--ink-soft); }
@media (max-width: 600px) { .schedule-table thead { display: none; } .schedule-table td { display: block; border: 0; padding: .3rem 1.25rem; } .schedule-table tr { display: block; border-bottom: 1px solid var(--line); padding: .8rem 0; } }

.expect-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.expect-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.expect-list h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.expect-list p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; list-style: none; padding: 0; margin: 3rem 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.pagination .active a, .pagination .active span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pagination a:hover { border-color: var(--maroon); }
.pagination .disabled a, .pagination .disabled span { opacity: .45; pointer-events: none; }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.empty-state .lotus { color: var(--gold); margin: 0 auto .75rem; width: 56px; height: auto; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: #2c0f14; color: #e4cfc2; padding: clamp(3.5rem, 7vw, 5rem) 0 0; font-size: .97rem; }
.site-footer a { color: #f6e7d7; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-grid > * { min-width: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 800; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-tag { color: #c9ad9d; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-times { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-times strong { display: block; color: #fff; font-weight: 700; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--saffron); border-color: var(--saffron); color: #2a1406; }
.footer-bottom { margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #b99e8f; }
.footer-bottom p { margin: 0; }
.site-footer .contact-lines .icon { color: var(--saffron); }

/* Error pages */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-code { font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 8rem); color: var(--gold); line-height: 1; margin: 0; }

/* 12. Utilities & motion --------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .announce, .site-header, .site-footer, .hero-controls, .btn { display: none !important; }
    body { background: #fff; }
}
