/* Draft palette for the launch page. Four colors; the proposal palettes (WEB-95) may refine them.
   --red is for fills and accents only: white on it is 5.4:1, but red text on --ground fails AA.
   The logo keeps its own #FC0204. */
:root {
  --ground: #15110F;
  --text: #F6F2EF;
  --grey: #B9B0AA;
  --red: #B8312A;

  --surface: color-mix(in srgb, var(--text) 5%, var(--ground));
  --line: color-mix(in srgb, var(--text) 12%, transparent);

  --font: "Archivo", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  --radius: 6px;
  --call-bar: 64px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--call-bar) + env(safe-area-inset-bottom));
}

h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 680px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--red) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--grey); }
.btn-large { font-size: 1.35rem; min-height: 60px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--grey); font-weight: 600; }
.header-call { display: none; min-height: 40px; padding-block: 0.4em; }

/* Hero */
.hero {
  padding-block: 40px 32px;
  background: radial-gradient(60% 50% at 75% 40%, color-mix(in srgb, var(--red) 16%, transparent), transparent 70%);
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-logo { width: min(100%, 440px); height: auto; justify-self: center; order: -1; }
.eyebrow {
  color: var(--grey);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { color: var(--grey); font-size: 1.15rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1 1 220px; }

.proof {
  list-style: none;
  padding: 20px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--grey);
  font-weight: 600;
}
.proof li { display: flex; align-items: center; gap: 10px; }
.proof li::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }

/* Sections */
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.services { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.services li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
}
.services p { color: var(--grey); margin: 0; }
.note { color: var(--grey); max-width: 46em; }
.note strong { color: var(--text); }

.promise { background: var(--surface); }
.promise p { color: var(--grey); font-size: 1.1rem; }
.promise p:last-child { color: var(--text); font-weight: 600; }

.inspection { display: grid; gap: 32px; align-items: start; }
.inspection p { color: var(--grey); }
.area { font-weight: 600; }

.call-card, .form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.call-card .btn { width: 100%; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.optional { color: var(--grey); font-weight: 400; }
.form input, .form textarea {
  font: inherit;
  font-size: 16px; /* avoids iOS zoom on focus */
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--grey); font-size: 0.95rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--text); }
.fine { font-size: 0.85rem; }

/* Mobile call bar */
.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(var(--call-bar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.call-bar svg { width: 1.2em; height: 1.2em; fill: currentColor; }

@media (min-width: 720px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .inspection { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .header-call { display: inline-flex; }
  .hero { padding-block: 72px 48px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .hero-logo { order: 0; }
  .section { padding-block: 88px; }
}
