/* heard. — Heard Therapy website styles
   Colours live in :root. Swap the hex values for the Canva palette when you have it. */
:root {
  --ink: #111111;          /* logo black */
  --ink-soft: #3a3a3a;
  --muted: #6b6760;
  --paper: #faf7f2;        /* warm cream background */
  --paper-2: #f2ece2;
  --card: #ffffff;
  --line: #e4ddd1;
  --teal: #1f5f5b;         /* calm, clinical trust */
  --teal-soft: #dcebe8;
  --coral: #e8735a;        /* warmth, young people */
  --coral-soft: #fbe3dc;
  --sand: #efe2c9;
  --radius: 18px;
  --wrap: 1120px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: .8em; display: block; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* Crisis bar */
.crisis { background: var(--ink); color: #f3efe8; font-size: .85rem; text-align: center; padding: 8px 16px; }
.crisis a { color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 1.9rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; line-height: 1; }
.logo span { color: var(--ink); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 500; font-size: .95rem; padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: transform .15s ease, background .15s; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 9px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-2 { background: var(--paper-2); }
.bg-teal { background: var(--teal); color: #f4f1ea; }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal .eyebrow { color: #f3c9bc; }
.bg-teal a { color: #fff; }
.bg-ink { background: var(--ink); color: #eae6de; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card .ph { margin: -28px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin-bottom: .3em; }
.card .more { font-weight: 600; text-decoration: none; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); margin: 0 6px 8px 0; }
.tag.coral { background: var(--coral-soft); color: #a8432d; }
.tag.sand { background: var(--sand); color: #6d5627; }

/* Placeholder images: replace each .ph with an <img> when photos are ready */
.ph {
  position: relative; background: linear-gradient(135deg, var(--sand), var(--coral-soft) 55%, var(--teal-soft));
  border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: flex-end; overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 80% 20%, transparent 0 22px, rgba(255,255,255,.28) 22px 24px); }
.ph span { position: relative; margin: 14px; background: rgba(17,17,17,.78); color: #fff; font-size: .78rem; padding: 6px 11px; border-radius: 8px; line-height: 1.35; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.square { aspect-ratio: 1; }
.ph.teal { background: linear-gradient(135deg, var(--teal-soft), #b9d8d3); }
.ph.coral { background: linear-gradient(135deg, var(--coral-soft), #f6c4b5); }

/* Hero */
.hero { padding: 72px 0 84px; }
.hero .split { grid-template-columns: 1.15fr 1fr; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .ph:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 380px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.trust b { color: var(--ink); font-family: var(--head); font-weight: 600; }

/* Who we help strip */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.audience > div { padding: 30px; border-right: 1px solid var(--line); }
.audience > div:last-child { border-right: 0; }
.audience .num { font-family: var(--head); font-size: .85rem; color: var(--coral); font-weight: 600; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--head); font-size: 2rem; font-weight: 500; color: var(--coral); display: block; margin-bottom: 10px; }

/* Quote / research highlight */
.pull { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 400; line-height: 1.4; border-left: 4px solid var(--coral); padding-left: 24px; margin: 0 0 1em; }
.paper { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.paper .journal { font-size: .85rem; color: var(--muted); margin-bottom: .6em; }
.paper h3 { font-size: 1.12rem; }
.paper .cta { margin-top: auto; padding-top: 12px; font-weight: 600; }

/* Credentials table */
.creds { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.creds th, .creds td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.creds th { font-family: var(--head); font-weight: 600; background: var(--paper-2); font-size: .85rem; }
.creds tr:last-child td { border-bottom: 0; }
.pending { display: inline-block; background: #fff4d6; color: #7a5a00; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-family: var(--head); font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
details[open] summary::after { content: "–"; }
details > div { padding-top: 12px; color: var(--ink-soft); }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .88rem; font-weight: 600; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); margin-bottom: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { width: auto; margin: 5px 0 0; }
.form-msg { font-weight: 600; margin-top: 10px; }
.hp { position: absolute; left: -9999px; }

/* Newsletter band */
.newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; margin: 0; }
.newsletter .btn { border-color: #fff; }

/* Blog list */
.post-card { text-decoration: none; color: var(--ink); display: block; }
.post-card:hover h3 { color: var(--teal); }
.post-card .ph { margin-bottom: 16px; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .4em; }
article.post { max-width: 720px; margin: 0 auto; }
article.post h2 { font-size: 1.6rem; margin-top: 1.6em; }
article.post .ph { margin: 2em 0; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 40px; }
.page-hero p { max-width: 680px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9bf; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: #fff; font-size: 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.acknowledgement { border-top: 1px solid #2c2c2c; border-bottom: 1px solid #2c2c2c; padding: 22px 0; margin-bottom: 22px; font-size: .88rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #9b958b; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { border: 1px solid #3a3a3a; border-radius: 999px; padding: 6px 12px; font-size: .82rem; }

/* Notes for Mindy (visible only in draft; remove class "draft" from <body> to hide) */
.todo { display: none; }
body.draft .todo { display: block; background: #fff4d6; border: 1px dashed #c9a227; color: #5c4400; padding: 10px 14px; border-radius: 10px; font-size: .85rem; margin: 12px 0; }

/* Responsive */
@media (max-width: 960px) {
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .hero .split, .newsletter { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .audience { grid-template-columns: 1fr; }
  .audience > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; width: auto; border-bottom: 1.5px solid var(--ink); padding: 11px 20px; }
  .nav-toggle { display: block; }
  .g2, .g3, .g4, .steps, form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-collage .ph:first-child { min-height: 260px; }
}
