/* Breakfree Counselling website.
   Tokens copied from the Breakfree app: src/constants/theme.ts */

@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/opendyslexic-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/opendyslexic-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --text: #1A2E33;
  --text-2: #5E7176;
  --bg: #F4FBFA;
  --bg-deep: #EAF6F3;
  --surface: #FFFFFF;
  --surface-muted: #EEF7F5;
  --surface-selected: #DDF0EC;
  --mint: #3FCFB1;
  --teal: #29B7D6;          /* decoration only: too light for text */
  --brand-dark: #1A6F7A;
  --teal-text: #17788C;
  --green: #22B573;
  --green-soft: #E8F8EF;
  --warm: #F4A261;
  --warm-soft: #FFF6EF;
  --warm-text: #9A4A12;     /* darker warm for words on warm-soft (AA) */
  --crisis: #B83A3A;
  --border: #E2EFEC;
  --gradient: linear-gradient(135deg, #128070, #136E90);
  --gradient-logo: linear-gradient(135deg, #3FCFB1, #29B7D6);
  --r-card: 28px;
  --r-small: 14px;
  --shadow-card: 0 6px 16px rgba(26, 111, 122, 0.06);
  --shadow-raised: 0 10px 24px rgba(26, 111, 122, 0.12);
  --tap: 56px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --gutter: 16px;
  --exit-space: 136px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
html.dyslexic body { font-family: 'OpenDyslexic', var(--font); line-height: 1.75; letter-spacing: 0.01em; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #FFFFFF;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 2000;
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Quick exit (same as the app) ---------- */
.quick-exit {
  position: fixed; top: 8px; right: 12px; z-index: 1500;
  min-height: 52px; min-width: 112px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand-dark); color: #fff;
  font: 700 1rem/1 var(--font);
  box-shadow: var(--shadow-raised);
}
html.dyslexic .quick-exit { font-family: 'OpenDyslexic', var(--font); }
.quick-exit:hover { background: #145a63; }
.quick-exit-hint { font-size: 0.875rem; color: var(--text-2); }

/* ---------- Help strip + header ---------- */
.help-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.help-strip .wrap { padding-top: 10px; padding-bottom: 10px; padding-right: var(--exit-space); min-height: 68px; display: flex; align-items: center; }
.help-strip p { margin: 0; }
.help-strip a { color: var(--crisis); font-weight: 700; }
.help-strip a.urgent-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--crisis); color: #fff; text-decoration: none;
  font-size: 1rem;
}
.help-strip a.urgent-btn:hover, .help-strip a.urgent-btn:focus-visible { filter: brightness(0.92); }

.site-header { position: relative; z-index: 100; }
.site-header .bar-wrap { position: relative; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 176px; height: auto; }
@media (min-width: 720px) { .brand img { width: 210px; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--teal-text); background: var(--surface); color: var(--teal-text);
  font: 700 1rem/1 var(--font); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-raised); }
.site-nav li { margin: 0; }
.site-nav a {
  white-space: nowrap;
  display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px;
  color: var(--text); font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--surface-muted); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--surface-selected); color: var(--brand-dark); font-weight: 700; }
.nav-panel { padding-bottom: 12px; }

@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; }
  .nav-panel { padding-bottom: 0; }
  .site-header .bar { flex-wrap: nowrap; }
  .site-nav ul { display: flex; gap: 2px; padding: 6px; box-shadow: var(--shadow-card); }
  .site-nav a { min-height: 44px; padding: 0 14px; font-size: 0.975rem; }
}

/* ---------- Buttons (app PrimaryButton / SecondaryButton) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 28px; border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--font); letter-spacing: 0.2px; text-decoration: none; text-align: center;
  cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html.dyslexic .btn { font-family: 'OpenDyslexic', var(--font); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--teal-text); border: 1.5px solid var(--teal-text); font-weight: 600; }
.btn-secondary:hover { background: var(--surface); color: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { color: var(--brand-dark); box-shadow: var(--shadow-raised); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* ---------- Cards (app Card) ---------- */
.card { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); }
.card-soft { background: var(--surface-muted); box-shadow: none; }
.card-warm { background: var(--warm-soft); }
.card-success { background: var(--green-soft); }
.card-outline { border: 2px solid var(--teal); }
.card > :last-child { margin-bottom: 0; }
@media (min-width: 720px) { .card { padding: 32px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid { gap: 24px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 959px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section-deep { background: var(--bg-deep); }
.section-white { background: var(--surface); }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text);
}
.lede { font-size: 1.1875rem; color: var(--text-2); max-width: 44em; }
.section-head { max-width: 46em; margin-bottom: 32px; }
.muted { color: var(--text-2); }
.small { font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .tagline { color: var(--teal-text); font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-raised); }
.hero-badge {
  position: absolute; left: 16px; bottom: -20px; right: 16px;
  display: flex; gap: 12px; align-items: center;
}
.hero-badge .card { padding: 16px 20px; font-weight: 600; }
@media (min-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero-badge { left: -24px; right: auto; max-width: 320px; }
}

.page-hero { padding: 24px 0 40px; }
.page-hero h1 { margin-bottom: 12px; }
@media (min-width: 720px) { .page-hero { padding: 48px 0 56px; } }
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
.page-hero-grid img { border-radius: var(--r-card); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; } }

/* ---------- Bits ---------- */
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A6F7A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.9375rem; font-weight: 600; color: var(--text); }

.mission { font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 700; line-height: 1.35; color: var(--brand-dark); margin: 0; }
.mission span { display: block; }

.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-size: 1.125rem; }
.quote blockquote p:first-child::before { content: '\201C'; }
.quote blockquote p:last-child::after { content: '\201D'; }
.quote figcaption { font-weight: 700; color: var(--brand-dark); }
.quote figcaption span { display: block; font-weight: 400; color: var(--text-2); font-size: 0.9375rem; }

.placeholder {
  display: inline; background: var(--warm-soft); color: var(--warm-text);
  border: 1.5px dashed var(--warm); border-radius: 8px; padding: 1px 6px;
  font-weight: 600; font-size: 0.95em;
}
div.placeholder, p.placeholder { display: block; padding: 12px 16px; margin: 0 0 1em; }

.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--surface-selected); color: var(--brand-dark);
}
.icon-circle svg { width: 26px; height: 26px; }
.card-warm .icon-circle { background: #FFE6D2; color: var(--warm-text); }

/* ---------- Fees table ---------- */
.fees { width: 100%; border-collapse: collapse; }
.fees caption { text-align: left; font-weight: 700; color: var(--brand-dark); font-size: 1.25rem; padding-bottom: 8px; }
.fees th, .fees td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fees th[scope="col"] { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.fees td.price { text-align: right; font-weight: 800; white-space: nowrap; color: var(--brand-dark); }
.fees th.price { text-align: right; }
.fees tr:last-child td, .fees tr:last-child th { border-bottom: 0; }
@media (max-width: 599px) {
  .fees-full thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fees-full tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .fees-full tr:last-child { border-bottom: 0; }
  .fees-full th, .fees-full td { border: 0; padding: 0; }
  .fees-full th[scope="row"] { grid-column: 1; grid-row: 1; }
  .fees-full td.price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .fees-full td.for, .fees-full td.len { grid-column: 1; font-size: 0.9375rem; color: var(--text-2); }
  .fees-full td.for { grid-row: 2; }
  .fees-full td.len { grid-row: 3; }
}

/* ---------- People ---------- */
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 4px solid var(--surface-selected); }
.person .photo-slot { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 16px; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 0.8125rem; line-height: 1.25; }
.person h2, .person h3 { margin-bottom: 4px; }
.person .role { color: var(--teal-text); font-weight: 600; margin-bottom: 12px; }

/* ---------- Gradient band (app brand gradient) ---------- */
.band { background: var(--gradient); color: #fff; border-radius: var(--r-card); padding: 32px 24px; }
.band h2, .band h3, .band p { color: #fff; }
.band a:not(.btn) { color: #fff; }
@media (min-width: 720px) { .band { padding: 48px; } }

/* ---------- Crisis ---------- */
.crisis-card { border-left: 6px solid var(--crisis); }
.crisis-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.crisis-list li { margin: 0; }
.crisis-list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; min-height: var(--tap);
  border-radius: var(--r-small); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.crisis-list a:hover { border-color: var(--crisis); color: var(--text); }
.crisis-list strong { color: var(--crisis); font-size: 1.125rem; }
.crisis-list span { color: var(--text-2); font-size: 0.9375rem; }
@media (min-width: 720px) { .crisis-list.cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- App feature ---------- */
.app-feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .app-feature { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.coming { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--warm-soft); color: var(--warm-text); font-weight: 700; font-size: 0.875rem; margin-bottom: 16px; }
.coming::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.preview-note { font-size: 0.9375rem; color: var(--text-2); margin-top: 12px; }

.phone {
  position: relative; width: min(300px, 78vw); margin: 0 auto; padding: 12px;
  border-radius: 48px; background: #16262a; box-shadow: var(--shadow-raised), 0 30px 60px rgba(26,46,51,0.18);
}
.phone::before {
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #16262a; z-index: 2;
}
.phone .screen { border-radius: 36px; overflow: hidden; background: var(--bg); padding-top: 34px; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--bg); }
.phone-wrap { position: relative; padding: 24px 0; }
.phone-wrap::before {
  content: ''; position: absolute; inset: 10% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63,207,177,0.35), rgba(41,183,214,0.12) 60%, transparent);
  z-index: 0;
}
.phone-wrap .phone { z-index: 1; }

.install { margin-top: 24px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-muted); margin-bottom: 16px; }
.tabs [role="tab"] {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  font: 700 1rem/1 var(--font); color: var(--text-2); cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--brand-dark); box-shadow: var(--shadow-card); }
html.dyslexic .tabs [role="tab"] { font-family: 'OpenDyslexic', var(--font); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.steps .step-icon {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-selected); color: var(--brand-dark);
}
.steps .step-icon svg { width: 24px; height: 24px; }
.steps b { color: var(--brand-dark); }

.qr { display: none; }
@media (min-width: 960px) {
  .qr { display: flex; gap: 20px; align-items: center; margin-top: 24px; }
  .qr img { width: 132px; height: 132px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: var(--shadow-card); }
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
.feature-list li { margin: 0; }
.feature-list .card { height: 100%; }
.feature-list h3 { font-size: 1.125rem; }

.today-card { border: 2px solid var(--teal); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.today-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.today-card p { color: var(--text-2); margin: 0; }
.today-card svg { flex: none; width: 24px; height: 24px; color: var(--brand-dark); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; color: var(--text-2); font-size: 0.9375rem; margin-bottom: 6px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid #8FA7A3; border-radius: var(--r-small);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand-dark); }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Blog ---------- */
.post-card { display: grid; gap: 0; overflow: hidden; padding: 0; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .post-body { padding: 24px; }
.post-card h2 { font-size: 1.375rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
@media (min-width: 720px) { .post-card { grid-template-columns: 1fr 1.3fr; align-items: center; } .post-card img { height: 100%; aspect-ratio: auto; } }
.article { max-width: 42em; }
.article p { font-size: 1.125rem; }
.article .pull { font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); border-left: 4px solid var(--mint); padding-left: 20px; margin: 32px 0; }
.article-img { border-radius: var(--r-card); margin: 0 0 32px; max-height: 480px; width: 100%; object-fit: cover; }

/* ---------- Awards ---------- */
.awards { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.awards a { display: block; background: #fff; border-radius: var(--r-small); padding: 10px; box-shadow: var(--shadow-card); }
.awards img { height: 64px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #E6F2EF; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.125rem; color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-help { background: #fff; color: var(--text); border-radius: var(--r-card); padding: 24px; }
.footer-help h2 { color: var(--crisis); }
.footer-help a { color: var(--text); }
.footer-help ul { list-style: none; padding: 0; margin: 0 0 12px; }
.footer-help li { padding: 8px 0; border-bottom: 1px solid var(--border); margin: 0; }
.footer-help li:last-child { border-bottom: 0; }
.footer-help strong { color: var(--crisis); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-logo { width: 150px; margin-bottom: 20px; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.social a:hover { background: rgba(255,255,255,0.2); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-company { margin: 0; max-width: 60ch; }
.footer-company .placeholder { color: var(--warm-text); }
.membership-slot { min-width: 140px; min-height: 64px; display: inline-grid; place-items: center; text-align: center; }
.memberships { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.memberships img { height: 64px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.memberships img[src$="bupa-registered-provider.png"] { padding: 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.9375rem; }
.font-toggle {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.6);
  background: transparent; color: #fff; font: 600 0.9375rem/1 var(--font); cursor: pointer;
}
html.dyslexic .font-toggle { font-family: 'OpenDyslexic', var(--font); }
.concept-note { background: var(--warm-soft); color: var(--warm-text); font-size: 0.875rem; font-weight: 600; padding: 8px var(--exit-space) 8px var(--gutter); min-height: 36px; }
@media (min-width: 720px) { .concept-note { text-align: center; padding-left: var(--exit-space); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn-primary:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Contact form ---------- */
.emergency-note { background: #FDF0F0; border-left: 6px solid var(--crisis); margin-bottom: 24px; box-shadow: none; }
.emergency-note h2 { font-size: 1.3rem; color: #8E2626; }
.emergency-note a { color: #8E2626; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 4px solid var(--crisis); border-radius: var(--r-small); padding: 16px 20px; margin-bottom: 24px; background: var(--surface); }
.error-summary h3 { font-size: 1.2rem; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #8E2626; font-weight: 700; }
.form-notice { border-left: 6px solid var(--crisis); background: #FDF0F0; border-radius: var(--r-small); padding: 14px 18px; margin-bottom: 24px; }
.form-notice p { margin: 0; font-weight: 600; }
.field-error { border-left: 4px solid var(--crisis); padding-left: 14px; }
.field-error input, .field-error textarea { border-color: var(--crisis); border-width: 2px; }
.error-message { color: #8E2626; font-weight: 700; margin: 0 0 6px; }

/* ---------- Help now: big tap targets ---------- */
.crisis-big { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .crisis-big { grid-template-columns: repeat(2, 1fr); } }
.crisis-big li { margin: 0; }
.crisis-big a {
  display: flex; flex-direction: column; gap: 4px; min-height: 120px; padding: 20px 24px;
  border-radius: var(--r-card); background: var(--surface); border: 2px solid #E7C4C4;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-card);
}
.crisis-big a:hover { border-color: var(--crisis); color: var(--text); }
.crisis-big .who { font-weight: 700; font-size: 1.125rem; }
.crisis-big .number { font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 800; line-height: 1.1; color: var(--crisis); letter-spacing: 0.01em; }
.crisis-big .what { color: var(--text-2); }
.crisis-big .action { margin-top: 6px; font-weight: 700; color: var(--crisis); }
.crisis-big .action-desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .crisis-big .action-touch { display: none; }
  .crisis-big .action-desktop { display: inline; color: var(--text-2); font-weight: 600; }
}
.crisis-big .emergency a { background: #FDF0F0; border-color: var(--crisis); }

/* Keep the logo readable next to the full desktop menu */
@media (min-width: 1120px) {
  .brand { flex: none; }
  .brand img { width: 140px; }
  .site-nav a { padding: 0 10px; }
}
