﻿/* ============================================================
   FABAG — Food & Beverages Association of Ghana
   Design System v3.0 — Modern Corporate Trade Body
   Green · White · Authority
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand Greens */
  --forest:    #082B1C;   /* deepest — nav, footer */
  --pine:      #0F4A2C;   /* primary brand */
  --sage:      #176638;   /* hover / interactive */
  --fern:      #1F8450;   /* accent */
  --mint:      #28A462;   /* highlight / tag */
  --leaf:      #E4F2EB;   /* light section bg */
  --mist:      #F2FAF6;   /* very light bg */

  /* Neutrals */
  --white:     #FFFFFF;
  --cream:     #FAFCFB;
  --ink:       #0B1E12;   /* body text */
  --stone:     #2E4F3B;   /* secondary text */
  --slate:     #587366;   /* muted text */
  --border:    #C6DECE;   /* dividers */
  --border-lt: #E4EFE8;   /* lighter dividers */

  /* Accent */
  --gold:      #B8880E;
  --gold-lt:   #F7EED4;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;

  /* Motion */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 220ms var(--ease);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--stone); line-height: 1.75; }

strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--fern);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: var(--slate);
  line-height: 1.7;
  max-width: 56ch;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: 0.9rem 2.25rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }

.btn-green {
  background: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}
.btn-green:hover { background: var(--sage); border-color: var(--sage); }

.btn-outline-green {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline-green:hover { background: var(--pine); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #9A720B; border-color: #9A720B; }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.6); }

.btn-primary {
  background: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}
.btn-primary:hover { background: var(--sage); border-color: var(--sage); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

.btn-amber { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-amber:hover { background: #9A720B; border-color: #9A720B; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: var(--white); }

/* ── Section Utilities ───────────────────────────────────── */
.section { padding-block: var(--section-pad); }
.section-sm { padding-block: calc(var(--section-pad) * 0.6); }
.bg-off { background: var(--mist); }
.bg-leaf { background: var(--leaf); }

.section-head,
.section-header { margin-bottom: 3.5rem; }
.section-head.center,
.section-header.center { text-align: center; }
.section-head p,
.section-header p { max-width: 54ch; margin-inline: auto; margin-top: 1rem; }

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--white); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: var(--pine);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), background var(--transition);
}
.dropdown li a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--fern) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.15rem !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--mint) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--forest);
  overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 0;
  width: 48%;
  height: 100%;
  background: var(--pine);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero-text { max-width: 600px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.5rem;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: var(--mint);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--mint);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  border: 2px solid var(--fern);
  z-index: -1;
  opacity: 0.5;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  min-width: 130px;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1;
}
.hero-badge span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.25rem;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--pine);
  padding-block: 2.5rem;
  border-bottom: 3px solid var(--fern);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-l {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  display: block;
}

/* ── About Section ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-img-col { position: relative; }
.about-img-col img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.about-img-col::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 50%;
  height: 50%;
  border: 2px solid var(--border);
  z-index: -1;
}
.about-year-badge {
  position: absolute;
  top: 1.5rem;
  right: -1.5rem;
  background: var(--pine);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.about-year-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.about-year-badge span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
}
.about-text-col { padding-block: 1rem; }
.about-text-col h2 { margin-bottom: 1.25rem; }
.about-text-col p { margin-bottom: 1rem; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ── Benefits / Membership ───────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-lt);
  border: 1.5px solid var(--border-lt);
}
.benefit-card {
  background: var(--white);
  padding: 2.25rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--fern);
  transition: height 0.4s var(--ease);
}
.benefit-card:hover::before { height: 100%; }
.benefit-card:hover { background: var(--mist); }

.benefit-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 1rem;
  user-select: none;
}
.benefit-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; color: var(--ink); }
.benefit-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }
.benefits-cta { text-align: center; margin-top: 3rem; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-band {
  background: var(--leaf);
  border-block: 1px solid var(--border);
  padding-block: 1.1rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 0.5rem;
  white-space: nowrap;
}
.marquee-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fern);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── News Cards ──────────────────────────────────────────── */
.news-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.news-card:hover {
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(15,74,44,0.08);
}
.news-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 1.5rem; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.news-date, .news-author {
  font-size: 0.7375rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.news-card h3 { font-size: 1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.news-card h3 a { color: var(--ink); transition: color var(--transition); }
.news-card h3 a:hover { color: var(--pine); }
.news-card p { font-size: 0.875rem; color: var(--slate); line-height: 1.65; margin-bottom: 1rem; }
.read-more-link, .read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.read-more-link:hover, .read-more:hover { color: var(--fern); }

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band,
.cta-section {
  background: var(--forest);
  padding-block: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band .eyebrow,
.cta-section .eyebrow { color: var(--mint); }
.cta-band .eyebrow::before,
.cta-section .eyebrow::before { background: var(--mint); }
.cta-band h2,
.cta-section h2,
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p,
.cta-section p,
.cta-inner p { color: rgba(255,255,255,0.55); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-inner { position: relative; z-index: 1; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ── ═══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════ */
.page-hero {
  background: var(--forest);
  padding-top: calc(68px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--mint); }
.page-hero .eyebrow::before { background: var(--mint); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,0.55); margin-top: 0.5rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb span { opacity: 0.35; }

/* ── ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--forest);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 36px; width: auto; object-fit: contain; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 30ch; }
.footer-social { display: flex; gap: 0.625rem; margin-top: 1.5rem; }
.social-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.social-btn svg { width: 14px; height: 14px; }
.social-btn:hover { border-color: var(--fern); color: var(--white); background: var(--fern); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.footer-col ul li + li { margin-top: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.42);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-col address { font-style: normal; }
.footer-col address a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.42);
  transition: color var(--transition);
  line-height: 1.9;
}
.footer-col address a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { padding-block: 1.25rem; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ── ═══════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.two-col img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.two-col h2 { margin-bottom: 1.25rem; }
.two-col p { margin-bottom: 1rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border-lt);
  padding: 2rem 2.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pillar:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(15,74,44,0.07);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 0.875rem;
}
.pillar h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.pillar p  { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

.functions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border-lt);
}
.fn-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-lt);
  border-right: 1px solid var(--border-lt);
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.6;
  transition: background var(--transition);
}
.fn-item:hover { background: var(--mist); }
.fn-item:nth-child(even) { border-right: none; }
.fn-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--leaf);
  color: var(--fern);
}
.fn-icon svg { width: 14px; height: 14px; }

/* ── Team ────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(15,74,44,0.1);
}
.team-photo {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--leaf);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card-body { padding: 1.5rem; }
.team-card-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-role {
  display: block;
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 0.875rem;
}
.team-card-body p { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* ── Members Directory ───────────────────────────────────── */
.dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-lt);
}
.dir-count { font-size: 0.875rem; color: var(--slate); }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.6rem 1rem;
  min-width: 280px;
}
.search-wrap svg { width: 15px; height: 15px; color: var(--slate); flex-shrink: 0; }
.search-input {
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: transparent;
  width: 100%;
}
.search-input::placeholder { color: var(--slate); }

.dir-list { display: flex; flex-direction: column; }
.dir-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-lt);
  border-top: none;
  background: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.dir-item:first-child { border-top: 1px solid var(--border-lt); }
.dir-item:hover { background: var(--mist); border-color: var(--border); z-index: 1; position: relative; }
.dir-avatar {
  width: 52px; height: 52px;
  background: var(--leaf);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pine);
}
.dir-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 0.25rem; }
.dir-info { flex: 1; min-width: 0; }
.dir-info h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.dir-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--slate);
}
.dir-meta-item svg { width: 12px; height: 12px; color: var(--fern); }
.dir-meta-item a { color: var(--slate); transition: color var(--transition); }
.dir-meta-item a:hover { color: var(--pine); }
.dir-action a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  color: var(--pine);
  transition: var(--transition);
  white-space: nowrap;
}
.dir-action a:hover { background: var(--pine); color: var(--white); border-color: var(--pine); }
.no-results { display: none; text-align: center; padding: 4rem 1rem; color: var(--slate); }
.no-results.visible { display: block; }

/* ── Partners ────────────────────────────────────────────── */
.partners-list { display: flex; flex-direction: column; gap: 2rem; }
.partner-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem;
  border: 1px solid var(--border-lt);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.partner-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(15,74,44,0.07);
}
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--mist);
  aspect-ratio: 4/3;
}
.partner-logo-wrap img { max-height: 80px; width: auto; object-fit: contain; }
.partner-body h2 { font-size: 1.4rem; margin-bottom: 0.875rem; }
.partner-body p  { font-size: 0.9rem; color: var(--slate); line-height: 1.75; margin-bottom: 1.5rem; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--leaf);
}
.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(8,43,28,0.45);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-overlay svg { width: 28px; height: 28px; color: var(--white); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(8,43,28,0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.lb-close:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover, .lb-next:hover { color: var(--white); background: rgba(255,255,255,0.14); }
.lb-caption { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.45); text-align: center; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-panel {
  background: var(--forest);
  padding: 2.5rem;
  color: var(--white);
  position: sticky;
  top: calc(68px + 2rem);
}
.contact-panel h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-panel > p { color: rgba(255,255,255,0.45); font-size: 0.875rem; margin-bottom: 2rem; }
.c-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.c-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.c-icon svg { width: 15px; height: 15px; color: var(--mint); }
.c-item strong {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.375rem;
}
.c-item p, .c-item a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  transition: color var(--transition);
}
.c-item a:hover { color: var(--white); }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  padding: 2.5rem;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-row .form-group { margin-bottom: 0; }
label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone);
}
.req { color: var(--fern); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--fern);
  box-shadow: 0 0 0 3px rgba(31,132,80,0.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon {
  width: 56px; height: 56px;
  background: var(--leaf);
  border: 2px solid var(--fern);
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
}
.success-icon svg { width: 22px; height: 22px; color: var(--fern); }
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.form-success p  { color: var(--slate); }
.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ── News Page ───────────────────────────────────────────── */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-lt);
}
.news-featured-img {
  display: block; overflow: hidden;
  aspect-ratio: 16/10;
}
.news-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.news-featured-text h2 a { color: var(--ink); transition: color var(--transition); }
.news-featured-text h2 a:hover { color: var(--pine); }
.news-featured-text .body-lg { font-size: 1rem; color: var(--slate); line-height: 1.75; margin-bottom: 1.5rem; }

/* Article */
.article-hero { padding-block: clamp(3rem,6vw,5rem); background: var(--mist); border-bottom: 1px solid var(--border-lt); }
.article-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-body { max-width: 720px; margin-inline: auto; padding-block: var(--section-pad); }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2, .article-body h3 { margin-block: 2rem 1rem; }
.article-body img { width: 100%; margin-block: 2rem; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; display: block; margin-bottom: 3rem; }

/* 404 */
.not-found { text-align: center; padding-block: var(--section-pad); padding-top: calc(68px + var(--section-pad)); }
.not-found h1 { font-size: clamp(5rem,15vw,10rem); color: var(--leaf); margin-bottom: 0; }
.not-found h2 { margin-bottom: 1rem; }

/* Utilities */
.text-center { text-align: center; }
.text-reveal { color: var(--white); }
.body-lg { font-size: 1.0625rem; }

/* ── ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero-visual { display: none; }
  .hero-text { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-year-badge { right: 1rem; top: 1rem; }
  .about-img-col::after { display: none; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-logo-wrap { aspect-ratio: 2/1; max-width: 300px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.span-2 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--forest);
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    overflow-y: auto;
    max-height: calc(100svh - 68px);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a {
    padding: 0.9rem 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .dropdown {
    position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none;
    background: rgba(255,255,255,0.04);
    margin-bottom: 0.5rem;
  }
  .nav-toggle { display: flex; }
  .nav-cta { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
  .hero { min-height: auto; padding-block: 3rem 4rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .functions-list { grid-template-columns: 1fr; }
  .fn-item { border-right: none; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-block: 1rem; }
  .stat:last-child { border-bottom: none; }
  .dir-toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-btns .btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V3 — editorial, typographic, unexpected
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO V3 ─────────────────────────────────────────────────── */
.hv3 {
  background: var(--cream);
  padding-top: 68px;           /* match fixed nav height */
  border-bottom: 2px solid var(--gold);
}

/* meta strip — thin, spaced label row */
.hv3-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-lt);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-family: var(--font-body);
}

/* two-column layout: giant heading left, aside right */
.hv3-content {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: flex-end;
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* the huge display heading — fills left column */
.hv3-display {
  font-family: var(--font-display);
  margin: 0;
  line-height: 0.87;
  letter-spacing: -0.035em;
}

.hd-row { display: block; }

.hd-sm {
  font-size: clamp(1rem, 2.4vw, 2.1rem);
  font-weight: 400;
  font-style: normal;
  color: var(--stone);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.15em;
}

.hd-xl {
  font-size: clamp(3.8rem, 9.5vw, 11rem);
  font-weight: 400;
  font-style: italic;
  color: var(--pine);
  line-height: 0.88;
}

/* intentional stagger — second big line pushed right */
.hd-push { padding-left: 10%; }

/* right-side: tagline, buttons, micro-stat */
.hv3-aside {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-bottom: 0.25rem;
}

.hv3-desc {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.88;
  margin: 0;
}

.hv3-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* small inline stat at bottom of aside */
.hv3-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lt);
}
.hv3-badge strong {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hv3-badge span {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.65;
}

/* full-width photographic strip at base of hero */
.hv3-strip {
  position: relative;
  width: 100%;
  height: clamp(200px, 40vh, 480px);
  overflow: hidden;
}
.hv3-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65) saturate(0.6);
}
.hv3-strip-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,43,28,0.92) 0%, transparent 100%);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
.hv3-strip-bar > span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-body);
  max-width: 38%;
}
.hv3-strip-stats {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.hv3-strip-stats > span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.hv3-strip-stats strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  margin-right: 0.25rem;
  vertical-align: middle;
  line-height: 1;
}


/* ── ABOUT EDGE-TO-EDGE ──────────────────────────────────────── */
/* no .container — spans full viewport width */
.about-edge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* left column: dark green panel, image as texture */
.ae-img-col {
  position: relative;
  background: var(--forest);
  overflow: hidden;
}
.ae-img-col > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.22;
  filter: grayscale(0.4);
}
/* bottom gradient for reading the pull quote */
.ae-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  background: linear-gradient(to top, rgba(8,43,28,0.75) 0%, transparent 55%);
  z-index: 2;
}
.ae-pull {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 400px;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 0;
}
/* massive ghostly year watermark in top-right of green panel */
.ae-watermark {
  position: absolute;
  top: -0.15em;
  right: -0.08em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 14vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* right column: warm cream, text content */
.ae-text-col {
  background: var(--gold-lt);
  border-left: 3px solid var(--gold);
  display: flex;
  align-items: center;
}
.ae-inner {
  padding: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5rem);
  max-width: 580px;
}
.ae-inner h2 {
  margin-bottom: 1.25rem;
}
.ae-inner p {
  color: var(--stone);
  margin-bottom: 1rem;
  line-height: 1.82;
  font-size: 0.93rem;
}
.ae-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ── BENTO STATS GRID ────────────────────────────────────────── */
.bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 3px;
  background: var(--border);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.bento-cell {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bc-forest { background: var(--forest); }
.bc-warm   { background: var(--gold-lt); }
.bc-gold   { background: var(--gold); }
.bc-cream  { background: var(--cream); }

/* shared number — white on dark */
.bc-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 6rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 0.4rem;
}
.bc-l {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  font-family: var(--font-body);
}

/* warm-bg cell: dark version */
.bc-dark  { color: var(--ink) !important; }
.bc-l-dark { color: var(--slate) !important; }

/* cream cell: the year + copy */
.bc-yr {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 6rem);
  font-weight: 700;
  color: var(--pine);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 0.4rem;
}
.bc-yr-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 1.1rem;
}
.bc-copy {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.78;
  margin: 0;
  max-width: 260px;
}


/* ── BENEFITS LIST — editorial indexed ───────────────────────── */
.bl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 0;
}
.bl-head h2 { margin: 0; }
.bl-intro {
  font-size: 0.87rem;
  color: var(--slate);
  line-height: 1.82;
  max-width: 360px;
  margin: 0;
}

.bl-list {
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 0;
}

.bl-row {
  display: grid;
  grid-template-columns: 68px 1.1fr 2.2fr 88px;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-lt);
  position: relative;
  transition: background 0.2s ease;
}
.bl-row:last-child { border-bottom: none; }

/* amber left-border reveal on hover */
.bl-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-row:hover::before { transform: scaleY(1); }
.bl-row:hover { background: rgba(184,136,14,0.04); }

.bl-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bl-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.bl-body {
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.8;
  margin: 0;
}
.bl-link {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1.5px solid var(--pine);
  padding-bottom: 0.12rem;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  justify-self: end;
}
.bl-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.bl-foot {
  text-align: center;
  padding: 3.5rem 0 0;
}


/* ── RESPONSIVE — homepage V3 ────────────────────────────────── */
@media (max-width: 900px) {
  /* hero */
  .hv3-content {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }
  .hd-push { padding-left: 5%; }
  .hv3-strip-bar { padding: 1.25rem 1.5rem 1rem; }
  .hv3-strip-stats { gap: 1.25rem; }

  /* about */
  .about-edge {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ae-img-col { min-height: 340px; }
  .ae-watermark { font-size: clamp(6rem, 22vw, 10rem); top: -0.1em; }
  .ae-inner { padding: 3rem 2rem; max-width: 100%; }

  /* bento */
  .bento-row { grid-template-columns: 1fr 1fr; }
  .bento-cell { min-height: 180px; }

  /* benefits list */
  .bl-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bl-intro { max-width: 100%; }
  .bl-row {
    grid-template-columns: 52px 1fr 88px;
    grid-template-rows: auto auto;
    gap: 0.6rem 1rem;
    padding: 1.5rem 0;
  }
  .bl-num   { grid-column: 1; grid-row: 1; }
  .bl-title { grid-column: 2; grid-row: 1; align-self: center; }
  .bl-body  { grid-column: 1 / span 3; grid-row: 2; }
  .bl-link  { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
}

@media (max-width: 560px) {
  .hd-xl { font-size: clamp(3.2rem, 13vw, 5rem); }
  .hv3-strip { height: 200px; }
  .hv3-strip-stats { display: none; }
  .hv3-meta { font-size: 0.55rem; gap: 0.5rem; }
  .bento-row { grid-template-columns: 1fr 1fr; }
  .bento-cell { padding: 1.75rem 1.25rem; min-height: 150px; }
  .bl-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
  }
  .bl-link { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 0.25rem; }
  .ae-img-col { min-height: 280px; }
}


/* ═══════════════════════════════════════════════════════════════
   FDF-INSPIRED HOMEPAGE  — full-bleed hero, trending bar,
   spotlight cards, membership band, editorial news
   ═══════════════════════════════════════════════════════════════ */

/* ── Full-bleed Hero ─────────────────────────────────────────── */
.fh {
  position: relative;
  min-height: 82vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 68px; /* fixed nav height */
}

/* dual gradient: diagonal left opacity + bottom-up darkness */
.fh-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(8,43,28,0.92) 0%, rgba(8,43,28,0.6) 50%, rgba(8,43,28,0.18) 100%),
    linear-gradient(to top,  rgba(8,43,28,0.95) 0%, transparent 60%);
  z-index: 1;
}

.fh-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: var(--container);
}

.fh-eyebrow {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 1.2rem;
}

.fh-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin-bottom: 1.5rem;
}

.fh-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.78;
  max-width: 560px;
  margin-bottom: 2.25rem;
  font-family: var(--font-body);
}

.fh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Trending Bar ────────────────────────────────────────────── */
.trending-bar {
  position: relative;
  z-index: 3;
  background: rgba(4,22,13,0.97);
  border-top: 2px solid var(--gold);
}

.trending-inner {
  display: flex;
  align-items: center;
  height: 50px;
  overflow: hidden;
}

.trending-label {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  white-space: nowrap;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.trending-tags {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.trending-tag {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: color 0.2s;
  padding-right: 0;
}

.trending-tag::after {
  content: '·';
  margin: 0 1.1rem;
  color: rgba(255,255,255,0.2);
}

.trending-tag:last-child::after { display: none; }
.trending-tag:hover { color: var(--gold); }


/* ── Spotlight section ───────────────────────────────────────── */
.spotlight-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.sp-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.sp-hdr h2 { margin: 0; }

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--border-lt);
  border: 3px solid var(--border-lt);
}

.sp-card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.sp-card:hover {
  box-shadow: 0 8px 32px rgba(8,43,28,0.14);
  z-index: 1;
  position: relative;
}

.sp-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--leaf);
}

.sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.sp-card:hover .sp-img img { transform: scale(1.04); }

.sp-body {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  margin-bottom: 0.65rem;
}

.sp-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  flex: 1;
}

.sp-body h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.sp-body h3 a:hover { color: var(--pine); }

.sp-body p {
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.sp-link {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.sp-link:hover { color: var(--gold); border-color: var(--gold); }


/* ── Membership Band ─────────────────────────────────────────── */
.mb-band {
  background: var(--forest);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.mb-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.mb-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mb-stat { display: flex; flex-direction: column; }

.mb-n {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.035em;
}

.mb-l {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

.mb-cta {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: clamp(2rem, 4vw, 4.5rem);
}

.mb-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.mb-cta p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}


/* ── News Editorial Grid ─────────────────────────────────────── */
.ne-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3px;
  background: var(--border-lt);
  border: 3px solid var(--border-lt);
}

/* Featured left */
.ne-featured {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ne-featured-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--leaf);
  display: block;
}

.ne-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.ne-featured:hover .ne-featured-img img { transform: scale(1.03); }

.ne-featured-body {
  padding: 2rem 2.25rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ne-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}

.ne-meta {
  font-size: 0.75rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.ne-featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  flex: 1;
}

.ne-featured-body h2 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.ne-featured-body h2 a:hover { color: var(--pine); }

.ne-featured-body > p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Side stack — right */
.ne-side {
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.ne-side-item {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  gap: 1.25rem;
  border-bottom: 3px solid var(--border-lt);
}

.ne-side-item:last-child { border-bottom: none; }

.ne-side-img {
  flex-shrink: 0;
  width: 90px;
  height: 72px;
  overflow: hidden;
  display: block;
  background: var(--leaf);
  align-self: flex-start;
}

.ne-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.ne-side-item:hover .ne-side-img img { transform: scale(1.06); }

.ne-side-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ne-side-body h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  flex: 1;
}

.ne-side-body h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.ne-side-body h3 a:hover { color: var(--pine); }

.ne-side-body > p {
  font-size: 0.8rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-read {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.ne-read:hover { color: var(--gold); border-color: var(--gold); }


/* ── Responsive — FDF homepage ───────────────────────────────── */
@media (max-width: 900px) {
  .fh-headline { font-size: clamp(2rem, 7vw, 3.5rem); }
  .fh-sub { font-size: 0.92rem; max-width: 100%; }

  .sp-hdr { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sp-grid { grid-template-columns: 1fr 1fr; }

  .mb-band-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .mb-cta { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; }
  .mb-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

  .ne-grid { grid-template-columns: 1fr; }
  .ne-side { flex-direction: row; gap: 3px; background: var(--border-lt); }
  .ne-side-item { flex: 1; border-bottom: none; border-right: 3px solid var(--border-lt); }
  .ne-side-item:last-child { border-right: none; }
  .ne-side-item { flex-direction: column; }
  .ne-side-img { width: 100%; height: 140px; }
}

@media (max-width: 640px) {
  .fh { min-height: 75vh; }
  .fh-headline { font-size: clamp(1.8rem, 8.5vw, 2.8rem); }
  .sp-grid { grid-template-columns: 1fr; }
  .mb-stats { grid-template-columns: 1fr 1fr; }
  .ne-side { flex-direction: column; }
  .ne-side-item { border-right: none; border-bottom: 3px solid var(--border-lt); }
  .ne-side-item { flex-direction: row; gap: 1.25rem; }
  .ne-side-img { width: 80px; height: 64px; }
  .trending-bar { display: none; } /* too many items for small screens */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MEMBER PORTAL — Login, Dashboard, Public Profile
   ══════════════════════════════════════════════════════════ */

/* ── Login page ─────────────────────────────────────────────── */
.auth-shell {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}

.auth-left {
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.auth-left-inner { max-width: 320px; }
.auth-left-logo {
  height: 40px; width: auto;
  margin-bottom: 3rem;
  filter: brightness(0) invert(1); opacity: .9;
}
.auth-home-link { display: inline-block; }
.auth-left-copy h2 {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 700; color: #fff;
  line-height: 1.2; margin: 0 0 .75rem;
}
.auth-left-copy p {
  color: rgba(255,255,255,.6);
  font-size: .9rem; line-height: 1.65; margin: 0 0 1.75rem;
}
.auth-feature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.auth-feature-list li {
  display: flex; align-items: center; gap: .55rem;
  color: rgba(255,255,255,.75); font-size: .87rem;
}
.auth-feature-list li svg { color: var(--fern); flex-shrink: 0; }

.auth-right {
  background: #F5F7F5;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-hd { margin-bottom: 2rem; }
.auth-form-title { font-size: 1.65rem; font-weight: 700; color: var(--ink); margin: 0 0 .25rem; }
.auth-form-sub { font-size: .85rem; color: var(--slate); margin: 0; }

.auth-alert {
  display: flex; align-items: center; gap: .5rem;
  background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c;
  border-radius: 8px; padding: .7rem 1rem;
  font-size: .85rem; font-weight: 500; margin-bottom: 1.25rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-field { display: flex; flex-direction: column; gap: .4rem; }
.auth-label { font-size: .82rem; font-weight: 600; color: var(--stone); letter-spacing: .01em; }
.auth-input {
  width: 100%; height: 44px; padding: 0 .9rem;
  border: 1.5px solid #D1D9D4; border-radius: 8px;
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  background: #fff; transition: border-color .18s, box-shadow .18s; box-sizing: border-box;
}
.auth-input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(23,102,56,.12); }
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .auth-input { padding-right: 2.5rem; }
.auth-pass-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--slate); cursor: pointer; padding: .25rem;
  display: flex; align-items: center;
}
.auth-pass-toggle:hover { color: var(--sage); }
.auth-submit {
  height: 46px; background: var(--sage); color: #fff; border: none;
  border-radius: 8px; font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .18s, transform .1s; margin-top: .25rem;
}
.auth-submit:hover  { background: var(--fern); }
.auth-submit:active { transform: scale(.98); }
.auth-footer-note { font-size: .83rem; color: var(--slate); text-align: center; margin: .85rem 0 0; }
.auth-footer-note a { color: var(--sage); text-decoration: none; font-weight: 500; }
.auth-footer-note a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { min-height: 100vh; padding-top: 5rem; }
}


/* ── Flash ───────────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; border-radius: 9px;
  font-size: .87rem; font-weight: 500;
  margin-bottom: 1.5rem; animation: flash-in .25s ease;
}
@keyframes flash-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.flash span { flex: 1; }
.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; opacity: .5; padding: 0 .2rem; transition: opacity .15s;
}
.flash-close:hover { opacity: 1; }
.flash--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.flash--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }


/* ══════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════ */

/* Layout */
.dash-layout {
  display: flex;
  min-height: calc(100vh - 68px);
  margin-top: 68px;
}

/* Sidebar */
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0D1F14;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.dash-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.dash-avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--sage);
  margin: 0 auto .75rem;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  border: 2px solid rgba(255,255,255,.12);
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-company-nm {
  font-size: .8rem; font-weight: 600; color: #fff;
  line-height: 1.3; margin: 0 0 .35rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-view-public {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; color: rgba(255,255,255,.35);
  text-decoration: none; transition: color .15s;
}
.dash-view-public:hover { color: rgba(255,255,255,.7); }

.dash-nav {
  flex: 1;
  padding: .85rem .6rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.dash-nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem;
  border-radius: 7px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .85rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.dash-nav-item svg { flex-shrink: 0; }
.dash-nav-item:hover    { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.dash-nav-item.is-active { background: var(--sage); color: #fff; }

.dash-pill {
  margin-left: auto;
  font-size: .65rem; font-weight: 700; font-style: normal;
  padding: .1rem .4rem; border-radius: 999px;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.75);
}
.dash-pill--green { background: rgba(31,132,80,.45); color: #6EE7B7; }
.dash-nav-item.is-active .dash-pill { background: rgba(255,255,255,.25); color: #fff; }

.dash-logout {
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem 1.4rem;
  font-size: .8rem; color: rgba(255,255,255,.3);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.dash-logout:hover { color: rgba(255,255,255,.65); }

/* Main */
.dash-main {
  flex: 1;
  background: #F1F4F1;
  padding: 2rem 2rem;
  min-width: 0;
}
.dash-page-hd { margin-bottom: 1.5rem; }
.dash-page-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 .2rem; }
.dash-page-desc  { font-size: .85rem; color: var(--slate); margin: 0; }

/* Cards */
.dcard {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E3EAE4;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
}
.dcard-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #EEF2EE;
}
.dcard-title    { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 0; }
.dcard-hd-count { font-size: .78rem; font-weight: 600; color: var(--slate); }


/* ── Branding upload ─────────────────────────────────────────── */
.brand-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.brand-col { display: flex; flex-direction: column; gap: .4rem; }
.brand-label { font-size: .75rem; font-weight: 700; color: var(--stone); letter-spacing: .01em; }
.brand-hint  { font-size: .72rem; color: var(--slate); }

.brand-logo-zone {
  display: block; position: relative;
  width: 120px; height: 120px;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1.5px solid #D8E2DC; background: #F5F8F5;
  transition: border-color .2s;
}
.brand-logo-zone:hover { border-color: var(--sage); }
.brand-logo-zone:hover .brand-hover { opacity: 1; }
.brand-logo-zone input { display: none; }

.brand-banner-zone {
  display: block; position: relative;
  height: 160px; width: 100%;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1.5px solid #D8E2DC; background: #F5F8F5;
  transition: border-color .2s;
}
.brand-banner-zone:hover { border-color: var(--sage); }
.brand-banner-zone:hover .brand-hover { opacity: 1; }
.brand-banner-zone input { display: none; }

.brand-img-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-logo-init {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--sage);
}
.brand-banner-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: #B0BFB5;
  font-size: .8rem;
}
.brand-hover {
  position: absolute; inset: 0;
  background: rgba(8,43,28,.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .3rem;
  opacity: 0; transition: opacity .18s;
  color: #fff; font-size: .75rem; font-weight: 600;
}


/* ── Forms ─────────────────────────────────────────────────── */
.dform       { display: flex; flex-direction: column; gap: .9rem; }
.dform-row   { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.dform-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.dform-foot  { display: flex; padding-top: .25rem; }

.dfield { display: flex; flex-direction: column; gap: .3rem; }
.dfield-label {
  font-size: .78rem; font-weight: 700; color: var(--stone);
  display: flex; align-items: baseline; gap: .4rem;
}
.dfield-hint-inline { font-size: .72rem; font-weight: 400; color: var(--slate); }
.req-star { color: #e05252; }
.dfield-input {
  width: 100%; height: 40px;
  padding: 0 .8rem;
  border: 1.5px solid #D1D9D4;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: .88rem; color: var(--ink);
  background: #FAFCFA;
  transition: border-color .16s, box-shadow .16s;
  box-sizing: border-box; appearance: none;
}
.dfield-input:focus {
  outline: none; border-color: var(--sage); background: #fff;
  box-shadow: 0 0 0 3px rgba(23,102,56,.1);
}
.dfield-textarea { height: auto; padding: .65rem .8rem; resize: vertical; }
.dfield-select-wrap { position: relative; }
.dfield-select-wrap .dfield-input { cursor: pointer; padding-right: 2rem; }
.dfield-chevron {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--slate);
}

/* Buttons */
.dbtn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 0 1rem; height: 37px;
  border-radius: 7px;
  font-family: var(--font-body); font-size: .855rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.dbtn:active { transform: scale(.97); }
.dbtn--primary { background: var(--sage); color: #fff; border-color: var(--sage); }
.dbtn--primary:hover { background: var(--fern); border-color: var(--fern); }
.dbtn--ghost { background: transparent; color: var(--stone); border-color: #C5D2CB; }
.dbtn--ghost:hover { background: #EFF5F1; border-color: var(--sage); color: var(--sage); }
.dbtn--danger { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; }
.dbtn--danger:hover { background: #FEE2E2; }
.dbtn--sm { height: 30px; padding: 0 .75rem; font-size: .78rem; border-radius: 6px; }


/* ── Gallery ───────────────────────────────────────────────── */
.gallery-dz {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.25rem 1.5rem;
  border: 2px dashed #C5D2CB; border-radius: 10px;
  cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s;
  background: #FAFCFA; gap: .35rem; color: var(--slate);
}
.gallery-dz:hover, .gallery-dz.is-over { border-color: var(--sage); background: #EEF7F2; }
.gallery-dz input { display: none; }
.gallery-dz-title { font-size: .92rem; font-weight: 600; color: var(--stone); margin: .35rem 0 0; }
.gallery-dz-link  { color: var(--sage); text-decoration: underline; }
.gallery-dz-sub   { font-size: .78rem; color: var(--slate); margin: 0; }
.gallery-dz-sel   {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 600; color: var(--sage);
  background: #E4F5ED; padding: .25rem .7rem; border-radius: 999px; margin-top: .2rem;
}

.gl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .55rem;
}
.gl-item {
  position: relative; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden; background: var(--leaf);
}
.gl-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.gl-item:hover .gl-overlay { opacity: 1; }
.gl-del-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(185,28,28,.9); border: none; color: #fff;
  height: 32px; padding: 0 .75rem; border-radius: 7px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.gl-del-btn:hover { background: #991b1b; }


/* ── Job list (dashboard) ─────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: .55rem; }
.job-row {
  display: flex;
  border: 1px solid #E3EAE4; border-radius: 9px;
  overflow: hidden; background: #fff;
  transition: box-shadow .15s;
}
.job-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.job-row-accent { width: 4px; flex-shrink: 0; }
.job-row-accent--live   { background: var(--fern); }
.job-row-accent--paused { background: #C5D2CB; }
.job-row-body { flex: 1; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.job-row-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.job-row-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-row-title { font-size: .875rem; font-weight: 700; color: var(--ink); }
.job-type-chip {
  display: inline-block;
  background: var(--gold-lt); color: var(--gold);
  font-size: .67rem; font-weight: 700;
  padding: .12rem .45rem; border-radius: 4px; text-transform: capitalize;
}
.job-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
}
.job-badge--live   { background: #ECFDF5; color: #065F46; }
.job-badge--paused { background: #F1F5F9; color: #64748B; }
.job-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.job-row-meta {
  display: flex; flex-wrap: wrap; gap: .45rem;
  font-size: .77rem; color: var(--slate);
}
.job-row-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.job-row-actions { display: flex; gap: .35rem; padding-top: .3rem; }

/* Empty state */
.dash-empty {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--slate);
  background: #fff; border-radius: 12px; border: 1px solid #E3EAE4;
}
.dash-empty p { margin: 0; font-size: .88rem; }

/* Mobile */
@media (max-width: 860px) {
  .dash-layout  { flex-direction: column; }
  .dash-sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center;
    padding: .4rem .6rem; overflow-x: auto; gap: .2rem;
  }
  .dash-brand   { display: none; }
  .dash-nav     { flex-direction: row; padding: 0; flex: 1; gap: .15rem; }
  .dash-nav-item { white-space: nowrap; padding: .45rem .65rem; font-size: .8rem; }
  .dash-pill    { display: none; }
  .dash-logout  { border-top: none; padding: .45rem .7rem; border-left: 1px solid rgba(255,255,255,.08); }
  .dash-main    { padding: 1.25rem 1rem; }
  .brand-grid   { grid-template-columns: 1fr; }
  .dform-row    { grid-template-columns: 1fr; }
  .dform-row--3 { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   PUBLIC MEMBER PROFILE
   ══════════════════════════════════════════════════════════ */

.mp-banner {
  position: relative; min-height: 280px;
  background: var(--forest); background-size: cover; background-position: center;
  padding-top: 68px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mp-banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,43,28,.92) 0%, rgba(8,43,28,.45) 65%),
    linear-gradient(to top, rgba(8,43,28,.9) 0%, transparent 50%);
}
.mp-banner-content { position: relative; z-index: 1; padding-bottom: 2rem; }

.mp-breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .77rem; color: rgba(255,255,255,.55); margin-bottom: 1.25rem;
}
.mp-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.mp-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.mp-breadcrumb span:last-child { color: rgba(255,255,255,.85); }

.mp-identity { display: flex; align-items: center; gap: 1.1rem; }
.mp-logo {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: 10px; background: #fff;
  border: 2.5px solid rgba(255,255,255,.25);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.mp-logo-initial { font-size: 1.8rem; font-weight: 800; color: var(--sage); }
.mp-identity-text { display: flex; flex-direction: column; gap: .3rem; }
.mp-sector-tag {
  display: inline-block;
  background: rgba(255,255,255,.18); color: rgba(255,255,255,.85);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 4px; align-self: flex-start;
}
.mp-company-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700; color: #fff; margin: 0; line-height: 1.15;
}
.mp-location-hint {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: rgba(255,255,255,.55); margin: 0;
}

.mp-body { padding-top: 2rem; padding-bottom: 4rem; }
.mp-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 2rem; align-items: start;
}
.mp-sidebar {
  position: sticky; top: calc(68px + 1.5rem);
  display: flex; flex-direction: column; gap: .85rem;
}
.mp-actions { display: flex; flex-direction: column; gap: .5rem; }
.mp-action-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: background .15s, transform .1s;
}
.mp-action-btn:active { transform: scale(.97); }
.mp-action-btn--primary { background: var(--sage); color: #fff; }
.mp-action-btn--primary:hover { background: var(--fern); }
.mp-action-btn--ghost { background: #fff; color: var(--stone); border: 1.5px solid #D8E2DC; }
.mp-action-btn--ghost:hover { border-color: var(--sage); color: var(--sage); }

.mp-contact-card {
  background: #fff; border: 1px solid #E4EAE6;
  border-radius: 10px; padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mp-contact-title {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 .85rem;
}
.mp-contact-list { margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.mp-contact-item { display: contents; }
.mp-contact-item dt {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700;
  color: var(--slate); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .15rem;
}
.mp-contact-item dt svg { color: var(--sage); flex-shrink: 0; }
.mp-contact-item dd {
  font-size: .84rem; color: var(--stone);
  line-height: 1.5; margin: 0 0 .6rem; padding-left: 1.35rem;
}
.mp-contact-item:last-child dd { margin-bottom: 0; }
.mp-contact-item dd a { color: var(--sage); text-decoration: none; }
.mp-contact-item dd a:hover { text-decoration: underline; }

.mp-verified-badge {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem 1rem;
  background: var(--leaf); border-radius: 9px; border: 1px solid var(--border-lt);
}
.mp-verified-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: var(--sage);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.mp-verified-title { font-size: .78rem; font-weight: 700; color: var(--ink); margin: 0 0 .1rem; }
.mp-verified-sub   { font-size: .7rem; color: var(--slate); margin: 0; line-height: 1.3; }

.mp-content { display: flex; flex-direction: column; }
.mp-section { margin-bottom: 2.25rem; }
.mp-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .95rem; font-weight: 700; color: var(--ink);
  margin: 0 0 1rem; padding-bottom: .6rem;
  border-bottom: 1.5px solid #EEF2EF;
}
.mp-section-count { font-size: .75rem; font-weight: 600; color: var(--slate); }
.mp-description { font-size: .93rem; color: var(--stone); line-height: 1.75; }

.mp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .55rem;
}
.mp-gallery-item {
  aspect-ratio: 1; border-radius: 8px;
  overflow: hidden; display: block; background: var(--leaf);
}
.mp-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s var(--ease);
}
.mp-gallery-item:hover img { transform: scale(1.06); }

.mp-jobs { display: flex; flex-direction: column; gap: .85rem; }
.mp-job-card {
  background: #fff; border: 1px solid #E4EAE6;
  border-radius: 10px; border-left: 3px solid var(--sage);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mp-job-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .75rem; margin-bottom: .6rem;
}
.mp-job-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.mp-job-meta  { display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-job-meta-item {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .77rem; color: var(--slate);
}
.mp-job-type-chip {
  display: inline-block; flex-shrink: 0;
  background: var(--gold-lt); color: var(--gold);
  font-size: .68rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 4px;
  text-transform: capitalize; white-space: nowrap;
}
.mp-job-desc { font-size: .87rem; color: var(--stone); line-height: 1.68; margin: .75rem 0 1rem; }
.mp-apply-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; background: var(--sage); color: #fff;
  border-radius: 7px; text-decoration: none;
  font-size: .82rem; font-weight: 600; transition: background .15s;
}
.mp-apply-btn:hover { background: var(--fern); }

.mp-empty-state {
  text-align: center; padding: 4rem 2rem;
  background: #fff; border-radius: 12px; border: 1px solid #E4EAE6;
}
.mp-empty-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: var(--leaf); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--sage);
}
.mp-empty-state h3 { font-size: 1rem; color: var(--ink); margin: 0 0 .4rem; }
.mp-empty-state p  { font-size: .88rem; color: var(--slate); margin: 0; }

.mp-footer-strip { background: var(--leaf); border-top: 1px solid var(--border-lt); padding: 1.25rem 0; }
.mp-footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.mp-back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--stone);
  text-decoration: none; transition: color .15s;
}
.mp-back-link:hover { color: var(--sage); }

@media (max-width: 900px) {
  .mp-grid    { grid-template-columns: 1fr; }
  .mp-sidebar { position: static; }
  .mp-actions { flex-direction: row; }
  .mp-action-btn { flex: 1; }
}
@media (max-width: 580px) {
  .mp-banner  { min-height: 230px; }
  .mp-company-name { font-size: 1.3rem; }
  .mp-logo    { width: 52px; height: 52px; }
}
