/* ==========================================================================
   KZN CRD — KwaZulu-Natal Centre for Rural Development
   Main stylesheet
   --------------------------------------------------------------------------
   1. Tokens          6. Hero            11. Tables
   2. Base            7. Sections        12. Forms
   3. Utilities       8. Cards           13. Footer
   4. Top bar         9. Stats / steps   14. Cookie banner
   5. Header / nav   10. Team           15. Responsive
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --green-950: #0f3220;
  --green-900: #133d28;
  --green-800: #1b4d2e;   /* primary */
  --green-700: #245c38;
  --green-600: #2e6b3f;
  --gold-600: #b08a1c;
  --gold-500: #c9a227;    /* secondary */
  --gold-400: #e2ba48;
  --gold-100: #f6ecc9;
  --cream-50: #fcfaf4;
  --cream-100: #f7f1e3;
  --cream-200: #ede3cb;
  --red-600: #c0392b;
  --blue-700: #1f4e8c;
  --orange-500: #e67e22;
  --ink: #1d2b22;
  --ink-soft: #3d4a41;
  --muted: #5d6a61;
  --line: #e4dccb;
  --white: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 50, 32, .06), 0 2px 8px rgba(15, 50, 32, .05);
  --shadow: 0 10px 30px rgba(15, 50, 32, .10);
  --shadow-lg: 0 24px 60px rgba(15, 50, 32, .18);
  --container: 1200px;
  --header-h: 84px;

  /* Zulu beadwork triangle strip, used as a brand divider */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='14' viewBox='0 0 144 14'%3E%3Cpath d='M0 14 6 0l6 14z' fill='%23c9a227'/%3E%3Cpath d='M12 14 18 0l6 14z' fill='%231b4d2e'/%3E%3Cpath d='M24 14 30 0l6 14z' fill='%23c0392b'/%3E%3Cpath d='M36 14 42 0l6 14z' fill='%231f4e8c'/%3E%3Cpath d='M48 14 54 0l6 14z' fill='%23c9a227'/%3E%3Cpath d='M60 14 66 0l6 14z' fill='%23ffffff'/%3E%3Cpath d='M72 14 78 0l6 14z' fill='%23e67e22'/%3E%3Cpath d='M84 14 90 0l6 14z' fill='%232e6b3f'/%3E%3Cpath d='M96 14 102 0l6 14z' fill='%23c0392b'/%3E%3Cpath d='M108 14 114 0l6 14z' fill='%23c9a227'/%3E%3Cpath d='M120 14 126 0l6 14z' fill='%231f4e8c'/%3E%3Cpath d='M132 14 138 0l6 14z' fill='%231b4d2e'/%3E%3C/svg%3E");
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--green-800); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-400); color: var(--green-950); }

/* Elements hidden with the "hidden" attribute (used by the date rules in main.js) */
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold-500); color: var(--green-950); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. Utilities ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pattern-strip { height: 14px; background: var(--pattern) repeat-x; background-size: 144px 14px; }
.pattern-strip--sm { height: 8px; background-size: 82px 8px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: .8rem;
}
.on-dark .eyebrow { color: var(--gold-400); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-900); color: var(--white); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-950); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--green-900); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-500); color: var(--green-950);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.badge--outline { background: transparent; border: 1px solid currentColor; color: var(--gold-400); }

/* 4. Top bar -------------------------------------------------------------- */
.topbar { background: var(--green-950); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold-400); }
.topbar__sep { opacity: .35; }

/* 5. Header / navigation ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 3px solid var(--gold-500);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); max-width: 1340px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-800); flex: none; }
.brand img { width: 58px; height: 58px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name strong { font-family: var(--font-serif); font-size: 1rem; white-space: nowrap; }
.brand__name span { font-size: .74rem; color: var(--gold-600); font-weight: 600; letter-spacing: .04em; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font-size: .93rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--green-800); background: var(--cream-100); }
.nav-link.is-active { color: var(--green-800); box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav-link .chev { width: 16px; height: 16px; flex: none; color: var(--gold-600); transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: min(760px, 92vw); background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--green-800);
  padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.mega--sm { width: 340px; grid-template-columns: 1fr; }
.mega--lg { width: min(960px, 94vw); grid-template-columns: repeat(4, 1fr); }
.mega--md { width: min(560px, 92vw); grid-template-columns: repeat(2, 1fr); }
.has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin: 0 0 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .93rem; }
.mega li a:hover { color: var(--green-700); padding-left: 4px; transition: padding .15s; }
.mega__feature { background: var(--green-800); color: var(--white); border-radius: var(--radius-sm); padding: 18px; }
.mega__feature h3 { color: var(--gold-400); font-size: 1.05rem; margin-bottom: .4rem; }
.mega__feature p { font-size: .86rem; color: rgba(255,255,255,.85); margin-bottom: .8rem; }

.header-cta { display: flex; gap: 10px; flex: none; padding-left: 8px; border-left: 1px solid var(--line); }
.header-cta .btn-outline.is-active { background: var(--green-800); color: var(--white); }
.header-cta .btn-gold.is-active { box-shadow: inset 0 0 0 2px var(--green-800); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--cream-100); color: var(--green-800); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* 6. Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--green-800); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 85% 0%, rgba(201,162,39,.22), transparent 55%),
              linear-gradient(135deg, var(--green-900), var(--green-800) 60%, var(--green-700));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero__tagline { font-family: var(--font-serif); font-style: italic; color: var(--gold-400); font-size: 1.35rem; margin-bottom: .4rem; }
.hero__pillars { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; font-size: 1.02rem; }
.hero__pillars span { color: var(--gold-400); padding: 0 6px; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 90px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__seal { position: absolute; left: -28px; bottom: -28px; width: 132px; height: 132px; border-radius: 50%; background: var(--white); padding: 6px; box-shadow: var(--shadow-lg); }
.hero__chip {
  position: absolute; right: 18px; top: 18px; background: rgba(15,50,32,.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(226,186,72,.5); color: var(--white); border-radius: var(--radius); padding: 12px 16px; font-size: .85rem; max-width: 220px;
}
.hero__chip strong { display: block; color: var(--gold-400); font-family: var(--font-serif); font-size: 1.05rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .85rem; color: rgba(255,255,255,.8); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--gold-400); }

/* Summit announcement / countdown */
.announce { background: var(--cream-100); border-bottom: 1px solid var(--line); }
.announce .container { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.announce__copy h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.announce__copy p { margin: 0; color: var(--muted); font-size: .92rem; }
.countdown { display: flex; gap: 8px; }
.countdown__unit { background: var(--green-800); color: var(--white); border-radius: var(--radius-sm); min-width: 66px; padding: 8px 6px; text-align: center; }
.countdown__unit b { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-400); line-height: 1.1; }
.countdown__unit small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* Inner page banner */
.page-hero { background: linear-gradient(120deg, var(--green-900), var(--green-800)); color: var(--white); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 46px solid rgba(201,162,39,.12);
}
.page-hero .container { padding-top: 56px; padding-bottom: 60px; position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 720px; font-size: 1.08rem; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; }
.breadcrumb li { color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 7. Sections ------------------------------------------------------------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-100); }
.section--white { background: var(--white); }
.section--green { background: var(--green-800); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }
.section--green p { color: rgba(255,255,255,.85); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--green .section-head p { color: rgba(255,255,255,.82); }
.section-head h2 { position: relative; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split--60 { grid-template-columns: 1.3fr 1fr; }

.quote {
  background: var(--green-800); color: var(--white); border-left: 6px solid var(--gold-500);
  border-radius: var(--radius); padding: 26px 30px; font-family: var(--font-serif);
  font-style: italic; font-size: 1.18rem; line-height: 1.6; margin: 0 0 1.4rem;
}
.quote p { margin: 0; color: inherit; }

.diamond-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.diamond-list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.diamond-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; background: var(--gold-500); transform: rotate(45deg); }
.diamond-list strong { color: var(--green-800); }
.section--green .diamond-list strong,
.card--dark .diamond-list strong { color: var(--gold-400); }
.card--dark .diamond-list li { color: var(--white); }
.diamond-list--cols { columns: 2; column-gap: 40px; }
.diamond-list--cols li { break-inside: avoid; }

/* 8. Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card > :last-child { margin-bottom: 0; }
.card__kicker { font-size: .8rem; font-weight: 700; color: var(--gold-600); margin-bottom: .6rem; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-100); color: var(--green-800); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform .2s; }
.card__link:hover::after { transform: translateX(4px); }

/* Coloured top border cards — the four pillars */
.pillar { border-top: 5px solid var(--gold-500); background: var(--cream-100); border-left: 0; border-right: 0; border-bottom: 0; }
.pillar--green { border-top-color: var(--green-600); }
.pillar--red { border-top-color: var(--red-600); }
.pillar--blue { border-top-color: var(--blue-700); }

.card--dark { background: var(--green-800); border-color: var(--green-700); color: var(--white); }
.card--dark h3 { color: var(--gold-400); }
.card--dark p { color: rgba(255,255,255,.85); }

/* Quick links (government-portal style tiles) */
.quicklinks { margin-top: -54px; position: relative; z-index: 2; }
.quicklinks .grid { gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quicklink {
  display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); transition: background .2s;
}
.quicklink:last-child { border-right: 0; }
.quicklink:hover { background: var(--cream-100); color: var(--ink); }
.quicklink__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-800); color: var(--gold-400); display: grid; place-items: center; }
.quicklink__icon svg { width: 24px; height: 24px; }
.quicklink strong { display: block; font-family: var(--font-serif); color: var(--green-800); font-size: 1.05rem; }
.quicklink span { font-size: .86rem; color: var(--muted); }

/* Membership tiers */
.tier { position: relative; padding: 0; overflow: hidden; }
.tier__head { padding: 26px 28px 22px; background: var(--cream-200); }
.tier__cat { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.tier__name { font-size: 1.4rem; margin: .2rem 0 .3rem; }
.tier__price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.tier__price small { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.tier__for { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.tier__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tier__body .diamond-list { flex: 1; }
.tier__plus { font-size: .85rem; font-weight: 700; color: var(--gold-600); margin-bottom: .8rem; }
.tier--growth .tier__head { background: var(--green-800); }
.tier--growth .tier__head * { color: var(--white); }
.tier--growth .tier__price { color: var(--gold-400); }
.tier--premier { border: 2px solid var(--gold-500); }
.tier--premier .tier__head { background: var(--gold-500); }
.tier--premier .tier__head * { color: var(--green-950); }
.tier__ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--green-800); color: var(--gold-400); font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 4px 40px; text-transform: uppercase; }

/* Team */
.team-card { text-align: center; align-items: center; border-bottom: 4px solid var(--gold-500); }
.team-card img { width: 150px; height: 150px; border-radius: 50%; margin-bottom: 18px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.team-card p { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin: 0; }

/* Contact person cards */
.contact-card { background: var(--green-800); color: var(--white); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { color: var(--white); margin-bottom: .1rem; font-size: 1.15rem; }
.contact-card .role { color: var(--gold-400); font-weight: 600; font-size: .88rem; margin-bottom: 14px; display: block; }
.contact-card a { color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 4px 0; word-break: break-word; }
.contact-card a:hover { color: var(--gold-400); }
.contact-card svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; }

/* Partner logo-less tiles */
.partner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.partner__mark { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--cream-100); color: var(--green-800); font-family: var(--font-serif); font-weight: 700; }
.partner strong { display: block; color: var(--green-800); line-height: 1.3; }
.partner span { font-size: .85rem; color: var(--muted); }

/* Pathway (tripartite) */
.pathway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: path; }
.pathway__step { position: relative; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); }
.pathway__step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pathway__step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pathway__step + .pathway__step { border-left: 0; }
.pathway__step::before { counter-increment: path; content: counter(path, decimal-leading-zero); font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--gold-500); display: block; line-height: 1; margin-bottom: 12px; }
.pathway__step h3 { font-size: 1.15rem; }
.pathway__step .role { font-size: .85rem; font-weight: 700; color: var(--green-600); display: block; margin-bottom: 8px; }
.pathway__step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* 9. Stats / steps -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--green-800); color: var(--white); border-radius: var(--radius); padding: 26px 18px; text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--gold-400); line-height: 1.05; }
.stat__label { font-size: .9rem; color: rgba(255,255,255,.85); margin-top: 6px; }
.stats--light .stat { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.stats--light .stat__num { color: var(--green-800); }
.stats--light .stat__label { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--green-950);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.section--green .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--green .step h3 { color: var(--white); }
.section--green .step p { color: rgba(255,255,255,.8); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--cream-200); }
.timeline li { position: relative; padding: 0 0 28px 52px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--gold-500); }
.timeline__date { font-size: .8rem; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 { font-size: 1.12rem; margin: .2rem 0 .3rem; }
.timeline p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.cta-band .container { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; font-size: 1.06rem; }
.cta-band::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(201,162,39,.12); }

/* Notice / alert */
.notice { display: flex; gap: 16px; align-items: flex-start; background: var(--gold-100); border: 1px solid #ead9a0; border-left: 6px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px 22px; }
.notice svg { width: 24px; height: 24px; flex: none; color: var(--gold-600); }
.notice p { margin: 0; }
.notice--green { background: #e8f1ea; border-color: #c9ddcd; border-left-color: var(--green-600); }
.notice--green svg { color: var(--green-600); }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; color: var(--green-800); font-size: 1.05rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-600); font-weight: 400; transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion .accordion__body { padding: 0 0 20px; color: var(--ink-soft); }

/* 11. Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--green-800); color: var(--white); font-weight: 600; font-size: .9rem; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { background: var(--cream-100); color: var(--green-800); font-weight: 700; width: 34%; }
.table--compare td, .table--compare th[scope="col"] { text-align: center; }
.table--compare tbody th { width: auto; background: var(--white); font-weight: 500; color: var(--ink); }
.table--compare thead th.is-premier { background: var(--gold-500); color: var(--green-950); }
.table--compare .group td { background: var(--cream-100); text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-800); color: var(--white); }
.tick svg { width: 14px; height: 14px; }
.dash { color: #b3b9b4; }

/* 12. Forms --------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .fieldset legend { font-weight: 600; font-size: .9rem; color: var(--green-900); }
.req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream-50); font: inherit; font-size: .96rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: var(--white); box-shadow: 0 0 0 4px rgba(46,107,63,.14); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); background: #fdf4f3; }
.field-error { color: var(--red-600); font-size: .82rem; font-weight: 500; }
.field input[type="file"] { padding: 10px; background: var(--white); }

.fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.fieldset legend { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--green-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.fieldset legend b { color: var(--gold-400); }
.fieldset.has-error .choice-grid { outline: 2px solid var(--red-600); outline-offset: 6px; border-radius: 6px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.choice-grid--4 { grid-template-columns: repeat(4, 1fr); }
.choice { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; cursor: pointer; line-height: 1.4; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-800); flex: none; }

.tier-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier-pick label { position: relative; display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 50px; cursor: pointer; background: var(--cream-50); transition: border-color .2s, background .2s; }
.tier-pick input { position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; accent-color: var(--green-800); }
.tier-pick strong { display: block; color: var(--green-800); font-family: var(--font-serif); font-size: 1.1rem; }
.tier-pick span { font-size: .88rem; color: var(--muted); }
.tier-pick label:has(input:checked) { border-color: var(--green-800); background: #eef5ef; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-800); flex: none; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-success { display: block; background: #e8f1ea; color: var(--green-900); border: 1px solid #c9ddcd; }
.form-status.is-error { display: block; background: #fbeceb; color: #8d2a20; border: 1px solid #efc7c2; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-actions small { color: var(--muted); }

.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.bank-card { background: var(--cream-100); border: 1.5px dashed var(--gold-500); border-radius: var(--radius); padding: 22px 24px; }
.bank-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .95rem; }
.bank-card dt { font-weight: 700; color: var(--green-800); }
.bank-card dd { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; counter-reset: doc; }
.checklist li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { counter-increment: doc; content: counter(doc, decimal-leading-zero); font-weight: 700; color: var(--gold-600); font-size: .9rem; }
.checklist .fmt { font-size: .8rem; color: var(--muted); background: var(--cream-100); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16/10; background: var(--cream-100); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Prose (privacy etc.) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }

/* 13. Footer -------------------------------------------------------------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.78); font-size: .93rem; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.footer__brand img { width: 84px; height: 84px; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-400); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold-400); flex: none; margin-top: 4px; }
.footer__creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer__creds span { border: 1px solid rgba(226,186,72,.4); color: var(--gold-400); border-radius: 999px; padding: 3px 12px; font-size: .76rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 22px; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer__bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom li { margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.85); cursor: pointer; font-size: inherit; }
.link-button:hover { color: var(--gold-400); }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--green-950); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 90; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 22px; height: 22px; margin: auto; }

/* 14. Cookie banner ------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold-500);
  padding: 20px 22px; display: none; gap: 18px; align-items: center;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cookie-banner .btn-row { flex: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 15. Responsive ---------------------------------------------------------- */
/* Header: medium screens get tighter spacing so the menu stays on one row */
@media (max-width: 1360px) {
  .site-header .container { gap: 14px; }
  .brand__name span { display: none; }
  .main-nav > ul { gap: 0; }
  .nav-link { padding: 10px 8px; font-size: .88rem; }
  .header-cta { gap: 8px; padding-left: 6px; }
  .header-cta .btn { padding: 8px 13px; font-size: .84rem; }
}

/* Header: below 1200px the menu moves into the slide-in panel (hamburger) */
@media (max-width: 1199px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--white); z-index: 150;
    padding: 84px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
    margin: 0;
  }
  .main-nav.is-open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 1rem; }
  .nav-link.is-active { box-shadow: inset 3px 0 0 var(--gold-500); }
  .mega, .mega--sm, .mega--md, .mega--lg {
    position: static; transform: none; width: auto; box-shadow: none; border-top: 0; padding: 0 6px 16px;
    grid-template-columns: 1fr; gap: 16px; display: none; opacity: 1; visibility: visible;
  }
  .has-mega.is-open > .mega { display: grid; transform: none; }
  .mega__feature { display: none; }
  .main-nav__cta { display: grid !important; gap: 10px; margin-top: 22px; }
  .nav-close { display: grid !important; }
  /* Sits just under the sticky header (z-index 100), so the slide-in menu inside the header stays on top */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,50,32,.5); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* Page layout: tablets */
@media (max-width: 1024px) {
  .hero__grid, .split, .split--60 { grid-template-columns: 1fr; gap: 40px; }
  .hero__grid { padding: 56px 0 90px; }
  .hero__seal { width: 104px; height: 104px; left: 12px; bottom: -36px; }
  .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quicklinks .grid { grid-template-columns: repeat(2, 1fr); }
  .quicklink:nth-child(2) { border-right: 0; }
  .quicklink:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .announce .container { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .pathway { grid-template-columns: 1fr; }
  .pathway__step, .pathway__step:first-child, .pathway__step:last-child { border-radius: 0; }
  .pathway__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .pathway__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .pathway__step + .pathway__step { border-left: 1px solid var(--line); border-top: 0; }
  .choice-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .main-nav__cta, .nav-close, .nav-backdrop { display: none !important; }
  /* Desktop: open dropdowns on hover or keyboard focus, no JavaScript needed */
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  /* Invisible bridge so the menu stays open while the mouse moves down to it */
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
  /* The wide About Us menu is centred on the page (not under its button) so it never runs off screen */
  .main-nav > ul > li.mega-wide { position: static; }
  .mega--lg { top: 100%; }
  .mega--lg::before { top: -32px; height: 32px; }
}

@media (max-width: 720px) {
  body { font-size: .97rem; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  /* Phones: keep only the phone number and "Become a Member" in the top bar */
  .topbar__info .topbar__item:first-child, .topbar__info .topbar__item:last-child, .topbar__sep { display: none; }
  .topbar__links .hide-sm { display: none; }
  .brand img { width: 48px; height: 48px; }
  .brand__name strong { font-size: .95rem; }
  .brand__name span { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid--3, .tier-pick, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 20px 12px; }
  .quicklinks { margin-top: -40px; }
  .quicklinks .grid { grid-template-columns: 1fr; }
  .quicklink { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .quicklink:last-child { border-bottom: 0; }
  .choice-grid, .choice-grid--4 { grid-template-columns: 1fr 1fr; }
  .diamond-list--cols { columns: 1; }
  .form-card { padding: 24px 18px; border-radius: var(--radius); }
  .footer__main { grid-template-columns: 1fr; gap: 32px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .countdown__unit { min-width: 0; flex: 1; }
  .hero__chip { display: none; }
  .checklist li { grid-template-columns: 34px 1fr; }
  .checklist .fmt { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .cookie-banner, .back-to-top, .cta-band, .pattern-strip { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
}
