/* ============================================
   Golden Bites — Design Tokens
   ============================================ */
:root {
  /* Color */
  --cream:        #FBF6EC;
  --cream-alt:     #F1E4C8;
  --ink:           #322619;
  --ink-soft:      #5A4A34;
  --gold:          #C6871F;
  --gold-deep:     #8C5D14;
  --gold-pale:     #EFCB84;
  --navy:          #1B2A4E;
  --navy-deep:     #10192E;
  --white:         #FFFFFF;
  --border:        #E2D2AC;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --max-width: 1120px;
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%; /* ~18px base — larger default for senior readability */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.05rem;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--space-2); max-width: 68ch; }
a { color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* Visible focus state everywhere — essential for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ============================================
   Header / nav
   ============================================ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo img { height: 40px; width: 40px; display: block; }
.logo span { color: var(--gold-deep); }
.logo:hover { color: var(--navy); }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold-pale); color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-deep); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--navy-deep); }
.btn-secondary {
  background: var(--navy);
  color: var(--cream);
}
.btn-secondary:hover { background: var(--navy-deep); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero .accent { color: var(--gold-pale); }
.hero p.lede {
  font-size: 1.25rem;
  color: var(--cream-alt);
  max-width: 56ch;
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

.hero-motif {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.5;
}

/* ============================================
   Sections
   ============================================ */
section { padding: var(--space-5) 0; }
.section-alt { background: var(--cream-alt); }
.section-header { max-width: 62ch; margin-bottom: var(--space-4); }
.section-header p { color: var(--ink-soft); font-size: 1.1rem; }

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2);
  color: var(--gold-deep);
}

/* Numbered steps (genuinely sequential content) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-2);
  align-items: start;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Link / quick-nav cards */
.card-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}
.card-link:hover { border-color: var(--gold); color: var(--ink); }
.card-link h3 { color: var(--gold-deep); margin-bottom: 0.35rem; }
.card-link .arrow { color: var(--gold-deep); font-weight: 700; }

/* ============================================
   Resources (downloads)
   ============================================ */
.resource-group { margin-bottom: var(--space-4); }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.resource-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.resource-meta h3 { margin-bottom: 0.15rem; font-size: 1.15rem; }
.resource-meta .filetype {
  display: inline-block;
  background: var(--cream-alt);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-right: 0.5rem;
}

/* ============================================
   FAQ accordion (native details/summary — keyboard & screen-reader friendly)
   ============================================ */
.faq-list { display: grid; gap: var(--space-2); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-3) 0;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-weight: 700;
}
.faq-item[open] summary .icon::before { content: "–"; }
.faq-item summary .icon::before { content: "+"; }
.faq-item p { padding-bottom: var(--space-3); color: var(--ink-soft); }

/* ============================================
   Founders / team
   ============================================ */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}
.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: left;
}
.founder-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--cream-alt);
  border: 2px solid var(--gold-pale);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { margin-bottom: 0.15rem; font-size: 1.1rem; }
.founder-role { color: var(--gold-deep); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }

/* Partner strip */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-2);
}
.partner-pill {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Home photo showcase */
.photo-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3);
  align-items: center;
}
.photo-showcase img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.photo-showcase .caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .photo-showcase { grid-template-columns: 1fr; }
}

/* Programme arc (Notice / Choose / Keep) */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.arc-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.arc-card .arc-word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-pale);
  display: block;
  margin-bottom: 0.35rem;
}
.arc-card p { color: var(--cream-alt); margin-bottom: 0; }

/* ============================================
   Centre / Join Us
   ============================================ */
.centre-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  max-width: 640px;
}
.centre-card .tag {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  margin-bottom: var(--space-2);
}
.future-centres {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: var(--space-3);
}

/* ============================================
   Coming soon / locked
   ============================================ */
.coming-soon {
  text-align: left;
  max-width: 600px;
  padding: var(--space-6) 0;
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: var(--space-3);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-alt);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: var(--cream-alt); }
.site-footer a:hover { color: var(--gold-pale); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.15);
  padding-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--cream-alt);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .hero-motif { display: none; }
  section { padding: var(--space-4) 0; }
}

/* ============================================
   Scrollbar & selection polish
   ============================================ */
html { scrollbar-color: var(--gold-deep) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 8px;
  border: 3px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
::selection { background: var(--gold-pale); color: var(--navy-deep); }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Hover motion on interactive surfaces */
.feature, .card-link, .resource-item, .founder-card, .centre-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover, .card-link:hover, .founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(16, 25, 46, 0.08);
}
.btn { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.btn:hover:not([aria-disabled="true"]) { transform: translateY(-2px); }
.btn:active:not([aria-disabled="true"]) { transform: translateY(0); }

/* ============================================
   Trust bar (partner + brand strip)
   ============================================ */
.trust-bar {
  background: var(--cream-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}
.trust-bar .trust-label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   Stat / impact cards
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: left;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}
.stat-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.95rem; }
.stat-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: var(--gold);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}
.cta-banner h2 { color: var(--navy-deep); margin-bottom: 0.25rem; }
.cta-banner p { color: var(--navy-deep); margin-bottom: 0; }
.cta-banner .btn-primary { background: var(--navy); color: var(--white); }
.cta-banner .btn-primary:hover { background: var(--navy-deep); }

/* ============================================
   Hero decorative shape (subtle, respects reduced motion)
   ============================================ */
@keyframes drift {
  0%, 100% { transform: translate(0, -50%) scale(1); }
  50% { transform: translate(-2%, -52%) scale(1.03); }
}
.hero-motif { animation: drift 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-motif { animation: none; }
}
