/*
Theme Name: Gothra Samskrithi
Theme URI: https://gothrasamskrithi.com
Author: Built for Gothra Samskrithi
Description: Tribal development and cultural heritage theme. Western Ghats palette, Malayalam support, mega menu and mobile drawer. Every homepage section is editable from Appearance > Customize.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gothra
*/

/* ==========================================================================
   Gothra Samskrithi — gothrasamskrithi.com
   Design tokens, layout and components
   Palette: Western Ghats canopy, turmeric, laterite soil
   ========================================================================== */

:root {
  /* Colour */
  --forest:   #0E241D;  /* canopy dark — page base */
  --moss:     #17352A;  /* raised dark surfaces */
  --moss-2:   #1F4536;  /* borders on dark */
  --shell:    #F1EDE2;  /* paper — light sections */
  --shell-2:  #E4DECD;  /* paper, shaded */
  --turmeric: #DFA02A;  /* primary accent */
  --laterite: #A8402A;  /* secondary accent — Kerala soil */
  --ash:      #9BB0A4;  /* muted text on dark */
  --slate:    #5C6A61;  /* muted text on light */

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --malayalam: "Manjari", "Noto Sans Malayalam", var(--body);

  /* Scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.85rem, 1.4rem + 2.2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --max: 1280px;

  --header-h: 64px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::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: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--shell);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--turmeric);
  outline-offset: 3px;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
.ml { font-family: var(--malayalam); font-weight: 400; }

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--turmeric);
}
.eyebrow--dark { color: var(--laterite); }

.lede { font-size: var(--step-1); line-height: 1.5; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--light { background: var(--shell); color: var(--forest); }
.section--paper { background: var(--shell-2); color: var(--forest); }
.section--dark { background: var(--moss); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.5rem; }
.section-head p { margin-top: 1rem; color: var(--ash); }
.section--light .section-head p,
.section--paper .section-head p { color: var(--slate); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--turmeric); color: #22180B; }
.btn--solid:hover { background: #EDB245; }
.btn--red { background: var(--laterite); color: #fff; }
.btn--red:hover { background: #C24E33; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--turmeric); border-color: var(--turmeric); color: #22180B; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: #0A1B15;
  border-bottom: 1px solid var(--moss-2);
  font-size: var(--step--1);
  color: var(--ash);
}
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__links { display: flex; gap: 1.35rem; }
.topbar__links a:hover { color: var(--turmeric); }
@media (max-width: 860px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(14, 36, 29, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--moss-2);
}
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand__sub { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); margin-top: 4px; }

.header__actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: none; border: 0; border-radius: var(--radius);
  cursor: pointer; color: var(--shell);
}
.icon-btn:hover { background: var(--moss); color: var(--turmeric); }
.lang-toggle {
  border: 1px solid var(--moss-2); background: none; border-radius: 999px;
  padding: 0.3rem 0.75rem; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; color: var(--ash);
}
.lang-toggle:hover { color: var(--turmeric); border-color: var(--turmeric); }
.login-btn { display: none; }
@media (min-width: 900px) { .login-btn { display: inline-flex; } }

/* ---------- Desktop nav + mega menu ---------- */
.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .nav__list { display: flex; gap: 0.25rem; }
  .nav__link {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase;
    background: none; border: 0; cursor: pointer;
    border-bottom: 2px solid transparent;
  }
  .nav__item:hover .nav__link,
  .nav__item:focus-within .nav__link { color: var(--turmeric); border-bottom-color: var(--turmeric); }
  .nav__link .chev { transition: transform 0.2s var(--ease); }
  .nav__item:hover .chev { transform: rotate(180deg); }

  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--moss);
    border-top: 1px solid var(--moss-2);
    border-bottom: 3px solid var(--turmeric);
    box-shadow: 0 22px 45px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav__item:hover .mega,
  .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
  .mega__in {
    display: grid; grid-template-columns: 1fr 1fr 1fr 0.9fr;
    gap: 2.5rem;
    padding-block: 2.25rem 2.5rem;
  }
  .mega__col h4 {
    font-family: var(--body); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--turmeric); margin-bottom: 0.9rem;
  }
  .mega__col li + li { margin-top: 0.15rem; }
  .mega__col a {
    display: block; padding: 0.28rem 0;
    font-size: 0.88rem; color: var(--ash);
    border-left: 2px solid transparent; padding-left: 0.65rem; margin-left: -0.65rem;
    transition: color 0.18s, border-color 0.18s, padding-left 0.18s;
  }
  .mega__col a:hover { color: var(--shell); border-left-color: var(--laterite); padding-left: 0.9rem; }
  .mega__promo {
    background: #0A1B15; padding: 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--moss-2);
  }
  .mega__promo h5 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.5rem; }
  .mega__promo p { font-size: 0.83rem; color: var(--ash); margin-bottom: 1rem; }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--forest);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--moss-2);
  flex: none;
}
.drawer__body { overflow-y: auto; padding: 0.5rem var(--gutter) 6rem; -webkit-overflow-scrolling: touch; }
.acc { border-bottom: 1px solid var(--moss-2); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: 1.22rem; font-weight: 500;
}
.acc__btn .plus { color: var(--turmeric); transition: transform 0.28s var(--ease); flex: none; }
.acc[data-open="true"] .plus { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
.acc[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner ul { padding-bottom: 1rem; }
.acc__inner a {
  display: block; padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.94rem; color: var(--ash);
  border-left: 1px solid var(--moss-2);
}
.acc__inner a:active, .acc__inner a:hover { color: var(--turmeric); border-left-color: var(--turmeric); }
.drawer__cta { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.drawer__cta .btn { flex: 1; justify-content: center; }

.scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(5, 14, 11, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }
body[data-lock="true"] { overflow: hidden; }

/* ---------- Search overlay ---------- */
.search {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 27, 21, 0.97);
  display: grid; place-items: start center;
  padding-top: 18vh;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.search[data-open="true"] { opacity: 1; visibility: visible; }
.search__form { width: min(680px, 90vw); }
.search__field {
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 2px solid var(--turmeric); padding-bottom: 0.85rem;
}
.search__field input {
  flex: 1; background: none; border: 0; outline: 0;
  font-family: var(--display); font-size: var(--step-2);
}
.search__field input::placeholder { color: var(--ash); opacity: 0.6; }
.search__hint { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ash); }
.search__hint a { color: var(--turmeric); margin-right: 1rem; }
.search__close { position: absolute; top: 1.5rem; right: 1.5rem; }

/* ==========================================================================
   Hero — the signature
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(223,160,42,0.13), transparent 60%),
    radial-gradient(70% 60% at 8% 95%, rgba(168,64,42,0.16), transparent 62%),
    var(--forest);
}
/* bamboo scaffold — vertical hairlines */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
    rgba(155,176,164,0.09) 0 1px, transparent 1px 12.5%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .hero__in { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }

.hero h1 {
  font-size: var(--step-4);
  margin-block: 1.1rem 1.4rem;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--turmeric);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.hero__lede { max-width: 52ch; color: var(--ash); font-size: var(--step-1); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--moss-2);
}
.stat__n {
  font-family: var(--display); font-size: var(--step-2);
  color: var(--turmeric); line-height: 1;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.stat__l { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); margin-top: 0.45rem; }

/* Roll-call of communities */
.rollcall {
  border: 1px solid var(--moss-2);
  background: rgba(10,27,21,0.55);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
}
.rollcall__label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ash); padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--moss-2);
}
.rollcall__list { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.rollcall__list li {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: #4E6B5D;
  transition: color 0.55s var(--ease);
  cursor: default;
}
.rollcall__list li.is-live { color: var(--shell); }
.rollcall__list li:hover { color: var(--turmeric); }
.rollcall__ml {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--moss-2);
  display: flex; align-items: baseline; gap: 0.85rem; min-height: 3.2rem;
}
.rollcall__ml span:first-child {
  font-family: var(--malayalam); font-size: 1.65rem; color: var(--turmeric);
}
.rollcall__ml span:last-child { font-size: 0.78rem; color: var(--ash); letter-spacing: 0.08em; }

/* ---------- Announcement ticker ---------- */
.ticker {
  background: var(--laterite);
  color: #fff;
  font-size: var(--step--1);
  overflow: hidden;
}
.ticker__in { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
.ticker__tag {
  flex: none; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.68rem; padding-right: 1rem; border-right: 1px solid rgba(255,255,255,0.3);
}
.ticker__track { overflow: hidden; flex: 1; }
.ticker__items { display: flex; gap: 3rem; white-space: nowrap; animation: slide 34s linear infinite; }
.ticker:hover .ticker__items { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quick access cards ---------- */
.quick { background: var(--shell); color: var(--forest); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--shell-2); border: 1px solid var(--shell-2); }
.quick__card {
  background: var(--shell); padding: 1.5rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.25s, color 0.25s;
}
.quick__card:hover { background: var(--forest); color: var(--shell); }
.quick__card svg { color: var(--laterite); transition: color 0.25s; }
.quick__card:hover svg { color: var(--turmeric); }
.quick__card span { font-weight: 600; font-size: 0.9rem; }
.quick__card small { font-size: 0.74rem; color: var(--slate); }
.quick__card:hover small { color: var(--ash); }

/* ---------- Cards ---------- */
.card {
  background: var(--moss); border: 1px solid var(--moss-2);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--turmeric); }
.section--light .card, .section--paper .card { background: #fff; border-color: var(--shell-2); }
.card__media {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, #24503E, #143026);
  display: grid; place-items: center; position: relative;
}
.section--light .card__media { background: linear-gradient(135deg, var(--shell-2), #D6CFBB); }
.card__media span {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.section--light .card__media span { color: rgba(0,0,0,0.3); }
.card__body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card__kicker { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turmeric); }
.section--light .card__kicker, .section--paper .card__kicker { color: var(--laterite); }
.card__body h3 { font-size: var(--step-1); }
.card__body p { font-size: 0.9rem; color: var(--ash); }
.section--light .card__body p, .section--paper .card__body p { color: var(--slate); }
.card__more { margin-top: auto; padding-top: 0.85rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Programme list (numbered = real sequence not used; uses tags) ---------- */
.prog { display: grid; gap: 1px; background: var(--moss-2); border: 1px solid var(--moss-2); }
.prog__item {
  background: var(--moss); padding: clamp(1.35rem, 3vw, 2rem);
  display: grid; gap: 0.6rem;
  transition: background 0.3s;
}
.prog__item:hover { background: #1D4034; }
.prog__item h3 { font-size: var(--step-1); }
.prog__item p { font-size: 0.9rem; color: var(--ash); max-width: 46ch; }
.prog__meta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--turmeric); }
@media (min-width: 760px) { .prog { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Woven divider (cane weave motif) ---------- */
.weave { height: 14px; width: 100%; background: var(--turmeric);
  -webkit-mask-image: repeating-linear-gradient(45deg, #000 0 6px, transparent 6px 12px);
  mask-image: repeating-linear-gradient(45deg, #000 0 6px, transparent 6px 12px);
  opacity: 0.75;
}

/* ---------- Culture showcase ---------- */
.culture { display: grid; gap: 1px; background: var(--moss-2); border: 1px solid var(--moss-2); }
@media (min-width: 700px) { .culture { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .culture { grid-template-columns: repeat(4, 1fr); }
  .culture__cell:first-child { grid-column: span 2; grid-row: span 2; } }
.culture__cell {
  background: var(--forest); min-height: 190px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem;
  position: relative; overflow: hidden;
}
.culture__cell::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(223,160,42,0.14), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.culture__cell:hover::after { opacity: 1; }
.culture__cell h3 { font-size: var(--step-1); position: relative; }
.culture__cell p { font-size: 0.84rem; color: var(--ash); position: relative; }
.culture__cell:first-child h3 { font-size: var(--step-2); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(150deg, #2A5A44, #12291F);
  display: grid; place-items: center; border: 1px solid var(--moss-2);
}
.split__media span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }

/* ---------- News / events ---------- */
.news-row {
  display: grid; gap: 1rem; padding-block: 1.35rem;
  border-bottom: 1px solid var(--shell-2);
  align-items: start;
}
@media (min-width: 620px) { .news-row { grid-template-columns: 92px 1fr auto; align-items: center; } }
.news-row:hover h3 { color: var(--laterite); }
.date-chip {
  background: var(--forest); color: var(--shell);
  border-radius: var(--radius); padding: 0.6rem; text-align: center; width: 92px;
}
.date-chip strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.date-chip span { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.news-row h3 { font-size: var(--step-1); transition: color 0.2s; }
.news-row p { font-size: 0.85rem; color: var(--slate); margin-top: 0.25rem; }
.news-row .tag {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--laterite); border: 1px solid currentColor; padding: 0.25rem 0.6rem; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Story / testimonial ---------- */
.story {
  border-left: 3px solid var(--turmeric);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 60ch;
}
.story blockquote {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.28;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.story cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: 0.85rem; color: var(--ash); }
.story cite strong { color: var(--shell); display: block; font-size: 0.95rem; }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gallery__cell {
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, #1F4536, #0F2820);
  display: grid; place-items: center; position: relative; overflow: hidden;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash);
}
.gallery__cell:nth-child(3n) { background: linear-gradient(135deg, #3A2018, #1B1009); }
.gallery__cell:nth-child(4n) { background: linear-gradient(135deg, #33301A, #17150B); }
.gallery__cell:hover { outline: 2px solid var(--turmeric); outline-offset: -2px; }

/* ---------- Involve blocks ---------- */
.involve { display: grid; gap: 1px; background: rgba(0,0,0,0.18); }
@media (min-width: 780px) { .involve { grid-template-columns: repeat(3, 1fr); } }
.involve__cell { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: 0.75rem; }
.involve__cell h3 { font-size: var(--step-2); }
.involve__cell p { font-size: 0.92rem; }
.involve__cell .btn { align-self: flex-start; margin-top: auto; }
.involve__cell:nth-child(1) { background: var(--turmeric); color: #22180B; }
.involve__cell:nth-child(2) { background: #C98D22; color: #22180B; }
.involve__cell:nth-child(3) { background: var(--laterite); color: #fff; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--moss-2); border: 1px solid var(--moss-2); }
.partner {
  background: var(--forest); min-height: 92px; display: grid; place-items: center;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash);
  text-align: center; padding: 1rem;
}
.partner:hover { color: var(--turmeric); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-item { padding-block: 1rem; border-bottom: 1px solid var(--moss-2); }
.contact-item dt { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 0.35rem; }
.contact-item dd { margin: 0; font-size: 0.95rem; }
.map-placeholder {
  min-height: 320px; border: 1px solid var(--moss-2); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #12291F 0 12px, #143024 12px 24px);
  display: grid; place-items: center; text-align: center; padding: 2rem;
  font-size: 0.78rem; color: var(--ash); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Forms */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.9rem;
  background: rgba(0,0,0,0.22); border: 1px solid var(--moss-2);
  border-radius: var(--radius); outline: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--turmeric); }
.form-note { font-size: 0.76rem; color: var(--ash); margin-top: 0.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #0A1B15; padding-block: clamp(3rem, 6vw, 4.5rem) 0; border-top: 3px solid var(--turmeric); }
.footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .footer__top { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer h4 { font-family: var(--body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 1rem; }
.footer li + li { margin-top: 0.45rem; }
.footer a { font-size: 0.88rem; color: var(--ash); }
.footer a:hover { color: var(--shell); }
.footer__about p { font-size: 0.88rem; color: var(--ash); max-width: 40ch; margin-top: 1rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--moss-2); border-radius: var(--radius); }
.socials a:hover { border-color: var(--turmeric); color: var(--turmeric); }
.footer__bottom {
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--moss-2);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--ash);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(10,27,21,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--moss-2);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0.55rem 0.25rem;
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash);
}
.bottom-nav a.is-active, .bottom-nav a:hover { color: var(--turmeric); }
@media (min-width: 1080px) { .bottom-nav { display: none; } }
@media (max-width: 1079px) { body { padding-bottom: 62px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.skip-link {
  position: absolute; left: 0.5rem; top: -100px; z-index: 200;
  background: var(--turmeric); color: #22180B; padding: 0.7rem 1.1rem; border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }


/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.8rem; color: var(--ash); margin-top: 0.5rem; }
.section--light figcaption, .section--paper figcaption { color: var(--slate); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sticky { border-left: 3px solid var(--turmeric); }

/* Editable content typography */
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.entry-content h3 { font-size: var(--step-1); margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content a { color: var(--turmeric); text-decoration: underline; text-underline-offset: 3px; }
.section--light .entry-content a, .section--paper .entry-content a { color: var(--laterite); }
.entry-content blockquote {
  border-left: 3px solid var(--turmeric); padding-left: 1.5rem;
  font-family: var(--display); font-size: var(--step-1); line-height: 1.4;
}
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.7rem; border-bottom: 1px solid var(--moss-2); text-align: left; }
.section--light .entry-content th, .section--light .entry-content td { border-color: var(--shell-2); }

/* Featured images inside cards */
.card__media img, .gallery__cell img, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media, .split__media, .gallery__cell { overflow: hidden; }
.culture__cell { background-size: cover; background-position: center; }
.culture__cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,27,21,0.94) 12%, rgba(10,27,21,0.3) 72%);
}
.culture__cell > * { position: relative; z-index: 1; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 0.8rem;
  border: 1px solid var(--moss-2); border-radius: var(--radius); font-size: 0.85rem;
}
.pagination .page-numbers:hover, .pagination .current { background: var(--turmeric); color: #22180B; border-color: var(--turmeric); }
.section--light .pagination .page-numbers { border-color: var(--shell-2); }

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
