/* ==========================================================================
   A-1 Abstracting and Research — Design System
   ========================================================================== */

:root {
  --navy: #0B2A4A;
  --navy-dark: #071B30;
  --navy-light: #12406B;
  --gold: #C6952F;
  --gold-light: #E3B45C;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --ink: #1C2733;
  --ink-light: #5B6B7C;
  --border: #E3E8EF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 74, 0.16);
  --container: 1180px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* keep anchor targets (#faq, #closures) clear of the sticky header */
[id] { scroll-margin-top: 140px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-light); }
a { color: var(--navy-light); text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198, 149, 47, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11,42,74,0.08); border-color: var(--border); }

.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 20px; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 54px; width: auto; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 58px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg); color: var(--navy); }
.nav-links a.active { color: var(--gold); background: rgba(198,149,47,0.1); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero.hero--short { min-height: 46vh; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,27,48,0.94) 20%, rgba(11,42,74,0.75) 55%, rgba(11,42,74,0.55) 100%);
}
/* image is cropped so the gold dome sits 76% across; matching % keeps it in view at every width */
.hero--home { background-position: 76% 20%; }
/* left-align with the nav/logo edge (not centered) and cap at 58% of the hero so text never reaches the dome at ~66%+ */
.hero--home .hero-content { max-width: min(620px, 58%); margin-left: max(0px, calc((100% - var(--container)) / 2)); margin-right: auto; }
.hero--home::before {
  background:
    linear-gradient(0deg, rgba(7,27,48,0.85) 0%, rgba(7,27,48,0.55) 18%, rgba(7,27,48,0) 40%),
    linear-gradient(100deg, rgba(7,27,48,0.96) 0%, rgba(11,42,74,0.91) 44%, rgba(11,42,74,0.66) 57%, rgba(11,42,74,0.22) 66%, rgba(11,42,74,0.05) 72%, rgba(11,42,74,0.04) 100%);
}
.hero--home .hero-stats div strong,
.hero--home .hero-stats div span { text-shadow: 0 1px 8px rgba(7,27,48,0.9); }
.hero--home .hero-stats div span { color: rgba(255,255,255,0.88); }
@media (max-width: 760px) {
  .hero--home::before { background: linear-gradient(180deg, rgba(7,27,48,0.90) 0%, rgba(11,42,74,0.82) 70%, rgba(11,42,74,0.70) 100%); }
}
.hero-credit {
  position: absolute; right: 12px; bottom: 8px; z-index: 2;
  font-size: 0.68rem; color: rgba(255,255,255,0.7);
}
.hero-credit a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding-top: 80px; padding-bottom: 80px; }
.hero-content h1, .hero-content h2 { color: #fff; }
.hero-content p.lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats div strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.7rem; color: var(--gold-light); }
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---------- Trust / logos bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-light); font-size: 0.88rem; font-weight: 500; }
.trust-item strong { color: var(--navy); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(11,42,74,0.06);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

.service-card a.card-link { font-weight: 600; font-size: 0.9rem; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* image + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img, .split .media-frame { border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.values-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; }
.values-list li { display: flex; gap: 14px; align-items: flex-start; }
.values-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex-shrink: 0; }
.values-list strong { color: var(--navy); display: block; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.testimonial-card--wide { padding: 40px 48px; }
.testimonial-card--wide p.quote { font-size: 1.15rem; line-height: 1.7; }
.testimonial-card .stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--ink); font-size: 1.02rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-author .initials {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.85rem;
}
@media (max-width: 640px) { .testimonial-card--wide { padding: 28px 24px; } }
.testimonial-author strong { color: var(--navy); display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--ink-light); }

.placeholder-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #A15C00; background: #FDF1DD; border: 1px solid #F1DBAE;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- County coverage ---------- */
.coverage-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.coverage-box h3 { color: #fff; }
.coverage-number { font-family: 'Poppins', sans-serif; font-size: 4rem; font-weight: 700; color: var(--gold-light); text-align: center; line-height: 1; }
.coverage-number span { display: block; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ---------- Iowa county map ---------- */
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.map-card img { width: 100%; height: auto; }
.map-caption { font-size: 0.75rem; color: var(--ink-light); margin: 12px 0 0; text-align: right; }

/* ---------- Office closures ---------- */
.closure-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.closure-list li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 0.95rem; }
.closure-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.step { display: flex; gap: 20px; }
.step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  flex-shrink: 0;
}
.step-num::before { content: counter(step); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 8px; }
input, select, textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  background: #fff; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(18,64,107,0.12);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-light); margin-top: 10px; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-weight: 600; margin-top: 14px; color: var(--navy-light); }
.form-status.is-error { color: #9B2C2C; }
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list strong { display: block; color: var(--navy); }
.info-list .icon-badge { margin-bottom: 0; flex-shrink: 0; }

/* ---------- News ---------- */
.news-card { overflow: hidden; padding: 0; }
.news-card img { height: 200px; object-fit: cover; width: 100%; }
.news-card .news-body { padding: 26px; }
.news-meta { font-size: 0.78rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- Resource / link list ---------- */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.resource-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.resource-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.resource-item h3 a { color: var(--navy); }
.resource-item h3 a:hover { color: var(--gold); }
a.resource-tag { color: var(--navy); }
a.resource-tag:hover { background: rgba(198,149,47,0.15); color: var(--navy-dark); }
.resource-item p { margin: 0; font-size: 0.9rem; }
.resource-tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-light); background: var(--bg); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .coverage-box { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 760px) {
  .topbar-links span:nth-child(2) { display: none; }
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px; background: #fff; flex-direction: column; align-items: stretch; padding: 100px 28px 28px; gap: 6px; box-shadow: var(--shadow-lg); transition: right var(--transition); }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 18px; }
  .nav-cta .btn { padding: 9px 16px; font-size: 0.85rem; }
  .brand-logo { height: 36px; }
  .menu-toggle { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}

/* ---------- Glossary ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.glossary-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; }
.glossary-tools input[type="search"] {
  flex: 1 1 260px; max-width: 360px; padding: 12px 16px; font: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.glossary-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.glossary-letters a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px;
  background: #fff; border: 1px solid var(--border); color: var(--navy);
  font-weight: 600; font-size: 0.85rem;
}
.glossary-letters a:hover { background: var(--navy); color: #fff; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.glossary-item { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; }
.glossary-item dt { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.glossary-item dd { margin: 0; font-size: 0.92rem; color: var(--ink-light); }
.glossary-item[hidden] { display: none; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Legal pages (Privacy Policy) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal ul { color: var(--ink-light); padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal strong { color: var(--ink); }
.legal-updated { font-size: 0.9rem; font-weight: 600; color: var(--navy-light); }
.legal-callout { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 8px 32px 16px; margin: 2.4em 0; }
.legal-callout h2 { margin-top: 1em; }
.footer-bottom a:hover { color: var(--gold-light); }
.checkbox-label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.82rem; line-height: 1.55; color: var(--ink-light); margin: 4px 0 0; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: var(--navy); }
.checkbox-label a { text-decoration: underline; }
