/* ==========================================================
   Martyn Kyle Counselling — shared stylesheet for inner pages
   (condition pages and HTML guides). Mirrors the homepage palette,
   type and components so every page reads as one site.
   ========================================================== */
:root {
  --wine-dark: #5C6576;
  --anthracite: #3D4148;
  --warm-gold: #C8A882;
  --gold-text: #8A6A3F;          /* darker gold for small text on light backgrounds (readable contrast) */
  --slate-blue: #8B9DAF;
  --pebble: #E8E6E3;
  --warm-white: #F7F5F2;
  --body-text: #2C2F33;
  --ink-muted: #5F6672;
  --slate-light: #B3BFCB;        /* blue-grey for text on the dark footer (readable contrast) */
  --white: #FFFFFF;
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --max-width: 1100px;
  --read-width: 760px;
  --section-pad: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-dark); transition: color 0.3s ease; }
a:hover { color: var(--gold-text); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--warm-gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--anthracite); line-height: 1.25; font-weight: 500; text-wrap: balance; }
h1 { font-size: 3rem; }
h2 { font-size: 2.1rem; margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
h1 em, h2 em { color: var(--warm-gold); font-style: italic; }
p { margin-bottom: 1.1em; }
ul, ol { margin: 0 0 1.2em 1.3em; }
li { margin-bottom: 0.45em; }

.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem;
}
.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--anthracite); color: var(--white); padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Navigation (same as homepage) ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 130, 0.2);
}
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--anthracite); text-decoration: none; }
.nav-brand span { color: var(--warm-gold); font-weight: 400; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; }
.nav-links li { margin: 0; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--wine-dark); text-decoration: none; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--warm-gold); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.is-current::after { width: 100%; }
/* Contact shown as a filled button, so it is one tap away on every page */
.nav-links { align-items: center; }
.nav-links li:last-child a { background: var(--wine-dark); color: var(--white); padding: 9px 18px; border-radius: 6px; transition: background 0.3s ease; }
.nav-links li:last-child a::after { display: none; }
.nav-links li:last-child a:hover { background: var(--anthracite); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 6px 0; border-radius: 2px; transition: all 0.3s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 6px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--wine-dark); color: var(--white); }
.btn-primary:hover { background: var(--anthracite); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--wine-dark); border-color: var(--slate-blue); }
.btn-secondary:hover { border-color: var(--warm-gold); color: var(--anthracite); }
.btn-gold { background: var(--warm-gold); color: var(--anthracite); }
.btn-gold:hover { background: var(--white); color: var(--anthracite); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 150px 0 70px;
  background: linear-gradient(135deg, var(--pebble) 0%, var(--warm-white) 55%, #E2DDD8 100%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.page-hero h1 { margin-bottom: 0.45em; }
.page-hero-sub { font-size: 1.1rem; color: var(--ink-muted); max-width: 560px; margin-bottom: 1.8rem; }
.page-hero-art { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(61,65,72,0.14); }
.breadcrumb { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-text); text-decoration: underline; }

/* ---------- Sections ---------- */
.band { padding: var(--section-pad) 0; }
.band-white { background: var(--white); }
.band-warm { background: var(--warm-white); }
.band-pebble { background: var(--pebble); }
.band-dark { background: var(--anthracite); color: var(--pebble); }
.band-dark h2 { color: var(--warm-white); }
.band-dark .section-label { color: var(--warm-gold); }
.band-dark p { color: rgba(247,245,242,0.84); }
.lede { font-size: 1.12rem; line-height: 1.8; }

/* Plain "in a sentence" definition */
.definition {
  background: var(--warm-white); border-left: 4px solid var(--warm-gold); border-radius: 0 12px 12px 0;
  padding: 28px 32px; margin: 0 0 2rem;
}
.definition p { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.5; color: var(--anthracite); margin: 0; }

/* Three-up cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--pebble); border-radius: 12px; padding: 30px 26px; }
.band-white .card { background: var(--warm-white); }
.card h3 { font-size: 1.2rem; }
.card p, .card li { font-size: 0.94rem; color: var(--ink-muted); }
.card ul { margin-bottom: 0; }
.card p:last-child { margin-bottom: 0; }

/* Numbered approach steps */
.steps { list-style: none; margin: 40px 0 0; counter-reset: step; display: grid; gap: 20px; }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  background: var(--white); border: 1px solid var(--pebble); border-radius: 12px; padding: 28px 30px 28px 92px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 28px; top: 28px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--warm-gold); color: var(--white);
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--ink-muted); margin-bottom: 0; font-size: 0.98rem; }
.small-print { font-size: 0.88rem; color: var(--ink-muted); margin-top: 28px; }

/* Tools */
.tool { background: var(--white); border-radius: 12px; padding: 30px 28px; border-top: 4px solid var(--warm-gold); }
.tool .tool-time { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.tool h3 { margin-top: 0.3em; }
.tool p, .tool li { font-size: 0.95rem; color: var(--body-text); }
.tool ol { margin-bottom: 0; }

/* Guide cards (same look as guides.html) */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.guide-card { background: var(--white); border: 1px solid rgba(200,168,130,0.3); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(61,65,72,0.13); }
.guide-card-body { padding: 24px 26px 26px; }
.guide-card-body .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.guide-card-body h3 { margin: 0.25em 0 0.4em; }
.guide-card-body p { font-size: 0.94rem; color: var(--ink-muted); margin-bottom: 0.8em; }
.guide-card-body .more { font-size: 0.88rem; font-weight: 500; color: var(--wine-dark); }

/* Urgent help */
.urgent { border: 1px solid rgba(92,101,118,0.3); background: var(--white); border-radius: 12px; padding: 28px 32px; }
.urgent h2 { font-size: 1.5rem; }
.urgent p:last-child, .urgent ul:last-child { margin-bottom: 0; }

/* FAQs */
.faq { border-top: 1px solid var(--pebble); margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--pebble); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-heading); font-size: 1.25rem; color: var(--anthracite);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-size: 1.6rem; color: var(--warm-gold); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-muted); padding-right: 44px; }

/* Practicalities strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0; text-align: left; }
.fact { border-top: 1px solid rgba(200,168,130,0.5); padding-top: 16px; }
.fact strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; color: var(--warm-white); }
.fact span { font-size: 0.9rem; color: rgba(247,245,242,0.75); }
.cta-contact { font-size: 0.95rem; margin-top: 22px; }
.cta-contact a { color: var(--warm-gold); }

/* ---------- Guide article ---------- */
.guide-toc { background: var(--white); border: 1px solid var(--pebble); border-radius: 12px; padding: 26px 30px; margin-bottom: 8px; }
.guide-toc h2 { font-size: 1.2rem; margin-bottom: 0.6em; }
.guide-toc ol { columns: 2; column-gap: 36px; margin-bottom: 0; font-size: 0.95rem; }
.guide-toc a { text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-section { padding: 56px 0 0; }
.guide-section:last-of-type { padding-bottom: var(--section-pad); }
.step-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); background: var(--wine-dark); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.guide-standfirst { font-family: var(--font-heading); font-size: 1.3rem; font-style: italic; color: var(--wine-dark); line-height: 1.5; }
.callout { background: var(--white); border-left: 4px solid var(--warm-gold); border-radius: 0 10px 10px 0; padding: 22px 26px; margin: 1.6rem 0; }
.callout h3 { font-size: 1.15rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 1.6rem 0; }
.pair-grid div { background: var(--white); border: 1px solid var(--pebble); border-radius: 10px; padding: 20px 22px; }
.pair-grid h3 { font-size: 1.1rem; }
.pair-grid p { font-size: 0.94rem; color: var(--ink-muted); margin: 0; }
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 1.6rem 0; }
.state { border-radius: 10px; padding: 22px; color: var(--white); }
.state h3 { color: var(--white); font-size: 1.2rem; }
.state p { font-size: 0.92rem; margin: 0; color: rgba(255,255,255,0.9); }
.state-1 { background: #6F8573; }
.state-2 { background: #A9764A; }
.state-3 { background: var(--wine-dark); }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; font-size: 0.94rem; }
th { background: var(--anthracite); color: var(--warm-white); text-align: left; font-weight: 500; padding: 12px 16px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid var(--pebble); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--anthracite); white-space: nowrap; }
.ladder { list-style: none; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ladder li { background: var(--white); border: 1px solid var(--pebble); border-top: 3px solid var(--warm-gold); border-radius: 8px; padding: 16px 14px; margin: 0; font-size: 0.88rem; color: var(--ink-muted); }
.ladder strong { display: block; font-size: 0.74rem; letter-spacing: 0.12em; color: var(--anthracite); margin-bottom: 6px; }
.prompt-list { list-style: none; margin: 1.6rem 0; }
.prompt-list li { background: var(--white); border: 1px solid var(--pebble); border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; }
.sources { font-size: 0.9rem; color: var(--ink-muted); }
.sources li { margin-bottom: 0.8em; }
.download-bar { background: var(--white); border: 1px solid rgba(200,168,130,0.45); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 2rem 0 0; }
/* ---------- Plain text pages (privacy policy) ---------- */
.plain-hero { padding: 140px 0 44px; }
.policy h2 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.4em; color: var(--wine-dark); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 0.98rem; }
.download-bar p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; max-width: 420px; }

/* ---------- Footer (same as homepage) ---------- */
footer { background: var(--anthracite); color: var(--slate-light); padding: 50px 0 30px; }
.band-dark + footer { border-top: 1px solid rgba(139,157,175,0.2); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--warm-white); margin-bottom: 6px; }
.footer-tagline { font-size: 0.85rem; margin-bottom: 4px; }
.footer-bacp { font-size: 0.8rem; }
.footer-bacp-logo { margin-top: 18px; display: inline-block; background: var(--warm-white); padding: 10px 14px; border-radius: 6px; }
.footer-bacp-logo img { max-width: 200px; width: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--slate-light); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--warm-gold); }
.footer-bottom { max-width: var(--max-width); margin: 30px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(139,157,175,0.2); font-size: 0.78rem; color: var(--slate-light); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) and (min-width: 901px) { .nav-links { gap: 20px; } .nav-links a { font-size: 0.84rem; } }
@media (max-width: 900px) {
  :root { --section-pad: 64px; }
  h1 { font-size: 2.3rem; } h2 { font-size: 1.8rem; }
  .page-hero { padding: 120px 0 50px; }
  .plain-hero { padding: 116px 0 34px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .states, .facts { grid-template-columns: 1fr; }
  .guide-grid, .pair-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .guide-toc ol { columns: 1; }
  /* Three-line menu button on tablets and phones (same width as the homepage) */
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--warm-white); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--pebble); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
  .nav-links.open { display: flex; align-items: stretch; }
  .nav-links li:last-child a { display: block; text-align: center; padding: 12px 18px; margin-top: 4px; }
  .nav-toggle { display: block; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}
@media (max-width: 768px) {
  h1 { font-size: 1.95rem; } h2 { font-size: 1.55rem; }
  .steps > li { padding: 84px 22px 24px; }
  .steps > li::before { left: 22px; top: 24px; }
  .definition { padding: 22px 22px; } .definition p { font-size: 1.2rem; }
  td:first-child { white-space: normal; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bacp-logo { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-nav, .btn-row, footer, .band-dark { display: none; } .page-hero { padding-top: 20px; } }
