/* ============================================================
   Andrew Vanopstall Insurance — Site Stylesheet
   Palette: Prairie Navy #16324F / Ledger Gold #B8863B /
            Wheat #F7F3EA / Ink #26292E / Rule #DCD3BF
   Type: 'Source Serif 4' (display) + 'Public Sans' (body/UI)
   ============================================================ */

:root {
  --navy: #16324F;
  --navy-dark: #0E2138;
  --gold: #B8863B;
  --gold-dark: #93692C;
  --wheat: #F7F3EA;
  --wheat-deep: #EFE8D8;
  --ink: #26292E;
  --ink-soft: #55595F;
  --rule: #DCD3BF;
  --white: #FFFFFF;
  --focus: #2E6BB8;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--wheat);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.6em;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand .mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.brand .tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  color: var(--wheat);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav .phone-cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 700;
}

.nav .phone-cta:hover { background: #cf9c4e; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--wheat);
  padding: 64px 0 84px;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }

.hero p.lead {
  color: #D9E0E8;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-badges {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badges div {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.hero-badges strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}

.hero-badges span {
  font-size: 0.78rem;
  color: #B9C3CE;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.08s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: #cf9c4e; }

.btn-outline {
  background: transparent;
  border-color: var(--wheat);
  color: var(--wheat);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: var(--white); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 26px;
}

.card .num {
  font-family: var(--serif);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 18px 40px -24px rgba(14, 33, 56, 0.35);
}

.form-panel h2 { margin-bottom: 4px; }
.form-sub { font-size: 0.9rem; margin-bottom: 22px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #C7BEA8;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.96rem;
  background: var(--wheat);
  color: var(--ink);
}

.field textarea { min-height: 100px; resize: vertical; }

fieldset.consent {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 16px 4px;
  margin: 22px 0;
  background: var(--wheat-deep);
}

fieldset.consent legend {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  padding: 0 6px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.check-row input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--navy);
}

.check-row label {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 400;
}

.check-row.sms-row {
  border: 1px dashed var(--gold-dark);
  background: var(--white);
  border-radius: 4px;
  padding: 12px;
}

.check-row a { color: var(--gold-dark); text-decoration: underline; }

.field-required::after {
  content: " *";
  color: var(--gold-dark);
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #B9C3CE;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid a {
  color: #B9C3CE;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 8px; }

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #23405C;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #7F91A3;
}

.footer-bottom a { color: #7F91A3; text-decoration: underline; }

/* ---------- Simple content pages ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
  border-bottom: 3px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); margin: 0; }

.legal h2 { margin-top: 2em; }
.legal ul { color: var(--ink-soft); }
.legal-updated {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 2em;
}

.callout {
  background: var(--wheat-deep);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 3px;
  margin: 1.6em 0;
}

.callout p:last-child { margin-bottom: 0; }

table.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}
table.rates th, table.rates td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}
table.rates th { background: var(--wheat-deep); color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav ul { gap: 14px; }
}
