/* Client site base stylesheet.
   Brand colours are injected per-client as --brand / --brand-dark / --accent. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --fg: #16191d;
  --fg-muted: #5b6472;
  --border: #e3e6ea;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16,25,45,.06), 0 8px 24px rgba(16,25,45,.06);
  --radius: 12px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --bg-alt: #151a1f;
    --fg: #e9edf2;
    --fg-muted: #9aa5b4;
    --border: #262d35;
    --card: #161b21;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.1875rem; }
p + p { margin-top: 1rem; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.small { font-size: .875rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 0; }
.logo { font-weight: 800; font-size: 1.125rem; color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.logo img { max-height: 40px; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a { color: var(--fg-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.site-header nav a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .site-header nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: .8125rem 1.375rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .9375rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-sm { padding: .5rem .875rem; font-size: .875rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.cta-row.center { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 9%, var(--bg)),
    var(--bg) 65%);
}
.hero.compact { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .75rem;
  font-weight: 700; color: var(--brand); margin-bottom: .75rem;
}
.lede { font-size: 1.125rem; color: var(--fg-muted); max-width: 60ch; margin-top: 1rem; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.trust li { font-size: .875rem; font-weight: 600; color: var(--fg-muted); }
.trust li::before { content: "✓"; color: var(--brand); margin-right: .4rem; font-weight: 700; }

.crumbs { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--fg-muted); }
.crumbs span { margin: 0 .25rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }
.cta-band { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, var(--bg)), var(--bg)); }

.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--fg-muted); font-size: .9375rem; }
.price { font-weight: 700; color: var(--brand); margin-top: .75rem; }
.more { display: inline-block; margin-top: 1rem; font-size: .875rem; font-weight: 600; text-decoration: none; }

.ticks { padding-left: 0; list-style: none; margin: 1rem 0; }
.ticks li { padding-left: 1.75rem; position: relative; margin-bottom: .5rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

details {
  border-bottom: 1px solid var(--border); padding: 1rem 0;
}
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .75rem; color: var(--fg-muted); }

/* ---------- testimonials ---------- */
.quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin: 0; box-shadow: var(--shadow);
}
.stars { color: var(--accent); letter-spacing: .1em; margin-bottom: .75rem; }
.quote blockquote p { font-size: 1rem; }
.quote figcaption { margin-top: 1rem; font-size: .875rem; color: var(--fg-muted); font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .375rem; font-weight: 600; font-size: .9375rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .75rem .875rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--fg); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.contact-side h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-side h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
.big { font-size: 1.5rem; font-weight: 700; }
.big a { text-decoration: none; }

.hours { list-style: none; padding: 0; font-size: .9375rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .25rem 0; color: var(--fg-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 3rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 2rem; }
.site-footer h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.site-footer h4 { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); margin-bottom: .75rem; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.legal { border-top: 1px solid var(--border); padding: 1.25rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- 2026 playbook: compositor scroll-driven reveals + view transitions ---- */
@view-transition { navigation: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      opacity: 1; transform: none; transition: none;
      animation: pw-reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes pw-reveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
