/* CaliClaus estimate funnel. Dark-first, mobile-first. One column on phones,
   headline + form side by side from 960px. No build step. */

:root {
  --night: #0B0B0C;
  --surface: #151517;
  --surface-2: #1C1C1F;
  --cream: #F6EFE2;
  --cream-muted: #CFC6B4;
  --red: #D6141A;
  --red-deep: #A30F14;
  --gold: #F2B233;
  --green: #2BB673;
  --line: rgba(246, 239, 226, 0.14);
  --line-strong: rgba(246, 239, 226, 0.28);
  --error: #FF8F85;
  --focus: var(--gold);

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;
  --max: 1080px;
}

/* This page is dark by design in both color schemes; the tokens are the same
   under every theme so the brand ground never flips to light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --night: #0B0B0C; --cream: #F6EFE2; }
}
:root[data-theme="dark"] { --night: #0B0B0C; --cream: #F6EFE2; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--red); color: var(--cream); padding: 10px 14px;
  border-radius: 8px; z-index: 100; font-family: var(--font-head); font-weight: 700;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.top {
  position: relative;
  z-index: 3;
}
.top__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding-top: 6px;
  padding-bottom: 2px;
}
.top__logo {
  grid-column: 2;
  display: block;
  width: 136px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.top__logo img { width: 100%; height: auto; }
.top__phone {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.55);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.top__phone svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.top__phone span { display: none; }
.top__phone:hover, .top__phone:focus-visible { border-color: var(--gold); }

@media (min-width: 480px) {
  .top__phone span { display: inline; }
  .top__logo { width: 160px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -72px;
  padding-top: 80px;
  padding-bottom: 8px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.72) 0%, rgba(11, 11, 12, 0.35) 35%, rgba(11, 11, 12, 0.88) 78%, var(--night) 100%);
}
.hero__grid {
  display: grid;
  gap: 16px;
}
.hero__grid > * { min-width: 0; }
.hero__copy { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.6);
  color: var(--cream-muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex: none;
}

.headline {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9.5vw, 4.75rem);
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}
.headline span { display: block; }
.headline .is-red {
  color: var(--red);
  text-shadow: 0 3px 0 var(--red-deep), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.subhead {
  margin: 0;
  max-width: 34rem;
  font-size: 15.5px;
  text-wrap: balance;
  line-height: 1.5;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.subhead strong { font-weight: 600; }

@media (min-width: 960px) {
  .hero { padding-top: 110px; padding-bottom: 24px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: start;
    gap: 48px;
  }
  .hero__copy { padding-top: 40px; }
  .headline { margin: 16px 0 12px; }
  .headline { font-size: clamp(3rem, 4.7vw, 3.85rem); }
  .subhead { font-size: 18px; }
}

/* ---------- Form card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
@media (min-width: 480px) { .card { padding: 24px 22px 22px; } }

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card__step {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 14px;
}
.progress span {
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
}
.progress span.is-on { background: var(--gold); box-shadow: 0 0 10px rgba(242, 178, 51, 0.6); }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { padding: 0; }
.step[hidden] { display: none; }

.field { margin-bottom: 14px; }
.field label, .field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.field input, .field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  background: var(--night);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-size: 17px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(207, 198, 180, 0.5); }
.field input:focus, .field select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(242, 178, 51, 0.25);
}
.field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23CFC6B4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--error);
}
.field.is-invalid .field__error { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 10px; }
.row-3 .field, .row-2 .field { min-width: 0; }

/* Honeypot: off-screen, not display:none so naive bots still see it. */
.hp {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Address combobox */
.combo { position: relative; }
.combo__list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  z-index: 1000;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-height: 264px;
  overflow-y: auto;
}
.combo__list[hidden] { display: none; }
.combo__opt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
}
.combo__opt small { color: var(--cream-muted); font-size: 13px; }
.combo__opt:hover, .combo__opt.is-active { background: rgba(242, 178, 51, 0.14); }
.combo__opt.is-active { outline: 1px solid rgba(242, 178, 51, 0.6); }
.combo__hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cream-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--red-deep), 0 12px 28px rgba(214, 20, 26, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep), 0 8px 20px rgba(214, 20, 26, 0.3); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--gold); filter: none; }

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--cream-muted);
}
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--cream-muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-back:hover { color: var(--cream); }
.link-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.fineprint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cream-muted);
}

/* ---------- Sections ---------- */
.section { padding: 28px 0; }
.section--tight { padding: 18px 0 8px; }
.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section__title em { font-style: normal; color: var(--gold); }

/* Trust row */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.25;
}
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust__item { font-size: 13px; }
}

/* Photo strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.strip figure { margin: 0; }
.strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.strip figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--cream-muted);
}
@media (min-width: 720px) {
  .strip { gap: 14px; }
  .strip figcaption { font-size: 13px; }
}

/* How it works */
.how {
  display: grid;
  gap: 10px;
}
.how__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.how__num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.9;
  color: var(--red);
  text-shadow: 0 2px 0 var(--red-deep);
}
.how__item h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
}
.how__item p { margin: 0; font-size: 15px; color: var(--cream-muted); }
@media (min-width: 720px) {
  .how { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.cta-again { padding-bottom: 8px; }
.cta-again .btn { max-width: 420px; }

/* Bulb string divider */
.bulbs {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 2px;
}
.bulbs i {
  width: 9px; height: 13px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: block;
}
.bulbs i:nth-child(3n+1) { background: var(--red); box-shadow: 0 0 10px var(--red); }
.bulbs i:nth-child(3n+2) { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.bulbs i:nth-child(3n) { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Footer ---------- */
.foot {
  margin-top: 24px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--cream-muted);
}
.foot p { margin: 0 0 8px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 10px; }
.foot__links a { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__contact a { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; }
.foot__social { display: flex; gap: 2px; margin: 2px 0 8px -11px; }
.foot__social a { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); color: var(--cream); transition: color .2s ease, background .2s ease; }
.foot__social a:hover, .foot__social a:focus-visible { color: var(--gold); background: rgba(242, 178, 51, 0.08); text-decoration: none; }
.foot__social svg { width: 22px; height: 22px; }

/* ---------- Thanks / 404 ---------- */
.simple {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.simple__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0 40px;
}
.simple__card {
  max-width: 560px;
  margin: 0 auto;
}
.check {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(43, 182, 115, 0.15);
  border: 1px solid rgba(43, 182, 115, 0.5);
  color: var(--green);
  margin-bottom: 16px;
}
.check svg { width: 32px; height: 32px; }
.simple .headline { font-size: clamp(2.6rem, 11vw, 4.4rem); margin-top: 8px; }
.simple .btn { margin-top: 16px; max-width: 420px; }
.simple .btn + .btn { margin-top: 10px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow__dot { animation: glow 2.4s ease-in-out infinite; }
  .bulbs i { animation: twinkle 2.8s ease-in-out infinite; }
  .bulbs i:nth-child(2n) { animation-delay: 0.7s; }
  .bulbs i:nth-child(3n) { animation-delay: 1.3s; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 6px var(--gold); }
  50% { box-shadow: 0 0 16px var(--gold); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
