/* Restored Couples Counseling
   Layout concept: quiet, scriptural reading pages; one recurring "gold seam"
   (kintsugi: the broken vessel mended with gold) marks each section break. */
:root {
  --ink: #1c2a22;
  --paper: #f7f8f5;
  --sea: #214d36;
  --sea-deep: #173a28;
  --gold: #9a7a34;
  --mist: #e6ece5;
  --muted: #56685c;
  --line: #d3dccf;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding-block: 18px;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 1.55rem; display: block; }
.brand-sub {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Seam divider */
.seam { height: 1px; background: var(--line); position: relative; margin: 0; border: 0; overflow: visible; }
.seam::after {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(9rem, 40%); height: 3px;
  transform: translateX(-50%); background: var(--gold);
  clip-path: polygon(0 50%, 18% 0, 34% 100%, 52% 10%, 70% 90%, 86% 20%, 100% 50%, 86% 80%, 70% 10%, 52% 90%, 34% 0, 18% 100%);
}

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; font-family: var(--serif); }
p { margin: 0; max-width: 65ch; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.tint { background: var(--mist); }
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .stack { gap: 1.4rem; max-width: 46rem; }
.verse { font-family: var(--serif); font-style: italic; color: var(--sea); font-size: 1.1rem; }
.verse cite { font-style: normal; font-family: var(--sans); font-size: .85rem; color: var(--muted); display: block; margin-top: .3rem; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 3px; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 2px solid var(--sea); cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sea); }
.btn-ghost:hover { background: var(--sea); color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid > * { min-width: 0; }
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.two-col > * { min-width: 0; }

.point h3 { margin-bottom: .45rem; }
.point { border-top: 2px solid var(--gold); padding-top: 1rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--gold); }

.phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; counter-reset: ph; }
.phases li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; }
.phases li::before {
  counter-increment: ph; content: counter(ph);
  font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1;
}
.phases h3 { margin-bottom: .3rem; }

.panel { background: #fff; border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 4px; }
.note { font-size: .92rem; color: var(--muted); }

.cta-band { background: var(--sea); color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--sea); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--mist); }

/* Forms */
form { display: grid; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c9c4; border-radius: 3px; padding: .7rem .8rem;
}
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-line { font-size: 1.15rem; font-family: var(--serif); }

/* Footer */
.site-footer { background: var(--ink); color: #d7e1de; font-size: .92rem; }
.site-footer .wrap { padding-block: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.site-footer a { color: #fff; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #3a4a48; padding-top: 1.2rem; font-size: .82rem; color: #a9b8b4; max-width: none; }
.site-footer strong { color: #fff; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Rotating hero */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1.4rem; max-width: 46rem;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 2rem; }
.dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sea);
  background: transparent; padding: 0; cursor: pointer;
}
.dot.is-active { background: var(--gold); border-color: var(--gold); }
.pause {
  margin-left: 8px; background: none; border: 0; color: var(--muted); font: inherit;
  font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 4px;
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Books */
.book { align-items: center; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; } .cover { max-width: 13rem; } }
.cover {
  aspect-ratio: 2 / 3; max-width: 100%; border-radius: 2px 6px 6px 2px; padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: .7rem; color: #fff;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 10px 24px rgba(29,40,39,.18);
  position: relative; overflow: hidden;
}
.cover::after {
  content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 3px; background: var(--gold);
  clip-path: polygon(0 50%, 18% 0, 34% 100%, 52% 10%, 70% 90%, 86% 20%, 100% 50%, 86% 80%, 70% 10%, 52% 90%, 34% 0, 18% 100%);
}
.cover-main { background: var(--sea-deep); }
.cover-work { background: var(--ink); }
.cover-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.cover-sub { font-size: .75rem; letter-spacing: .06em; opacity: .85; }
.cover-author { margin-top: auto; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #e7d3a6; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: .35rem; }

/* About portrait */
.about-hero { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: center; }
.portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px;
  box-shadow: 0 12px 28px rgba(29,40,39,.16); border-bottom: 3px solid var(--gold);
}
@media (max-width: 700px) { .about-hero { grid-template-columns: 1fr; } .portrait { max-width: 18rem; } }

/* Logo in header */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 60px; height: 60px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
@media (max-width: 420px) { .brand-logo { width: 48px; height: 48px; } .brand-name { font-size: 1.3rem; } }
