/*
  True Quote Auto — Responsive LPV Clone
  Tech: HTML + CSS (mobile-first)
*/

:root {
  /* USA flag palette */
  --brand-700: #0a3161; /* flag blue (navy) */
  --brand-600: #163e7a;
  --brand-500: #1f4f99;
  --accent-500: #b31942; /* flag red */
  --accent-400: #d33b5c;
  --bg-50: #f8fafc;
  --bg-100: #f1f5f9;
  --text-900: #0f172a;
  --text-700: #334155;
  --text-600: #475569;
  --border-200: #e2e8f0;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.1);
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-900);
  background: var(--bg-50);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(6px);
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid var(--border-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-mark { display: inline-block; color: var(--accent-500); font-weight: 700; }
.brand-text { color: var(--brand-700); font-weight: 700; letter-spacing: .2px; }
.nav { display: none; gap: 1rem; }
.nav-link { color: var(--text-700); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--brand-600); }

@media (min-width: 768px) { .nav { display: inline-flex; } }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(179, 25, 66, 0.2), transparent 60%),
    linear-gradient(120deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1rem;
}
.hero-copy { max-width: 720px; }
.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 .75rem 0;
  font-weight: 800;
}
.hero-sub { color: rgba(255,255,255,.9); margin: 0 0 1rem 0; }
.hero-bullets {
  list-style: none; padding: 0; margin: 1rem 0 0 0;
  display: grid; grid-template-columns: 1fr; gap: .5rem;
}
.hero-bullets li { position: relative; padding-left: 1.5rem; }
.hero-bullets li::before { content: "✔"; position: absolute; left: 0; color: var(--accent-400); }

/* Form card */
.form-card {
  background: white;
  color: var(--text-900);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}
.form-title { margin: 0 0 .5rem 0; font-size: 1.25rem; }
.quote-form { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; color: var(--text-700); }
.form-row input {
  border: 1px solid var(--border-200);
  border-radius: 10px;
  padding: .75rem .85rem;
  font-size: 1rem;
}
.form-row input:focus { outline: 2px solid rgba(37, 99, 235, .3); }
.form-row input:focus { outline: 2px solid rgba(10, 49, 97, .3); }
.consent { font-size: .875rem; color: var(--text-600); margin: .5rem 0 0; }
.inline-link { color: var(--brand-600); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.btn-primary {
  margin-top: .75rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1.125rem; /* slightly larger label */
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: block;
}
.btn-primary:hover { filter: brightness(1.05); }
.secure-note { margin-top: .5rem; color: var(--text-700); font-size: .9rem; }

.cta-note {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-700);
  margin: 0 0 .75rem 0;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .form-card { padding: 1.5rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-100); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.5rem 0; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.step { background: white; border: 1px solid var(--border-200); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.step-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-600); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-title { margin: .5rem 0 .25rem 0; }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.benefit { background: white; border: 1px solid var(--border-200); border-radius: 14px; padding: .85rem 1rem; display: flex; align-items: center; gap: .6rem; }
.benefit-icon { font-size: 1.25rem; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { background: white; border: 1px solid var(--border-200); border-radius: 12px; padding: .85rem 1rem; }
.faq + .faq { margin-top: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-700); }
.faq p { margin: .5rem 0 0 0; color: var(--text-700); }

/* Footer */
.site-footer {
  border-top: 3px solid var(--brand-600);
  background: linear-gradient(180deg, var(--bg-100) 0%, #fff 45%);
  box-shadow: 0 -1px 0 var(--border-200) inset;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .75rem 0;
}
.footer-brand {
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: .2px;
}
.footer-left { flex: 1 1 auto; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  flex: 1 1 100%;
}
.footer-links a {
  color: var(--text-700);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.footer-links a:hover {
  color: var(--brand-600);
  background: var(--bg-100);
  border-color: var(--border-200);
}
.footer-copy { color: var(--text-700); font-weight: 600; }
.disclaimer {
  color: var(--text-600);
  font-size: .85rem;
  text-align: center;
  margin: 1rem 0 .25rem 0;
  white-space: nowrap;
}
/* Allow disclaimer to wrap on smaller screens */
@media (max-width: 767px) {
  .disclaimer { white-space: normal; line-height: 1.4; }
}
/* Hide site header on mobile */
@media (max-width: 767px) {
  .site-header { display: none !important; }
}
.copyright { color: var(--text-600); font-size: .85rem; }

@media (min-width: 768px) {
  .footer-inner { flex-wrap: nowrap; }
  .footer-left { flex: 0 1 auto; }
  .footer-links { flex: 0 0 auto; justify-content: flex-end; }
}

/* Small tweaks */
@media (max-width: 480px) {
  .form-row input { font-size: .95rem; }
  .btn-primary { padding: .8rem .9rem; }
}
/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.review-card {
  background: white;
  border: 1px solid var(--border-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.review-name { margin: 0; font-weight: 700; color: var(--brand-700); }
.verified-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700;
  color: #0f766e; /* teal-ish for verification */
  background: #d1fae5;
  border: 1px solid #99f6e4;
  padding: .2rem .5rem; border-radius: 999px;
}
.stars { color: #f59e0b; font-size: 1rem; margin: .35rem 0; }
.review-text { margin: .35rem 0 0 0; color: var(--text-700); }

@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Policy page typography */
.policy { max-width: 800px; margin: 0 auto; padding: 2rem 2rem; }
@media (min-width: 1024px) { .policy { padding: 2.5rem 2.5rem; } }
.policy-page { max-width: 800px; margin: 0 auto; padding: 2rem 2rem; }
@media (min-width: 1024px) { .policy-page { padding: 2.5rem 2.5rem; } }
.policy h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 .5rem 0; font-weight: 800; }
.policy-updated { color: var(--text-600); margin: 0 0 1rem 0; }
.policy h2 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; font-weight: 700; color: var(--brand-700); }
.policy p { margin: 0 0 .75rem 0; color: var(--text-700); }
.policy ul { margin: 0 0 .75rem 1.25rem; color: var(--text-700); }