/* =========================================================
   Glasgow Recovery Help — stylesheet
   Palette: charcoal base, amber CTA, red reserved for emergency
   Type: Barlow Semi Condensed (headings) + Inter (body)
   ========================================================= */

:root {
  --charcoal: #1A1D21;
  --charcoal-2: #22262B;
  --charcoal-3: #2C3138;
  --surface: #F5F6F7;
  --surface-2: #FFFFFF;
  --ink: #1A1D21;
  --steel: #8A929B;
  --steel-light: #B4BAC1;
  --amber: #FFB300;
  --amber-dark: #E09E00;
  --red: #E23A2E;
  --red-dark: #B92C22;
  --line: rgba(138, 146, 155, 0.22);

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);

  --font-display: "Barlow Semi Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* route-line motif: amber dashes echoing lane markings */
.routeline {
  height: 4px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg, var(--amber) 0 26px, transparent 26px 46px
  );
  opacity: 0.9;
}

/* ---------- skip link + focus ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--charcoal); padding: 0.6rem 1rem;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal);
  color: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--surface); text-decoration: none; letter-spacing: -0.01em;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--amber); color: var(--charcoal);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.brand .mark svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.25);
  color: var(--surface); border-radius: 8px; padding: 0.4rem 0.55rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

.main-nav ul {
  display: flex; gap: 0.3rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.main-nav a {
  display: inline-block; padding: 0.5rem 0.7rem; text-decoration: none;
  color: var(--steel-light); font-size: 0.95rem; border-radius: 7px; font-weight: 500;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--surface); background: rgba(255,255,255,0.07); }

.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.header-cta .btn-call,
.btn-call { display: none !important; } /* revealed only when body.has-phone (config) */
body.has-phone .btn-call { display: inline-flex !important; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal-2); border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 80vh; overflow: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gap) 1rem; gap: 0.1rem; }
  .main-nav a { padding: 0.7rem 0.6rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  cursor: pointer; border: 2px solid transparent; transition: transform 0.12s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--charcoal); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--surface); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-dark { background: var(--charcoal); color: var(--surface); }
.btn-dark:hover { background: var(--charcoal-3); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.95rem; }

/* ---------- hero (motorway-sign inspired) ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255,179,0,0.10), transparent 60%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: var(--surface);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.82rem; color: var(--amber);
  border: 1px solid rgba(255,179,0,0.4); border-radius: 100px; padding: 0.3rem 0.85rem;
  margin-bottom: 1.2rem;
}
.hero h1 { color: var(--surface); max-width: 15ch; }
.hero h1 .accent { color: var(--amber); }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--steel-light); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-note {
  margin-top: 1.4rem; font-size: 0.9rem; color: var(--steel-light);
  display: flex; gap: 0.55rem; align-items: flex-start; max-width: 48ch;
}
.hero-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--amber); }

/* motorway sign card */
.sign {
  background: #0E5A3A; /* UK primary-route green */
  border: 4px solid #fff; border-radius: 14px;
  padding: 1.4rem 1.5rem; color: #fff; box-shadow: var(--shadow);
  font-family: var(--font-display);
}
.sign .sign-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-size: 1.1rem; font-weight: 600; }
.sign .roundel {
  background: #fff; color: #0E5A3A; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
}
.sign ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sign li { display: flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; }
.sign li .arrow { color: var(--amber); font-weight: 800; }
.sign .roads { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sign .road {
  background: #0059B3; border: 2px solid #fff; border-radius: 6px;
  padding: 0.15rem 0.5rem; font-weight: 700; font-size: 0.9rem;
}

/* ---------- sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head .eyebrow { color: var(--amber-dark); border-color: rgba(224,158,0,0.4); }
.section-head p { color: #4b515a; }
.bg-charcoal { background: var(--charcoal); color: var(--surface); }
.bg-charcoal .section-head p { color: var(--steel-light); }
.bg-charcoal h2 { color: var(--surface); }
.bg-white { background: var(--surface-2); }

/* card grids */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; height: 100%;
}
.bg-charcoal .card { background: var(--charcoal-2); border-color: rgba(255,255,255,0.09); }
.bg-white .card { background: var(--surface); }
.card .ico {
  width: 44px; height: 44px; border-radius: 9px; background: rgba(255,179,0,0.15);
  color: var(--amber-dark); display: grid; place-items: center; margin-bottom: 0.9rem;
}
.bg-charcoal .card .ico { color: var(--amber); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: #565c65; font-size: 0.98rem; }
.bg-charcoal .card p { color: var(--steel-light); }

/* steps (How it works) */
.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--amber); border: 2px solid var(--amber); width: 2.6rem; height: 2.6rem;
  border-radius: 8px; display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.2rem; }
.step p { color: var(--steel-light); margin: 0; }

/* coverage / list chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4rem 0.9rem; font-size: 0.92rem; font-weight: 500;
}
.bg-charcoal .chip { background: var(--charcoal-2); border-color: rgba(255,255,255,0.12); color: var(--surface); }

/* trust badges (no fabricated stats — process/values only) */
.trust-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 820px) { .trust-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; } }
.trust {
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.trust svg { width: 26px; height: 26px; color: var(--amber); flex-shrink: 0; }
.trust strong { font-family: var(--font-display); display: block; font-size: 1.05rem; }
.trust span { color: var(--steel-light); font-size: 0.92rem; }
.bg-white .trust span, section:not(.bg-charcoal) .trust span { color: #565c65; }
.bg-white .trust svg, section:not(.bg-charcoal) .trust svg { color: var(--amber-dark); }

/* ---------- emergency / safety notice (red is reserved for this) ---------- */
.notice {
  border-left: 5px solid var(--amber); background: rgba(255,179,0,0.10);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem;
}
.notice.critical { border-left-color: var(--red); background: rgba(226,58,46,0.08); }
.notice h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.notice.critical h3 { color: var(--red-dark); }
.notice.critical svg { color: var(--red); }
.notice svg { width: 22px; height: 22px; color: var(--amber-dark); }
.notice p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem;
  background: var(--surface-2); margin-bottom: 0.7rem;
}
.faq details[open] { border-color: rgba(255,179,0,0.5); }
.faq summary {
  cursor: pointer; padding: 1.1rem 0; font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--amber-dark); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 1.1rem; margin: 0; color: #565c65; }

/* ---------- CTA / contact form ---------- */
.cta-band { background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-3) 100%); color: var(--surface); }
.cta-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-grid h2 { color: var(--surface); }
.form-card { background: var(--surface-2); color: var(--ink); border-radius: 14px; padding: clamp(1.3rem,3vw,2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field label .opt { color: var(--steel); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-disclaimer {
  font-size: 0.85rem; color: #565c65; background: rgba(255,179,0,0.10);
  border-radius: 8px; padding: 0.7rem 0.85rem; margin-bottom: 1rem;
  display: flex; gap: 0.5rem;
}
.form-disclaimer svg { width: 18px; height: 18px; color: var(--amber-dark); flex-shrink: 0; margin-top: 2px; }
.form-status { margin-top: 0.8rem; font-size: 0.95rem; font-weight: 500; }
.form-status.ok { color: #0E5A3A; }
.form-status.err { color: var(--red-dark); }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 0.9rem 0; font-size: 0.88rem; color: var(--steel); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--amber-dark); text-decoration: underline; }
.crumbs li[aria-current="page"] { color: var(--ink); font-weight: 500; }
.crumbs .sep { color: var(--steel-light); }

/* ---------- page hero (interior) ---------- */
.page-hero { background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%); color: var(--surface); padding: clamp(2rem,5vw,3.2rem) 0; }
.page-hero h1 { color: var(--surface); max-width: 20ch; }
.page-hero p { color: var(--steel-light); max-width: 60ch; font-size: 1.1rem; margin: 0; }

/* prose blocks on interior pages */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* two-column interior layout */
.interior { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 900px) { .interior { grid-template-columns: 1fr; } }
.side-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 84px; }
.side-card h3 { font-size: 1.2rem; }
.side-links { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.side-links li { border-top: 1px solid var(--line); }
.side-links a { display: block; padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.side-links a:hover { color: var(--amber-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--steel-light); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--surface); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--steel-light); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--amber); }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.3rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- sticky mobile call bar (hidden until PHONE_ENABLED) ---------- */
.sticky-call {
  display: none !important;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--amber); color: var(--charcoal);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  padding: 0.9rem; text-decoration: none; box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.sticky-call svg { width: 22px; height: 22px; }
body.has-phone .sticky-call { display: flex !important; }
@media (min-width: 721px) { body.has-phone .sticky-call { display: none !important; } }
body.has-phone { padding-bottom: 60px; }
@media (min-width: 721px) { body.has-phone { padding-bottom: 0; } }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lede { font-size: 1.15rem; color: var(--steel-light); }
.center { text-align: center; }
