/* ============================================================
   வேட்டுவ கவுண்டர் சமூகம் — Main Stylesheet
   Heritage-inspired, modern, Tamil-first design system.
   Colours, typography, layout, and reusable components live here.
   Media queries / breakpoints live in responsive.css.
   ============================================================ */

/* ---------- 1. Design Tokens (CSS Variables) ---------- */
:root {
  /* ---- Brand palette: COMMUNITY FLAG (green / white / red) ----
     Variable names are kept for stability, but re-themed to the flag:
       --maroon* = PRIMARY GREEN   (headers, headings, brand, primary buttons)
       --green*  = deeper green    (app section, footer depth)
       --gold*   = ACCENT RED      (CTAs, highlights, motif — the bow & arrow)
       --gold-soft = soft light-red (text/lines on dark bands)
       --beige   = soft green section tint;  --offwhite = soft white base   */
  --maroon:      #128a3c;   /* primary green (flag top band + emblem text) */
  --maroon-dark: #0c6a2c;
  --green:       #0b5e28;   /* secondary deep green */
  --green-dark:  #07451e;
  --gold:        #d6202a;   /* accent red (flag bottom band + bow/arrow) */
  --gold-dark:   #ac1820;   /* red hover */
  --gold-soft:   #f4b7bb;   /* soft light-red — accents on light bg (timeline line, quote mark) */
  --cream:       #f4efe3;   /* soft ivory — headings/text on dark green bands */
  --beige:       #eaf3ec;   /* soft green section tint */
  --offwhite:    #faf8f3;   /* soft white page background */
  --charcoal:    #23201c;
  --muted:       #6b645a;
  --line:        #e3e7de;   /* soft neutral border */
  --white:       #ffffff;
  --danger:      #b3261e;
  --success:     #1f7a4d;

  /* Typography */
  --font-body:    "Noto Sans Tamil", "Poppins", system-ui, sans-serif;
  --font-head:    "Noto Serif Tamil", "Noto Sans Tamil", serif;
  --font-ui:      "Poppins", "Noto Sans Tamil", sans-serif;

  /* Sizing */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow:      0 8px 24px rgba(0, 0, 0, .08);
  --shadow-lg:   0 16px 40px rgba(0, 0, 0, .14);
  --container: 1200px;
  --header-h:  74px;
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--maroon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--maroon);
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }

/* Accessibility: visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 72px 0; }
.section--tint { background: var(--beige); }
.section--maroon { background: var(--maroon); color: #f6ecdd; }
.section--maroon h2,
.section--maroon h3 { color: var(--cream); }

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.grid { display: grid; gap: 24px; }
/* minmax(0,1fr) instead of 1fr so a wide/scrollable child (e.g. the app
   screenshot carousel) can't force a track wider than the viewport. */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Section heading with kolam underline ---------- */
.sec-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.sec-head .eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.sec-head p { color: var(--muted); }
.kolam-rule {
  width: 120px; height: 18px; margin: 14px auto 0;
  background: radial-gradient(circle at center, var(--gold) 0 3px, transparent 4px) repeat-x;
  background-size: 20px 18px;
  opacity: .8;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  text-align: center;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--maroon); }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--gold);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
/* The header spans full width so the wide nav has room; the body stays
   capped at --container. (The nav collapses to a hamburger <=1360px.) */
.site-header .container { max-width: none; }

/* top thin utility bar */
.topbar {
  background: var(--maroon);
  color: #f3e4c9;
  font-size: .8rem;
  font-family: var(--font-ui);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  flex-wrap: wrap;
}
.topbar a { color: #f3e4c9; }
.topbar a:hover { color: #fff; }
.topbar .socials { display: flex; gap: 14px; }

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
/* Desktop: the nav list and the actions sit on ONE row inside the menu
   wrapper. responsive.css turns .nav-menu into the off-canvas panel <=960px. */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex: none; }
.brand__logo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--gold);   /* red ring around the green/white emblem */
  flex: none;
  /* text fallback (if the <img> is ever swapped back to a monogram span) */
  display: grid; place-items: center;
  color: var(--maroon); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.brand__text { max-width: 195px; }   /* keep the long name to a compact 2 lines */
.brand__text strong {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 1.02rem;
  display: block;
  line-height: 1.15;
}
.brand__text span {
  font-size: .72rem; color: var(--muted); font-family: var(--font-ui);
  letter-spacing: .04em;
}

/* nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 7px 9px;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--maroon);
  background: var(--beige);
}
.nav-list > li.active > a { font-weight: 700; }

/* dropdown */
.has-dropdown > a::after { content: " ▾"; font-size: .7em; }
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .88rem;
  color: var(--charcoal);
}
.dropdown a:hover { background: var(--beige); color: var(--maroon); }

/* header actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: .78rem;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; color: var(--muted); font-weight: 600;
}
.lang-switch button.active { background: var(--maroon); color: #fff; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--maroon);
  transition: var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--maroon-dark) 0%, var(--maroon) 45%, var(--green-dark) 100%);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .28;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,10,20,.35), rgba(20,48,38,.6));
}
.hero__inner {
  position: relative;
  padding: 96px 0 104px;
  max-width: 760px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: .5em;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: #f1e5d0; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* temple-arch top motif */
.arch-motif {
  height: 10px;
  background:
    radial-gradient(circle at 12px -2px, transparent 12px, var(--gold) 12px 13px, transparent 14px) repeat-x;
  background-size: 24px 12px;
}

/* ---------- 8. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--beige); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; }
.card__meta {
  font-family: var(--font-ui);
  font-size: .76rem; color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.card__excerpt { color: var(--muted); font-size: .92rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: 8px; }

.chip {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--beige);
  color: var(--maroon);
}
.chip--green { background: #dbeee2; color: var(--green); }
.chip--gold  { background: #fbe0e1; color: #a81820; }

/* verification / trust badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.badge--verified { color: var(--success); border-color: #bfe3cf; background: #eefaf2; }
.badge--pending  { color: #9a6a00; border-color: #f0dca0; background: #fdf6e3; }
.badge--source   { color: var(--maroon); border-color: #bfe0c9; background: #eaf6ee; }

/* ---------- 9. Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 12px;
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.1rem; font-weight: 700; color: var(--maroon);
  line-height: 1;
}
.stat__label { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.demo-note {
  font-size: .74rem; color: var(--muted); font-style: italic;
}

/* ---------- 10. Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 3px; background: var(--gold-soft);
}
.timeline__item { position: relative; padding: 0 0 32px 26px; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--maroon); border: 3px solid var(--gold);
}
.timeline__year { font-family: var(--font-ui); font-weight: 700; color: var(--gold); font-size: .85rem; }
.timeline__item h4 { margin: 2px 0 6px; }

/* ---------- 11. App / mockup section ---------- */
.app-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #eef7f0;
}
.app-band h2, .app-band h3 { color: var(--cream); }
.phone-mock {
  width: 260px; max-width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  border: 10px solid #1b1b1b;
  background: #000;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}
.phone-mock img { width: 100%; height: 100%; object-fit: cover; }
.phone-mock::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; background: #333; border-radius: 999px; z-index: 2;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; padding: 10px 18px; border-radius: 12px;
  font-family: var(--font-ui);
}
.store-badge small { display: block; font-size: .6rem; opacity: .8; }
.store-badge strong { font-size: 1rem; }
.qr-box {
  width: 120px; height: 120px; background: #fff; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); font-size: .7rem;
  border: 1px solid var(--line); text-align: center; padding: 8px;
}

/* ---------- 12. Feature grid ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); height: 100%;
}
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--beige); color: var(--maroon);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.app-band .feature { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #eef7f0; }
.app-band .feature h4 { color: #fff; }
.app-band .feature__icon { background: rgba(255,255,255,.12); color: var(--cream); }

/* ---------- 13. Testimonials ---------- */
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.testi::before {
  content: "“"; font-family: var(--font-head); font-size: 3.4rem; color: var(--gold-soft);
  position: absolute; top: 4px; left: 16px; line-height: 1;
}
.testi p { position: relative; z-index: 1; font-style: italic; color: var(--charcoal); }
.testi__who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.testi__who .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--maroon);
  color: var(--cream); display: grid; place-items: center; font-weight: 700;
}
.testi__who strong { display: block; font-size: .9rem; }
.testi__who span { font-size: .76rem; color: var(--muted); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--maroon), var(--maroon-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 44px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- 15. Breadcrumbs ---------- */
.breadcrumb-bar { background: var(--beige); border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0;
  padding: 12px 0; font-family: var(--font-ui); font-size: .82rem; color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--gold); }

.page-hero {
  background: linear-gradient(120deg, var(--maroon-dark), var(--green-dark));
  color: #fff; padding: 54px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-hero p { color: #f0e4cf; max-width: 640px; margin: 0 auto; }

/* ---------- 16. Filters / toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 28px;
}
.toolbar input[type="search"],
.toolbar select {
  font-family: var(--font-body); font-size: .9rem;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--charcoal);
}
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button {
  font-family: var(--font-ui); font-size: .82rem; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--charcoal); transition: var(--transition);
}
.filter-chips button.active,
.filter-chips button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 17. Gallery / masonry ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry figure {
  margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff; cursor: pointer;
  position: relative;
}
.masonry img { width: 100%; display: block; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  padding: 10px 12px; font-size: .8rem; color: var(--muted);
  font-family: var(--font-ui);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2200;
  background: rgba(10,6,4,.9); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.15); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #eee; font-size: .85rem; }

/* ---------- 18. Video cards / modal ---------- */
.video-card .card__media::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: rgba(0,0,0,.28);
  transition: background var(--transition);
}
.video-card:hover .card__media::after { background: rgba(0,0,0,.45); }
.video-modal {
  position: fixed; inset: 0; z-index: 2200; background: rgba(10,6,4,.9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal__frame { width: min(900px, 94vw); aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.video-modal__frame iframe, .video-modal__frame video { width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }

/* ---------- 19. FAQ accordion ---------- */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer;
  padding: 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--maroon); display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.acc-head::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
.acc-head[aria-expanded="true"]::after { content: "–"; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.acc-panel > div { padding: 0 20px 18px; color: var(--muted); }

/* ---------- 20. Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-ui); font-size: .84rem; font-weight: 600; color: var(--charcoal); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--charcoal); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { color: var(--danger); font-size: .78rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.form-note { font-size: .8rem; color: var(--muted); }

/* ---------- 21. Legal / article typography ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.notice {
  border-left: 4px solid var(--gold);
  background: #fdf6e3; padding: 16px 18px; border-radius: 8px;
  font-size: .9rem; margin: 18px 0;
}
.notice--warn { border-left-color: var(--danger); background: #fdecea; }
.notice--info { border-left-color: var(--green); background: #eef7f0; }

/* ---------- 22. Footer ---------- */
.site-footer { background: var(--charcoal); color: #d9cdbb; font-size: .9rem; }
.site-footer a { color: #d9cdbb; }
.site-footer a:hover { color: var(--gold); }
.footer-top { padding: 56px 0 36px; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr); gap: 34px; }
.footer-col { min-width: 0; }
.footer-brand .brand__logo { background: var(--gold); color: var(--maroon); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-socials { display: flex; gap: 12px; margin-top: 14px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; font-size: .95rem;
}
.footer-socials a:hover { background: var(--gold); color: var(--maroon); }
.news-sub { display: flex; gap: 8px; margin-top: 10px; }
.news-sub input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; color: #b6ab99;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- 23. Back to top ---------- */
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--maroon); color: #fff; border: 2px solid var(--gold);
  cursor: pointer; font-size: 1.2rem; display: none; box-shadow: var(--shadow-lg);
}
.back-top.show { display: grid; place-items: center; }

/* ---------- 24. Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; display: none;
  gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; max-width: 640px; }
.cookie-banner .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 25. Modal (generic / correction) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 2100; background: rgba(10,6,4,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal__box {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  padding: 28px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto;
}
.modal__box h3 { margin-top: 0; }
.modal__close { float: right; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); }

/* ---------- 26. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 27. Utility / misc ---------- */
.list-plain { list-style: none; padding: 0; }
.two-col-list { columns: 2; column-gap: 32px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--line); margin: 32px 0; border: 0; }
.aspect-16-9 { aspect-ratio: 16/9; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.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;
}
[hidden] { display: none !important; }
