/* =========================================================
   PUNNALA PRAVASI ASSOCIATION
   Editorial heritage stylesheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color: warm Kerala palette */
  --ink:           #1a1a1a;
  --ink-soft:      #2c2a26;
  --ink-muted:     #5c5750;
  --ink-faint:     #8a8377;
  --paper:         #faf6ee;
  --paper-warm:    #f3ecdc;
  --paper-deep:    #ebe2cc;
  --forest:        #1f3d2b;
  --forest-deep:   #142a1d;
  --moss:          #3d6e4f;
  --leaf:          #5a8b6a;
  --saffron:       #d97732;
  --saffron-deep:  #b85e22;
  --gold:          #c89b3c;
  --turmeric:      #f0c14b;
  --rule:          rgba(26, 26, 26, 0.12);
  --rule-strong:   rgba(26, 26, 26, 0.22);
  --shadow-sm:     0 1px 2px rgba(20, 42, 29, 0.06);
  --shadow-md:     0 4px 24px -8px rgba(20, 42, 29, 0.18);
  --shadow-lg:     0 24px 60px -20px rgba(20, 42, 29, 0.35);

  /* Typography */
  --font-display:   'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Lora', Georgia, 'Times New Roman', serif;
  --font-ml:        'Noto Serif Malayalam', 'Noto Sans Malayalam', serif;
  --font-mono:      ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Layout */
  --max-w:      1200px;
  --max-w-text: 720px;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(216, 195, 145, 0.15), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--saffron-deep); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--ink-muted);
  line-height: 1.5;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

em, .italic { font-style: italic; }

/* English-only public site: keep Malayalam alternates in source, but never display them. */
[lang="ml"],
body.lang-ml [lang="ml"] {
  display: none !important;
}
body.lang-ml [lang="en"] {
  display: revert !important;
}
/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: 880px;
}

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

section {
  padding-block: var(--space-9);
}

.section-warm { background: var(--paper-warm); }
.section-deep { background: var(--paper-deep); }
.section-forest {
  background: var(--forest);
  color: #f0e9d8;
}
.section-forest h1, .section-forest h2, .section-forest h3, .section-forest h4 { color: #fbf6e8; }
.section-forest .eyebrow { color: var(--turmeric); }

/* Grid utilities */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Asymmetric two-column for editorial pages */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--space-8); }
  .split--reverse { grid-template-columns: 7fr 5fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Section Headers ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.section-head .eyebrow + h2 { margin-top: 0; }
.section-head h2 + .subtitle { margin-top: var(--space-4); }

/* Decorative ornament (small leaf-like flourish) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-4) auto;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 60px;
  background: currentColor;
  opacity: 0.4;
}
.ornament svg { width: 16px; height: 16px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 54px;
  height: 64px;
  background: transparent;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (max-width: 520px) {
  .nav { padding-block: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand-mark { width: 46px; height: 54px; }
  .brand-text { font-size: 0.98rem; }
  .brand-text small { font-size: 0.68rem; }
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
  letter-spacing: 0;
}

.nav-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--paper-warm); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-list {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-list a:hover { color: var(--forest); }
.nav-list a.is-active { color: var(--forest); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 1.5px;
  background: var(--saffron);
}


/* Mobile nav */
@media (max-width: 899px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav-list a:last-child { border-bottom: none; }
  .nav-list a.is-active::after { display: none; }
  .nav-list a.is-active { background: var(--paper-warm); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; position: static; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #fbf6e8;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-banner.jpg");
  background-size: cover;
  background-position: center 60%;
  z-index: -2;
  transform: scale(1.05);
  animation: heroDrift 30s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 42, 29, 0.3) 0%, rgba(20, 42, 29, 0.15) 35%, rgba(20, 42, 29, 0.85) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(20, 42, 29, 0.4) 100%);
  z-index: -1;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1%, -1%); }
}

.hero-content {
  padding-block: var(--space-9) var(--space-8);
  max-width: 880px;
}
.hero .eyebrow {
  color: var(--turmeric);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero h1 {
  color: #fbf6e8;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero h1 strong {
  font-weight: 500;
  font-style: normal;
}
.hero .lead {
  color: rgba(251, 246, 232, 0.95);
  max-width: 620px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  background: rgba(20, 42, 29, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 246, 232, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turmeric);
  box-shadow: 0 0 12px var(--turmeric);
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  padding-block: var(--space-9) var(--space-8);
  background: var(--forest);
  color: #fbf6e8;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-banner.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
}
.page-hero h1 {
  color: #fbf6e8;
  font-weight: 400;
  font-style: italic;
}
.page-hero h1 strong { font-weight: 500; font-style: normal; }
.page-hero .eyebrow { color: var(--turmeric); }
.page-hero .subtitle { color: rgba(251, 246, 232, 0.85); margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--saffron-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: rgba(251, 246, 232, 0.12);
  color: inherit;
}
.btn-dark {
  background: var(--forest);
  color: #fff;
}
.btn-dark:hover { background: var(--forest-deep); color: #fff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------- Story Block (intro paragraphs) ---------- */
.story {
  max-width: var(--max-w-text);
  margin-inline: auto;
}
.story p { font-size: 1.0625rem; }
.story p.lead { font-size: 1.25rem; line-height: 1.6; }
.story-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--forest);
  border-left: 3px solid var(--saffron);
  padding-left: var(--space-5);
  margin: var(--space-7) 0;
}

/* Drop cap on first paragraph in story */
.story p.has-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.85;
  font-weight: 600;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--saffron);
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--paper-warm);
  color: var(--forest);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }
.card-number {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--saffron);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-muted); }

/* Initiative card variant - more editorial */
.init-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.init-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.init-card .init-body {
  padding: var(--space-6);
}
.init-card .init-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--saffron);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.init-card h3 { margin-bottom: var(--space-3); }
.init-card p { color: var(--ink-muted); margin-bottom: var(--space-3); }
.init-card ul.bullets {
  margin-top: var(--space-3);
  padding-left: 0;
}
.init-card ul.bullets li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.init-card ul.bullets li::before {
  content: "❋";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--saffron);
  font-size: 0.85rem;
}

/* ---------- Member Cards (Team) ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-6) var(--space-5);
  max-width: 1120px;
  margin-inline: auto;
}

.team-grid--leaders {
  gap: var(--space-6);
  max-width: 780px;
}

.member {
  flex: 0 1 190px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.team-grid--leaders .member {
  flex-basis: 220px;
}
.member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
  border: 3px solid var(--paper);
  outline: 1px solid var(--rule);
  margin-bottom: var(--space-3);
  position: relative;
  transition: transform 0.3s ease, outline-color 0.3s ease;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
  filter: saturate(0.95);
  transition: filter 0.3s ease;
}
.member:hover .member-photo {
  outline-color: var(--saffron);
  transform: translateY(-2px);
}
.member:hover .member-photo img { filter: saturate(1.05); }

.member-photo--placeholder {
  background: linear-gradient(135deg, var(--moss), var(--forest));
  display: grid;
  place-items: center;
  color: var(--turmeric);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

@media (max-width: 560px) {
  .team-grid {
    gap: var(--space-6);
    max-width: none;
  }
  .team-grid .member,
  .team-grid--leaders .member {
    flex-basis: 220px;
  }
}

.member-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.member-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}

.team-section + .team-section { margin-top: var(--space-9); }
.team-section-title {
  text-align: center;
  margin-bottom: var(--space-7);
}
.team-section-title h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}
.team-section-title h3::before, .team-section-title h3::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-warm);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { aspect-ratio: 3/4; }
@media (min-width: 900px) {
  .gallery-item.tall { grid-row: span 2; aspect-ratio: 3/4; }
  .gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5) var(--space-4) var(--space-3);
  background: linear-gradient(180deg, transparent 0%, rgba(20, 42, 29, 0.85) 100%);
  color: #f0e9d8;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 42, 29, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}
.lightbox img {
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 246, 232, 0.15);
  color: #fbf6e8;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 246, 232, 0.25);
}
.lightbox-close:hover { background: rgba(251, 246, 232, 0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 246, 232, 0.15);
  color: #fbf6e8;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 246, 232, 0.25);
}
.lightbox-nav:hover { background: rgba(251, 246, 232, 0.25); }
.lightbox-prev { left: var(--space-4); }
.lightbox-next { right: var(--space-4); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Stats / counters ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--turmeric);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 246, 232, 0.78);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(251, 246, 232, 0.78);
  padding-top: var(--space-9);
  padding-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.site-footer h3, .site-footer h4 { color: #fbf6e8; }
.site-footer a { color: rgba(251, 246, 232, 0.78); }
.site-footer a:hover { color: var(--turmeric); }

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-8);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-about p { font-size: 0.95rem; line-height: 1.7; max-width: 380px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fbf6e8;
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.footer-brand .brand-mark {
  width: 68px;
  height: 80px;
  background: transparent;
  border: 0;
  padding: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.contact-item p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Contact Page ---------- */
.contact-section {
  padding-block: var(--space-9);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: var(--space-7);
  align-items: stretch;
}
.contact-panel {
  background: var(--forest);
  color: #fbf6e8;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  min-height: 100%;
  box-shadow: var(--shadow-md);
}
.contact-panel h2 {
  color: #fbf6e8;
  margin-bottom: var(--space-4);
}
.contact-panel p {
  color: rgba(251, 246, 232, 0.82);
}
.contact-panel .eyebrow {
  color: var(--turmeric);
}
.contact-direct {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fbf6e8;
  border-top: 1px solid rgba(251, 246, 232, 0.18);
  border-bottom: 1px solid rgba(251, 246, 232, 0.18);
  padding-block: var(--space-4);
  margin-block: var(--space-6);
}
.contact-direct:hover { color: var(--turmeric); }
.contact-direct-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 246, 232, 0.1);
  color: var(--turmeric);
  flex: 0 0 auto;
}
.contact-direct-icon svg { width: 20px; height: 20px; }
.contact-direct strong,
.contact-direct small {
  display: block;
  line-height: 1.25;
}
.contact-direct small {
  color: rgba(251, 246, 232, 0.62);
  font-size: 0.82rem;
  margin-top: 3px;
}
.contact-assurance {
  display: grid;
  gap: var(--space-3);
  color: rgba(251, 246, 232, 0.78);
  font-size: 0.95rem;
}
.contact-assurance strong,
.contact-assurance span { display: block; }
.contact-assurance strong { color: #fbf6e8; margin-bottom: 2px; }
.contact-form-card {
  background: rgba(255, 252, 246, 0.76);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-head {
  margin-bottom: var(--space-5);
}
.form-head h2 {
  margin-bottom: var(--space-2);
}
.form-head p {
  color: var(--ink-muted);
  max-width: 620px;
}
.contact-form {
  display: grid;
  gap: var(--space-4);
}
.contact-form .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.contact-form .field {
  display: grid;
  gap: 0.45rem;
}
.contact-form .field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.contact-form .field textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  outline: 2px solid rgba(217, 119, 50, 0.28);
  border-color: var(--saffron);
}
.contact-submit {
  justify-content: center;
  width: 100%;
  margin-top: var(--space-2);
}
.contact-support {
  padding-block: var(--space-8);
}
.contact-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.contact-support-item {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--space-4);
}
.contact-support-item span {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--saffron-deep);
  margin-bottom: var(--space-2);
}
.contact-support-item h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
}
.contact-support-item p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .contact-layout,
  .contact-form .field-row,
  .contact-support-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Quote / Testimonial Block ---------- */
.quote-block {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.quote-block .mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-3);
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.quote-block cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.divider {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: var(--space-6) 0;
}

.image-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: var(--space-2);
  text-align: center;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: inherit;
  pointer-events: none;
}

.feature-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 300;
  font-style: italic;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: var(--space-3);
}

/* ---------- Print niceties ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: white; color: black; }
}
