/* ==========================================================================
   Mack Senior Insurance — polished v2
   Palette: Granite ink #1C2E38 | River blue #2A5E78 / deep #16323F
            Sierra gold #C68A18 / light #E9B94F | Paper #F7F4ED
   Type:    Bitter (display) + Atkinson Hyperlegible (body)
   ========================================================================== */

:root {
  --ink: #1C2E38;
  --ink-soft: #41545E;
  --river: #2A5E78;
  --river-deep: #16323F;
  --river-mid: #1E4659;
  --gold: #C68A18;
  --gold-dark: #A06E0F;
  --gold-light: #E9B94F;
  --gold-soft: #F6EBD2;
  --paper: #F7F4ED;
  --card: #FFFFFF;
  --line: #E4DFD2;
  --maxw: 1120px;
  --r-sm: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(22, 50, 63, .08);
  --shadow-md: 0 8px 28px rgba(22, 50, 63, .12);
  --shadow-lg: 0 18px 50px rgba(22, 50, 63, .20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Bitter", Georgia, serif; line-height: 1.18; color: var(--ink); margin: 0 0 .55em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--river-deep); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 200; }
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow--light { color: var(--gold-light); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.measure { max-width: 46em; }
.center .measure { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--gold); color: #fff !important;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: .68rem 1.55rem; border-radius: 999px; border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(198, 138, 24, .35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(160, 110, 15, .4); }
.btn--river { background: var(--river); border-color: var(--river); box-shadow: 0 6px 18px rgba(42, 94, 120, .35); }
.btn--river:hover { background: var(--river-mid); border-color: var(--river-mid); box-shadow: 0 10px 24px rgba(30, 70, 89, .4); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.65); color: #fff !important; box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }
.btn--ghost-dark { background: transparent; border-color: var(--river); color: var(--river) !important; box-shadow: none; }
.btn--ghost-dark:hover { background: var(--river); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn--lg { font-size: 1rem; padding: .82rem 1.9rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--river-deep); color: #D6E2EA; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 14px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: .55rem; padding-bottom: .55rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }
.site-nav > a:not(.btn) {
  font-weight: 700; text-decoration: none; color: var(--ink);
  padding: .4rem 0; position: relative;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px;
  background: var(--gold); border-radius: 2px; transition: right .2s ease;
}
.site-nav > a:not(.btn):hover::after, .site-nav > a[aria-current="page"]::after { right: 0; }
.site-nav .btn { padding: .5rem 1.2rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--river-deep) 0%, var(--river-mid) 55%, var(--river) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center;
  padding-top: 3.4rem; padding-bottom: 4.8rem;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lede { font-size: 1.06rem; line-height: 1.6; color: #E3ECF1; max-width: 32em; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-points { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.7rem; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #DCE7ED; font-size: .86rem; }
.hero-points svg { width: 17px; height: 17px; flex: none; }

.agent-card {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.agent-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.agent-card img.portrait {
  width: 165px; height: 165px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--gold-soft);
  outline: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.1rem;
}
.agent-card .name { font-family: "Bitter", Georgia, serif; font-size: 1.25rem; font-weight: 800; margin: 0 0 .15rem; }
.agent-card .meta { color: var(--river); font-weight: 700; margin: 0 0 .6rem; }
.agent-card .license {
  display: inline-block; font-size: .8rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem 1rem; margin-bottom: .3rem;
}
.agent-card .years { font-size: .85rem; color: var(--ink-soft); margin: .5rem 0 0; }

/* ---------- Ridge dividers ---------- */
.ridge { display: block; width: 100%; height: 56px; margin-bottom: -1px; }
.ridge--flip { transform: scaleY(-1); margin-top: -1px; margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--card); box-shadow: var(--shadow-sm); position: relative; z-index: 3; }
.trust .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem; padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.trust-item { display: flex; align-items: center; gap: .9rem; justify-content: center; }
.trust-item .ico {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--gold-soft); display: grid; place-items: center;
}
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-family: "Bitter", Georgia, serif; font-size: .98rem; line-height: 1.2; }
.trust-item span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 3.4rem 0; }
.section--white { background: var(--card); }
.section--ink { background: linear-gradient(160deg, var(--river-deep), var(--river-mid)); color: #E3ECF1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { margin-bottom: 2rem; }

/* ---------- Icon cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 1.4rem; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(390px, 100%), 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(140deg, var(--river), var(--river-mid));
  display: grid; place-items: center; margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(42,94,120,.3);
}
.card .ico--gold { background: linear-gradient(140deg, var(--gold-light), var(--gold)); box-shadow: 0 6px 16px rgba(198,138,24,.3); }
.card .ico svg { width: 27px; height: 27px; }
.card .part-tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--gold-soft); color: var(--gold-dark);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  padding: .25rem .8rem; border-radius: 999px;
}
.card h3 { color: var(--ink); }
.card p { flex-grow: 1; color: var(--ink-soft); font-size: .94rem; }
.card a.more { font-weight: 700; text-decoration: none; color: var(--river); }
.card a.more:hover { text-decoration: underline; color: var(--river-deep); }

/* ---------- Comparison table ---------- */
.compare-card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  overflow: hidden; margin-top: 2.4rem; border: 1px solid var(--line);
}
.compare-card .compare-title {
  background: linear-gradient(90deg, var(--river-deep), var(--river));
  color: #fff; font-family: "Bitter", Georgia, serif; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.3rem;
}
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.compare th, table.compare td { padding: .75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--paper); font-family: "Bitter", Georgia, serif; font-size: .95rem; color: var(--ink); border-bottom: 2px solid var(--gold); }
table.compare tbody th { font-weight: 700; width: 21%; color: var(--river-deep); background: #FBFAF6; }
table.compare tbody tr:nth-child(even) td { background: #FBFAF6; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 1.5rem 1.3rem; position: relative;
  backdrop-filter: blur(2px);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
  color: var(--river-deep); font-weight: 800; font-family: "Bitter", Georgia, serif;
  margin-bottom: .9rem; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(198,138,24,.4);
}
.step h3 { color: #fff; }
.step p { color: #D5E1E8; font-size: .92rem; margin: 0; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: .75fr 1.25fr; gap: 3rem; align-items: center; }
.about-photo { position: relative; text-align: center; }
.about-photo img {
  width: 100%; max-width: 300px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: inline-block;
}
.about-photo::after {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; max-width: 300px;
  margin: 0 auto; border: 3px solid var(--gold); border-radius: var(--r-lg); z-index: -1;
}
.cred-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.cred-badges span {
  background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; font-size: .78rem;
  border-radius: 999px; padding: .3rem .9rem; border: 1px solid #EAD9AE;
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--gold-soft);
  border-left: 6px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 1rem 1.3rem;
  margin: 1.4rem 0 0;
  box-shadow: var(--shadow-sm);
}
.callout strong:first-child { color: var(--gold-dark); }
.note-blue {
  background: #E7F0F5; border-left: 6px solid var(--river);
  border-radius: var(--r-sm); padding: 1rem 1.3rem; margin: 1.4rem 0;
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--r-lg);
  padding: 2.3rem 2rem;
  text-align: center;
  color: var(--river-deep);
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: var(--river-deep); }
.cta-band p { max-width: 42em; margin: 0 auto 1.3rem; font-size: .98rem; }
.cta-band .btn { background: var(--river-deep); border-color: var(--river-deep); box-shadow: 0 8px 22px rgba(22,50,63,.35); }
.cta-band .btn:hover { background: var(--river-mid); border-color: var(--river-mid); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.4rem; align-items: start; }
.contact-box {
  background: linear-gradient(160deg, var(--river-deep), var(--river));
  color: #fff; border-radius: var(--r-lg); padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-box::after {
  content: ""; position: absolute; right: -55px; top: -55px; width: 165px; height: 165px;
  border-radius: 50%; background: rgba(233,185,79,.16);
}
.contact-box h3 { color: #fff; font-size: 1.2rem; }
.contact-box a { color: var(--gold-light); }
.contact-box .phone {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: "Bitter", Georgia, serif; font-size: 1.55rem; font-weight: 800;
  color: #fff; text-decoration: none; margin: .3rem 0 1.1rem;
}
.contact-box .phone svg { width: 24px; height: 24px; }
.contact-box .phone:hover { color: var(--gold-light); }
.contact-box hr { border: none; border-top: 1px solid rgba(255,255,255,.22); margin: 1.3rem 0; }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .65rem; }
.checklist svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--river-deep); color: #B9C8D1; font-size: .86rem; line-height: 1.6; }
.site-footer .foot-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem;
  padding: 2.5rem 0 1.8rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-logo { background: #fff; border-radius: var(--r-sm); padding: .6rem 1rem; display: inline-block; margin-bottom: 1rem; }
.site-footer .foot-logo img { height: 32px; width: auto; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.disclaimers { padding: 2rem 0 1rem; }
.disclaimer-block {
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-sm);
  padding: 1.05rem 1.25rem; margin-bottom: 1rem; background: rgba(255,255,255,.05);
  font-size: .8rem;
}
.disclaimer-block p:last-child { margin-bottom: 0; }
.legal-bottom { padding: 1rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; }

/* ---------- Education page ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--river-deep) 0%, var(--river) 100%);
  color: #fff; overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; padding-top: 2.8rem; padding-bottom: 4.2rem; }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero p.lede { font-size: 1.04rem; color: #E3ECF1; max-width: 42em; }
.page-hero a { color: var(--gold-light); }

.edu-toc {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 1.4rem 1.6rem; margin: -2.8rem auto 0; position: relative; z-index: 5;
  border-top: 6px solid var(--gold);
}
.edu-toc ol { margin: .6rem 0 0; padding-left: 1.4rem; columns: 2; column-gap: 3rem; }
.edu-toc li { margin-bottom: .5rem; break-inside: avoid; }
.edu-toc a { font-weight: 700; text-decoration: none; }
.edu-toc a:hover { text-decoration: underline; }

.edu-section { padding: 3rem 0; }
.edu-section:nth-of-type(even) { background: var(--card); }
.part-banner {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(90deg, var(--river-deep), var(--river)); color: #fff;
  font-family: "Bitter", Georgia, serif; font-weight: 700;
  padding: .3rem 1.05rem; border-radius: 999px; margin-bottom: .9rem; font-size: .84rem;
  box-shadow: var(--shadow-sm);
}
.part-banner svg { width: 15px; height: 15px; }

ul.plain { padding-left: 0; list-style: none; }
ul.plain li { margin-bottom: .65rem; padding-left: 1.7rem; position: relative; }
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 2.5px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 1rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
details.faq[open] { box-shadow: var(--shadow-md); border-color: var(--gold); }
details.faq summary {
  cursor: pointer; font-weight: 700; font-size: .98rem;
  padding: .95rem 3.2rem .95rem 1.2rem; list-style: none; position: relative;
  font-family: "Bitter", Georgia, serif;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark); border-radius: 50%;
  font-size: 1.15rem; font-weight: 700; line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 2.6rem; padding-bottom: 4rem; }
  .agent-card { max-width: 430px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-photo::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .foot-main { grid-template-columns: 1fr 1fr; }
  .edu-toc ol { columns: 1; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .site-nav { gap: 1rem; font-size: .95rem; }
  .brand img { height: 32px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .site-footer .foot-main { grid-template-columns: 1fr; }
  .cta-band { padding: 1.9rem 1.3rem; }
  .section { padding: 2.6rem 0; }
}

/* ---------- Lead intake form ---------- */
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-md); }
.lead-form-intro { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-field { margin-bottom: .9rem; }
.form-field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; color: var(--ink); }
.form-field .req { color: var(--gold-dark); }
.form-field input, .form-field select {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px;
  padding: .6rem .75rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(42,94,120,.15); background: #fff;
}
.form-field input.invalid { border-color: #B4452E; background: #FDF3F0; }
.consent-box {
  background: var(--gold-soft); border: 1px solid #EAD9AE; border-radius: var(--r-sm);
  padding: .9rem 1rem; margin: .3rem 0 1rem;
}
.consent-label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); }
.consent-label input[type="checkbox"] {
  width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--gold-dark); cursor: pointer;
}
.consent-label strong { color: var(--ink); }
.form-error { color: #B4452E; font-weight: 700; font-size: .88rem; background: #FDF3F0; border-left: 4px solid #B4452E; border-radius: 6px; padding: .6rem .9rem; }
.lead-submit { width: 100%; }
.lead-submit[disabled] { opacity: .6; cursor: wait; transform: none !important; }
.form-fineprint { font-size: .76rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }
.contact-box .checklist { font-size: .88rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Confirmation modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(22,50,63,.72);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: var(--r-lg); max-width: 480px; width: 100%;
  padding: 2.2rem 2rem 1.9rem; text-align: center; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.97); transition: transform .25s ease;
  border-top: 7px solid var(--gold);
}
.modal-overlay.open .modal-card { transform: none; }
.modal-check {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(198,138,24,.4);
}
.modal-check svg { width: 38px; height: 38px; }
.modal-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.modal-card p { color: var(--ink-soft); font-size: .95rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: var(--paper); color: var(--ink-soft);
  font-size: 1.15rem; line-height: 1; cursor: pointer; font-weight: 700;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .modal-overlay, .modal-card { transition: none; } }

/* ---------- Linked cards ---------- */
a.card--link { text-decoration: none; color: inherit; }
a.card--link h3 { color: var(--ink); }
a.card--link .more { font-weight: 700; color: var(--river); margin-top: .4rem; display: inline-block; }
a.card--link:hover .more { text-decoration: underline; color: var(--river-deep); }
