/* Motherly Health — site styles */
:root {
  --cream: #faf6f0;
  --sand: #f2eadf;
  --sand-deep: #e8dccd;
  --sage: #7e8f78;
  --sage-dark: #4f5f4a;
  --sage-soft: #dfe5da;
  --clay: #c4866a;
  --clay-dark: #a96a50;
  --ink: #2e2a26;
  --muted: #6b645c;
  --line: #e4dacd;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
  --shadow: 0 18px 40px -24px rgba(46, 42, 38, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.accent { font-style: italic; color: var(--clay-dark); }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; font-family: var(--sans); min-height: 48px;
}
.btn-primary { background: var(--sage-dark); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--sage-dark); color: var(--sage-dark); background: transparent; }
.btn-ghost:hover { background: var(--sage-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .94);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; }
.brand-sub { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; letter-spacing: .04em; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--ink); }
.header-cta { display: inline-flex; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-media { position: relative; }
.hero-media img { border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset: auto -28px -28px auto; width: 70%; height: 70%;
  background: var(--sage-soft); border-radius: 160px 160px 24px 24px; z-index: -1;
}
.hero-card {
  position: absolute; left: -26px; bottom: 36px; background: var(--white); border-radius: 14px; padding: 1rem 1.2rem;
  box-shadow: var(--shadow); display: flex; gap: .9rem; align-items: center; font-size: .9rem; max-width: 260px;
}
.hero-card .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; }
.hero-card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.hero-card span { color: var(--muted); font-size: .82rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.arch img { border-radius: 24px 180px 24px 24px; }
.section-head { max-width: 640px; margin: 0 auto 3rem; }

/* Pillars */
.basics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.basic { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.basic img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.basic-body { padding: 1.4rem 1.4rem 1.6rem; }
.basic-body h3 { margin-bottom: .35em; }
.basic-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.basic-num { font-family: var(--serif); color: var(--sage-dark); font-style: italic; font-size: .95rem; display: block; margin-bottom: .3rem; }

/* Quote band */
.band {
  position: relative; padding: clamp(4rem, 10vw, 7rem) 0; text-align: center;
  background: var(--sand) url("/assets/img/leaves.webp") center / cover no-repeat;
}
.band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; color: var(--ink); }
.band cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-dark); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { padding: 2rem 1.8rem; border-top: 1px solid var(--sage); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 2.4rem; color: var(--sage-dark); display: block; line-height: 1; margin-bottom: 1rem; }
.step p { color: var(--muted); margin: 0; }

/* Journal cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-meta { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-dark); }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* CTA */
.cta-box { background: var(--sage-dark); color: var(--white); border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-box h2 { color: var(--white); margin: 0 0 .3em; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .82); }
.cta-box .btn { background: var(--cream); color: var(--ink); }
.cta-box .btn:hover { background: var(--white); }

/* Page header (inner pages) */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 640px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Prose (legal + articles) */
.prose { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { font-size: .9rem; color: var(--muted); }
.prose .note { background: var(--sand); border-left: 3px solid var(--sage); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--muted); }
.article-cover { border-radius: var(--radius); margin: 0 0 2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-dark); font-weight: 500; margin-bottom: .2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d2c9; padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #f1ebe3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
.footer-grid .fh { font-family: var(--sans); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: #b9b0a5; margin-bottom: 1rem; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand-sub { color: #b9b0a5; }
.footer-notice { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 2rem; font-size: .82rem; color: #b9b0a5; line-height: 1.65; }
.footer-notice p { margin-bottom: .8em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: .82rem; color: #b9b0a5; }
.linklike { background: none; border: 0; padding: 0; color: #f1ebe3; font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem; font-size: .9rem; display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 .9rem; color: var(--muted); }
.cookie .btn { padding: .6rem 1.2rem; min-height: 42px; font-size: .88rem; }

/* Placeholder marker (remove once company data is filled) */
.ph { background: #fff2b3; color: #6b5300; padding: 0 .25em; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .basics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 78px; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 16px 1rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .hero-card { left: 0; }
  .hero-media::before { inset: auto -12px -16px auto; }
  .steps, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .basics, .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.hero-card .dot svg { width: 26px; height: 26px; }
