/* Heartland & Vine Insurance · site styles
   SAMPLE WORK: illustrative agency. Built on tokens.css (the brand system), phone column first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--hv-ground);
  color: var(--hv-text);
  font: 400 var(--hv-size-body)/var(--hv-leading-body) var(--hv-font-text);
  padding-bottom: 76px; /* room for the phone bar */
}
img { max-width: 100%; display: block; }
a { color: var(--hv-red-dirt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hv-vine); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.measure { max-width: var(--hv-measure); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--hv-fence-white); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--hv-font-display);
  font-weight: 600;
  letter-spacing: var(--hv-tracking-display);
  line-height: var(--hv-leading-display);
  margin: 0 0 var(--hv-space-3);
  font-variation-settings: "opsz" 72;
}
.display { font-size: var(--hv-size-display); }
h1 { font-size: var(--hv-size-h1); }
h2 { font-size: var(--hv-size-h2); line-height: 1.15; }
h3 { font: 600 var(--hv-size-h3)/1.3 var(--hv-font-text); margin: 0 0 var(--hv-space-2); }
p { margin: 0 0 var(--hv-space-3); }
em.word { font-family: var(--hv-font-display); font-style: italic; font-weight: 400; }
.label {
  font: 600 var(--hv-size-label)/1.3 var(--hv-font-text);
  letter-spacing: var(--hv-tracking-label);
  text-transform: uppercase;
  color: var(--hv-label);
  margin: 0 0 var(--hv-space-3);
}
.fine { font-size: var(--hv-size-small); color: var(--hv-storm-slate); line-height: 1.5; }
.lede { font-size: 1.1875rem; line-height: 1.5; }

/* ---------- sample strip ---------- */
.hv-sample-label.strip {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.1em;
  padding: 0.55em 1em;
}

/* ---------- header ---------- */
.site-header { background: var(--hv-paper); border-bottom: 1px solid var(--hv-rule); position: relative; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: block; line-height: 0; }
.brand img { height: 38px; width: auto; aspect-ratio: 2052 / 450; }
.menu-btn {
  font: 600 0.9375rem/1 var(--hv-font-text);
  color: var(--hv-prairie-ink);
  background: transparent;
  border: 1.5px solid var(--hv-prairie-ink);
  border-radius: var(--hv-radius);
  min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.menu-btn .bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--hv-fence-white);
  border-bottom: 1px solid var(--hv-rule);
  box-shadow: 0 18px 30px -18px rgba(31,43,36,.35);
  padding: 8px 20px 20px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--hv-limestone);
  color: var(--hv-prairie-ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.site-nav li a[aria-current="page"] { color: var(--hv-red-dirt); }
.site-nav .btn { margin-top: 16px; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--hv-radius);
  font: 600 1rem/1.1 var(--hv-font-text);
  text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--hv-red-dirt); color: var(--hv-fence-white); }
.btn-primary:hover { background: #923A23; }
.btn-ghost { background: transparent; color: var(--hv-prairie-ink); border-color: var(--hv-prairie-ink); }
.btn-ghost:hover { background: var(--hv-limestone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--hv-space-4) 0 var(--hv-space-3); }
.btn-row .btn { flex: 1 1 auto; white-space: nowrap; }
h1[tabindex="-1"]:focus { outline: none; }
.on-ink .btn-ghost { color: var(--hv-paper); border-color: var(--hv-paper); }
.on-ink .btn-ghost:hover { background: rgba(244,237,225,.08); }

/* ---------- phone bar (thumb CTA) ---------- */
.phone-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--hv-prairie-ink);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4);
}
.phone-bar .btn { min-height: 50px; padding: 0 10px; font-size: 0.9375rem; }
.phone-bar .btn-ghost { color: var(--hv-paper); border-color: rgba(244,237,225,.7); }
.phone-bar.single { grid-template-columns: 1fr; }

/* ---------- sections ---------- */
section { padding: var(--hv-space-6) 0; }
.band-limestone { background: var(--hv-limestone); }
.band-ink { background: var(--hv-prairie-ink); color: var(--hv-paper); }
.band-ink h2, .band-ink h3 { color: var(--hv-fence-white); }
.band-ink .fine { color: #B9C2BC; }
.band-ink a { color: var(--hv-porch-light); }

/* photos */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; background: var(--hv-limestone); }
.photo .ratio { aspect-ratio: 3 / 2; border-radius: var(--hv-radius); overflow: hidden; background: var(--hv-limestone); }
.photo .stamp { position: absolute; top: 12px; left: 12px; z-index: 2; }
.photo figcaption { margin-top: 8px; }
.arch { border-radius: var(--hv-radius-arch); overflow: hidden; background: var(--hv-limestone); aspect-ratio: 1 / 1; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HOME ---------- */
.hero { padding: 28px 0 var(--hv-space-5); }
.hero h1 { font-size: var(--hv-size-display); margin-bottom: var(--hv-space-4); }
.hero .photo { margin: 0 -20px var(--hv-space-4); }
.hero .photo .ratio { border-radius: 0; }
.hero .photo figcaption { padding: 0 20px; }

.facts { padding: var(--hv-space-5) 0; }
.facts ul { list-style: none; margin: 0 0 var(--hv-space-4); padding: 0; display: grid; gap: 22px; }
.facts li { border-top: 1px solid rgba(244,237,225,.22); padding-top: 18px; }
.facts strong { display: block; font: 600 1.5rem/1.15 var(--hv-font-display); color: var(--hv-porch-light); margin-bottom: 6px; }

.cards { display: grid; gap: 18px; margin-top: var(--hv-space-4); }
.card {
  background: var(--hv-fence-white); border-radius: var(--hv-radius);
  border: 1px solid var(--hv-limestone); overflow: hidden;
  display: flex; flex-direction: column;
}
.card .ratio { aspect-ratio: 3 / 2; background: var(--hv-limestone); }
.card .ratio img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--hv-font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.card p { flex: 1; }
.card .go { font-weight: 600; text-decoration: none; display: block; padding: 10px 0 2px; }
.card .go::after { content: "\00a0→"; }
.card:hover .go { text-decoration: underline; }

ol.plain-steps { list-style: none; counter-reset: s; margin: var(--hv-space-4) 0; padding: 0; display: grid; gap: 18px; }
ol.plain-steps > li { counter-increment: s; position: relative; padding-left: 52px; }
ol.plain-steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.0625rem/1 var(--hv-font-display);
  background: var(--hv-prairie-ink); color: var(--hv-paper);
}
.band-ink ol.plain-steps > li::before { background: var(--hv-porch-light); color: var(--hv-prairie-ink); }
ol.plain-steps strong { display: block; }

.voice { display: grid; gap: 28px; align-items: center; }
.voice .arch { max-width: 300px; aspect-ratio: 4 / 5; }
.voice blockquote { margin: 0; }
.voice blockquote p { font: 400 1.5rem/1.35 var(--hv-font-display); }
.voice cite { font-style: normal; font-size: var(--hv-size-small); }
.voice cite strong { font-weight: 600; }

.closing { text-align: left; }

/* ---------- EXPLAINER ---------- */
.ex-hero { padding: 28px 0 var(--hv-space-5); }
.ex-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.ex-hero .arch { margin: var(--hv-space-4) 0 8px; }
.short {
  background: var(--hv-fence-white); border: 1px solid var(--hv-limestone);
  border-left: 4px solid var(--hv-vine);
  border-radius: var(--hv-radius); padding: 20px 20px 6px; margin-top: var(--hv-space-4);
}
.short h2 { font: 600 var(--hv-size-label)/1.3 var(--hv-font-text); letter-spacing: var(--hv-tracking-label); text-transform: uppercase; color: var(--hv-label); margin-bottom: 12px; }
.short ul { margin: 0; padding-left: 1.1em; }
.short li { margin-bottom: 12px; }

.ex-layout { display: block; }
.toc { display: none; }
.toc-phone { margin: 0 0 var(--hv-space-2); }
.toc-phone summary {
  cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center;
  border-top: 1px solid var(--hv-rule); border-bottom: 1px solid var(--hv-rule); list-style: none;
}
.toc-phone summary::-webkit-details-marker { display: none; }
.toc-phone summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; }
.toc-phone[open] summary::after { content: "–"; }
.toc ol, .toc-phone ol { list-style: none; margin: 0; padding: 8px 0; }
.toc a, .toc-phone a { display: block; padding: 8px 0; color: var(--hv-prairie-ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.toc a:hover, .toc-phone a:hover { color: var(--hv-red-dirt); }

.ex-body section { padding: var(--hv-space-5) 0 var(--hv-space-3); border-top: 1px solid var(--hv-rule); scroll-margin-top: 20px; }
.ex-body section:first-child { border-top: 0; }
.ex-body h3 { margin-top: var(--hv-space-4); }
.ex-body h3 .term { font-weight: 400; font-style: italic; color: var(--hv-vine); font-size: 1rem; }
.ex-body ul, .ex-body ol { padding-left: 1.2em; }
.ex-body li { margin-bottom: 10px; }
.ex-body .num { padding-left: 0; }
.storm { border-left: 3px solid var(--hv-storm-slate); padding-left: 16px; margin: var(--hv-space-4) 0; }
.storm h3 { margin-top: 0; }
.example {
  background: var(--hv-limestone); border-radius: var(--hv-radius);
  padding: 20px; margin: var(--hv-space-4) 0;
}
.example .label { color: var(--hv-storm-slate); margin-bottom: 8px; }
.example p:last-child, .example ul:last-child { margin-bottom: 0; }
.faq h3 { font-size: 1.125rem; }

/* responsive tables: stacked on the phone */
.table { width: 100%; border-collapse: collapse; margin: var(--hv-space-4) 0; font-size: 1rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; }
@media (max-width: 759px) {
  .table thead { position: absolute; left: -9999px; }
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table tr { background: var(--hv-fence-white); border: 1px solid var(--hv-limestone); border-radius: var(--hv-radius); margin-bottom: 12px; padding: 6px 0; }
  .table th[scope="row"] { font-weight: 600; padding-bottom: 4px; }
  .table td { padding-top: 4px; padding-bottom: 10px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font: 600 var(--hv-size-label)/1.4 var(--hv-font-text); letter-spacing: var(--hv-tracking-label); text-transform: uppercase; color: var(--hv-label); margin-bottom: 2px; }
}
@media (min-width: 760px) {
  .table thead th { background: var(--hv-prairie-ink); color: var(--hv-paper); font-weight: 600; }
  .table tbody tr { border-bottom: 1px solid var(--hv-rule); }
  .table tbody tr:nth-child(even) { background: rgba(228,218,203,.45); }
  .table th[scope="row"] { font-weight: 600; width: 26%; }
}

.cta-block { background: var(--hv-prairie-ink); color: var(--hv-paper); border-radius: var(--hv-radius); padding: 28px 22px; margin: var(--hv-space-5) 0 var(--hv-space-4); }
.cta-block h2 { color: var(--hv-fence-white); }
.page-note { margin-bottom: var(--hv-space-5); }

/* ---------- ABOUT ---------- */
.about-hero { padding-top: 28px; padding-bottom: var(--hv-space-5); display: grid; gap: 28px; }
.about-hero .arch { aspect-ratio: 4 / 5; max-width: 360px; }
.people { display: grid; gap: 16px; margin: var(--hv-space-4) 0 var(--hv-space-3); }
.person { background: var(--hv-fence-white); border: 1px solid var(--hv-limestone); border-radius: var(--hv-radius); padding: 20px; }
.person h3 { font-family: var(--hv-font-display); font-size: 1.375rem; margin-bottom: 2px; }
.person .role { color: var(--hv-vine); font-weight: 600; font-size: var(--hv-size-small); margin-bottom: 10px; }

/* ---------- QUOTE ---------- */
.quote-wrap { padding-top: 28px; padding-bottom: var(--hv-space-6); }
.form { margin-top: var(--hv-space-4); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--hv-space-5); min-width: 0; }
legend { padding: 0; margin-bottom: 14px; }
legend .step { display: block; font: 600 var(--hv-size-label)/1.3 var(--hv-font-text); letter-spacing: var(--hv-tracking-label); text-transform: uppercase; color: var(--hv-label); margin-bottom: 4px; }
legend .q { font: 600 1.5rem/1.2 var(--hv-font-display); }
legend .opt { font: 400 var(--hv-size-small)/1 var(--hv-font-text); color: var(--hv-storm-slate); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  background: var(--hv-fence-white); border: 1.5px solid var(--hv-rule); border-radius: var(--hv-radius);
  font-weight: 600; cursor: pointer; user-select: none;
}
.chip span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--hv-storm-slate); border-radius: 3px; flex: none; background: var(--hv-fence-white); }
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { border-color: var(--hv-prairie-ink); background: #fff; }
.chip input:checked + span::before { background: var(--hv-prairie-ink); border-color: var(--hv-prairie-ink); box-shadow: inset 0 0 0 3px var(--hv-fence-white); }
.chip input:focus-visible + span { outline: 3px solid var(--hv-vine); outline-offset: 2px; }
.chip.wide span { width: 100%; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { font-weight: 400; color: var(--hv-storm-slate); font-size: var(--hv-size-small); }
.field .hint { display: block; font-size: var(--hv-size-small); color: var(--hv-storm-slate); margin: -2px 0 8px; }
.field input, .field textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--hv-font-text); color: var(--hv-prairie-ink);
  background: var(--hv-fence-white); border: 1.5px solid var(--hv-rule); border-radius: var(--hv-radius);
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--hv-prairie-ink); outline: none; box-shadow: 0 0 0 3px rgba(79,107,74,.35); }
.err { display: none; color: var(--hv-red-dirt); font-weight: 600; font-size: 0.9375rem; margin-top: 8px; }
.err::before { content: "! "; }
.invalid .err { display: block; }
.invalid input { border-color: var(--hv-red-dirt); }
.invalid .chips .chip span { border-color: var(--hv-red-dirt); }
.two { display: grid; gap: 0 16px; }
.submit-row .btn { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.confirm { display: none; }
.confirm.show { display: block; }
.confirm h1 { font-size: var(--hv-size-display); }
.done .form-area { display: none; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--hv-prairie-ink); color: var(--hv-paper); padding: var(--hv-space-6) 0 var(--hv-space-5); }
.site-footer a { color: var(--hv-paper); }
.site-footer .lockup { height: 40px; width: auto; aspect-ratio: 2052 / 450; margin-bottom: 22px; }
.foot-grid { display: grid; gap: 24px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-nav a { display: inline-block; padding: 8px 0; text-decoration: none; font-weight: 600; }
.foot-nav a:hover { text-decoration: underline; }
.foot-oid { color: #CBD2CD; font-size: 0.9375rem; }
.foot-sample { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(244,237,225,.2); font-size: var(--hv-size-small); color: #CBD2CD; }
.foot-sample strong { color: var(--hv-porch-light); }

/* ================= GROW: tablet ================= */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .facts ul { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .voice { grid-template-columns: 300px 1fr; gap: 48px; }
  .people { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.2fr 1fr; }
  .submit-row .btn { width: auto; padding: 0 40px; }
  .btn-row .btn { flex: 0 0 auto; }
  .cta-block { padding: 40px; }
  .ex-hero .arch { aspect-ratio: 16 / 10; }
  .hero .photo { margin: 0 0 var(--hv-space-4); }
  .hero .photo .ratio { border-radius: var(--hv-radius); }
  .hero .photo figcaption { padding: 0; }
}

/* ================= GROW: desktop ================= */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .phone-bar { display: none; }
  .menu-btn { display: none; }
  .brand img { height: 46px; }
  .site-header .wrap { min-height: 84px; }
  .site-nav, .site-nav.open { display: flex; position: static; background: none; box-shadow: none; padding: 0; border: 0; align-items: center; gap: 22px; }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li a { border: 0; padding: 8px 0; font-size: 0.9688rem; }
  .site-nav li a:hover { color: var(--hv-red-dirt); }
  .site-nav .btn { margin: 0; width: auto; min-height: 46px; }

  section { padding: 96px 0; }
  .hero { padding: 56px 0 88px; }
  .hero .grid { display: grid; grid-template-columns: 5fr 6fr; grid-template-rows: auto 1fr; column-gap: 56px; }
  .hero h1 { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: var(--hv-space-4); }
  .hero .hero-text { grid-column: 1; grid-row: 2; }
  .hero .photo { margin: 0; grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .hero .photo .ratio { border-radius: var(--hv-radius); aspect-ratio: 4 / 3.4; }
  .hero .photo figcaption { padding: 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card h3 { font-size: 1.375rem; }
  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

  .ex-hero { padding: 56px 0 64px; }
  .ex-hero .grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .ex-hero .arch { aspect-ratio: 4 / 5; margin: 0; }
  .ex-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; padding-top: 40px; }
  .toc-phone { display: none; }
  .ex-body { max-width: 720px; }
  .about-hero { grid-template-columns: 7fr 5fr; gap: 64px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
  .about-hero .arch { justify-self: end; width: 100%; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .quote-wrap { padding-top: 64px; padding-bottom: 96px; }
  .quote-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 72px; }
  .table th[scope="row"] { width: 38%; }
  .quote-aside { position: sticky; top: 24px; align-self: start; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
