:root {
  --navy: #062d66;
  --navy-dark: #041f47;
  --teal: #5b8090;        /* brand accent: graphics, borders, large text */
  --teal-dark: #3e6271;   /* text-safe teal (AA on light backgrounds) */
  --teal-light: #d9e3e7;
  --beige: #faf7f0;
  --beige-dark: #f1ebdf;
  --gold: #c9a227;        /* sparing highlight */
  --ink: #1b2433;
  --white: #ffffff;
  --radius: 10px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--gold);
  border-radius: 2px;
}
h2.center { text-align: center; }
h2.center::after { margin-left: auto; margin-right: auto; }

p { margin: 0 0 1rem; }
a { color: var(--navy); }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.97);
  border-bottom: 1px solid #e3dccd;
  box-shadow: 0 2px 12px rgba(6, 45, 102, 0.08);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 70%, var(--teal) 70% 92%, var(--gold) 92%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  text-decoration: none;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand-mark { width: 44px; height: 44px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal-dark); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.btn-primary:hover { background: var(--teal-dark); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--beige) 0%, #f3f1ea 45%, #e2eaec 100%);
  color: var(--ink);
  padding: 3.5rem 0 calc(clamp(170px, 20vw, 290px) + 1rem);
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-logo { margin: 0 auto 0.5rem; width: min(440px, 82%); }
.hero-logo img { width: 100%; }
.hero-sub {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin-bottom: 1.5rem;
}
.hero-tagline { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; text-wrap: balance; line-height: 1.35; }
.hero-lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-scene {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(170px, 20vw, 290px);
  display: block;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--beige-dark); }
.lead { font-size: 1.2rem; }
.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Commitment */
.commitment {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #e9eef2;
  position: relative;
}
.commitment .eyebrow { color: var(--gold); }
.commit-title {
  color: var(--white);
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  text-wrap: balance;
}
.commit-sub {
  text-align: center;
  max-width: 680px;
  margin: 1rem auto 2.75rem;
  font-size: 1.2rem;
  color: #dbe4ea;
}
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 227, 231, 0.25);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
}
.pillar-icon {
  width: 56px; height: 56px;
  padding: 10px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  margin-bottom: 0.9rem;
}
.pillar h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 0.4rem; }
.pillar p { margin: 0; color: #dbe4ea; }
.commit-close {
  text-align: center;
  margin: 2.75rem 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--gold);
}

/* Regions */
.regions-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.region-map { margin: 0; }
.region-map svg { width: 100%; height: auto; display: block; }
.region-map ellipse { stroke: var(--teal); stroke-width: 1; }
.region-map figcaption { font-size: 0.88rem; color: var(--teal-dark); margin-top: 0.4rem; text-align: center; }
.regions-grid-title { font-size: 1.25rem; margin: 2.75rem 0 0.25rem; }
.regions-grid-note { color: var(--teal-dark); margin-bottom: 1.25rem; }
.region-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.region-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  padding: 0.95rem 0.95rem 0.9rem;
  box-shadow: 0 3px 12px rgba(6, 45, 102, 0.07);
  min-width: 0;
}
.region-card.is-home { border-left-color: var(--navy); }
.region-icon {
  flex: none;
  width: 44px; height: 44px;
  padding: 5px;
  color: var(--navy);
  background: var(--beige);
  border-radius: 50%;
}
.region-body { min-width: 0; }
.region-card h4 { font-size: 1rem; margin: 0.1rem 0 0.2rem; }
.home-badge {
  display: inline-block;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.region-card p { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.region-card .peoples { color: var(--ink); }
.region-card .harvest { color: var(--teal-dark); font-size: 0.88rem; margin-top: 0.3rem; font-style: italic; }

/* Why readiness matters */
.why { padding-bottom: 1.5rem; }
.why .narrow { max-width: 820px; }
.why-panel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 16px rgba(6, 45, 102, 0.06);
}
.why-icon {
  flex: none;
  width: 56px; height: 56px;
  padding: 10px;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 50%;
}
.why-body p:last-of-type { margin-bottom: 1.1rem; }
.text-link { font-weight: 700; color: var(--navy); text-underline-offset: 3px; }
.text-link:hover { color: var(--teal-dark); }
#diagnostic { padding-top: 2.5rem; }

/* Diagnostic card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(6, 45, 102, 0.1);
  border-top: 6px solid var(--navy);
}
.diag-card { max-width: 820px; margin: 0 auto; padding: 2.5rem; }
.diag-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.diag-head h2 { margin-bottom: 0; }
.price {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--beige);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 0.15rem 0.9rem;
}
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--teal-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.note {
  background: var(--beige);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.75rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 4px 16px rgba(6, 45, 102, 0.08);
  text-align: center;
}
.step p { margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--teal);
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 1.15rem; }
.contact-list li { margin-bottom: 0.4rem; }
.contact-list .label { font-weight: 700; color: var(--navy); }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #e9eef2;
  border-top: 3px solid var(--teal);
  padding: 1.5rem 0;
  font-size: 0.95rem;
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 0.85rem; text-align: center; flex-wrap: wrap; }
.footer-mark { width: 40px; height: 40px; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .js .nav { flex-wrap: wrap; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font: 700 0.95rem "Source Sans 3", Arial, sans-serif;
    cursor: pointer;
    min-height: 44px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .js .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.9rem;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { display: block; padding: 0.6rem 0.25rem; border-bottom: 1px solid #e3dccd; font-size: 1.02rem; }
  .js .nav-links li:last-child a { border-bottom: 0; }
  /* no-JS fallback: links wrap under the brand */
  html:not(.js) .nav { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.6rem 0; }
  html:not(.js) .nav-links { justify-content: flex-start; gap: 0.1rem 1rem; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .regions-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .region-map { max-width: 520px; margin-inline: auto; width: 100%; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  body { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding-top: 2.5rem; }
  .section { padding: 3.25rem 0; }
  .diag-card { padding: 1.75rem 1.25rem; }
  .why-panel { flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.25rem; }
  .lead { font-size: 1.1rem; }
  .btn { display: block; width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
}
