/* Counselling Forces: site styles
   Colours, fonts and spacing are set once here in :root. */

:root {
  --cream: #FBF7F0;
  --ink: #1F3B4D;
  --text: #26343D;
  --muted: #4A5A63;
  --muted-2: #3D4D56;
  --accent: #B4552A;
  --rust: #8A4220;
  --sage: #E3ECE4;
  --sand: #F6E6CF;
  --sun: #F2B866;
  --line: #E6DFD2;
  --alert: #FFF3E6;
  --footer: #17303F;
  --footer-text: #E7EEF0;
  --gutter: clamp(20px, 5vw, 48px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 22px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 20px; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--md { max-width: 1100px; }
.wrap--sm { max-width: 1000px; }
.wrap--xs { max-width: 900px; }
.wrap--narrow { max-width: 720px; }

.section { padding: 72px var(--gutter); }
.section--tight { padding-top: 40px; padding-bottom: 40px; }
.section--intro { padding-top: 32px; padding-bottom: 56px; }
.section--flush-top { padding-top: 0; }
.section--sage { background: var(--sage); }
.section--sand { background: var(--sand); }
.section--alert { background: var(--alert); font-size: 16px; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--center { text-align: center; }

.row { display: flex; flex-wrap: wrap; gap: 40px; }
.row--center { align-items: center; }
.row--end { align-items: flex-end; }
.row--start { align-items: flex-start; }
.col { flex: 1 1 400px; min-width: 0; }
.col--wide { flex: 1.4 1 480px; }

.eyebrow {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}
.lead { font-size: 20px; max-width: 700px; }
.small { font-size: 16px; }
.muted { color: var(--muted); }
.mt { margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { color: #fff; background: #9A4723; }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 14px 28px; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #15293A; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

/* ---------- Top bar, header and navigation ---------- */
.topbar { background: var(--sage); color: var(--ink); font-size: 15px; padding: 10px var(--gutter); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; }
.topbar p { margin: 0; }
.topbar a { color: var(--rust); font-weight: 700; margin-left: auto; text-align: right; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px var(--gutter); max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 600;
}
.logo img { height: 40px; width: auto; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 17px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.nav .btn { padding: 12px 22px; font-size: 17px; }
.nav .btn[aria-current="page"] { border-bottom: 0; background: var(--ink); }

/* ---------- Home hero ---------- */
.hero { padding: 32px var(--gutter) 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); }
.hero .lead { max-width: 540px; margin-bottom: 28px; }
.hero-art { flex: 1 1 380px; min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 28px; }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 28px; }
.trust > div { flex: 1 1 260px; }
.trust strong { display: block; color: var(--ink); margin-bottom: 4px; }
.trust p { font-size: 16px; color: var(--muted-2); }

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.cards--tight { gap: 18px; }
.card {
  flex: 1 1 300px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px;
}
.card--flat { border: 0; }
.card--sage { background: var(--sage); border: 0; }
.card--sand { background: var(--sand); border: 0; }
.card--dark { background: var(--ink); color: #fff; border: 0; }
.card--dark h2, .card--dark h3 { color: #fff; }
.card--cream { background: var(--cream); color: var(--text); border: 0; }
.card--big { border-radius: 28px; padding: 44px; flex-basis: 440px; }
.card--small { flex-basis: 220px; padding: 22px; border-radius: 20px; }
a.card { display: block; text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--accent); color: var(--text); }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); margin: 0 0 8px; }
.card-link { font-weight: 700; color: var(--ink); text-decoration: underline; }
.card-icon { display: block; margin-bottom: 16px; }
.card-label { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.phase-num { font-weight: 700; color: var(--rust); margin-bottom: 4px; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.pill { background: var(--sand); border-radius: 999px; padding: 10px 20px; font-size: 17px; }
.pill--sage { background: var(--sage); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.badge { border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--sage); }
.badge--sand { background: var(--sand); }
.jump-links { display: flex; flex-wrap: wrap; gap: 12px; }
.jump-links a { text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 220px; background: #fff; border-radius: 24px; padding: 28px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sun);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.step strong { display: block; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 16px; }

/* ---------- Key/value lists ---------- */
.kv { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .val { font-weight: 700; color: var(--rust); text-align: right; }
.kv--plain .val { color: var(--text); }

/* ---------- Photo placeholders ---------- */
.photo {
  flex: 0 1 320px; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; min-width: 0;
  border-radius: 28px; overflow: hidden; background: var(--cream);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--placeholder {
  border: 2px dashed var(--accent); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--muted-2); font-size: 16px;
}
.photo--sage { border-color: #7FA897; background: #F1F5F0; }
.author { display: flex; gap: 20px; align-items: center; flex: 1 1 520px; min-width: 0; }
.author-photo {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%;
  border: 2px dashed #7FA897; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted-2);
}
.author-photo:has(img) { border: 0; overflow: hidden; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Timeline (qualifications) ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline > div {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 26px;
}
.timeline .when { flex: 0 0 130px; font-weight: 700; color: var(--rust); margin: 0; }
.timeline .what { flex: 1 1 300px; margin: 0; }

/* ---------- Prices ---------- */
.price { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; margin: 0 0 14px; }

/* ---------- Table ---------- */
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 17px; }
.data-table caption { text-align: left; padding: 26px 28px 10px; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); }
.data-table th { text-align: left; background: var(--sage); color: var(--ink); padding: 12px 28px; }
.data-table td { padding: 16px 28px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 700; }
.data-table .answer { font-weight: 700; color: var(--rust); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 30px; }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); }
.faq details p { margin-top: 12px; }

/* ---------- Help now ---------- */
.help-big { flex: 1 1 380px; border-radius: 24px; padding: 32px; color: #fff; }
.help-big--urgent { background: var(--accent); }
.help-big--dark { background: var(--ink); }
.help-big .num { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; margin: 0 0 6px; }
.help-big strong { display: block; margin-bottom: 6px; }
.helpline .num { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.helpline .num a { text-decoration: none; }

/* ---------- Contact form ---------- */
.contact-box { background: var(--sage); border-radius: 24px; padding: 28px; }
.contact-box p { margin-bottom: 8px; }
.form { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-note { margin: 0; padding: 14px 18px; background: var(--alert); border-radius: 16px; font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; color: var(--ink); }
.field label span { font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 12px 16px;
  border: 1.5px solid #9AA6AD; border-radius: 14px; background: var(--cream); color: var(--text);
}
.field select { min-height: 48px; }
.field textarea { resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 22px; }
.form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 56px var(--gutter) 36px; font-size: 15px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 36px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid p { margin: 0; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 4px !important; }
.footer-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 8px !important; }
.site-footer .help-link { color: var(--sun); }
.footer-bottom {
  border-top: 1px solid #33495A; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 14px; color: #C5D1D8;
}
.footer-bottom p { margin: 0; }

/* BACP logo: shown unaltered on a white card, as BACP requires the mark in its original colours */
.footer-bacp {
  display: inline-block; align-self: flex-start;
  background: #fff; border-radius: 10px; padding: 12px 14px;
  margin-top: 12px; line-height: 0;
  transition: box-shadow .2s ease;
}
.footer-bacp img { display: block; width: 220px; max-width: 100%; height: auto; }
.footer-bacp:hover { box-shadow: 0 0 0 3px var(--sun); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .nav { gap: 6px 16px; font-size: 16px; }
  .card, .card--big, .form { padding: 26px; }
  .price, .help-big .num { font-size: 44px; }
}

/* ---------- Long-form text (privacy policy) ---------- */
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
