/* ==========================================================================
   TEXAS INSURANCE QUOTES — LEAD GEN LANDING PAGE
   Design tokens
   -------------------------------------------------------------------------
   Navy      #0B1F3A   primary / trust
   Navy Deep #081626   darkest backgrounds
   Off White #FBF8F3   light section backgrounds
   Gold      #E8A33D   primary action color
   Gold Deep #C5841F   gold hover
   Red       #C8202F   urgency accents only (never primary CTA)
   Ink       #1B2430   body text on light backgrounds
   Muted     #5B6679   secondary text on light backgrounds
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-deep: #081626;
  --navy-soft: #15294A;
  --off-white: #FBF8F3;
  --paper: #F3EFE6;
  --gold: #E8A33D;
  --gold-deep: #C5841F;
  --red: #C8202F;
  --ink: #1B2430;
  --muted: #5B6679;
  --muted-on-navy: #B9C4D6;
  --border-soft: rgba(11, 31, 58, 0.10);
  --border-on-navy: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-form: 0 24px 60px rgba(8, 22, 38, 0.35);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Signature motif: lone star glyph ---------- */
.star-glyph { color: var(--gold); display: inline-block; }
.star-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow .star-glyph { margin-right: 8px; }
.eyebrow-dark { color: var(--gold-deep); }

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--off-white);
}
h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 14px;
}
h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 30px;
}
.lead.light { color: var(--muted-on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 16px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(232, 163, 61, 0.35);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-large { padding: 18px 30px; font-size: 17px; min-height: 56px; }
.btn-block { width: 100%; }

/* ---------- Top urgency bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--off-white);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.topbar .star-glyph { font-size: 11px; margin: 0 6px; }

/* ---------- Section rhythm ---------- */
.section { padding: 56px 0; }
.problem { background: var(--paper); }
.how-it-works { background: var(--navy); }
.how-it-works h2 { color: var(--off-white); }
.trust { background: var(--off-white); }
.testimonials { background: var(--paper); }
.faq { background: var(--off-white); }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); padding: 36px 0 48px; }
.hero-grid { display: flex; flex-direction: column; gap: 32px; }
.hero-copy { color: var(--off-white); }
.hero-sub { font-size: 16px; color: var(--muted-on-navy); margin: 16px 0 22px; max-width: 560px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-on-navy);
}
.trust-strip li { display: flex; align-items: center; gap: 6px; margin-right: 18px; }
.trust-strip li:last-child { margin-right: 0; }

/* ---------- Form card ---------- */
.hero-form-wrap { scroll-margin-top: 16px; }
.quote-form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-form);
  border: 1px solid var(--border-soft);
}
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.form-head h2 { font-size: 20px; margin-bottom: 2px; }
.form-head p { font-size: 13px; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  min-height: 52px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%235B6679' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.25);
}
.field input::placeholder { color: #9AA4B2; }

.form-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px 26px;
  text-align: center;
  box-shadow: var(--shadow-form);
  border: 1px solid var(--border-soft);
}
.form-success .star-badge { margin: 0 auto 16px; }
.form-success h2 { margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; gap: 16px; margin-top: 8px; }
.problem-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.card-star { position: absolute; top: 18px; right: 18px; font-size: 16px; opacity: 0.5; }
.problem-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 18px; margin-top: 8px; }
.step {
  background: var(--navy-soft);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}
.step h3 { color: var(--off-white); }
.step p { color: var(--muted-on-navy); font-size: 14.5px; }

/* ---------- Trust grid ---------- */
.trust-grid { display: grid; gap: 16px; margin-top: 8px; }
.trust-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border-soft);
}
.trust-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.trust-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 16px; margin-top: 8px; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}
.stars { color: var(--gold); font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.testimonial-card figcaption { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.testimonial-note { font-size: 12px; color: var(--muted); margin-top: 18px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); padding: 56px 0 80px; }
.final-grid { display: flex; flex-direction: column; gap: 32px; }
.final-copy { color: var(--off-white); }
.final-copy h2 { color: var(--off-white); }
.final-copy p { color: var(--muted-on-navy); font-size: 15.5px; margin: 14px 0 4px; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 30px 0 110px; }
.footer p {
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer p:last-child { margin-bottom: 0; font-size: 11px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 22, 38, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
}
.sticky-cta .btn { min-height: 52px; }

/* ==========================================================================
   Tablet / Desktop
   ========================================================================== */
@media (min-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .problem-grid,
  .trust-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .section { padding: 88px 0; }
  .hero { padding: 64px 0 96px; }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .hero-copy { flex: 1 1 52%; }
  .hero-form-wrap { flex: 1 1 42%; max-width: 440px; }

  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .lead { font-size: 17.5px; }

  .problem-grid,
  .trust-grid,
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }

  .final-grid { flex-direction: row; align-items: center; gap: 56px; }
  .final-copy { flex: 1 1 52%; }
  .final-grid .hero-form-wrap { flex: 1 1 42%; max-width: 440px; }

  /* Sticky CTA stays mobile-only: hidden on desktop since the
     hero form is already in view without scrolling. */
  .sticky-cta { display: none; }
}

@media (max-width: 991px) {
  /* reserve space so sticky bar never covers footer content */
  body { padding-bottom: 0; }
}
