/* ==========================================================================
   Alpha Insurance — alphainsuranceut.com
   Brand colors sampled directly from the logo artwork:
     red   #c1272d   black #000000
   ========================================================================== */

:root {
  --red:        #c1272d;
  --red-dark:   #a01f24;
  --red-light:  #e4565c;   /* AA-safe red for use on dark backgrounds */
  --red-tint:   #fdf2f2;

  --ink:        #0b0b0c;
  --ink-2:      #2a2a2e;
  --muted:      #5c5f66;
  --line:       #e4e6ea;
  --bg:         #ffffff;
  --bg-alt:     #f6f7f9;

  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,11,12,.05), 0 12px 32px -12px rgba(11,11,12,.14);
  --header-h: 72px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 700px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  margin: 0 0 .75rem;
  /* Splits the two lines evenly on narrow screens instead of orphaning
     the last word ("…LICENSED IN / UTAH"). */
  text-wrap: balance;
}
.eyebrow-light { color: var(--red-light); }

.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor;
       stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  padding: .85em 1.6em; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9ccd3; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-lg { font-size: 1.06rem; padding: 1em 1.9em; }
.btn-block { width: 100%; }
.ico-ext { width: .95em; height: .95em; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}

/* min-width:0 lets the brand shrink instead of shoving the phone button; the
   header is a flex row and the wordmark is wide enough to collide at 375px. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
         margin-right: auto; min-width: 0; overflow: hidden; }
.brand-mark { width: 38px; height: auto; display: block; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.16rem;
  letter-spacing: -0.01em; color: var(--red); text-transform: uppercase;
  white-space: nowrap;
}
.brand-name-thin { color: var(--ink); font-weight: 700; }

.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--red); border-bottom-color: var(--red); }

.header-phone {
  /* justify-content matters on mobile, where the label is hidden and only the
     icon remains — without it the icon sits flush left in the 44px button. */
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none;
  border: 2px solid var(--line); border-radius: 10px; padding: .5em .9em;
  white-space: nowrap;
}
.header-phone:hover { border-color: var(--red); color: var(--red); }
.header-phone .ico { width: 1.05em; height: 1.05em; color: var(--red); }

.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar {
  display: block; height: 2.5px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ==========================================================================
   HERO — typography + brand geometry (peaks echo the logo mark)
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 104px) 20px clamp(56px, 8vw, 88px); }

.hero-geo { position: absolute; inset: 0; pointer-events: none; }
.peak { position: absolute; bottom: -1px; display: block; }
.peak-a {
  right: -4%; width: 460px; height: 400px;
  background: #eceef2; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.peak-b {
  right: 12%; width: 340px; height: 300px;
  background: #e2e5ea; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.peak-c {
  right: 2%; width: 92px; height: 300px;
  background: var(--red); opacity: .1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero h1 { max-width: 900px; }
.hero h1 .accent { color: var(--red); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--muted); max-width: 56ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.25rem; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin: 0; padding: 0;
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
}
.hero-points li { display: flex; align-items: center; gap: .5em; }
.hero-points li::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.section-lede { color: var(--muted); max-width: 60ch; font-size: 1.06rem; margin-bottom: 2.25rem; }
.subhead {
  font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 3rem 0 1.25rem;
}

/* ---------- coverage cards ---------- */
.cards-primary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 2rem; }
.cards-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #cfd3da; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-lg { padding: 34px; border-top: 4px solid var(--red); }
.card-lg p { font-size: 1.02rem; }
.card h3, .card h4 { margin-bottom: .45rem; }

.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--red-tint); color: var(--red); margin-bottom: 1.1rem;
}
.card-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor;
                stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-ico-sm { width: 42px; height: 42px; margin-bottom: .85rem; }
.card-ico-sm svg { width: 21px; height: 21px; }

/* ---------- quote — the primary conversion block, sits after Coverage ---------- */
.section-quote {
  background: var(--ink); color: #cfd2d8;
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
  position: relative; overflow: hidden;
}
/* Faint brand peak echoing the logo, so the black band isn't a flat slab. */
.section-quote::after {
  content: ""; position: absolute; right: -60px; bottom: -1px;
  width: 420px; height: 360px; background: var(--red); opacity: .09;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none;
}
.quote-inner { position: relative; z-index: 1; text-align: center; }
.quote-h {
  color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin: 0 0 1rem; letter-spacing: -0.025em;
}
.quote-lede {
  color: #a9adb6; font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  max-width: 54ch; margin: 0 auto 2.25rem;
}
/* Two equal halves — health and life get identical weight on purpose, so the
   page never reads as health-first. */
.quote-split {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 2.75rem; text-align: left;
}
.quote-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  transition: border-color .18s ease, background-color .18s ease;
}
.quote-card:hover { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.quote-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .6rem; }
.quote-card > p { color: #a9adb6; font-size: .99rem; margin: 0 0 1.75rem; }

.quote-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(193,39,45,.18); color: var(--red-light); margin-bottom: 1.1rem;
}
.quote-ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor;
                 stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.btn-quote {
  background: var(--red); color: #fff;
  font-size: 1.05rem; padding: 1em 1.6em; border-radius: 11px;
  margin-top: auto;              /* pins both CTAs to the same baseline */
  box-shadow: 0 10px 26px -10px rgba(193,39,45,.65);
}
.btn-quote:hover { background: var(--red-dark); }

.quote-note { font-size: .86rem; color: #80858f; margin: .85rem 0 0; }
.quote-note a { color: #a9adb6; text-decoration: underline; }
.quote-note a:hover { color: var(--red-light); }

/* Brief flash so it's obvious the dropdown was filled in for them. */
@keyframes prefillFlash {
  0%   { box-shadow: 0 0 0 0 rgba(193,39,45,.5); border-color: var(--red); }
  100% { box-shadow: 0 0 0 10px rgba(193,39,45,0); }
}
.field select.prefilled { animation: prefillFlash 1.1s ease-out 2; border-color: var(--red); }

@media (max-width: 760px) {
  .quote-split { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .quote-card { padding: 28px 24px 26px; }
  .btn-quote { width: 100%; padding: 1.05em 1.2em; }
  .section-quote::after { width: 260px; height: 220px; right: -40px; }
}

/* ---------- calendar (click to reveal) ---------- */
.scheduler { margin-bottom: 1.25rem; }
.cal-panel { margin-top: 1.5rem; }
.cal-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cal-panel:not([hidden]) { animation: calReveal .28s ease both; }
}
@keyframes calReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
#calToggle .ico { width: 1.15em; height: 1.15em; }

.calendar-embed {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.calendar-embed iframe { display: block; border: 0; width: 100%; min-height: 700px; }
.calendar-fallback { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }

/* ---------- contact form ---------- */
.section-contact { background: var(--bg-alt); }
.hp { position: absolute; left: -9999px; }

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--ink); margin-bottom: .4rem;
}
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 500; }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .78em .9em; background: #fff;
  border: 1.5px solid #d4d8de; border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,39,45,.15);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); background: var(--red-tint); }

.err { margin: .4rem 0 0; font-size: .86rem; font-weight: 600; color: var(--red-dark); }

.form-status { margin-top: 1rem; font-weight: 600; font-size: .96rem; }
.form-status.error { color: var(--red-dark); }
/* "or" rule between the submit button and the call-now alternative */
.form-or {
  display: flex; align-items: center; gap: 14px;
  margin: 1.5rem 0 1.1rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.form-or::before, .form-or::after {
  content: ""; flex: 1; height: 1px; background: #dfe2e7;
}

.call-now {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  width: 100%; padding: .95em 1.4em;
  border: 2px solid var(--ink); border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.call-now:hover { background: var(--ink); color: #fff; }
.call-now .ico { width: 1.15em; height: 1.15em; color: var(--red); }
.call-now:hover .ico { color: var(--red-light); }

.form-fineprint { margin-top: 1.25rem; font-size: .88rem; color: var(--muted); }

.form-done {
  border: 1px solid #bfe3cd; background: #f2fbf5; border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.form-done h3 { color: #0f7a3d; }
.form-done p { color: var(--muted); margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #a9adb6; padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid #26262b;
}
.footer-logo { width: 190px; height: auto; }
.footer-tag { margin: 1rem 0 0; font-size: .95rem; max-width: 30ch; }

.footer-h {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1rem;
}
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-inner a { color: #cfd2d8; text-decoration: none; font-size: .96rem; }
.footer-inner a:hover { color: var(--red-light); text-decoration: underline; }

.footer-legal { padding-top: 28px; font-size: .82rem; line-height: 1.6; color: #7e838d; }
.footer-legal p { margin: 0 0 .7rem; max-width: 90ch; }
.copyright { margin-top: 1.25rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .cards-primary { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }
  .nav.open { max-height: 340px; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav-list a {
    display: block; padding: 14px 0; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a:hover { border-bottom-color: var(--line); }
  /* Icon-only on mobile, but keep the full 44x44 tap target. */
  .header-phone span { display: none; }
  .header-phone { padding: 0; flex: none; width: 44px; height: 44px; }
  .header-phone .ico { width: 1.25em; height: 1.25em; }
  /* Footer links get real touch targets too. */
  .footer-inner ul { gap: 0; }
  .footer-inner ul a { display: inline-block; padding: 11px 0; }
  .cards-secondary { grid-template-columns: 1fr; }
  .peak-a, .peak-b { opacity: .55; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Tighten the header so the wordmark, phone button and hamburger all fit. */
  .header-inner { gap: 12px; }
  .brand-mark { width: 32px; }
  .brand-name { font-size: .95rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .peak-a { width: 300px; height: 260px; }
  .peak-b { width: 210px; height: 190px; }

  /* Coverage cards carry desktop-scale padding, which on a phone turns the
     section into a long scroll before anyone reaches the quote block.
     Tighten the boxes and icons — type sizes stay untouched. */
  .card-lg { padding: 24px 22px; }
  .card { padding: 22px 20px; }
  .card-ico { width: 44px; height: 44px; border-radius: 10px; margin-bottom: .8rem; }
  .card-ico svg { width: 22px; height: 22px; }
  .card-ico-sm { width: 38px; height: 38px; margin-bottom: .65rem; }
  .card-ico-sm svg { width: 19px; height: 19px; }
  .cards-primary { gap: 14px; margin-top: 1.5rem; }
  .cards-secondary { gap: 14px; }
  .subhead { margin: 2rem 0 1rem; }
  .section-lede { margin-bottom: 1.6rem; }

  /* Same treatment for the quote panels. */
  .quote-ico { width: 44px; height: 44px; margin-bottom: .8rem; }
  .quote-ico svg { width: 22px; height: 22px; }
  .quote-card > p { margin-bottom: 1.35rem; }
  .quote-split { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
