:root {
  color-scheme: light;
  --mama-navy: hsl(220, 45%, 12%);
  --mama-navy-2: hsl(220, 42%, 18%);
  --mama-brass: hsl(38, 60%, 55%);
  --mama-brass-dark: hsl(38, 62%, 42%);
  --mama-paper: #f7f4ec;
  --mama-sky: #7db7d9;
  --mama-ink: #18212b;
  --mama-muted: #667085;
  --mama-line: #e5dfd1;
  --mama-white: #ffffff;
  --mama-soft: #fbfaf6;
  --shadow-soft: 0 24px 70px rgba(24, 33, 43, 0.12);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mama-soft);
  color: var(--mama-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font: 400 16px/1.6 var(--font-sans);
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  background: var(--mama-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(229, 223, 209, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  color: var(--mama-navy);
  font-weight: 800;
}

.brand small {
  color: var(--mama-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-link {
  color: var(--mama-navy);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--mama-brass);
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(125, 183, 217, 0.7);
  outline-offset: 3px;
}

.button-primary {
  background: var(--mama-brass);
  color: #171308;
  box-shadow: 0 12px 26px rgba(199, 148, 53, 0.24);
}

.button-primary:hover {
  background: var(--mama-brass-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
}

.button-secondary:hover {
  background: #fff;
  color: var(--mama-navy);
}

.button-dark {
  background: var(--mama-navy);
  color: #fff;
}

.button-dark:hover {
  background: var(--mama-navy-2);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(10, 21, 43, 0.98), rgba(10, 21, 43, 0.86)),
    url("/images/mama/suburban_family_home.webp") center/cover;
  color: #fff;
  min-height: clamp(500px, 68svh, 640px);
  display: grid;
  align-items: center;
  padding: 36px 0 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--mama-soft));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--mama-brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.story-grid h2,
.section-heading h2,
.topics-grid h2,
.question-copy h2,
.final-card h2 {
  font-family: var(--font-serif);
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(2.85rem, 5.45vw, 5.15rem);
  font-weight: 700;
}

.hero-lede {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  margin-top: 24px;
}

.trust-strip {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.84rem;
  font-weight: 700;
}

.compliance-line {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.portrait-panel {
  display: flex;
  justify-content: center;
}

.portrait-card {
  position: relative;
  width: min(300px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.portrait-card img {
  width: 100%;
  height: clamp(320px, 42svh, 410px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
}

.portrait-note {
  position: absolute;
  left: -22px;
  right: 28px;
  bottom: 28px;
  background: var(--mama-paper);
  color: var(--mama-navy);
  border: 1px solid rgba(199, 148, 53, 0.45);
  border-radius: 7px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.portrait-note span,
.portrait-note strong {
  display: block;
}

.portrait-note span {
  color: var(--mama-muted);
  font-size: 0.82rem;
}

.portrait-note strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.15;
  margin-top: 2px;
}

.story-band,
.map-section,
.topics-section,
.question-section,
.learning-links {
  padding: clamp(64px, 8vw, 108px) 0;
}

.story-band {
  background: var(--mama-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.story-grid h2,
.section-heading h2,
.topics-grid h2,
.question-copy h2,
.final-card h2 {
  margin: 0;
  color: var(--mama-navy);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.story-grid p:not(.section-kicker),
.section-heading p,
.topics-grid p,
.question-copy p,
.final-card p {
  color: var(--mama-muted);
  font-size: 1.03rem;
}

.map-section {
  background: var(--mama-paper);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.map-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.map-step {
  position: relative;
  min-height: 260px;
  background: var(--mama-white);
  border: 1px solid rgba(24, 33, 43, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(24, 33, 43, 0.06);
}

.map-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 4px;
  background: var(--mama-sky);
}

.step-marker {
  width: 42px;
  height: 42px;
  border: 1px solid var(--mama-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mama-navy);
  background: var(--mama-paper);
  font-weight: 900;
}

.map-step h3 {
  margin: 44px 0 10px;
  color: var(--mama-navy);
  font-size: 1.1rem;
}

.map-step p {
  margin: 0;
  color: var(--mama-muted);
}

.topics-section {
  background: var(--mama-soft);
}

.topics-grid,
.question-grid,
.final-card,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-list details {
  background: #fff;
  border: 1px solid var(--mama-line);
  border-radius: var(--radius);
  padding: 0;
}

.topic-list summary {
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--mama-navy);
  font-weight: 900;
}

.topic-list details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--mama-muted);
}

.question-section {
  background: #fff;
}

.question-copy {
  position: sticky;
  top: 104px;
}

.call-card {
  margin-top: 28px;
  border-left: 4px solid var(--mama-brass);
  background: var(--mama-paper);
  padding: 18px;
  border-radius: 6px;
  display: grid;
  gap: 5px;
}

.call-card span {
  color: var(--mama-muted);
}

.call-card a {
  color: var(--mama-navy);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.question-form {
  background: var(--mama-soft);
  border: 1px solid var(--mama-line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.form-row label {
  color: var(--mama-navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-row label span {
  color: var(--mama-muted);
  font-weight: 700;
  text-transform: none;
}

.split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d2c5;
  border-radius: 7px;
  background: #fff;
  color: var(--mama-ink);
  padding: 11px 12px;
}

input,
select {
  min-height: 46px;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

.privacy-note {
  margin: 2px 0 14px;
  background: #fff8e8;
  border: 1px solid #ead8a9;
  color: #6f541a;
  border-radius: 7px;
  padding: 12px 13px;
  font-size: 0.9rem;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  color: var(--mama-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 18px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.button-submit {
  width: 100%;
  background: var(--mama-navy);
  color: #fff;
}

.button-submit[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin-top: 13px;
  color: var(--mama-muted);
  font-weight: 700;
}

.form-status.is-success {
  color: #047857;
}

.form-status.is-error {
  color: #b42318;
}

.final-cta {
  padding: clamp(58px, 7vw, 90px) 0;
  background: var(--mama-navy);
  color: #fff;
}

.final-card {
  align-items: center;
}

.final-card h2,
.final-card p {
  color: #fff;
}

.final-card p {
  color: rgba(255, 255, 255, 0.74);
}

.learning-links {
  background: var(--mama-paper);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.links-grid a {
  min-height: 150px;
  background: #fff;
  border: 1px solid var(--mama-line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: grid;
  align-content: end;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.links-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(24, 33, 43, 0.08);
}

.links-grid span {
  color: var(--mama-navy);
  font-weight: 900;
  font-size: 1.08rem;
}

.links-grid small {
  color: var(--mama-muted);
  line-height: 1.45;
}

.site-footer {
  background: #090f1d;
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 96px;
  font-size: 0.9rem;
}

.site-footer strong {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #f1d391;
}

.mobile-sticky {
  display: none;
}

@media (max-width: 980px) {
  .header-inner,
  .story-grid,
  .hero-grid,
  .topics-grid,
  .question-grid,
  .final-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  .portrait-panel {
    justify-content: flex-start;
  }

  .portrait-card {
    width: min(330px, 100%);
  }

  .map-board,
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    padding: 10px 0;
    gap: 8px;
  }

  .header-actions {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.9rem);
  }

  .hero-lede {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-actions .button {
    width: auto;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .trust-strip span {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .compliance-line {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .portrait-card {
    width: 100%;
    max-width: 330px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .portrait-card img {
    aspect-ratio: 1 / 1.28;
    height: 100%;
    min-height: 110px;
  }

  .portrait-note {
    position: static;
    align-self: end;
    padding: 9px 10px;
  }

  .portrait-note span {
    font-size: 0.68rem;
  }

  .portrait-note strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .portrait-note {
    left: auto;
    right: auto;
    bottom: auto;
  }

  .story-band,
  .map-section,
  .topics-section,
  .question-section,
  .learning-links {
    padding: 54px 0;
  }

  .map-board,
  .links-grid,
  .split-row {
    grid-template-columns: 1fr;
  }

  .map-step {
    min-height: auto;
  }

  .mobile-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(9, 15, 29, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  }

  .mobile-sticky a {
    min-height: 44px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
    color: #111827;
    background: var(--mama-brass);
  }

  .mobile-sticky a:first-child {
    background: #fff;
    color: var(--mama-navy);
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .question-form {
    padding: 18px;
  }

  .site-footer {
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
