/* =========================================================
   Chilljoy Doula — styles.css
   Self-hosted fonts
   ========================================================= */
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Atkinson Hyperlegible is self-hosted below */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  /* Color — Aly's brand palette */
  --ink:            #21224F; /* navy — primary text, dark surfaces */
  --ink-soft:       #5F5E78; /* secondary text on light bg, tinted from navy */
  --charcoal:       #2D2D38; /* second dark neutral — footer, dark cards */
  --cream:          #F0EAD6; /* page background */
  --lavender:       #DBDBFD; /* pale tint of lavender-deep, light feature bg */
  --lavender-deep:  #A6A5FB; /* brand lavender — accent / links / buttons / borders */
  --mint:           #A5D8C9; /* brand mint — light band bg */
  --teal:           #2A9D8F; /* brand teal — icons, large UI (3:1 safe, not for small text) */
  --mint-deep:      #1A6158; /* darkened teal — default link/text-accent color, AA on cream */
  --teal-band:      #144D46; /* darkest teal — full-bleed band bg with white text */
  --blush:          #D991A5; /* brand rose — light band bg */
  --blush-deep:     #AE3C5C; /* darkened rose — link hover text, AA on cream */
  --peach:          #FFDAB9; /* brand peach — badge accents */
  --sun:            #FBD833; /* brand yellow — buttons, focus ring (pairs with navy text) */
  --sun-deep:       #796402; /* darkened yellow — for text-on-cream use */
  --line:           #EFEFFE; /* hairline borders on light bg */
  --focus:          #FBD833;

  /* Type */
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;

  /* Layout */
  --container: 72rem;
  --radius-lg: 28px;
  --radius-md: 18px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-3); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--mint-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--blush-deep); }

/* Visible, generous focus ring everywhere — never remove outline */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: var(--space-3);
}
.logo-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-link img { height: 34px; width: auto; display: block; }
.site-footer .logo-link img { height: 38px; }

.nav-toggle {
  display: none;
  background: var(--lavender);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.primary-nav a:hover { background: var(--lavender); color: var(--ink); }
.primary-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-3) var(--space-4);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.25rem; }
  .primary-nav a { display: block; padding: 0.75rem 1rem; }
}

/* =========================================================
   Buttons / links-as-cta
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
}
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: #ffcf6b; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.link-arrow {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .link-arrow:hover::after { transform: none; }
}

/* =========================================================
   Sections & rhythm (no full-viewport slides — height follows content)
   ========================================================= */
.section {
  padding-block: var(--space-6);
}
.section-tight { padding-block: var(--space-5); }

.band {
  background: var(--lavender);
}
.band-teal {
  background: var(--teal-band);
  color: #fff;
}
.band-teal h2, .band-teal h3 { color: #fff; }
.band-teal a:not(.btn) { color: #BFEFE6; }
.band-teal p { color: #EAF7F3; }
.band-blush { background: var(--blush); }
.band-mint { background: var(--mint); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--mint-deep);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.band-teal .eyebrow { color: var(--sun); }

/* Wave transition — the site's one signature motif, used sparingly */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
}
.wave svg { width: 100%; height: 60px; }

/* =========================================================
   Hero
   ========================================================= */
.hero-section { padding-block: var(--space-5) var(--space-6); }
.hero {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.hero-eyebrow-row .sun-mark { width: 40px; height: 40px; }
.hero h1 { margin-bottom: var(--space-3); }
.hero .credential {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mint-deep);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--space-3); }
.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  padding: 0.6rem;
  min-width: 0;
  aspect-ratio: 4 / 5;
}
.hero-figure img {
  border-radius: calc(var(--radius-lg) - 0.6rem);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Cards / grids
   ========================================================= */
.grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  height: 100%;
}
.band-teal .card,
.band .card {
  background: #fff;
}
.band-teal .card.card-dark,
.band .card.card-dark {
  background: var(--charcoal);
}
.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  color: var(--teal);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: var(--space-2); color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

/* Two-column media/text pattern, alternating sides */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
  .split.reverse { grid-template-columns: 1.15fr 0.85fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media { min-width: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-media.pixel-wave svg { display: block; width: 100%; height: 100%; }

/* Tag / hashtag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag-cloud span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mint-deep);
}

/* =========================================================
   Contact section
   ========================================================= */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.contact-list dt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint-deep);
  margin-bottom: 0.15rem;
}
.contact-list dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--sun); }
.contact-list a:hover { color: var(--mint-deep); }

/* =========================================================
   Values grid (About page)
   ========================================================= */
.value-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
.value-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Credential badges (About page) */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--space-2);
}
.badge-img {
  width: 160px;
  height: 160px;
  flex: none;
}

/* Certification lists */
.cert-group + .cert-group { margin-top: var(--space-3); }
.cert-group h3 { margin-bottom: 0.5rem; }
.cert-group ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
}

/* Card variant with dark background (Values page) */
.card-dark {
  background: var(--charcoal);
  color: #EDEBFA;
}
.card-dark h3 { color: var(--sun); }
.card-dark p { color: #EDEBFA; margin-bottom: var(--space-2); }
.card-dark p:last-child { margin-bottom: 0; }

.value-block + .value-block { margin-top: var(--space-4); }
.value-block .card { max-width: 62rem; }
.value-block p { max-width: 68ch; }

.tier-summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

/* =========================================================
   Services accordion + pricing tables
   ========================================================= */
.service-group + .service-group { margin-top: var(--space-4); }
.service-group h2 { margin-bottom: 0.35rem; }
.service-group > p { margin-bottom: var(--space-3); }

.service-acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.service-acc summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.service-acc summary::-webkit-details-marker { display: none; }
.service-acc summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.summary-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.summary-right { display: flex; align-items: center; gap: 0.9rem; flex: none; }
.price-range {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--mint-deep);
  font-size: 0.92rem;
  white-space: nowrap;
}
.chev { flex: none; transition: transform 0.2s ease; color: var(--ink-soft); }
.service-acc[open] .chev { transform: rotate(180deg); }

.acc-body {
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
.acc-body p { color: var(--ink-soft); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0;
}
.price-table caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
}
.price-table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.price-tables-row {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 600px) {
  .price-tables-row { grid-template-columns: 1fr 1fr; }
}
.free-badge {
  display: inline-block;
  background: var(--peach);
  color: var(--ink);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-top: var(--space-2);
}

/* =========================================================
   Intake form
   ========================================================= */
.form-grid {
  display: grid;
  gap: var(--space-3);
  max-width: 40rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--lavender-deep);
}
.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 600px) {
  .field-row-2 { grid-template-columns: 1fr 1fr; }
}
.visually-hidden-field { position: absolute; left: -9999px; }

.footnote { font-size: 0.85rem; color: var(--ink-soft); }
.footnote + .footnote { margin-top: 0.25rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; }
.pixel-accent { flex: none; }

/* =========================================================
   Placeholder / stub page notice
   ========================================================= */
.stub-notice {
  border: 2px dashed var(--lavender-deep);
  background: var(--lavender);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.stub-notice p:last-child { margin-bottom: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: #EDEBFA;
  padding-block: var(--space-5) var(--space-4);
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sun);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: #C9C4E8;
}
