/* ===========================================================
   Counselling with April — Design System
   Palette: soft sage, dusty plum, warm paper, quiet gold
   Type: Lora (display) + Karla (body)
   Signature: a single unhurried line that walks through the page
   =========================================================== */

:root {
  --paper: #F3F1EA;
  --card: #FBF9F4;
  --ink: #2B3328;
  --ink-soft: #4B5346;
  --sage: #7C8B6F;
  --sage-dark: #5B6B52;
  --sage-pale: #E4E7DC;
  --plum: #8C6B78;
  --plum-pale: #EEE1E4;
  --taupe: #C9C0B2;
  --gold: #B98A4E;
  --line: rgba(43, 51, 40, 0.12);

  --radius: 18px;
  --max-w: 1120px;

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.9em;
  display: inline-block;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

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

header.site-header {
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.brand em { color: var(--sage-dark); font-style: italic; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.main-nav a:hover { color: var(--sage-dark); }
nav.main-nav a.active { color: var(--ink); font-weight: 700; }
nav.main-nav a.btn-primary,
nav.main-nav a.btn-primary:hover { color: var(--card); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--card);
}
.btn-primary:hover { background: var(--ink); box-shadow: 0 8px 20px rgba(43,51,40,0.18); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sage-dark); color: var(--sage-dark); }

/* ---------- Hero / thread motif ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { max-width: 11.5ch; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }

.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.thread path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 3000;
  animation: draw 3.2s ease forwards 0.2s;
}

@keyframes draw {
  to { stroke-dasharray: 3000 0; }
}

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sage-pale) 0%, var(--plum-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

/* generic section rhythm */

section { padding: 76px 0; }
.section-tight { padding: 56px 0; }

.divider-line {
  width: 100%;
  height: 44px;
  margin: 0 auto;
}
.divider-line path {
  fill: none;
  stroke: var(--taupe);
  stroke-width: 1.4;
}

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card .mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--plum-pale);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 4px 6px 4px 0;
}

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

.cta-band {
  background: var(--sage-dark);
  color: var(--card);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--card); }
.cta-band p { color: rgba(251,249,244,0.82); }
.cta-band .btn-primary { background: var(--card); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--gold); color: var(--card); }

/* ---------- Steps (real sequence: services page) ---------- */

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sage-dark);
}

/* ---------- Fee table ---------- */

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.fee-table th, .fee-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.fee-table th { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); }
.fee-table tr:last-child td { border-bottom: none; }

/* ---------- Form ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.notice {
  border-left: 3px solid var(--gold);
  background: var(--plum-pale);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}
.notice strong { color: var(--ink); }

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

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p { font-size: 0.94rem; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Placeholder flag (visible reminder to edit before publishing) ---------- */

.todo {
  background: linear-gradient(transparent 60%, rgba(185,138,78,0.25) 60%);
}

/* ---------- Motion & accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .thread path { animation: none; stroke-dasharray: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }

  .nav-toggle { display: block; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 24px;
    box-shadow: 0 12px 24px rgba(43,51,40,0.08);
    z-index: 10;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; width: 100%; }
  nav.main-nav .btn { margin-top: 10px; width: 100%; justify-content: center; }
}
