/* ============================================================
   BYDT – Build Your Dreaming Things
   Style sheet — mobile-first, no framework dependencies
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Color */
  --cream:       #F9F4E8;
  --cream-dark:  #EDE8D8;
  --cream-light: #FDFAF3;
  --navy:        #1B2A4A;
  --navy-deep:   #101E35;
  --gold:        #C9952A;
  --gold-light:  #E8B84B;
  --gold-pale:   #F7E8C0;
  --text-body:   #3A3020;
  --text-muted:  #7A6F60;

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 4px rgba(27, 42, 74, 0.07);
  --shadow:    0 3px 16px rgba(27, 42, 74, 0.11);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.16);

  /* Shape */
  --radius:    12px;
  --radius-sm:  8px;

  /* Layout */
  --max-w: 1120px;
  --pad-x: 24px;
  --section-pad: 72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.nav__spark {
  color: var(--gold);
  font-size: 1rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__menu {
  display: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.18s;
}

.nav__link:hover { color: var(--gold); }

.nav__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav__cta {
  background: var(--navy);
  color: var(--cream-light);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}

.nav__cta:hover { background: var(--gold); color: var(--navy); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--navy);
  color: var(--cream-light);
}

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--large {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background: var(--cream);
}

/* Warm glow in top-right corner */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, var(--gold-pale) 0%, transparent 68%);
  opacity: 0.45;
  pointer-events: none;
}

/* Warm glow in bottom-left corner */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at center, var(--cream-dark) 0%, transparent 70%);
  pointer-events: none;
}

.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__spark-1,
.hero__spark-2,
.hero__spark-3 {
  position: absolute;
  color: var(--gold);
  line-height: 1;
}

.hero__spark-1 { top: 18%; right: 14%; font-size: 2.4rem; opacity: 0.2; }
.hero__spark-2 { top: 58%; right: 9%;  font-size: 1.1rem; opacity: 0.35; }
.hero__spark-3 { top: 30%; right: 26%; font-size: 0.85rem; opacity: 0.3; }

.hero .container { position: relative; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero__heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.13;
  margin-bottom: 22px;
  max-width: 720px;
}

.hero__heading em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Trust Banner ──────────────────────────────────────────── */
.trust-banner {
  background: var(--navy);
  padding: 18px 0;
}

.trust-banner__text {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  color: var(--cream-light);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ── Section Shell ─────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--cream-dark);
}

.section__heading {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card__body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Why Section ───────────────────────────────────────────── */
.why__body {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.why__lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.why__body p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.why__body strong {
  color: var(--navy);
  font-weight: 600;
}

/* ── Method Steps ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step__num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step__body {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Capabilities ──────────────────────────────────────────── */
.caps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cap {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  padding: 10px 26px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ── Programs ──────────────────────────────────────────────── */
.programs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.program {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.programs__note {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Founder ───────────────────────────────────────────────── */
.founder__card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.founder__name-block {
  margin-bottom: 20px;
}

.founder__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.founder__role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.founder__card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 14px;
}

.founder__card p:last-child { margin-bottom: 0; }

/* ── Book / CTA ────────────────────────────────────────────── */
.book {
  background: var(--navy);
}

.book__inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.book__heading {
  color: var(--cream-light);
  margin-bottom: 16px;
}

.book__sub {
  font-size: 1.05rem;
  color: rgba(253, 250, 243, 0.72);
  line-height: 1.75;
  margin-bottom: 36px;
}

.book__note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: rgba(253, 250, 243, 0.45);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 44px 0 28px;
}

.footer__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream-light);
}

.footer__logo span { color: var(--gold); }

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(253, 250, 243, 0.45);
  margin-top: 5px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(253, 250, 243, 0.55);
  transition: color 0.18s;
}

.footer__link:hover { color: var(--gold); }

.footer__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(253, 250, 243, 0.3);
  border-top: 1px solid rgba(253, 250, 243, 0.08);
  padding-top: 20px;
}

/* ── Tablet (≥ 640px) ──────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --pad-x: 32px; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .cards--four { grid-template-columns: repeat(2, 1fr); }

  .footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ── Desktop (≥ 960px) ─────────────────────────────────────── */
@media (min-width: 960px) {
  :root {
    --section-pad: 96px;
    --pad-x: 40px;
  }

  /* Nav */
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 28px; }

  /* Hero */
  .hero { padding: 96px 0 120px; }

  /* Cards */
  .cards { grid-template-columns: repeat(3, 1fr); }

  .cards--four { grid-template-columns: repeat(4, 1fr); }

  /* Steps */
  .steps { grid-template-columns: repeat(4, 1fr); }

  /* Footer */
  .footer__nav { gap: 28px; }
}

/* ── Mobile nav open state ─────────────────────────────────── */
@media (max-width: 959px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream-light);
    border-bottom: 1px solid var(--cream-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: var(--shadow);
    z-index: 199;
  }

  .nav__menu.is-open { display: flex; }

  .nav__link {
    display: block;
    padding: 14px var(--pad-x);
    font-size: 1rem;
  }

  .nav__cta {
    margin: 8px var(--pad-x) 0;
    border-radius: var(--radius-sm);
    text-align: center;
    display: block;
  }

  /* Hamburger → X animation */
  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Single-column hero CTAs */
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }

  /* Founder card less padding on small screens */
  .founder__card { padding: 28px 24px; }
}
