/* Utah County Lights — one stylesheet for the whole page. Mobile first; the design is dark-only on purpose. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/BodoniModa-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-var-latin.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Neonderthaw"; src: url("/assets/fonts/Neonderthaw-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --night: #17130f;                    /* page background */
  --card: #211b16;
  --field: #191510;
  --line: rgba(255, 190, 120, .18);
  --line-strong: rgba(255, 190, 120, .38);
  --cream: #f3e4d0;                    /* 15.2:1 on --night */
  --cream-muted: #b5a897;              /* 7.9:1 on --night, 7.3:1 on --card */
  --amber-muted: #d6a35c;              /* 8.1:1 on --night — labels, links, focus rings */
  --gold: #f4b860;                     /* primary buttons only */
  --gold-ink: #1c130a;                 /* 10.4:1 on --gold */
  --amber: 255 170 80;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --script: "Neonderthaw", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 4px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--night); color: var(--cream);
  font: 500 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-muted); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--amber-muted); outline-offset: 3px; border-radius: 2px; }
#main:focus { outline: none; }
.wrap {
  width: min(100%, 560px); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  container-type: inline-size;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 50;
  background: var(--gold); color: var(--gold-ink); padding: 12px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 15px/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: box-shadow .2s, border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 18px rgb(var(--amber) / .28); }
.btn--primary:hover { color: var(--gold-ink); box-shadow: 0 0 0 3px rgb(var(--amber) / .25), 0 0 28px rgb(var(--amber) / .45); }
.btn--ghost { background: rgb(23 19 15 / .45); color: var(--cream); border-color: rgb(var(--amber) / .6); }
.btn--ghost:hover { color: var(--cream); border-color: var(--amber-muted); box-shadow: 0 0 16px rgb(var(--amber) / .3); }
.btn--text { background: none; color: var(--cream-muted); min-height: 48px; padding: 0 12px; letter-spacing: .08em; }
.btn--text:hover { color: var(--cream); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 13px; letter-spacing: .2em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Display headings (serif line + neon script) ---------- */
.display { text-align: center; }
.display__main {
  display: block;
  font: 600 min(calc(100cqw * 0.12), 62px)/0.92 var(--display);
  font-variation-settings: "opsz" 18;
  letter-spacing: -0.055em; text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 45%, #f6e3cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em;                           /* keeps clipped glyph edges inside the box */
}
.display__script {
  display: block; margin-top: -0.05em;
  font: 400 min(calc(100cqw * 0.105), 52px)/1.05 var(--script);
  color: #ffe2b8;
  text-shadow: 0 0 2px #fff4e0, 0 0 8px rgb(255 176 84), 0 0 18px rgb(255 140 30 / .8), 0 0 36px rgb(255 120 20 / .5);
}
.eyebrow { text-align: center; font: 600 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-muted); margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 600px; max-height: 1000px; overflow: hidden; background: var(--night); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(23 19 15 / .55) 0%, rgb(23 19 15 / 0) 18%),
    linear-gradient(180deg, rgb(23 19 15 / 0) 34%, rgb(23 19 15 / .55) 52%, rgb(23 19 15 / .82) 72%, var(--night) 100%);
}
.hero__bar {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter-r) 0 var(--gutter);
}
.hero__logo { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.hero__logo img { width: 80px; height: auto; }
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter-r) max(40px, calc(env(safe-area-inset-bottom, 0px) + 32px)) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  container-type: inline-size;
}
.hero__brandmark, .hero__h1 { display: flex; flex-direction: column; align-items: center; font-weight: 600; }
.hero__promise {
  margin-top: 14px; max-width: 16ch;
  font: 600 clamp(24px, 7.6cqw, 34px)/1.12 var(--display); font-variation-settings: "opsz" 18;
  letter-spacing: -0.02em; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 16px rgb(0 0 0 / .55);
}
.hero__brand {
  font: 600 min(calc(100cqw * 0.142), 76px)/0.92 var(--display);
  font-variation-settings: "opsz" 18; letter-spacing: -0.055em; text-transform: uppercase;
  white-space: nowrap; padding: 0 .04em;
  background: linear-gradient(180deg, #fff 45%, #f6e3cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__script {
  margin-top: -0.06em;
  font: 400 min(calc(100cqw * 0.12), 64px)/1 var(--script); color: #ffe2b8;
  text-shadow: 0 0 2px #fff4e0, 0 0 8px rgb(255 176 84), 0 0 18px rgb(255 140 30 / .8), 0 0 36px rgb(255 120 20 / .5);
}
.hero__kicker {
  margin-top: 10px; max-width: 30ch;
  font: 600 clamp(12px, 3.3cqw, 14px)/1.45 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-muted);
  text-wrap: balance;
}
.hero__ctas { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.hero__ctas .btn { width: min(100%, 360px); }
.hero__call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--cream); font-weight: 600; }

/* ---------- Founders ---------- */
.crew { padding: 48px 0 56px; text-align: center; position: relative; isolation: isolate; }
.crew::before {
  content: ""; position: absolute; left: 50%; top: 80px; width: min(100%, 560px); height: 420px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--amber) / .28), rgb(var(--amber) / .1) 50%, transparent 100%);
}
.crew__photo { margin: -18px auto 0; width: min(100%, 480px); }
.crew__photo img { width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.crew__tag { margin-top: 12px; font: 600 clamp(12px, 3.5cqw, 15px)/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.crew__note { margin: 6px 0 24px; color: var(--cream-muted); }

/* ---------- Quote ---------- */
.quote { padding: 48px 0 56px; scroll-margin-top: 12px; position: relative; isolation: isolate; }
.quote::before {
  content: ""; position: absolute; left: 50%; top: 200px; width: min(100%, 560px); height: 560px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--amber) / .14), transparent 100%);
}
.quote .display { margin-bottom: 24px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; container-type: inline-size; }
.card::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--amber) / .75), transparent); box-shadow: 0 0 10px rgb(var(--amber) / .35); }
@media (min-width: 400px) { .card { padding: 28px 22px; } }

.qform__set { border: 0; padding: 0; min-width: 0; }
.qform__set legend { padding: 0; float: left; width: 100%; }   /* float lets the legend behave like a normal block */
.qform__set legend + * { clear: both; }
.qform__q { font: 600 clamp(25px, 8cqw, 32px)/1.1 var(--display); font-variation-settings: "opsz" 18; letter-spacing: -0.03em; color: var(--cream); }
.qform__q:focus { outline: none; }
.qform__q:focus-visible { outline: 3px solid var(--amber-muted); outline-offset: 4px; }
.qform__meta { margin-top: 8px; font: 600 12px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--amber-muted); }
.qform__city { color: var(--cream); }
.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 20px; }
.progress span { height: 3px; border-radius: 2px; background: var(--line); }
.progress span.is-on { background: var(--amber-muted); }

.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@container (min-width: 440px) { .cities { grid-template-columns: repeat(4, 1fr); } }
.city { position: relative; }
.city input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.city label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; height: 100%; padding: 6px;
  background: rgba(255, 236, 214, .03); border: 1px solid var(--line-strong); border-radius: 3px;
  font: 500 14px/1.25 var(--sans); color: var(--cream); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.city input:hover + label { border-color: var(--amber-muted); }
.city input:checked + label { border-color: var(--amber-muted); box-shadow: 0 0 0 1px var(--amber-muted), 0 0 16px rgb(var(--amber) / .3); }
.city input:focus-visible + label { outline: 3px solid var(--amber-muted); outline-offset: 2px; }
.city--other { grid-column: 1 / -1; }
.city--other label { font-style: italic; }
.qform__note { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--amber-muted); background: rgba(255, 236, 214, .04); color: var(--cream); font-size: 15px; }
#to-step-2 { margin-top: 18px; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--field); color: var(--cream);
  border: 1px solid var(--line-strong); border-radius: 3px;
  font: 500 17px/1.2 var(--sans);                 /* ≥16px so iOS doesn't zoom on focus */
}
.field input:focus { outline: none; border-color: var(--amber-muted); box-shadow: 0 0 0 3px rgb(var(--amber) / .35); }
.field input[aria-invalid="true"] { border-color: #f0a46a; box-shadow: 0 0 0 1px #f0a46a; }
.field-hint { margin-top: 6px; font-size: 14px; color: var(--cream-muted); }
.field-error { margin-top: 6px; font: 600 14px/1.4 var(--sans); color: #f6b98a; }   /* 9.6:1 on --card */
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 4px 0 8px; min-height: 0; }
.qform__actions { display: grid; gap: 4px; margin-top: 8px; }
.form-error { margin-top: 12px; padding: 12px 14px; border: 1px solid #f0a46a; border-radius: 3px; color: var(--cream); background: rgba(240, 164, 106, .08); }
.form-error a { color: #f6b98a; font-weight: 600; }
.consent { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--cream-muted); }
.qform__done { margin-top: 10px; color: var(--cream-muted); }
.status { min-height: 0; }
.quote__area { margin-top: 20px; text-align: center; color: var(--cream); }
.quote__call { margin-top: 4px; text-align: center; color: var(--cream-muted); }
.quote__call a { display: inline-block; padding: 10px 2px; font-weight: 600; }

/* ---------- Showcase photo ---------- */
.showcase { position: relative; }
.showcase img { width: 100%; height: clamp(300px, 60vh, 640px); object-fit: cover; object-position: 52% 62%; }
.showcase::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0%, rgb(23 19 15 / .6) 14%, rgb(23 19 15 / 0) 40%, rgb(23 19 15 / 0) 58%, rgb(23 19 15 / .6) 82%, var(--night) 100%);
}

/* ---------- What we do ---------- */
.steps { padding: 8px 0 56px; }
.steps .display { margin-bottom: 32px; }
.steps__list { list-style: none; padding: 0; margin: 0 0 28px; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-bottom: 32px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 1px; background: var(--line); }
.step__num { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 600 20px/1 var(--display); color: var(--amber-muted); }
.step__title { align-self: center; font: 600 clamp(22px, 6.6cqw, 28px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--cream); }
.step__body { grid-column: 2; margin-top: 10px; color: var(--cream-muted); }
.steps .btn, .crew .btn { width: min(100%, 360px); }
.steps .wrap { text-align: center; }
.steps__list { text-align: left; }

/* ---------- Proof (placeholders until real content) ---------- */
.proof { padding: 8px 0 48px; }
.proof__title { font: 600 26px/1.2 var(--display); text-align: center; margin-bottom: 16px; }
.proof__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof__grid > :first-child { grid-column: 1 / -1; }
.placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 8px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 3px; color: var(--cream-muted); font-size: 14px; }
.placeholder--text { aspect-ratio: auto; margin-top: 12px; padding: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; gap: 10px; }
.footer__logo { display: inline-flex; min-height: 44px; align-items: center; }
.footer__logo img { width: 96px; }
.footer__name { font: 600 22px/1.2 var(--display); }
.footer__tag { color: var(--cream-muted); }
.footer__contact { list-style: none; padding: 0; display: grid; gap: 0; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer__area { font-size: 14px; color: var(--cream-muted); }
.footer__area strong { color: var(--cream); font-weight: 600; }
.footer__legal { font-size: 14px; color: var(--cream-muted); }
.footer__legal a { display: inline-block; padding: 12px 0; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: rgb(23 19 15 / .92); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.sticky-cta.is-shown { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta .btn { min-height: 48px; }
@media (min-width: 900px) { .sticky-cta { display: none; } .footer { padding-bottom: 40px; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .city label, .sticky-cta, .sticky-cta.is-shown { transition: none; }
}
