/* ============================================================
   HVACInsuranceHQ — Phase 1 lander
   Visual identity is provisional (logo/colors TBD per docs).
   All colors are tokens below — swap these when brand is set.
   ============================================================ */

:root {
  /* Brand tokens (PLACEHOLDER defaults — themeable) */
  --navy:        #0d2233;
  --navy-700:    #143150;
  --navy-600:    #1c3f63;
  --accent:      #f26a2e;   /* HVAC "heat" accent */
  --accent-600:  #d9551c;
  --accent-tint: #fdeee6;

  --ink:    #16242f;
  --body:   #38505e;
  --muted:  #6a7e8b;
  --line:   #e2e8ec;
  --bg:     #ffffff;
  --bg-alt: #f4f7f9;

  --ok:     #1f9d62;
  --err:    #cf3b3b;

  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13,34,51,.06), 0 8px 28px rgba(13,34,51,.08);
  --shadow-sm: 0 1px 2px rgba(13,34,51,.08);

  --font-head: "Barlow Semi Condensed", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-600); }

img, svg { max-width: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.center { text-align: center; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head.narrow { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 22px; line-height: 1;
  transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); }
.btn-sm { padding: 9px 16px; font-size: .98rem; }
.btn-lg { padding: 15px 28px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-link { color: var(--body); font-weight: 500; text-decoration: none; align-self: center; }
.btn-link:hover { color: var(--accent-600); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 14px; }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--navy); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: none; align-items: center; gap: 7px;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: .98rem;
}
.header-phone:hover { color: var(--accent-600); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(242,106,46,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: 56px 0 60px;
}
.hero-inner { max-width: 820px; }
.kicker {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .9rem; color: var(--accent-600); margin: 0 0 12px;
}
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--body); max-width: 660px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- Stakes ---------- */
.stakes { padding: 48px 0; }
.stakes p { font-size: 1.15rem; color: var(--body); }

/* ---------- Pillars ---------- */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.pillar {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.pillar-icon, .coverage-icon, .success-check svg { color: var(--accent); }
.pillar-icon svg, .coverage-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar-icon {
  display: inline-flex; width: 52px; height: 52px; border-radius: 12px;
  align-items: center; justify-content: center; background: var(--accent-tint); margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: #fff; background: var(--navy);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Coverages ---------- */
.coverages { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.coverage {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.coverage-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--accent-tint);
}
.coverage h3 { font-size: 1.08rem; margin-bottom: 2px; }
.coverage p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Reviews placeholder ---------- */
.reviews-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted); background: var(--bg-alt);
}
.reviews-placeholder p { margin: 0; }

/* ---------- Quote section ---------- */
.quote-section { background: var(--navy); color: #cfe0ec; padding: 56px 0; }
.quote-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.quote-pitch h2 { color: #fff; }
.quote-pitch p { color: #aac2d4; font-size: 1.1rem; }
.quote-call { font-size: 1rem; }
.quote-call a, .quote-pitch a { color: #fff; font-weight: 600; }

.quote-card { background: var(--bg); color: var(--body); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.quote-form-title { margin: 0 0 18px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--accent-600); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,106,46,.15);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; margin: 6px 0 0; min-height: 0; }

.field-consent .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); font-size: .9rem; }
.field-consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }

.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-status { margin: 12px 0 0; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.form-status.is-error { background: #fdeaea; color: var(--err); }

/* Success state */
.quote-success { text-align: center; padding: 14px 6px; }
.success-check svg { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote-success h3 { margin: 10px 0 6px; }
.quote-success p { color: var(--body); margin: 0; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #08161f; color: #9fb4c1; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
.wordmark-footer { font-size: 1.25rem; color: #fff; }
.footer-tag { color: var(--accent); font-weight: 600; margin: 8px 0 4px; font-family: var(--font-head); }
.footer-backed { margin: 0; }
.footer-meta p { margin: 0 0 8px; }
.footer-meta a { color: #cfe0ec; }
.footer-disclaimer { color: #6f8593; font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; color: #6f8593; }
.footer-legal a { color: #cfe0ec; }

/* ============================================================
   Responsive — small up
   ============================================================ */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .coverages { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .header-phone { display: inline-flex; }
  .section { padding: 76px 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { padding-left: 0; padding-top: 60px; }
  .step-num { width: 52px; height: 52px; font-size: 1.45rem; }
}

@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero { padding: 84px 0 88px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars .pillar:nth-child(4), .pillars .pillar:nth-child(5) { grid-column: span 1; }
  .coverages { grid-template-columns: repeat(4, 1fr); }
  .quote-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; }
  .quote-pitch { position: sticky; top: 88px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}
