/* ==========================================================================
   Dusty Design + Build
   Brand: Satoshi · Teal #2A9D8F · Terracotta #C46A3C · Gold #D4A017
          Earth #8C5F2E (shared with SD+B) · Cream #FFFCF0

   Design note: the customers are largely retirees reading this on a phone or
   an iPad in bright Utah sun. Everything here is sized and contrasted for
   that reader: 18px base, large tap targets, high contrast, no thin weights.
   ========================================================================== */

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Variable.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --teal:        #2A9D8F;
  --teal-deep:   #1F7268;
  --terracotta:  #C46A3C;
  --terra-deep:  #A2522B;
  --gold:        #D4A017;
  --earth:       #8C5F2E;
  --cream:       #FFFCF0;

  --bg:          #FFFCF0;
  --bg-2:        #F7F1E1;
  --bg-3:        #EFE7D3;
  --ink:         #241D14;
  --ink-dim:     #55483A;
  --ink-faint:   #6E6154;
  --line:        rgba(36, 29, 20, .14);
  --line-2:      rgba(36, 29, 20, .26);
  --err:         #A2231B;

  /* Terracotta at full strength is 3.73:1 on cream, which fails AA for the
     small uppercase eyebrow text. This is the darkened text-safe version. */
  --accent-text: #A2522B;   /* 5.41:1 on cream */
  /* Form borders are UI component boundaries: WCAG 1.4.11 wants 3:1. The
     --line-2 wash is 1.7:1, invisible to the reader this site is built for. */
  --field-border: #7E7568;  /* 4.41:1 on cream */

  --wrap:        1180px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:       clamp(4rem, 9vw, 7.5rem);
  --r:           4px;
  --nav-h:       78px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:        #17130D;
    --bg-2:      #1F1A12;
    --bg-3:      #2A2317;
    --ink:       #F5EFE1;
    --ink-dim:   #C9BDA8;
    --ink-faint: #A8997F;
    --line:      rgba(245, 239, 225, .14);
    --line-2:    rgba(245, 239, 225, .26);
    --teal:      #4FC0B1;
    --terracotta:#E08A5A;
    --gold:      #E8B93A;
    --err:       #F0938A;
    --accent-text: #E08A5A;   /* 6.9:1 on the dark ground, no darkening needed */
    --field-border: #8A8172;  /* 4.81:1 on the dark ground */
  }
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;   /* 18px base, deliberately larger than default */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--teal-deep); color: #fff;
  padding: .9rem 1.4rem; z-index: 200; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; top: 0; }

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

/* ── Type ──────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p  { max-width: 68ch; }

.eyebrow {
  font-size: .84rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-dim); }
.muted { color: var(--ink-dim); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 56px;              /* generous tap target */
  padding: .9rem 1.9rem;
  border: 2px solid transparent; border-radius: var(--r);
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal-deep); color: #fff; border-color: var(--teal-deep);
}
.btn-primary:hover { background: #18594F; border-color: #18594F; }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--teal); border-color: var(--teal); color: #10201D; }
  .btn-primary:hover { background: #6FD3C5; border-color: #6FD3C5; }
  .btn-secondary:hover { color: var(--teal); }
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .6rem .85rem; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink-dim);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-call {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .55rem 1.15rem;
  background: var(--teal-deep); color: #fff;
  border-radius: var(--r); font-weight: 700; text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .nav-call { background: var(--teal); color: #10201D; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60% 70% at 78% 18%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%),
    radial-gradient(50% 60% at 12% 82%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.hero h1 { max-width: 17ch; }
.hero h1 em {
  font-style: normal; color: var(--teal-deep);
}
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--teal); } }
.hero .lede { margin-top: 1.5rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-note {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--ink-dim); max-width: 60ch;
}

/* ── Sections ──────────────────────────────────────────── */
section { padding-block: var(--sec-y); }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head p { margin-top: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-dim); font-size: 1.05rem; }
.card-icon {
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  color: var(--terracotta);
}

/* ── Steps ─────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  align-items: start;
  padding: 1.5rem; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-deep); color: #fff;
  font-weight: 800; font-size: 1.3rem;
}
@media (prefers-color-scheme: dark) {
  .step::before { background: var(--teal); color: #10201D; }
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-dim); font-size: 1.05rem; }

/* ── Scope: what's included / what's not ───────────────── */
.scope { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.scope-col {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--bg-2);
}
.scope-col.yes { border-top: 4px solid var(--teal); }
.scope-col.no  { border-top: 4px solid var(--terracotta); }
.scope-col h3 { margin-bottom: 1.2rem; }
.scope-list { list-style: none; padding: 0; display: grid; gap: .85rem; }
.scope-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: .8rem;
  align-items: start; font-size: 1.05rem; color: var(--ink-dim);
}
.scope-list svg { width: 26px; height: 26px; margin-top: .18rem; }
.yes .scope-list svg { color: var(--teal-deep); }
.no  .scope-list svg { color: var(--accent-text); }
@media (prefers-color-scheme: dark) {
  .yes .scope-list svg { color: var(--teal); }
}

/* ── About ─────────────────────────────────────────────── */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr .85fr; } }
.about-body p + p { margin-top: 1.2rem; }
.about-aside {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.1rem);
  align-self: start;
}
.about-aside h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.about-aside dl { display: grid; gap: 1rem; margin: 0; }
.about-aside dt {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.about-aside dd { margin: .2rem 0 0; font-size: 1.02rem; }

/* ── Contact ───────────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

.contact-direct { display: grid; gap: 1.25rem; align-content: start; }
.contact-line {
  display: flex; align-items: center; gap: 1rem;
  min-height: 56px; padding: 1rem 1.25rem;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); text-decoration: none;
  font-weight: 600; font-size: 1.1rem;
  transition: border-color .18s var(--ease);
}
.contact-line:hover { border-color: var(--teal); }
.contact-line svg { width: 26px; height: 26px; color: var(--teal-deep); flex: none; }
@media (prefers-color-scheme: dark) { .contact-line svg { color: var(--teal); } }
.contact-line span { display: block; }
.contact-line small {
  display: block; font-weight: 500; font-size: .9rem; color: var(--ink-faint);
}

form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .5rem; }
.field label { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: .92rem; color: var(--ink-faint); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px;
  padding: .9rem 1.1rem;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--field-border); border-radius: var(--r);
  transition: border-color .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent);
}
.field-row { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Honeypot: off-screen, never shown to a human */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 1rem 1.25rem; border-radius: var(--r);
  font-weight: 600; display: none;
}
.form-status[data-state="ok"] {
  display: block; background: color-mix(in srgb, var(--teal) 18%, transparent);
  border: 1px solid var(--teal); color: var(--ink);
}
.form-status[data-state="err"] {
  display: block; background: color-mix(in srgb, var(--err) 12%, transparent);
  border: 1px solid var(--err); color: var(--err);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer img.footer-logo { height: 54px; width: auto; margin-bottom: 1rem; }
.footer h4 {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; color: var(--ink-dim); }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* The legal identity block. This is the disclosure that makes SD+B the
   contracting party in the reader's mind. It is not fine print: keep it
   legible, and never drop it from a page. */
.legal {
  margin-top: 2rem; padding-top: 1.75rem;
  font-size: .98rem; color: var(--ink-dim); line-height: 1.7;
}
.legal strong { color: var(--ink); font-weight: 700; }
.legal .lic {
  display: inline-block; margin-top: .5rem;
  font-variant-numeric: tabular-nums;
}
.legal-bottom {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .92rem; color: var(--ink-faint);
}

/* ── Reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
