/* Ablement — page-level layout.
   Tokens and component classes live in tokens.css and components.css,
   linked before this file. Everything here uses the CSS custom properties
   from tokens.css rather than hard-coded values. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--link); }
a:hover { color: var(--green-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.hl {
  background: var(--orange);
  color: var(--on-orange);
  padding: 0 0.12em;
  border-radius: var(--radius-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 150ms;
}
.skip-link:focus { top: 8px; }

/* Container / layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.measure { max-width: var(--measure); }

.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.section-head .wl-eyebrow { margin-bottom: 0; }

.two-col {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}
.two-col .col { flex: 1 1 auto; min-width: 0; }
.two-col .col--copy { flex: 0 0 auto; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: var(--space-5); }
.two-col .col--aside { display: flex; flex-direction: column; gap: var(--space-5); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.logo-link { display: block; text-decoration: none; flex: none; }
.logo { height: 30px; width: auto; }

.nav ul { display: flex; gap: var(--space-6); align-items: center; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  padding: var(--space-3) 0;
  display: inline-block;
}
.nav a:hover { color: var(--green-text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.call-btn svg { width: 24px; height: 24px; flex: none; }
.call-btn--desktop { flex: none; }
.call-btn--mobile {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--on-orange);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: none;
}
.call-btn--mobile svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) 0;
  background: var(--gradient-tertiary);
}
.stripe-motif {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 420px;
  height: 194px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy {
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 68px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-row { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }

/* Photo placeholders (no JavaScript): the caption sits behind the <img>.
   When the image file exists it paints over the caption; when it is
   missing, the browser's broken-image glyph is small and the caption
   shows through around it. */
.photo {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  display: flex;
}
.photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  font-size: 20px;
  line-height: 30px;
  color: var(--green-text);
  z-index: 0;
}
.photo__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  color: transparent; /* hides the broken-image alt text when the file is missing */
  font-size: 0;        /* hides the broken-image alt text when the file is missing */
}
.hero-photo { flex: 1 1 auto; min-width: 0; height: 480px; }
.who-photo { flex: 0 0 320px; height: 400px; background: var(--surface-soft); }

/* Facts */
.facts { padding: var(--space-9) 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.wl-fact { max-width: none; }

/* Alternating background sections */
.alt-bg { background: var(--surface-soft); }

/* How it works */
.how { padding: var(--space-9) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-bottom: var(--space-6); }
.wl-step { max-width: none; }

.directive-note {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  flex-wrap: wrap;
}
.directive-note .flag { width: 36px; height: 24px; flex: none; border-radius: 4px; }
.directive-note .arrow-icon { width: 24px; height: 24px; flex: none; }
.directive-note p { flex: 1 1 260px; }

/* What it costs */
.cost { padding: var(--space-9) 0; }
.price-row { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.price-figure {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 88px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}
.price-label { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 700; }

.cost-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); }
.cost-card__block { display: flex; flex-direction: column; gap: var(--space-2); }
.rule { height: 1px; background: var(--line); }

/* Who */
.who { padding: var(--space-9) 0; }
.wl-phone--on-alt { background: var(--surface); }

/* Book a call */
.book { padding: var(--space-9) 0; }
.callback-form { display: flex; flex-direction: column; gap: var(--space-5); }
.honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wl-field { max-width: none; }
.form-actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.consent { font-size: 18px; line-height: 27px; color: var(--ink-muted); }

.parent-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--orange-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* Simple pages: thanks.html, privacy.html */
.simple-page { padding: var(--space-9) 0; }
.simple-page__inner { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; max-width: 760px; }
.legal-page h2 { margin-top: var(--space-4); }
.legal-page > * + h2 { margin-top: var(--space-6); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-7) 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-logo { height: 28px; width: auto; }
.footer-top nav ul { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-top nav a { font-size: 18px; line-height: 48px; color: var(--surface); text-decoration: none; }
.footer-top nav a:hover { text-decoration: underline; }
.footer-fine {
  box-sizing: border-box;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-8);
  font-size: 18px;
  line-height: 27px;
  color: var(--ink-muted);
}

/* Sticky mobile call bar */
.sticky-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
}
.sticky-call-bar .wl-btn { width: 100%; }

/* ---------- Breakpoint: phones and small tablets ---------- */
@media (max-width: 899px) {
  .container,
  .header-inner,
  .footer-fine { padding-left: var(--space-5); padding-right: var(--space-5); }

  .nav { display: none; }
  .call-btn--desktop { display: none; }
  .call-btn--mobile { display: flex; }

  .hero { padding: var(--space-8) 0 calc(var(--space-8) + 88px); }
  .hero-inner { flex-direction: column; gap: var(--space-6); align-items: stretch; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: 44px; line-height: 48px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .wl-btn { width: 100%; }
  .hero-photo { height: 300px; }

  .facts, .how, .cost, .who, .book { padding: var(--space-8) 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .two-col { flex-direction: column; gap: var(--space-6); }
  .two-col .col--copy { max-width: none; }
  .two-col--reverse { flex-direction: column; }
  .who-photo { flex: none; width: 100%; height: 260px; }

  .price-figure { font-size: 64px; line-height: 64px; }

  .directive-note { padding: var(--space-5); }

  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .footer-top nav ul { flex-direction: column; gap: 0; }

  .site-footer { padding-bottom: calc(var(--space-8) + 88px); }

  .sticky-call-bar { display: flex; }
}

/* Respect reduced motion: only hover colour changes exist anyway, so this
   is a safety net for any inherited transitions from components.css. */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* The hero stripes take their colour here: the Content-Security-Policy blocks inline style attributes. */
.stripe-motif g { fill: var(--green); }
