/* Will VanDusen Insurance — site styles */
:root {
  --paper: #F3EEE4;
  --paper-deep: #E8E0D2;
  --white: #FFFEFB;
  --ink: #16202B;
  --ink-soft: #2B3542;
  --muted: #5A6370;
  --line: #DDD7CC;
  --accent: #0F6E68;
  --accent-deep: #0B524E;
  --accent-soft: #D7EBE8;
  --teal-circle: #7BA8A4;
  --shadow: 0 1px 2px rgba(22, 32, 43, 0.05), 0 18px 44px -22px rgba(22, 32, 43, 0.28);
  --radius: 1rem;
  --radius-sm: 0.85rem;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.75rem;
  --measure: 40rem;
  --wrap: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-deep); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 36rem; line-height: 1.55; }
.tagline {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
  font-weight: 500;
}
.hero-note {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 33rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.logo-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.2rem 1.15rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent); }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn { margin-left: 0.65rem; padding: 0.62rem 1.05rem; font-size: 0.9rem; }

.nav-coverage { position: relative; }
.nav-coverage > button,
.nav-coverage > summary {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.3rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-coverage > button:hover { color: var(--ink); }
.nav-coverage ul {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 11rem;
  z-index: 20;
}
.nav-coverage.is-open ul,
.nav-coverage:hover ul,
.nav-coverage:focus-within ul { display: block; }
.nav-coverage ul a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; text-decoration: none; }
.nav-coverage ul a:hover { background: var(--accent-soft); color: var(--accent-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: radial-gradient(ellipse at 88% 25%, #E0EAE3 0, transparent 52%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; max-width: 20ch; }
.hero .lede { max-width: 33rem; }
.hero-grid > *, .split > * { min-width: 0; }
.portrait-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 28rem);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -0.75rem 0.75rem 0.75rem -0.75rem;
  border: 1px solid #A9C2B9;
  border-radius: 1.8rem;
  z-index: 0;
}
.portrait-frame img {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  background: var(--white);
}

/* Sections */
.section { padding: clamp(3rem, 5.5vw, 5rem) 0; }
.section-tight { padding: 3rem 0; }
.section-ink {
  background: var(--ink);
  color: #E8E4DB;
}
.section-ink h2, .section-ink h3 { color: #F7F3EB; }
.section-ink .eyebrow { color: #9ED0CB; }
.section-ink .muted, .section-ink .lede { color: #C4BDB0; }
.section-white { background: #FAF9F5; }
.section-accent { background: linear-gradient(115deg, var(--accent-deep), var(--accent)); color: #F4FBF9; }
.section-accent .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.section-accent :focus-visible, .site-footer :focus-visible { outline-color: #BCE5DE; }
.section-accent h2 { color: #fff; }
.section-accent .lede, .section-accent p { color: #D6EFEB; }
.section-head { max-width: 38rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }

.cards-4, .cards-3, .cards-2 {
  display: grid;
  gap: 1.15rem;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 4px 20px -12px rgba(22,32,43,0.12);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: inherit;
  text-decoration: none;
}
.card .icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
}
.card .icon svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card .more { margin-top: auto; padding-top: 1.25rem; font-weight: 600; font-size: 0.92rem; color: var(--accent); }

.steps .card { background: transparent; border: 0; border-top: 1px solid #B8C5BA; border-radius: 0; padding: 1.5rem 0 0; box-shadow: none; }
.steps .card h3 { margin-bottom: 0.25rem; }

.step-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-top { align-items: start; }
.split-portrait { width: min(100%, 30rem); justify-self: end; }
.split-portrait img {
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.page-hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }

.callout {
  background: #EAF1EB;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p + p { margin-top: 0.7em; }

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 2.2rem;
}

/* FAQ */
.reading-wrap { max-width: 56rem; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.faq-item[open] { border-color: #9CBFB4; background: #F1F6F1; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 3.5rem 1.2rem 1.4rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); top: 1.5rem; }
.faq-item summary:hover { color: var(--accent); }
.faq-item .faq-a { padding: 0 1.4rem 1.4rem; color: var(--muted); max-width: 42rem; }

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form label, .field-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea,
.form select {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAF9F5;
  color: var(--ink);
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input[type="checkbox"] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 500;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: 500;
}
.checks label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-success, .form-error {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-success { background: var(--accent-soft); color: var(--accent-deep); }
.form-error { background: #F8E4E0; color: #6D2A22; }
.hidden, [hidden] { display: none !important; }

.quote-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 3rem; }
.contact-aside {
  padding: 2rem;
  background: #EAF1EB;
  border: 1px solid #D1DED4;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-aside a.big {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  text-decoration: none;
}
.contact-aside a.big:hover { color: var(--accent); }

/* Blog */
.blog-empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  max-width: 38rem;
}
.draft-banner {
  background: #3A2A10;
  color: #F3E6C8;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.placeholder-block {
  background: repeating-linear-gradient(-45deg, #F7F0D8, #F7F0D8 12px, #F1E6C0 12px, #F1E6C0 24px);
  border: 2px dashed #B58A22;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  color: #5C4708;
  margin: 1.2rem 0;
}
.placeholder-block strong { display: block; margin-bottom: 0.3rem; color: #3A2A10; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C9C3B8;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}
.site-footer a { color: #EDE8DF; text-decoration: none; }
.site-footer a:hover { color: #9ED0CB; }
.site-footer h2, .site-footer h3 {
  color: #F6F1E8;
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.site-footer .logo-name { color: #F6F1E8; }
.site-footer .logo-sub { color: #9ED0CB; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-meta {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2E3844;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: #9AA1A9;
}

/* 404 */
.empty-page { min-height: 60vh; padding: 5rem 0; }

@media (max-width: 960px) {
  .hero-grid, .split, .cards-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: center; }
}
@media (max-width: 800px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 0.6rem 0 0; align-self: flex-start; }
  .nav-coverage ul {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.2rem 0 0.4rem 0.8rem;
  }
  .hero { padding-top: 2rem; }
  .hero-grid, .split, .cards-4, .cards-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid, .split { gap: 2.5rem; }
  .split-portrait { justify-self: center; }
  .hero h1 { max-width: 18ch; }
  .hero .lede { font-size: 1.0625rem; }
  .nav > a:not(.btn), .nav-coverage > button { min-height: 2.75rem; display: flex; align-items: center; }
  .nav .btn { align-self: stretch; }
  .card { padding: 1.25rem; }
  .card .more { padding-top: 0.75rem; }
  .contact-aside { padding: 1.5rem; }
  .section { padding: 2.75rem 0; }
}
@media (max-width: 480px) {
  :root { --header-h: 4.35rem; }
  .btn-row { flex-direction: column; gap: 0.65rem; }
  .btn-row .btn { width: 100%; }
  .hero { padding-bottom: 3rem; }
  .hero-grid { gap: 2rem; }
  .portrait-frame { width: min(100%, 22rem); }
  .faq-item summary { padding-left: 1rem; font-size: 1rem; }
  .faq-item .faq-a { padding-inline: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html, html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
