/* ---------- Tokens ---------- */
:root {
  --bg:        #ffffff;
  --ink:       #0b1220;
  --muted:    #475569;
  --line:     #e5e7eb;
  --gold:     #f5a524;
  --gold-2:   #ffb83d;
  --navy:     #0b1220;
  --navy-2:   #111a2e;
  --danger:   #b30000;
  --good:     #16a34a;
  --tap:      48px;       /* min tap target */
  --bar-h:    72px;       /* sticky call bar height */
  --maxw:     1100px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Reserve room for the sticky call bar + the iOS home-indicator safe area. */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: #0b6cf2; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }
.container--narrow { max-width: 640px; }

/* ---------- Icons (inline SVG <use href="#i-…">) ---------- */
.icon {
  width: 1em; height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon--filled { fill: currentColor; stroke: none; }

/* Skip-to-content (a11y) */
.skip {
  position: absolute; left: 0; top: -100px;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100;
  border-radius: 0 0 8px 0; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 0; }

/* ---------- Sticky call bar (mobile-first conversion driver) ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--bar-h);
  padding: 14px 16px;
  /* Respect iPhone home indicator. */
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--gold); color: var(--navy);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
  font-size: 1.05rem;
  /* GPU layer so animations stay smooth on cheap Android. */
  will-change: transform;
}
.call-bar:hover { background: var(--gold-2); }
.call-bar__pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 0 rgba(179,0,0,.7);
  animation: pulse 1.6s infinite;
}
.call-bar__num { font-variant-numeric: tabular-nums; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(179,0,0,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(179,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(179,0,0,0); }
}
@media (min-width: 720px) {
  .call-bar { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -50%, rgba(245,165,36,.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 1.2rem 0 2rem;
  /* Avoid layout shift from late-loading content below. */
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.2rem;
  font-weight: 800; letter-spacing: .01em;
  font-size: 1.05rem;
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold); color: var(--navy);
}
.brand__mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.05rem; opacity: .92; max-width: 56ch; }
.hero__sub strong { color: var(--gold); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1rem; }
.hero__badges {
  list-style: none; padding: 0; margin: .5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .45rem .6rem;
  font-size: .92rem;
}
.hero__badges li {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: .4rem .75rem;
  border-radius: 999px;
}
.hero__badges .icon { width: 1.05em; height: 1.05em; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: var(--tap); padding: 14px 20px; border-radius: 10px;
  font-weight: 800; text-decoration: none; cursor: pointer; border: 0;
  font-size: 1rem; line-height: 1;
  transition: background-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-2); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; }
.btn--block { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ---------- Sections ---------- */
.services, .proof, .quote, .trust, .faq { padding: 2.2rem 0; }
.proof { background: #f6f7fb; }
.trust { background: #fff8ec; }
.faq   { background: #f9fafb; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: #fcd9a0;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  transform: translateY(-1px);
}
.card__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: #fff4dc;
  color: #c2790a;
  margin: 0 0 .8rem;
}
.card__icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.card h3 { margin: 0 0 .35rem; }
.card p  { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Before/After (CSS art placeholders — swap for real <picture> when you have photos) ---------- */
.ba { margin: 0; }
.ba__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: 12px; overflow: hidden;
}
.ba__img {
  aspect-ratio: 4 / 3; /* prevents layout shift when real images load */
  position: relative;
  background-size: cover; background-position: center;
  background-color: #cbd5e1;
}
.ba__img--before {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 50%),
    repeating-linear-gradient(45deg, #6b7280 0 10px, #4b5563 10px 20px);
}
.ba__img--after-spring {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(45deg, #1e3a8a 0 10px, #1e40af 10px 20px);
}
.ba__img--before-panel {
  background-image:
    radial-gradient(circle at 30% 60%, rgba(0,0,0,.55) 0 10%, transparent 11%),
    radial-gradient(circle at 65% 40%, rgba(0,0,0,.45) 0 8%, transparent 9%),
    linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
}
.ba__img--after-panel { background-image: linear-gradient(180deg, var(--gold) 0%, #d98c10 100%); }
.ba__tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(11,18,32,.85); color: #fff;
  padding: 4px 8px; border-radius: 6px; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em;
}
.ba__tag--after { background: var(--good); }
.ba figcaption { margin-top: .55rem; color: var(--muted); font-size: .95rem; }
.proof__note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* ---------- Form ---------- */
.quote { background: #fff; }
.quote__sub { color: var(--muted); }
.form { display: grid; gap: .9rem; margin-top: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 16px;  /* iOS will NOT zoom on focus when size >= 16px */
  padding: 12px 14px; min-height: var(--tap);
  border: 1.5px solid #d1d5db; border-radius: 10px;
  background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: auto; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,165,36,.25);
}
.form__fine  { color: #64748b; font-size: .82rem; margin: .3rem 0 0; }
.form__error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: 8px; font-size: .95rem; margin: 0;
}
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Trust ---------- */
.trust__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.trust__list li { padding-left: 1.6em; position: relative; }
.trust__list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 1rem; margin: 0 0 .55rem;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 14px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 0 14px; color: var(--muted); margin: 0; }

/* ---------- Thank-you page: green check medallion ---------- */
.ty-check {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  margin: .5rem auto 1rem;
  border-radius: 50%;
  background: rgba(22,163,74,.15);
  color: #16a34a;
  border: 2px solid rgba(22,163,74,.35);
}
.ty-check .icon { width: 42px; height: 42px; stroke-width: 3; }

/* ---------- Trust list: replace text checkmark with SVG color ---------- */
.trust__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px;
  background-color: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--navy); color: #cbd5e1;
  padding: 1.4rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.foot a { color: var(--gold); text-decoration: none; }
.foot__fine { font-size: .85rem; opacity: .75; margin: .4rem 0 0; }
