/* ==========================================================================
   Naviva — Jewish Surrogacy
   Design tokens: linen / blush / powder pastels · pomegranate accent ·
   plum-ink text · gold ketubah line-work.
   Type: Cormorant Garamond (display) · Mulish (body) · Frank Ruhl Libre (Hebrew)
   ========================================================================== */

:root {
  --linen: #FBF6EF;
  --linen-deep: #F5EDE1;
  --blush: #F6E4DE;
  --powder: #E4EEF5;
  --petal: #EDCDC5;
  --pom: #B4544F;
  --pom-deep: #96403C;
  --ink: #453A50;
  --ink-soft: #6E6279;
  --gold: #C2A26D;
  --gold-soft: #DFCCA4;
  --white: #FFFFFF;

  --ff-display: "Cormorant Garamond", "Times New Roman", serif;
  --ff-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ff-hebrew: "Frank Ruhl Libre", "Times New Roman", serif;

  --fs-hero: clamp(2.5rem, 5.4vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.8rem;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(69, 58, 80, 0.22);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1.1em; }

a { color: var(--pom); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; transition: color 160ms var(--ease); }
a:hover { color: var(--pom-deep); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

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

/* ---------- Eyebrows (bilingual) ---------- */

.eyebrow {
  display: flex; align-items: baseline; gap: 0.65em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.eyebrow .he {
  font-family: var(--ff-hebrew);
  font-size: 1.28em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pom);
}

.eyebrow::after {
  content: "";
  flex: 0 0 42px;
  height: 1px;
  background: var(--gold);
  align-self: center;
}

.centered .eyebrow { justify-content: center; }
.centered .eyebrow::before { content: ""; flex: 0 0 42px; height: 1px; background: var(--gold); align-self: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--linen);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 0.78em 1.7em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:hover { background: var(--pom-deep); border-color: var(--pom-deep); color: var(--linen); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn--ghost:hover { background: var(--blush); border-color: var(--gold); color: var(--ink); }

.btn--small { padding: 0.55em 1.25em; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(194, 162, 109, 0.35);
}

.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-display);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand .brand-tag {
  font-family: var(--ff-body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-top: -0.2rem;
}

.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-size: 0.97rem; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--pom); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold); color: var(--pom-deep); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--gold); border-radius: 10px;
  padding: 0.45em 0.7em; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--linen);
    border-bottom: 1px solid var(--gold-soft);
    box-shadow: var(--shadow);
    padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.1rem; }
}

/* ---------- Bands & scallop (ketubah papercut edge) ---------- */

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band--blush { background: var(--blush); }
.band--powder { background: var(--powder); }
.band--deep { background: var(--linen-deep); }
.band--ink { background: var(--ink); color: var(--linen); }
.band--ink h2, .band--ink h3 { color: var(--linen); }
.band--ink p { color: rgba(251, 246, 239, 0.85); }

/* papercut edge: a strip of small arches in the color of the band that follows */
.scallop-top {
  height: 16px;
  background-repeat: repeat-x;
  background-size: 240px 16px;
  margin-bottom: -1px;
}
.scallop-top--blush { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 16"><path d="M0 16 V9 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 V16 Z" fill="%23F6E4DE"/></svg>'); }
.scallop-top--powder { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 16"><path d="M0 16 V9 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 V16 Z" fill="%23E4EEF5"/></svg>'); }
.scallop-top--ink { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 16"><path d="M0 16 V9 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 V16 Z" fill="%23453A50"/></svg>'); }
.scallop-top--deep { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 16"><path d="M0 16 V9 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 a15 8 0 0 1 30 0 V16 Z" fill="%23F5EDE1"/></svg>'); }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero .lede { font-size: 1.17rem; line-height: 1.8; color: var(--ink-soft); max-width: 34em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.9rem 0 2.2rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; padding: 0; margin: 0; list-style: none; }
.trust-row li {
  display: flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft);
}
.trust-row li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pom); flex: none;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .arch-frame { max-width: 420px; margin: 0 auto; }
}

/* ---------- Arch frame (signature) ---------- */

.arch-frame { position: relative; padding: 12px; }

.arch-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% var(--radius) var(--radius) / 42% 42% var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.arch-frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50% 50% calc(var(--radius) + 6px) calc(var(--radius) + 6px) / 42% 42% calc(var(--radius) + 6px) calc(var(--radius) + 6px);
  pointer-events: none;
}

.arch-frame::after {
  content: "";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 7c3.2 0 5.6 2.3 5.6 5.4 0 3.4-2.4 6-5.6 6s-5.6-2.6-5.6-6C6.4 9.3 8.8 7 12 7z" fill="%23B4544F"/><path d="M9.6 6.9c.5-1 .9-1.6.9-1.6l-.7-1.6 1.4.7.8-1.9.8 1.9 1.4-.7-.7 1.6s.4.6.9 1.6c-.8-.3-1.6-.5-2.4-.5s-1.6.2-2.4.5z" fill="%23C2A26D"/></svg>') center / contain no-repeat;
  background-color: var(--linen);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--linen);
}

.band--blush .arch-frame::after { background-color: var(--blush); box-shadow: 0 0 0 6px var(--blush); }
.band--powder .arch-frame::after { background-color: var(--powder); box-shadow: 0 0 0 6px var(--powder); }

.arch-frame--round img { aspect-ratio: 1 / 1; border-radius: 50%; }
.arch-frame--round::before { border-radius: 50%; }

/* ---------- Section heading block ---------- */

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }

/* ---------- Pillar cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }

.pillar {
  background: var(--white);
  border: 1px solid rgba(194, 162, 109, 0.3);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
  border-top-left-radius: 60px;
  padding: 2rem 1.7rem 1.7rem;
  box-shadow: 0 10px 30px -20px rgba(69, 58, 80, 0.25);
}

.pillar .glyph { width: 44px; height: 44px; margin-bottom: 1.1rem; color: var(--pom); }
.pillar .glyph svg { width: 100%; height: 100%; }
.pillar h3 { margin-bottom: 0.4em; }
.pillar p { font-size: 0.99rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Service list ---------- */

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.6rem, 3.5vw, 3rem); }

.service { display: grid; grid-template-columns: 30px 1fr; gap: 0.9rem; align-items: start; }
.service .dot { margin-top: 0.35rem; width: 22px; height: 22px; color: var(--pom); }
.service .dot svg { width: 100%; height: 100%; }
.service h3 { font-size: 1.28rem; margin-bottom: 0.25em; }
.service p { font-size: 0.99rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Split feature rows ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); }
.split--flip .split-media { order: 2; }

.split-media .arch-frame { max-width: 420px; margin: 0 auto; }

.split-body .checklist { margin: 1.2rem 0 1.6rem; }

@media (max-width: 860px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
}

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; }
.checklist li::before {
  content: "";
  width: 18px; height: 18px; margin-top: 0.3rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="9" fill="none" stroke="%23C2A26D" stroke-width="1.4"/><path d="M6 10.2l2.6 2.6L14 7.4" fill="none" stroke="%23B4544F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}

/* ---------- Journey timeline ---------- */

.journey { list-style: none; margin: 0; padding: 0; position: relative; max-width: 720px; }
.journey::before {
  content: "";
  position: absolute; top: 12px; bottom: 12px; left: 17px;
  width: 1.5px;
  background: linear-gradient(var(--gold) 60%, var(--gold-soft));
}
.journey li { position: relative; padding: 0 0 2.1rem 4rem; }
.journey li:last-child { padding-bottom: 0; }
.journey .step-mark {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--linen);
  border: 1.5px solid var(--gold);
  border-radius: 50% 50% 50% 4px;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; color: var(--pom);
}
.band--blush .journey .step-mark, .band--powder .journey .step-mark { background: var(--white); }
.journey h3 { font-size: 1.3rem; margin-bottom: 0.25em; }
.journey h3 .he { font-family: var(--ff-hebrew); font-weight: 500; color: var(--pom); margin-left: 0.4em; font-size: 0.95em; }
.journey p { font-size: 0.99rem; color: var(--ink-soft); margin: 0; max-width: 56ch; }

/* ---------- Psalm quote band ---------- */

.psalm { text-align: center; max-width: 760px; margin: 0 auto; }
.psalm .he-line {
  font-family: var(--ff-hebrew);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  direction: rtl;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.psalm .en-line {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink-soft);
}
.psalm .source {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pom);
}

/* ---------- FAQ accordions ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--white);
  border: 1px solid rgba(194, 162, 109, 0.35);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--ff-display);
  font-size: 1.22rem; font-weight: 600; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--ff-body); font-size: 1.3rem; font-weight: 400; color: var(--pom);
  transition: transform 200ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); font-size: 0.99rem; }
.faq-list details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid rgba(194, 162, 109, 0.35);
  border-radius: var(--radius);
  border-top-left-radius: 60px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: var(--fs-small); font-weight: 700; margin-bottom: 0.35rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-soft); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 0.72em 0.9em;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pom); background: var(--white);
}

.form-note { font-size: var(--fs-small); color: var(--ink-soft); }

/* honeypot — hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Newsletter ---------- */

.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  font-family: var(--ff-body); font-size: 0.97rem;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 0.66em 0.9em;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--pom); background: var(--white); }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.cta-band .lede { color: rgba(251, 246, 239, 0.85); max-width: 38em; margin: 0 auto 1.8rem; }
.cta-band .btn { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.cta-band .btn:hover { background: var(--petal); border-color: var(--petal); color: var(--ink); }
.cta-band a:not(.btn) { color: var(--gold-soft); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 40em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(251, 246, 239, 0.85); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(251, 246, 239, 0.18);
}

.site-footer .brand { color: var(--linen); font-size: 1.5rem; }
.site-footer h4 {
  color: var(--linen); font-family: var(--ff-body);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(251, 246, 239, 0.85); text-decoration-color: rgba(194, 162, 109, 0.5); }
.site-footer a:hover { color: var(--linen); }
.site-footer p { font-size: 0.95rem; }

.footer-legal {
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(251, 246, 239, 0.55);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
}
.footer-legal p { margin: 0; font-size: inherit; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Confirmation page ---------- */

.confirm-wrap { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.confirm-wrap .glyph { width: 60px; height: 60px; margin: 0 auto 1.4rem; color: var(--pom); }
.confirm-wrap .glyph svg { width: 100%; height: 100%; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a { transition: none; }
}
