/* ============================================================
   1. GOODLAND FOUNDATION TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-navy: #0d204b;
  --color-navy-light: #2c4268;
  --color-gold: #d2b589;
  --color-gold-dark: #c4a070;
  --color-warm-sand: #f8f6f2;
  --color-ivory: #f8f6f2;
  --color-white: #ffffff;
  --color-stone: #87867f;
  --color-border-cream: #e8e4dc;
  --color-error: #a02020;

  /* Aesthetic override (Goodland Default) */
  --bg: #ffffff;
  --bg-alt: #f8f6f2;
  --bg-dark: #0d204b;
  --text-primary: #0d204b;
  --text-secondary: #2c4268;
  --text-muted: #87867f;
  --accent: #d2b589;
  --accent-dark: #c4a070;
  --border: #e8e4dc;

  /* Typography */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Poppins', Arial, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  --fs-h1: clamp(2rem, 3vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --fs-body-lg: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-base: 8px;
  --space-2: 4px;
  --space-4: 8px;
  --space-6: 12px;
  --space-8: 16px;
  --space-12: 24px;
  --space-16: 32px;
  --space-24: 48px;
  --space-32: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-size: var(--fs-small);
}
.skip-link:focus {
  top: 1rem;
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1 { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 600; margin: 0 0 0.75rem; }
h4 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; margin: 0 0 0.5rem; }
p { font-size: var(--fs-body); line-height: 1.6; max-width: 65ch; margin: 0 0 1rem; }
.lead { font-size: var(--fs-body-lg); line-height: 1.55; }
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 800px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }

.split {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.text-center { text-align: center; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: box-shadow 200ms ease, transform 200ms ease;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--color-navy);
}
.btn--primary:hover {
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-warm-sand);
  color: var(--color-navy);
}
.btn--secondary:hover {
  box-shadow: 0 0 0 2px var(--border);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--color-warm-sand);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: var(--fs-body-lg);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
}
.btn--white:hover {
  box-shadow: 0 0 0 2px var(--color-white);
  transform: translateY(-1px);
}

.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   6. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo__img {
  height: 40px;
  width: auto;
  display: block;
}
.site-logo__img--footer { height: 36px; }
@media (min-width: 768px) {
  .site-logo__img { height: 44px; }
  .site-logo__img--footer { height: 40px; }
}

.nav-cta { font-size: var(--fs-small); padding: 0.5rem 1rem; }

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  min-height: 0;
}
.hero--dark {
  background: var(--bg-dark);
  color: var(--color-white);
}
.hero--dark .eyebrow { color: var(--accent); }
.hero--dark .btn--primary { color: var(--color-navy); }

.hero__inner > * {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 600ms ease forwards;
}
.hero__inner > *:nth-child(1) { animation-delay: 100ms; }
.hero__inner > *:nth-child(2) { animation-delay: 200ms; }
.hero__inner > *:nth-child(3) { animation-delay: 300ms; }
.hero__inner > *:nth-child(4) { animation-delay: 400ms; }
.hero__inner > *:nth-child(5) { animation-delay: 500ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__headline { max-width: 18ch; }
.hero__subhead { max-width: 50ch; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__proof {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__image img { width: 100%; display: block; }

/* ============================================================
   8. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-alt);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 600px) {
  .stats-bar__grid { grid-template-columns: repeat(3, 1fr); }
}
.stat__number {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}
.stat__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   9. FEATURES 3-UP
   ============================================================ */
.features { background: var(--bg); }
.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.feature-card {
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card__icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); margin: 0; font-size: var(--fs-small); }

/* ============================================================
   10. PULL QUOTE
   ============================================================ */
.pull-quote {
  background: var(--bg-dark);
  color: var(--color-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.pull-quote__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote blockquote {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.4;
  font-style: italic;
}
.pull-quote blockquote::before { content: "\201C"; }
.pull-quote blockquote::after { content: "\201D"; }
.pull-quote__attribution {
  margin-top: 1.5rem;
  font-size: var(--fs-body);
  color: var(--accent);
  font-style: normal;
}
.pull-quote__role {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   11. WEBINAR REGISTRATION BLOCK
   ============================================================ */
.webinar-block { background: var(--bg-alt); }
.webinar-block__inner {
  max-width: 800px;
  margin: 0 auto;
}
.webinar-block__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.webinar-block__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .webinar-block__content { grid-template-columns: 1fr 1fr; }
}
.webinar-block__learn h4 { margin-bottom: 1rem; }
.webinar-block__learn ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.webinar-block__learn li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.webinar-block__learn li:last-child { border-bottom: none; }
.webinar-block__learn li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.webinar-block__bonus {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.webinar-block__bonus p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.webinar-block__bonus strong { color: var(--color-navy); }

.webinar-block__form {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* AEvent embed overrides */
#form-mount { min-height: 200px; }
#form-mount form {
  display: grid;
  gap: 1rem;
}
#form-mount input[type="text"],
#form-mount input[type="email"],
#form-mount input[type="tel"] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 44px;
}
#form-mount button[type="submit"] {
  background: var(--accent);
  color: var(--color-navy);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  min-height: 44px;
  transition: box-shadow 200ms ease;
}
#form-mount button[type="submit"]:hover {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ============================================================
   12. FAQ ACCORDION
   ============================================================ */
.faq { background: var(--bg); }
.faq__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.faq__list {
  max-width: 700px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 600;
  font-size: var(--fs-body);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 200ms ease;
}
.faq__item[open] summary::after {
  content: "\2212";
}
.faq__answer {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ============================================================
   13. CTA RESTATE
   ============================================================ */
.cta-restate {
  background: var(--bg-dark);
  color: var(--color-white);
  text-align: center;
}
.cta-restate .eyebrow { color: var(--accent); }
.cta-restate h2 { max-width: 20ch; margin-inline: auto; }
.cta-restate p { color: rgba(255,255,255,0.7); max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }

/* ============================================================
   14. PROCESS TIMELINE
   ============================================================ */
.process { background: var(--bg-alt); }
.process__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.process__steps {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.process__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.process__step:last-child { padding-bottom: 0; }
.process__step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.process__step:last-child::before { display: none; }
.process__number {
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-body-lg);
  flex-shrink: 0;
}
.process__content h4 { margin-bottom: 0.25rem; }
.process__content p { color: var(--text-secondary); margin: 0; font-size: var(--fs-small); }

/* ============================================================
   15. BOOKING SECTION
   ============================================================ */
.booking-section { background: var(--bg-alt); }
.booking-section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.booking-section__embed {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}
.booking-section__embed iframe {
  width: 100%;
  height: 700px;
  border: none;
}

/* ============================================================
   16. DOWNLOAD SECTION
   ============================================================ */
.download-hero .hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 3rem;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.6);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--color-white); }

.footer-full__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-full__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand p { font-size: var(--fs-small); max-width: 30ch; }
.footer__col h5 {
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.5rem; }
.footer__col a { font-size: var(--fs-small); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: var(--fs-xs);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Minimal footer variant */
.footer-minimal {
  text-align: center;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding-block: 2rem;
  font-size: var(--fs-small);
}
.footer-minimal a { color: rgba(255,255,255,0.5); }
.footer-minimal a:hover { color: var(--color-white); }
.footer-minimal__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

/* ============================================================
   18. REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   19. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   20. UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
