/* Porchlight by Edelbros Industries — shared stylesheet */

:root {
  --forest: #1E3A2C;
  --greige: #e0d4cb;
  --cream: #fffdf6;
  --black: #000;
  --olive: #8d8a74;
  --accent: #edff72;
  --sans: "Space Grotesk", Arial, Helvetica, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: min(1180px, 100% - 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: 0; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { margin-bottom: 28px; font-size: clamp(3.9rem, 7vw, 7.4rem); }
h2 { margin-bottom: 24px; font-size: clamp(3rem, 5vw, 5.25rem); }
h3 { margin-bottom: 14px; font-size: 2rem; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- helpers ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.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: 16px; top: -60px;
  background: var(--accent);
  color: var(--forest);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 4px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons & links ---------- */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--forest);
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--cream); }
.button-accent { background: var(--accent); color: var(--forest); }
.button-nav { min-height: 42px; padding: 8px 18px; }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--forest);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.text-link:hover, .text-link:focus-visible { text-decoration-color: var(--olive); }
.light-link { color: var(--cream); }
.light-link:hover, .light-link:focus-visible { text-decoration-color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 1px solid var(--cream);
}
.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  padding-inline: clamp(20px, 3.5vw, 56px);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}
.brand small { white-space: nowrap; font-size: 0.64rem; font-weight: 500; }
.brand small strong { font-weight: 700; }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a:not(.button) { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:not(.button):hover,
.desktop-nav a:not(.button):focus-visible,
.desktop-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.site-header .button-nav { background: var(--accent); border-color: var(--cream); color: var(--forest); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px; height: 42px;
  border: 1px solid var(--cream);
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 20px; height: 2px; background: var(--cream); }
.mobile-menu nav {
  position: absolute;
  top: 52px; right: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(300px, 100vw - 32px);
  padding: 22px;
  background: var(--forest);
  border: 1px solid var(--cream);
  color: var(--cream);
}
.mobile-menu nav a:not(.button) { font-weight: 600; text-decoration: none; }
.mobile-menu .button-primary { background: var(--accent); color: var(--forest); }

/* ---------- home: hero ---------- */
.family-concept-hero {
  position: relative;
  clip-path: inset(0);
  background: var(--forest);
  color: var(--cream);
}
.family-concept-stage {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
}
.family-concept-photo {
  position: absolute;
  top: 0;
  left: -6%;
  width: 106%;
  height: calc(100% + 6vh);
  background-image: url("mama-family.jpg");
  background-position: center top;
  background-size: cover;
  opacity: 0.62;
}
.family-concept-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 8px;
  background: var(--accent);
  z-index: 2;
}
.family-concept-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 2.6vw - 12px, 34px);
  text-align: center;
  text-shadow: 0 1px 14px rgba(18, 38, 28, 0.55);
  padding-top: clamp(10px, 1.2vw - 8px, 34px);
  padding-bottom: 48px;
}
.family-concept-copy h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.2rem, 4.72vw + 1px, 8.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.hero-followup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.2vw - 5px, 16px);
}
.hero-followup p {
  max-width: 46ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw - 11px, 1.6rem);
  line-height: 1.3;
  color: var(--cream);
  text-wrap: balance;
}
.hero-followup .button {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  min-height: clamp(48px, 3.4vw, 56px);
  padding-inline: clamp(24px, 2.1vw, 36px);
}

/* ---------- home: story lead ---------- */
.family-story-lead { background: var(--cream); padding: 110px 0; }
.family-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 100px;
}
.family-story-grid h2 { font-size: clamp(3.5rem, 5.8vw, 6.2rem); }
.family-story-grid > div:last-child { padding-top: 38px; }
.family-story-grid > div:last-child p {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 24px;
}

/* ---------- shared section ---------- */
.section { padding: 120px 0; }
.section-cream { background: var(--cream); }
.section-greige { background: var(--greige); }
.section-heading { max-width: 720px; margin-bottom: 58px; }
.section-heading > p:last-child { max-width: 590px; font-size: 1.08rem; }

/* ---------- home: steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--forest);
  margin-bottom: 40px;
}
.step { min-height: 320px; padding: 34px 34px 40px 0; }
.step + .step { border-left: 1px solid var(--forest); padding-left: 34px; }
.step-number {
  display: block;
  margin-bottom: 44px;
  color: var(--olive);
  font-size: 1rem;
  font-weight: 700;
}
.step h3 { margin-bottom: 18px; font-size: clamp(2.2rem, 2.8vw, 3rem); }
.step p { margin: 0; font-size: clamp(1.18rem, 1.4vw, 1.4rem); line-height: 1.5; }

/* ---------- home: forest "how it works" section ---------- */
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest .eyebrow,
.section-forest h2,
.section-forest h3,
.section-forest p,
.section-forest .text-link { color: var(--cream); }
.section-forest .step-number { color: var(--greige); }
.section-forest .steps-grid { border-top-color: var(--cream); border-bottom-color: var(--cream); }
.section-forest .step + .step { border-left-color: var(--cream); border-top-color: var(--cream); }
.section-forest .text-link { text-decoration-color: var(--cream); }
.section-forest .text-link:hover,
.section-forest .text-link:focus-visible { text-decoration-color: var(--cream); }

/* ---------- home: section dividers — 8px full-bleed white, like the hero bar ---------- */
.page-home .section-forest,
.page-home .family-brand-stage,
.page-home .site-footer { border-top: 8px solid var(--cream); }

/* ---------- home: brand / trust ---------- */
.family-brand-stage { background: var(--greige); padding: 100px 0; }
.family-brand-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}
.family-brand-grid img { width: 100%; }
.family-brand-grid h2 { font-size: clamp(3.3rem, 5vw, 4.6rem); }
.family-brand-grid ul {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--forest);
}
.family-brand-grid li { padding: 14px 0; border-bottom: 1px solid var(--forest); }
.family-privacy-link { margin-top: 28px; display: inline-block; }

/* ---------- final CTA ---------- */
.final-cta { background: var(--cream); text-align: center; padding: 120px 0; }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { max-width: 820px; }

/* ---------- interior pages ---------- */
.page-hero {
  background: var(--greige);
  border-bottom: 8px solid var(--accent);
  padding: 100px 0 92px;
}
.page-hero h1 { margin-bottom: 26px; font-size: clamp(3.8rem, 6.5vw, 7rem); }
.page-hero p:last-child { max-width: 760px; font-size: 1.45rem; }
.page-section { padding: 100px 0; }

/* privacy: narrow prose column */
.page-narrow { max-width: 820px; }
.page-narrow h2 { margin-top: 70px; font-size: clamp(2.6rem, 4.5vw, 4.5rem); }
.page-narrow h2:first-child { margin-top: 0; }
.page-narrow h3 {
  font-family: var(--sans);
  margin-top: 38px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.page-narrow p { margin-bottom: 16px; }
.page-narrow ul { margin: 0 0 16px 1.1rem; }
.page-narrow li { margin-bottom: 12px; }
.page-narrow a { font-weight: 700; }

/* how it works: process list */
.process-list { counter-reset: process; }
.process-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 54px;
  padding: 52px 0;
  border-top: 1px solid var(--forest);
}
.process-item:last-child { border-bottom: 1px solid var(--forest); }
.process-number { color: var(--olive); font-family: var(--serif); font-size: 4.5rem; line-height: 1; }
.process-copy h2 { font-size: clamp(2.6rem, 4vw, 4.3rem); }
.process-copy p { max-width: 720px; font-size: 1.3rem; text-wrap: balance; }
.process-note { background: var(--forest); color: var(--cream); padding: 52px 0 16px; }
.process-note-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.process-note h2 { margin: 0; max-width: 560px; font-size: clamp(2.6rem, 4.1vw, 4.3rem); text-wrap: balance; }
.process-note .button {
  /* same footprint as the footer nav grid below it (2 × 150px + 10px gap) */
  width: 310px;
  font-size: 1.1rem;
  min-height: 64px;
  padding-inline: 38px;
  /* bottom-aligned to the headline, then lifted so it sits against the last line */
  margin-bottom: 20px;
}

/* our story */
/* the photo runs out to the header's gutter, not the 1180px content column */
.story-page-layout {
  display: grid;
  grid-template-columns: 47fr 53fr;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding-inline: clamp(20px, 3.5vw, 56px);
}
.story-page-photo { margin: 0; }
.story-page-copy { max-width: 600px; }
.story-page-photo img { aspect-ratio: 3 / 2; width: 100%; }
.photo-caption { margin: 12px 0 0; color: var(--olive); font-size: 1rem; }
.story-page-copy p { margin-bottom: 24px; font-size: 1.13rem; }
.story-page-copy .story-lead { font-family: var(--serif); font-size: 2.25rem; line-height: 1.15; }
.story-page-copy .story-signoff {
  margin-top: 44px;
  margin-bottom: 32px;
  padding-top: 28px;
  border-top: 4px solid var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.05;
}
.story-page-copy .button { margin-top: 8px; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
.contact-copy h2 { font-size: clamp(2.7rem, 4vw, 4.5rem); }
.contact-copy a { font-weight: 700; }
.signup-form { border: 1px solid var(--forest); padding: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--cream);
  border: 1px solid var(--forest);
  border-radius: 0;
  color: var(--forest);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 4px solid var(--accent); outline-offset: 0; }
.form-note { margin: 16px 0 0; font-size: 0.76rem; }
.form-hidden { position: absolute; left: -9999px; }

/* thank-you page */
.thanks-inner { max-width: 640px; }
.thanks-inner p { margin-bottom: 20px; font-size: 1.13rem; }

/* ---------- footer ---------- */
/* The header is full-bleed with its own gutter, while .wrap is a centered
   1180px column. The dark closing band and the footer read as chrome, so they
   line up with the header rather than with the content column. */
.site-footer .wrap,
.process-note-inner {
  width: 100%;
  padding-inline: clamp(20px, 3.5vw, 56px);
}

.site-footer { background: var(--forest); color: var(--cream); padding: 70px 0 26px; }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 64px; gap: 40px; }
.footer-top > div > p { max-width: 360px; color: var(--greige); }
.footer-brand { margin-bottom: 16px; }
.footer-top nav { display: grid; grid-template-columns: repeat(2, 150px); gap: 10px; }
.footer-top nav a { text-decoration: none; }
.footer-top nav a:hover, .footer-top nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: var(--greige);
  font-size: 0.76rem;
}
/* the rule tracks the footer text, not the full-bleed box */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 3.5vw, 56px);
  right: clamp(20px, 3.5vw, 56px);
  border-top: 1px solid var(--olive);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --wrap: min(100% - 32px, 1180px); }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }

  .family-concept-hero {
    height: auto;
    clip-path: none;
  }
  .family-concept-stage {
    display: block;
    position: static;
    min-height: 0;
    height: auto;
  }
  .family-concept-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    opacity: 1;
    background-position: center 30%;
    transform: none;
  }
  .family-concept-copy {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 54px;
    padding-bottom: 68px;
  }
  .family-concept-copy h1 { font-size: clamp(2.6rem, 6.6vw, 3.6rem); }
  .hero-followup { align-items: flex-start; }
  .hero-followup p { font-size: 1.35rem; }

  .family-story-grid, .family-brand-grid,
  .story-page-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .family-story-grid > div:last-child { padding-top: 0; }

  .steps-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 30px 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--forest); padding-left: 0; }
  .step-number { margin-bottom: 20px; }

  .process-note-inner { flex-direction: column; align-items: flex-start; }
  .process-note .button { width: auto; margin-bottom: 0; }
}

/* short viewports (e.g. landscape phones, low laptops): never overlay text on the photo */
@media (min-width: 901px) and (max-height: 640px) {
  .family-concept-hero { height: auto; clip-path: none; }
  .family-concept-stage {
    display: block;
    position: static;
    min-height: 0;
    height: auto;
  }
  .family-concept-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    opacity: 1;
    background-position: center 28%;
    transform: none;
  }
  .family-concept-copy {
    justify-content: flex-start;
    padding-top: 44px;
    padding-bottom: 52px;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .nav-shell { height: 72px; }
  .brand { gap: 7px; font-size: 1.25rem; }
  .brand small { font-size: 0.52rem; }
  h1 { font-size: 3.85rem; }
  h2 { font-size: 3.1rem; }
  .family-story-grid > div:last-child p { font-size: 1.55rem; }

  .section, .page-section, .final-cta, .family-story-lead,
  .family-brand-stage { padding: 78px 0; }
  .process-note { padding: 56px 0 24px; }

  .process-item { grid-template-columns: 1fr; gap: 12px; padding: 38px 0; }
  .process-number { font-size: 3.2rem; }

  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .signup-form { padding: 24px; }

  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-top nav { grid-template-columns: 1fr 1fr; width: 100%; }

  .page-hero { padding: 44px 0 52px; }
  .page-hero h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 11.5vw, 3.2rem); }

  .site-footer { padding: 44px 0 22px; }
  .footer-top { padding-bottom: 36px; gap: 24px; }
  .footer-bottom { gap: 10px; }
  /* the closing band and footer are both forest; give them a seam on phones */
  .page-how .site-footer { border-top: 8px solid var(--cream); }

  /* 1. first-view hero: photo takes a slice of the screen, copy fits beneath */
  .family-concept-photo { aspect-ratio: auto; height: clamp(190px, 36svh, 280px); }
  .family-concept-copy { padding-top: 28px; padding-bottom: 32px; gap: 14px; }
  .family-concept-copy h1 { font-size: clamp(2.5rem, 11vw, 3rem); }
  .hero-followup { gap: 14px; }
  .hero-followup p { font-size: 1.15rem; max-width: 34ch; }
}
