/* Heritage Insurance Partners — site styles (2026 redesign).
   Greens from the original brand, a sage background in place of texture,
   Newsreader for headlines and Figtree for everything else. */

:root {
  --forest: #0a2818;      /* headlines, footer */
  --pine: #1a5c38;        /* links, selected states */
  --pine-light: #24724a;
  --sage: #e8f0ea;        /* soft section background */
  --sage-deep: #d5e3d9;
  --paper: #fbfcfa;       /* page background */
  --white: #ffffff;
  --clay: #c0522a;        /* main call-to-action only */
  --clay-dark: #a3431f;
  --ink: #17231c;
  --ink-soft: #46554c;
  --line: #d9e2dc;
  --focus: #1a5c38;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-photo: 22px;
  --r-card: 14px;
  --r-input: 10px;
  --shadow-photo: 0 24px 60px -24px rgba(10, 40, 24, 0.45);
  --shadow-card: 0 1px 2px rgba(10, 40, 24, 0.06), 0 8px 24px -12px rgba(10, 40, 24, 0.18);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Older pages still use these names. */
  --navy: var(--forest);
  --navy-mid: var(--pine);
  --navy-light: var(--pine-light);
  --gold: var(--clay);
  --gold-dark: var(--clay-dark);
  --gold-light: #d97b4f;
  --text: var(--ink);
  --text-mid: var(--ink-soft);
  --gray-200: var(--line);
  --gray-500: #7a867f;
  --radius: var(--r-input);
  --radius-lg: var(--r-card);
  --shadow-lg: var(--shadow-card);
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.reveal { /* entrance animation removed in the redesign */ }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); line-height: 1.08; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; } /* old accent markup reads as plain text */
h4 { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--forest); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 12px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold, .btn-primary { background: var(--clay); color: #fff; }
.btn-gold:hover, .btn-primary:hover { background: var(--clay-dark); }
.btn-navy { background: var(--forest); color: #fff; }
.btn-navy:hover { background: var(--pine); }
.btn-outline-navy, .btn-quiet { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-outline-navy:hover, .btn-quiet:hover { border-color: var(--forest); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { border-color: #fff; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 250, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.navbar.scrolled { border-bottom-color: var(--line); }
.nav-container { width: min(1180px, 100% - 40px); margin-inline: auto; height: 76px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font: 600 19px/1.1 var(--serif); }
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo .logo-gold { color: var(--pine); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); border-bottom-color: var(--pine); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--forest); text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.nav-phone small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.nav-cta { background: var(--clay); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 11px; white-space: nowrap; }
.nav-cta:hover { background: var(--clay-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--forest); transition: transform .2s; }
.nav-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-disclosure { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sage, .section-alt { background: var(--sage); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-title, .section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-sub, .section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18.5px; max-width: 60ch; }
.label-tag { display: inline-block; font-weight: 600; font-size: 15px; color: var(--pine); margin-bottom: 12px; }

/* ---------- Home hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(42px, 5.6vw, 72px); font-weight: 450; }
.hero-sub { margin-top: 20px; font-size: 19px; color: var(--ink-soft); max-width: 34em; }

.picker { margin-top: 34px; }
.picker-q { font: 600 15px/1.4 var(--sans); color: var(--forest); margin-bottom: 12px; }
.picker-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.picker-option {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 14px 16px; font: 600 16px/1.25 var(--sans); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.picker-option svg { width: 26px; height: 26px; flex: none; color: var(--pine); }
.picker-option:hover { border-color: var(--pine-light); }
.picker-option[aria-pressed="true"] { border-color: var(--pine); background: var(--sage); box-shadow: inset 0 0 0 1px var(--pine); }
.picker-result { margin-top: 16px; min-height: 104px; padding: 18px 20px; border-radius: var(--r-card); background: var(--forest); color: #e9f2ec; display: grid; gap: 12px; }
.picker-result p { font-size: 16.5px; line-height: 1.5; }
.picker-result strong { color: #fff; }
.picker-result .btn { justify-self: start; }
.picker-alt { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.picker-alt a { font-weight: 600; }

.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-photo); overflow: hidden; box-shadow: var(--shadow-photo); background: var(--sage); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.hero-photo img.is-on { opacity: 1; transform: scale(1); }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: var(--r-card); padding: 14px 16px; color: var(--ink);
}
.hero-badge img { position: static; opacity: 1; transform: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-badge p { font-size: 14.5px; line-height: 1.4; }
.hero-badge strong { display: block; color: var(--forest); font-size: 15.5px; }

/* ---------- Trust row ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 26px; height: 26px; color: var(--pine); flex: none; margin-top: 2px; }
.trust-item strong { display: block; font-size: 16px; color: var(--forest); }
.trust-item span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Coverage ---------- */
.coverage-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cover-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.cover-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.cover-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-card:hover figure img { transform: scale(1.04); }
.cover-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cover-card h3 { font-size: 26px; }
.cover-card p { color: var(--ink-soft); font-size: 16px; }
.cover-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--pine); }
.cover-card:hover .go { text-decoration: underline; }
.coverage-more { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.coverage-more a { padding: 20px 22px; text-decoration: none; color: inherit; }
.coverage-more a + a { border-left: 1px solid var(--line); }
.coverage-more strong { display: block; color: var(--forest); font-size: 16.5px; }
.coverage-more span { font-size: 14.5px; color: var(--ink-soft); }
.coverage-more a:hover strong { color: var(--pine); text-decoration: underline; }

/* ---------- Estimator ---------- */
.estimate { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.estimate-copy p { color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }
.estimate-copy figure { margin-top: 30px; border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow-photo); }
.estimate-copy figure img { width: 100%; height: 100%; object-fit: cover; }
.calc { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 28px; }
.calc-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc-row:first-child { padding-top: 0; }
.calc-row label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15.5px; color: var(--forest); }
.calc-row output { font-variant-numeric: tabular-nums; color: var(--pine); }
.calc-row small { color: var(--ink-soft); font-size: 13.5px; }
input[type="range"] { width: 100%; accent-color: var(--pine); height: 28px; }
.calc-total { margin-top: 20px; padding: 22px; border-radius: 12px; background: var(--forest); color: #e9f2ec; }
.calc-total p { font-size: 15px; }
.calc-total .amount { display: block; font: 500 clamp(36px, 4vw, 48px)/1.1 var(--serif); color: #fff; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.calc-total .btn { margin-top: 14px; }
.calc-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--forest); }
.steps li { list-style: none; padding: 26px 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .num { font: 500 44px/1 var(--serif); color: var(--pine); }
.steps h3 { font-size: 25px; margin: 12px 0 8px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.agent-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.agent { background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.agent img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; }
.agent div { padding: 16px 18px 20px; }
.agent h3 { font-size: 23px; }
.agent p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 18px/1.35 var(--sans); color: var(--forest); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 12px; height: 12px; flex: none; margin-top: 6px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq-list details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Closing band ---------- */
.closing { position: relative; color: #fff; overflow: hidden; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,40,24,.92) 0%, rgba(10,40,24,.78) 45%, rgba(10,40,24,.15) 100%); z-index: 1; }
.closing .container { position: relative; z-index: 2; padding: clamp(72px, 10vw, 128px) 0; }
.closing h2 { color: #fff; font-size: clamp(34px, 4.4vw, 52px); max-width: 15em; }
.closing p { margin-top: 14px; max-width: 34em; color: #d7e6dc; font-size: 18.5px; }
.closing-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0; background: var(--sage); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-title { font-size: clamp(38px, 5vw, 60px); font-weight: 450; }
.page-hero-sub { margin-top: 16px; font-size: 18.5px; color: var(--ink-soft); max-width: 36em; }
.page-hero .hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-photo); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-points { margin-top: 22px; display: grid; gap: 8px; list-style: none; }
.page-hero-points li { display: flex; gap: 10px; font-size: 16px; color: var(--ink); }
.page-hero-points li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Product pages: explainer cards + step form ---------- */
.mp-points, .product-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-sub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.product-sub-card h4 { margin-bottom: 8px; }
.product-sub-card p { font-size: 15.5px; color: var(--ink-soft); }
.mp-note { font-size: 14px; color: var(--ink-soft); max-width: 760px; margin: 26px auto 0; text-align: center; line-height: 1.55; }
.mp-form-section { padding-top: 0; }

.apply-form-wrapper { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-photo); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.apply-form fieldset { border: 0; min-width: 0; }
.apply-form fieldset[hidden] { display: none; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.step-bar { flex: 1; height: 6px; background: var(--sage); border-radius: 99px; overflow: hidden; }
.step-bar > div { height: 100%; width: 25%; background: var(--pine); border-radius: 99px; transition: width .35s var(--ease); }
.step-question { font: 500 clamp(26px, 3vw, 34px)/1.15 var(--serif); color: var(--forest); margin-bottom: 20px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.choice-grid-2 { margin-bottom: 0; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 58px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 500; background: #fff; transition: border-color .2s, background .2s; }
.choice:hover span { border-color: var(--pine-light); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--pine); background: var(--sage); font-weight: 700; box-shadow: inset 0 0 0 1px var(--pine); }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 14.5px; font-weight: 600; color: var(--forest); }
.form-group input, .form-group select, .form-group textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-input); outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(26, 92, 56, .15); }
.form-group textarea { resize: vertical; }
.req { color: var(--clay); }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 4px 0 16px; cursor: pointer; }
.consent-check input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--pine); }
.consent-check a { color: var(--pine); }
.form-submit { margin-top: 10px; }
.form-status { min-height: 1em; margin-top: 12px; text-align: center; font-size: 15px; color: var(--clay-dark); }
.form-disclaimer { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.form-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.form-secure svg { width: 16px; height: 16px; color: var(--pine); }

/* Older radio and upload styles (general quote form) */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--ink-soft); }

/* ---------- Products page ---------- */
.product-category { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.product-category:first-of-type { border-top: 0; }
.product-cat-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.product-cat-header > div:nth-child(2) { flex: 1; min-width: 240px; }
.product-cat-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--sage); color: var(--pine); display: grid; place-items: center; }
.product-cat-icon svg { width: 28px; height: 28px; }
.product-cat-header h3 { font-size: 30px; }
.product-cat-header p { color: var(--ink-soft); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content p, .legal-content li { font-size: 17px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content h2 { font-size: 28px; margin: 40px 0 14px; }
.legal-content a { color: var(--pine); }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: #c9d8ce; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer .nav-logo { color: #fff; }
.footer .nav-logo .logo-gold { color: #9fd3b2; }
.footer-tagline { margin-top: 14px; font-size: 15px; max-width: 30ch; color: #b4c8bb; }
.footer-col-title { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #c9d8ce; text-decoration: none; font-size: 15px; padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: 15px; margin-bottom: 4px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; margin-top: 4px; color: #9fd3b2; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0 32px; display: grid; gap: 14px; }
.footer-legal { font-size: 12.5px; line-height: 1.7; color: #9fb4a6; max-width: 980px; }
.footer-copy { font-size: 13px; color: #9fb4a6; }
.footer-copy a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-right { margin-left: auto; }
  .nav-phone { display: none; }
  .hero-grid, .estimate, .agents, .faq, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; order: -1; }
  .coverage-feature { grid-template-columns: 1fr 1fr; }
  .trust-grid, .coverage-more { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3), .coverage-more a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .coverage-more a:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .container, .nav-container { width: calc(100% - 32px); }
  .nav-cta { padding: 10px 14px; font-size: 14px; }
  .nav-logo { font-size: 16px; }
  .picker-options, .choice-grid, .form-row, .coverage-feature, .mp-points, .product-sub-grid, .agent-list, .steps { grid-template-columns: 1fr; }
  .trust-grid, .coverage-more { grid-template-columns: 1fr; }
  .trust-item + .trust-item, .coverage-more a + a { border-left: 0; border-top: 1px solid var(--line); }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .steps li { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .closing::before { background: rgba(10,40,24,.82); }
  .calc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Footer links that carry an icon or logo keep their row layout. */
.footer-col a.nav-logo { display: inline-flex; padding: 0; }
.footer-col a.footer-contact-item { display: flex; }
.closing img { object-position: 72% 35%; }

/* Small phones: compact header and a cleaner hero photo. */
@media (max-width: 680px) {
  .nav-container { gap: 12px; height: 68px; }
  .nav-links { top: 68px; }
  .hero { padding-top: 20px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .hero-badge { display: none; }
}
@media (max-width: 440px) {
  .nav-logo .logo-gold { display: none; }
  .nav-logo-img { width: 32px; height: 32px; }
}

/* ---------- Careers ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); }
.path { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--forest); }
.path li { list-style: none; padding: 24px 22px 0 0; }
.path li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.path .num { font: 500 40px/1 var(--serif); color: var(--pine); }
.path h3 { font-size: 23px; margin: 10px 0 8px; }
.path p { color: var(--ink-soft); font-size: 15.5px; }
.fine-print { margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); }
.split-photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-photo figure { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-photo); }
.split-photo figure img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--ink-soft); margin-top: 14px; max-width: 60ch; }
.agent .social { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--pine); text-decoration: none; }
.agent .social:hover { text-decoration: underline; }
.agent .bio { margin-top: 8px; }
.big-quote { max-width: 820px; font: 400 clamp(24px, 3vw, 34px)/1.35 var(--serif); color: var(--forest); }
.big-quote footer { margin-top: 16px; font: 600 15px/1.4 var(--sans); color: var(--ink-soft); background: none; padding: 0; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.beliefs div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.beliefs h3 { font-size: 24px; margin-bottom: 8px; }
.beliefs p { color: var(--ink-soft); font-size: 15.5px; }
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--pine); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks-icon svg { width: 30px; height: 30px; }
.thanks h1 { font-size: clamp(34px, 4.5vw, 52px); }
.thanks p { margin: 14px auto 0; max-width: 34em; color: var(--ink-soft); font-size: 18px; }
.thanks .closing-actions { justify-content: center; }

/* Radio list and résumé upload on the job application */
.radio-option input { width: 18px; height: 18px; accent-color: var(--pine); flex: none; }
.radio-mark { display: none; }
.file-upload { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 26px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.file-upload:hover { border-color: var(--pine); background: var(--sage); }
.file-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-upload:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-upload-icon { font-size: 22px; color: var(--pine); }
.file-upload-content p { font-weight: 600; color: var(--forest); }
.file-upload-hint { font-size: 13.5px; color: var(--ink-soft); }
.file-name { font-size: 14px; font-weight: 600; color: var(--pine); }
.file-name.file-error { color: var(--clay-dark); }

@media (max-width: 1020px) {
  .perks, .path { grid-template-columns: 1fr 1fr; }
  .path li:nth-child(3) { padding-left: 0; border-left: 0; }
  .path li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .perks .trust-item:nth-child(3) { border-left: 0; }
  .perks .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split-photo, .beliefs { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .perks, .path { grid-template-columns: 1fr; }
  .path li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .path li { padding-right: 0; }
  .perks .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* Four short answers in one row (e.g. "How is your health?") */
.choice-grid-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.form-group .choice-grid { margin-bottom: 0; }
.form-group .choice span { min-height: 50px; justify-content: center; }
@media (max-width: 680px) { .choice-grid-4 { grid-template-columns: 1fr 1fr; } .form-group .choice-grid-2 { grid-template-columns: 1fr 1fr; } }
