/* =========================================================================
   Mortgages with Mindy — shared stylesheet
   Mindy Hay · Senior Loan Officer · Union Home Mortgage · NMLS #292224
   Warm-professional light theme: navy ink + bronze-gold accent.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg:        #FBFAFC;   /* cool near-white */
  --bg-2:      #F2F0F7;   /* light lavender-gray — alternate sections */
  --panel:     #FFFFFF;   /* cards */
  --panel-2:   #F8F6FC;   /* nested surfaces */
  --ink:       #3B2A57;   /* UHM purple — dark sections + headings */
  --ink-2:     #4B3770;   /* lighter purple */

  --border:    rgba(59, 42, 87, 0.12);
  --border-2:  rgba(59, 42, 87, 0.07);
  --border-3:  rgba(59, 42, 87, 0.20);

  --text:      #2A2440;   /* primary (purple-charcoal) */
  --text-2:    #565073;   /* secondary ~70% */
  --text-3:    #8C86A3;   /* tertiary ~50% */
  --on-ink:    #F4F1FA;   /* text on purple */
  --on-ink-2:  #CBC3DD;   /* secondary on purple */

  --accent:    #43A038;   /* UHM green — CTAs + action only */
  --accent-2:  #327B2A;   /* darker for gradients/hover */
  --accent-soft: rgba(67, 160, 56, 0.13);

  --hero-red:  #C8102E;   /* Homes for Heroes patriotic red — HFH section only */

  --shadow-sm: 0 2px 8px rgba(59, 42, 87, 0.08);
  --shadow-md: 0 10px 30px rgba(59, 42, 87, 0.12);
  --shadow-lg: 0 28px 70px rgba(59, 42, 87, 0.16), 0 0 0 1px rgba(59,42,87,0.03);

  --maxw: 1200px;
}

/* ---- Fonts ------------------------------------------------------------- */
/* Editorial pairing: Fraunces (display serif) + Inter Tight (body).       */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, [class*="title"] { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  margin: 0;
}

:root {
  --fs-display: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem);
  --fs-h1:      clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem);
  --fs-h2:      clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  --fs-h3:      clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  --fs-h4:      clamp(1.1rem, 0.98rem + 0.5vw, 1.3rem);
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;
}

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }

p { color: var(--text-2); max-width: 68ch; }

.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.small, small { font-size: var(--fs-small); color: var(--text-3); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }

a { color: inherit; }

/* ---- Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.section { position: relative; padding: clamp(64px, 8vw, 120px) 0; isolation: isolate; }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-ink); }
.section--ink p { color: var(--on-ink-2); }
.section--sand { background: var(--bg-2); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }

.wash {
  position: absolute; pointer-events: none; z-index: 0;
  width: 640px; height: 640px; border-radius: 50%;
  filter: blur(130px); opacity: 0.5;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 66%);
}
.wash--tr { top: -220px; right: -180px; }
.wash--bl { bottom: -240px; left: -200px; opacity: 0.35; }
.section > .container { position: relative; z-index: 1; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary {
  background: var(--accent-2); color: #fff;
  box-shadow: 0 6px 18px rgba(50,123,42,0.32), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover { background: #245F21; box-shadow: 0 10px 26px rgba(50,123,42,0.42); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-3); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.section--ink .btn--ghost { color: var(--on-ink); border-color: rgba(255,255,255,0.28); }
.section--ink .btn--ghost:hover { border-color: #fff; color: #fff; }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
}
.link-arrow:hover { gap: 10px; }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; border-bottom: 1px solid transparent;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: rgba(251,249,245,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 10px 0; box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav__logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.nav__logo b { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; }
.nav__logo span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-top: 3px; font-weight: 600; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.98rem; transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__cta { display: inline-flex; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(251,249,245,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.nav__overlay.is-open { opacity: 1; pointer-events: auto; }
.nav__overlay a {
  font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 7vw, 2.8rem); color: var(--ink);
  text-decoration: none; opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 70ms);
}
.nav__overlay.is-open a { opacity: 1; transform: translateY(0); }
.nav__overlay .btn { color: #fff; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: flex-end;
  padding: 0 0 clamp(72px, 10vh, 120px); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,38,0.55) 0%, rgba(10,22,38,0.35) 38%, rgba(10,22,38,0.9) 100%);
}
.hero__content { position: relative; z-index: 1; }
.hero__content > * + * { margin-top: 18px; }
.hero .eyebrow { color: #A6E29A; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #EDE7DD; max-width: 46ch; font-size: 1.18rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: #EDE7DD; font-size: 0.9rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { color: #A6E29A; flex: none; }

/* ---- Trust strip ------------------------------------------------------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.trust__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.trust__item { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); padding-left: 22px; }
.trust__item:first-child { border-left: none; padding-left: 0; }
.trust__num { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.9rem, 1rem + 2.4vw, 2.8rem); color: var(--ink); line-height: 1; }
.trust__label { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
@media (max-width: 620px) { .trust__item { border-left: none; padding-left: 0; } .trust__row { gap: 22px; } }

/* ---- Section head ------------------------------------------------------ */
.section__head { max-width: 60ch; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; text-align: center; }

/* ---- Products (bento) -------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-3); }
.prod__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.prod h3 { font-size: 1.25rem; }
.prod p { font-size: 0.96rem; margin: 0; }
.prod .link-arrow { margin-top: auto; padding-top: 8px; font-size: 0.92rem; }
.prod--wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; background: var(--ink); color: var(--on-ink); border: none; }
.prod--wide h3 { color: #fff; } .prod--wide p { color: var(--on-ink-2); }
.prod--wide .prod__icon { background: rgba(255,255,255,0.12); color: #A6E29A; flex: none; }
@media (max-width: 860px) { .products { grid-template-columns: repeat(2, 1fr); } .prod--wide { grid-column: span 2; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } .prod--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; } }

/* ---- Homes for Heroes band -------------------------------------------- */
.hfh { background: linear-gradient(135deg, #0B1B30 0%, #14263F 100%); color: var(--on-ink); overflow: hidden; }
.hfh__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hfh__flag { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: linear-gradient(180deg, var(--hero-red) 0%, #fff 50%, #24365a 100%); }
.hfh .eyebrow { color: #F4B9C2; }
.hfh h2 { color: #fff; }
.hfh p { color: var(--on-ink-2); }
.hfh__list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.hfh__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-ink); }
.hfh__list svg { color: #F4B9C2; flex: none; margin-top: 3px; }
.hfh__card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 32px; text-align: center; }
.hfh__save { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 1.4rem + 3vw, 3.4rem); color: #fff; line-height: 1; }
.hfh__save small { display: block; font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-2); margin-top: 10px; font-weight: 600; }
@media (max-width: 820px) { .hfh__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Areas served ------------------------------------------------------ */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.area__state { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.area__lic { font-size: 0.82rem; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 14px; }
.area p { font-size: 0.95rem; margin: 0; }
@media (max-width: 780px) { .areas { grid-template-columns: 1fr; } }

/* ---- About ------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__sign { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.5rem; color: var(--accent); margin-top: 18px; }

/* About portrait */
.about__portrait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.about__portrait .about__media { width: 100%; max-width: 440px; }
.about__ring {
  width: min(340px, 76vw); aspect-ratio: 1; border-radius: 50%; padding: 10px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 100%);
  box-shadow: var(--shadow-lg); position: relative;
}
.about__ring::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%); z-index: -1;
}
.about__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--bg-2); }
.about__cap { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.about__cap strong { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); display: inline-block; }

@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } .about__media { aspect-ratio: 4/3; max-width: 460px; } }

/* ---- Team band (full-bleed relief) ------------------------------------ */
.teamband { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.teamband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.teamband__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,22,38,0.15) 20%, rgba(10,22,38,0.88) 100%); }
.teamband__content { position: relative; z-index: 2; padding-block: 0 clamp(44px, 6vw, 76px); }
.teamband__content h2 { color: #fff; max-width: 22ch; }

/* ---- Awards / Recognition --------------------------------------------- */
.awards__grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 56px; align-items: center; }
.awards__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.awards__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.awards__list svg { color: var(--accent); flex: none; margin-top: 4px; }
.award-frame { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-lg); }
.award-frame img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 820px) { .awards__grid { grid-template-columns: 1fr; gap: 32px; } .award-frame { max-width: 440px; margin-inline: auto; } }

/* ---- Reviews ----------------------------------------------------------- */
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.reviews__embed { max-width: 1000px; margin: 0 auto; min-height: 120px; }
.reviews__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.review { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; margin: 0; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--accent); letter-spacing: 0.12em; margin-bottom: 14px; }
.review p { color: var(--text); margin-bottom: 16px; font-size: 1rem; }
.review cite { font-style: normal; font-size: var(--fs-small); color: var(--text-3); font-weight: 600; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 600; color: var(--ink);
}
.faq__q::after { content: "+"; font-family: 'Inter Tight', sans-serif; font-size: 1.6rem; color: var(--accent); flex: none; transition: transform .3s; }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { padding-bottom: 24px; margin: 0; }

/* ---- Final CTA --------------------------------------------------------- */
.cta { text-align: center; overflow: hidden; }
.cta__inner { max-width: 720px; margin-inline: auto; }
.cta__inner > * + * { margin-top: 20px; }
.cta__row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 72px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.footer__logo b { font-family: 'Fraunces', serif; font-size: 1.4rem; color: #fff; display: block; }
.footer__logo span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8FD37F; font-weight: 600; }
.footer address { font-style: normal; color: var(--on-ink-2); margin-top: 16px; line-height: 1.8; }
.footer address a { color: var(--on-ink); text-decoration: none; }
.footer address a:hover { color: #8FD37F; }
.footer__uhm { display: inline-block; margin-top: 20px; background: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.footer__uhm img { height: 30px; display: block; }
.footer__col h4 { color: #fff; font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--on-ink-2); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: #8FD37F; }

.compliance { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); }
.compliance__row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.eho-logo { flex: none; width: 46px; height: 46px; color: #fff; opacity: 0.92; }
.compliance p { font-size: 0.78rem; color: var(--on-ink-2); line-height: 1.6; max-width: none; margin: 0 0 10px; }
.compliance strong { color: #fff; font-weight: 600; }
.footer__legal { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--on-ink-2); }
.footer__legal a { color: var(--on-ink-2); text-decoration: none; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 780px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Sticky mobile call bar ------------------------------------------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  gap: 0; background: var(--ink); box-shadow: 0 -6px 24px rgba(0,0,0,0.2);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.callbar a + a { border-left: 1px solid rgba(255,255,255,0.14); }
.callbar a.is-primary { background: var(--accent); }
.callbar svg { flex: none; }
@media (max-width: 768px) {
  .callbar { display: flex; }
  body { padding-bottom: 58px; }
}

/* ---- Reveal animation -------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---- Calculators ------------------------------------------------------ */
.calc-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.calc-tab { border: 1.5px solid var(--border-3); background: var(--panel); color: var(--text-2); padding: 12px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.95rem; transition: background .2s, color .2s, border-color .2s; }
.calc-tab:hover { border-color: var(--accent); color: var(--accent-2); }
.calc-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-panel { display: none; }
.calc-panel.is-active { display: block; }
.calc-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; gap: 28px; } }
.calc-intro { max-width: 60ch; margin-bottom: 24px; }
.calc-inputs { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .adorn { position: absolute; color: var(--text-3); font-weight: 600; pointer-events: none; }
.input-wrap .adorn.left { left: 14px; } .input-wrap .adorn.right { right: 14px; }
.field input, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--text); background: var(--panel); }
.field input.has-left { padding-left: 28px; } .field input.has-right { padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-size: 0.76rem; color: var(--text-3); }
.calc-result { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 32px; position: sticky; top: 100px; box-shadow: var(--shadow-lg); }
.calc-result .eyebrow { color: #A6E29A; }
.calc-result .big { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 1.6rem + 2.5vw, 3.3rem); color: #fff; line-height: 1; margin: 6px 0 0; }
.calc-result .big-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-2); margin-top: 10px; font-weight: 600; }
.result-list { list-style: none; padding: 0; margin: 22px 0 0; }
.result-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; color: var(--on-ink-2); }
.result-list li strong { color: #fff; font-variant-numeric: tabular-nums; }
.result-list li.total { border-top: 2px solid rgba(255,255,255,0.32); margin-top: 6px; font-size: 1.06rem; color: #fff; font-weight: 600; }
.result-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 22px; background: rgba(255,255,255,0.1); }
.result-bar span { display: block; height: 100%; }
.result-note { font-size: 0.84rem; color: var(--on-ink-2); margin-top: 18px; line-height: 1.55; }
.calc-disclaimer { max-width: 840px; margin: 52px auto 0; text-align: center; font-size: 0.8rem; color: var(--text-3); line-height: 1.6; }

/* ---- Local area pages -------------------------------------------------- */
.local-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; margin: 8px 0 0; }
.local-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.local-stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--ink); }
.local-stat span { font-size: 0.85rem; color: var(--text-3); }
.local-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-top: 8px; }
.local-products a { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; transition: border-color .2s, transform .2s; }
.local-products a:hover { border-color: var(--accent); transform: translateY(-2px); }
.area-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.area-links a { font-size: 0.85rem; color: var(--accent-2); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; transition: border-color .2s; }
.area-links a:hover { border-color: var(--accent); }

/* ---- Article (product page) ------------------------------------------- */
.subhero { padding: clamp(120px, 16vh, 180px) 0 clamp(48px, 6vw, 80px); background: var(--bg-2); position: relative; }
.subhero .eyebrow { color: var(--accent); }
.subhero h1 { max-width: 20ch; }
.subhero p { font-size: 1.15rem; margin-top: 16px; }
.subhero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.rich { max-width: 760px; }
.rich h2 { margin-top: 8px; margin-bottom: 16px; }
.rich h3 { margin-top: 36px; margin-bottom: 10px; }
.rich p { margin: 0 0 18px; }
.rich ul { padding-left: 0; list-style: none; margin: 0 0 24px; display: grid; gap: 12px; }
.rich ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.rich ul li svg { color: var(--accent); flex: none; margin-top: 4px; }

.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: start; }
.aside-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.aside-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.aside-card p { font-size: 0.95rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card .stack > * + * { margin-top: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .aside-card { position: static; } }
