/* ==========================================================================
   ELENS INSURANCE ADVISORS — 17-PAGE MASTER PRODUCTION STYLESHEET (LIVE v5.4.1)
   Rooted in DuPage County, serving all of Illinois
   ========================================================================== */
:root {
  --elens-forest: #2F5D3A;
  --elens-forest-deep: #275733;
  --elens-parchment: #F6F1E7;
  --elens-bronze: #755C44;
  --elens-river-blue: #96C9D0;
  --elens-gold: #DCB370;
  --elens-sage-line: #C6CCB9;
  --elens-olive-muted: #6E685C;
  --elens-charcoal: #1F2922;
  --elens-white: #FFFFFF;
  --font-display: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(31, 41, 34, 0.06);
  --shadow-hover: 0 10px 28px rgba(39, 87, 51, 0.12);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--elens-charcoal);
  background: var(--elens-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--elens-forest-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--elens-bronze); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--elens-forest-deep);
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); margin-bottom: 0.7rem; }
h3, .h3-style { font-size: 1.18rem; margin-bottom: 0.45rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section-compact { padding: 42px 0; }
.section-parchment { background: var(--elens-parchment); }
.section-dark { background: var(--elens-forest); color: var(--elens-parchment); }
.section-dark h2, .section-dark h3 { color: var(--elens-white); }
.section-dark a:not(.btn) { color: var(--elens-gold); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--elens-bronze);
  margin-bottom: 0.7rem;
}
.section-dark .eyebrow { color: var(--elens-gold); }
.lead { font-size: 1.09rem; color: var(--elens-charcoal); max-width: 68ch; margin-top: 0; }
.section-dark .lead { color: var(--elens-parchment); }
.muted { color: var(--elens-olive-muted); font-size: 0.92rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--elens-forest); color: var(--elens-white);
  padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Top Utility Bar */
.topbar { background: var(--elens-forest); color: var(--elens-parchment); font-size: 0.84rem; padding: 8px 0; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; }
.topbar a { color: var(--elens-parchment); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--elens-gold); }

/* Sticky Navbar */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--elens-sage-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 14px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-drop-btn {
  text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 0.91rem;
  color: var(--elens-charcoal); padding: 7px 2px; border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active, .nav-drop-btn:hover, .nav-drop-btn.active {
  color: var(--elens-forest-deep); border-bottom-color: var(--elens-gold);
}
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 245px;
  background: var(--elens-white); border: 1px solid var(--elens-sage-line);
  border-top: 3px solid var(--elens-forest); border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-hover); list-style: none; margin: 4px 0 0; padding: 8px 0;
  display: none; z-index: 1200;
}
.has-dropdown:hover > .dropdown-menu, .has-dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 16px; border-bottom: none; font-size: 0.9rem; }
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--elens-parchment); color: var(--elens-forest-deep); border-bottom: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-weight: 700; font-size: 0.92rem; color: var(--elens-forest-deep); text-decoration: none; white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--elens-sage-line);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
  color: var(--elens-forest-deep); font-weight: 700; font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
a.btn-primary, button.btn-primary, .btn-primary { background: var(--elens-forest); color: var(--elens-white); text-decoration: none; }
a.btn-primary:hover, button.btn-primary:hover, .btn-primary:hover { background: var(--elens-forest-deep); color: var(--elens-white); box-shadow: var(--shadow-hover); }
a.btn-gold, button.btn-gold, .btn-gold, .section-dark a.btn-gold, .hero-card a.btn-gold { background: var(--elens-gold); color: var(--elens-charcoal); text-decoration: none; }
a.btn-gold:hover, button.btn-gold:hover, .btn-gold:hover, .section-dark a.btn-gold:hover, .hero-card a.btn-gold:hover { background: #cfa35d; color: var(--elens-charcoal); box-shadow: var(--shadow-hover); }
a.btn-outline, button.btn-outline, .btn-outline { background: transparent; color: var(--elens-forest-deep); border-color: var(--elens-forest); text-decoration: none; }
a.btn-outline:hover, button.btn-outline:hover, .btn-outline:hover { background: var(--elens-parchment); color: var(--elens-forest-deep); }
a.btn-outline-light, button.btn-outline-light, .btn-outline-light, .section-dark a.btn-outline-light { background: transparent; color: var(--elens-parchment); border-color: rgba(246, 241, 231, 0.6); text-decoration: none; }
a.btn-outline-light:hover, button.btn-outline-light:hover, .btn-outline-light:hover, .section-dark a.btn-outline-light:hover { background: rgba(246, 241, 231, 0.14); color: var(--elens-white); }
.btn-sm { padding: 9px 15px; font-size: 0.87rem; }

/* Breadcrumbs */
.breadcrumb { font-size: 0.84rem; color: var(--elens-olive-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--elens-olive-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--elens-forest-deep); text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--elens-parchment) 0%, #FFFFFF 65%);
  border-bottom: 1px solid var(--elens-sage-line);
  padding: 54px 0 62px;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 38px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 0.87rem; font-weight: 600; color: var(--elens-olive-muted);
  padding-top: 15px; border-top: 1px solid var(--elens-sage-line);
}
.trust-strip span::before { content: "• "; color: var(--elens-gold); font-weight: 800; }
.trust-strip span:first-child::before { content: ""; }
.hero-card {
  background: var(--elens-forest); color: var(--elens-parchment);
  border-radius: var(--radius-md); padding: 26px;
  box-shadow: var(--shadow-hover); border-top: 5px solid var(--elens-gold);
}
.hero-card h2 { color: var(--elens-white); font-size: 1.28rem; margin-bottom: 10px; }
.hero-card p { font-size: 0.94rem; margin: 0 0 14px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 16px; }
.hero-list li {
  padding: 7px 0 7px 24px; position: relative; font-size: 0.93rem;
  border-bottom: 1px solid rgba(198, 204, 185, 0.22);
}
.hero-list li:last-child { border-bottom: none; }
.hero-list li::before { content: "✓"; position: absolute; left: 0; color: var(--elens-gold); font-weight: 800; }

/* Upgrade #1: Start With Your Situation Self-Selection Triage Bar */
.situation-bar {
  background: var(--elens-white);
  border-bottom: 1px solid var(--elens-sage-line);
  padding: 36px 0;
}
.situation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.situation-tile {
  display: flex;
  flex-direction: column;
  background: var(--elens-parchment);
  border: 1.5px solid var(--elens-sage-line);
  border-top: 4px solid var(--elens-forest);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: var(--elens-charcoal);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.situation-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--elens-forest);
  color: var(--elens-charcoal);
}
.situation-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--elens-bronze);
  margin-bottom: 6px;
}
.situation-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--elens-forest-deep);
  margin-bottom: 6px;
  line-height: 1.25;
}
.situation-desc { font-size: 0.84rem; color: var(--elens-olive-muted); margin: 0 0 10px; line-height: 1.45; }
.situation-arrow { margin-top: auto; font-weight: 700; font-size: 0.84rem; color: var(--elens-forest-deep); }

/* Upgrade #4: How We Get Paid & What Happens Next Transparency Module */
.transparency-box {
  background: var(--elens-parchment);
  border: 1.5px solid var(--elens-sage-line);
  border-left: 6px solid var(--elens-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.transparency-item {
  background: var(--elens-white);
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.transparency-item h3 { font-size: 1.03rem; margin-bottom: 6px; color: var(--elens-forest-deep); }
.transparency-item p { font-size: 0.91rem; margin: 0; }

/* Upgrade #6: Inline Calculator Teaser & Illustrative DuPage Scenario Box */
.scenario-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}
.scenario-box {
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-left: 5px solid var(--elens-bronze);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.scenario-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 12px;
}
.scenario-col {
  background: var(--elens-parchment);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--elens-sage-line);
}
.scenario-col.good { background: #EDF5EF; border-color: var(--elens-forest); }
.scenario-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--elens-bronze); }
.scenario-col.good .scenario-label { color: var(--elens-forest-deep); }
.scenario-num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--elens-charcoal); margin: 4px 0; }
.calc-teaser-card {
  background: var(--elens-forest);
  color: var(--elens-parchment);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 5px solid var(--elens-river-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-teaser-card h3 { color: var(--elens-white); font-size: 1.2rem; }
.calc-teaser-card p { font-size: 0.92rem; color: var(--elens-parchment); }

/* Upgrade #2: Embedded Google Calendar Appointment Frame */
.calendar-embed-card {
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-top: 5px solid var(--elens-forest);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-top: 28px;
}
.calendar-iframe-wrap {
  width: 100%;
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFFFFF;
  margin-top: 14px;
}
.calendar-iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

/* Advisor Headshot & Portrait Framing */
.advisor-mini {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(198, 204, 185, 0.28);
}
.advisor-mini-light { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.advisor-avatar {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--elens-gold); flex-shrink: 0;
}
.advisor-portrait-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.advisor-portrait {
  width: 100%; max-width: 330px; border-radius: var(--radius-md);
  border: 3px solid var(--elens-gold); box-shadow: var(--shadow-hover);
  object-fit: cover; display: block;
}

/* Answer-First GEO / AEO Callout */
.aeo-box {
  background: var(--elens-white); border: 1px solid var(--elens-sage-line);
  border-left: 5px solid var(--elens-river-blue); border-radius: var(--radius-md);
  padding: 22px 24px; box-shadow: var(--shadow-card); margin: 26px 0 0;
}
.aeo-box h2 { font-size: 1.25rem; margin-bottom: 8px; }
.aeo-box p { margin: 0; }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--elens-white); border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.card-parchment { background: var(--elens-parchment); }
.card-accent { border-top: 4px solid var(--elens-forest); }
.card-bronze { border-top: 4px solid var(--elens-bronze); }
.card-river { border-top: 4px solid var(--elens-river-blue); }
.card ul { padding-left: 18px; margin: 10px 0 16px; }
.card li { margin-bottom: 6px; font-size: 0.94rem; }
.card-footer { margin-top: auto; padding-top: 12px; }

/* 5-Step Touchpoint Cadence */
.cadence-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 26px; }
.cadence-step { background: var(--elens-white); border: 1px solid var(--elens-sage-line); border-radius: var(--radius-md); padding: 18px 16px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--elens-forest); color: var(--elens-gold);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; margin-bottom: 10px;
}
.cadence-step h3 { font-size: 1rem; margin-bottom: 6px; }
.cadence-step p { font-size: 0.88rem; margin: 0; }

/* Town Pills */
.town-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.town-pill {
  background: var(--elens-white); border: 1.5px solid var(--elens-sage-line);
  border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 600;
  font-size: 0.91rem; color: var(--elens-forest-deep); text-decoration: none; transition: all 0.15s;
}
.town-pill:hover { background: var(--elens-parchment); border-color: var(--elens-forest); }
.town-pill.highlight, .town-pill.active { background: var(--elens-forest); color: var(--elens-parchment); border-color: var(--elens-forest); }

/* FAQ Accordion */
.faq-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--elens-white); border: 1px solid var(--elens-sage-line); border-radius: var(--radius-md); overflow: hidden; }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none; padding: 17px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.01rem;
  color: var(--elens-forest-deep); display: flex; justify-content: space-between;
  align-items: center; gap: 16px; cursor: pointer;
}
.faq-btn:hover { background: var(--elens-parchment); }
.faq-icon { font-size: 1.25rem; color: var(--elens-bronze); flex-shrink: 0; transition: transform 0.2s; }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-panel { padding: 0 22px 17px; font-size: 0.95rem; color: var(--elens-charcoal); border-top: 1px solid rgba(198, 204, 185, 0.45); }
.faq-panel[hidden] { display: none; }

/* Interactive Calculators (calculators.html) */
.calc-card {
  background: var(--elens-white); border: 1.5px solid var(--elens-sage-line);
  border-top: 5px solid var(--elens-forest); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-card); margin-bottom: 30px;
}
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; align-items: start; }
.calc-control { margin-bottom: 16px; }
.calc-control-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.calc-val { font-family: var(--font-display); font-weight: 800; color: var(--elens-forest-deep); font-size: 1.05rem; }
.calc-range { width: 100%; accent-color: var(--elens-forest); cursor: pointer; }
.calc-results { background: var(--elens-parchment); border: 1px solid var(--elens-sage-line); border-radius: var(--radius-md); padding: 20px; }
.calc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.calc-metric { background: var(--elens-white); border: 1px solid var(--elens-sage-line); border-radius: var(--radius-sm); padding: 14px; }
.calc-metric.warn { border-left: 4px solid var(--elens-bronze); }
.calc-metric.good { border-left: 4px solid var(--elens-forest); }
.calc-metric-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--elens-olive-muted); }
.calc-metric-num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--elens-charcoal); margin: 4px 0 2px; }
.calc-metric-sub { font-size: 0.82rem; color: var(--elens-olive-muted); }
.bar-wrap { margin-top: 10px; }
.bar-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; display: flex; justify-content: space-between; }
.bar-track { height: 22px; background: #E3E7DC; border-radius: 99px; overflow: hidden; display: flex; }
.bar-seg-warn { background: var(--elens-bronze); height: 100%; transition: width 0.2s; }
.bar-seg-gold { background: var(--elens-gold); height: 100%; transition: width 0.2s; }
.bar-seg-good { background: var(--elens-forest); height: 100%; transition: width 0.2s; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--elens-olive-muted); margin-top: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

/* Forms */
.form-card { background: var(--elens-white); border: 1px solid var(--elens-sage-line); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); }
.tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab-btn {
  flex: 1 1 140px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--elens-sage-line); background: var(--elens-parchment);
  font-family: var(--font-display); font-weight: 700; font-size: 0.93rem;
  color: var(--elens-charcoal); cursor: pointer;
}
.tab-btn[aria-selected="true"] { background: var(--elens-forest); color: var(--elens-white); border-color: var(--elens-forest); }
.step-indicator { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 0.87rem; font-weight: 700; color: var(--elens-bronze); }
.step-pill { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--elens-parchment); border: 1px solid var(--elens-sage-line); }
.step-pill.active { background: var(--elens-forest); color: var(--elens-gold); border-color: var(--elens-forest); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.89rem; color: var(--elens-forest-deep); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.97rem; color: var(--elens-charcoal);
  padding: 11px 14px; border: 1.5px solid var(--elens-sage-line);
  border-radius: var(--radius-sm); background: var(--elens-white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--elens-river-blue); border-color: var(--elens-forest); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.checkbox-group label { font-weight: 500; color: var(--elens-charcoal); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }


/* Top-Level Quote Mode Switcher (Quick Quote Form vs Fast-Track Dec Page Upload) */
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--elens-parchment);
  border: 1.5px solid var(--elens-sage-line);
  border-radius: var(--radius-md);
}
.mode-tab {
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mode-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--elens-sage-line);
}
.mode-tab[aria-selected="true"] {
  background: var(--elens-forest);
  border-color: var(--elens-forest);
  box-shadow: var(--shadow-card);
}
.mode-tab-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.93rem;
  color: var(--elens-forest-deep);
  line-height: 1.25;
}
.mode-tab-sub {
  font-size: 0.79rem;
  color: var(--elens-olive-muted);
  line-height: 1.35;
}
.mode-tab[aria-selected="true"] .mode-tab-title { color: var(--elens-white); }
.mode-tab[aria-selected="true"] .mode-tab-sub { color: var(--elens-gold); }
@media (max-width: 640px) {
  .mode-switcher { grid-template-columns: 1fr; }
}

.fast-track-note {
  background: var(--elens-parchment);
  border: 1px solid var(--elens-sage-line);
  border-left: 4px solid var(--elens-forest);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 0.9rem;
  color: var(--elens-charcoal);
  margin: 0 0 18px;
  line-height: 1.5;
}
.fast-track-note strong { color: var(--elens-forest-deep); }


/* Secure Declarations Page Dropzone (quote.html Step 2) */
.upload-dropzone {
  border: 2px dashed var(--elens-sage-line);
  border-radius: var(--radius-md);
  background: var(--elens-parchment);
  padding: 20px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--elens-forest);
  background: #EDF5EF;
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.12);
}
.upload-dropzone-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 6px; }
.upload-dropzone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--elens-forest-deep);
  margin-bottom: 4px;
}
.upload-browse-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--elens-forest-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.upload-browse-btn:hover { color: var(--elens-bronze); }
.upload-dropzone-sub { font-size: 0.82rem; color: var(--elens-olive-muted); }
.upload-file-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upload-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #EDF5EF;
  border: 1px solid var(--elens-forest);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.87rem;
  color: var(--elens-charcoal);
}
.upload-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.upload-file-name {
  font-weight: 600;
  color: var(--elens-forest-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-file-size { font-size: 0.79rem; color: var(--elens-olive-muted); flex-shrink: 0; }
.upload-file-remove {
  background: var(--elens-white);
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
  color: var(--elens-bronze);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.upload-file-remove:hover { background: var(--elens-parchment); border-color: var(--elens-bronze); }
.upload-error {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #FDF2EE;
  border: 1px solid var(--elens-bronze);
  color: #7A2E1D;
  font-size: 0.85rem;
  font-weight: 600;
}
.upload-privacy-note {
  margin: 7px 0 0;
  font-size: 0.81rem;
  color: var(--elens-olive-muted);
  line-height: 1.45;
}

.notice-box {
  background: var(--elens-parchment); border: 1px solid var(--elens-sage-line);
  border-left: 4px solid var(--elens-bronze); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.87rem; color: var(--elens-charcoal); margin: 16px 0;
}
.status-banner { background: #EDF5EF; border: 1.5px solid var(--elens-forest); border-radius: var(--radius-md); padding: 20px; margin-top: 18px; }
.part909-banner { background: #F6F1E7; border: 1.5px solid var(--elens-bronze); border-radius: var(--radius-md); padding: 18px 20px; font-size: 0.9rem; margin-top: 24px; }
.part909-banner strong { color: var(--elens-bronze); }

/* Footer */
.compliance-box {
  background: rgba(39, 87, 51, 0.45); border: 1px solid rgba(198, 204, 185, 0.35);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.82rem;
  color: var(--elens-parchment); line-height: 1.5;
}
.site-footer {
  background: var(--elens-forest); color: var(--elens-parchment);
  padding: 54px 0 30px; border-top: 5px solid var(--elens-gold);
}
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.95fr 0.95fr 0.95fr; gap: 28px; margin-bottom: 28px; }
.site-footer h3 { color: var(--elens-gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 10px 0 0; }
.site-footer li { margin-bottom: 7px; font-size: 0.9rem; }
.site-footer a { color: var(--elens-parchment); text-decoration: none; }
.site-footer a:hover { color: var(--elens-gold); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(198, 204, 185, 0.3); padding-top: 18px; margin-top: 18px; font-size: 0.82rem; color: rgba(246, 241, 231, 0.88); }

/* Upgrade #3: Persistent Sticky Mobile Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: var(--elens-forest-deep);
  border-top: 2px solid var(--elens-gold);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  gap: 10px;
}
.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.mobile-sticky-call { background: var(--elens-parchment); color: var(--elens-forest-deep); }
.mobile-sticky-book { background: var(--elens-gold); color: var(--elens-charcoal); }

@media (max-width: 1060px) {
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .grid-3, .footer-grid, .transparency-grid, .scenario-grid, .calc-layout { grid-template-columns: 1fr; }
  .cadence-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-actions { display: none; }
  .site-header.menu-open .nav-inner { flex-wrap: wrap; padding: 12px 0; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; padding: 12px 0; border-top: 1px solid var(--elens-sage-line); gap: 8px;
  }
  .site-header.menu-open .dropdown-menu {
    position: static; box-shadow: none; border: none;
    border-left: 2px solid var(--elens-sage-line); margin: 4px 0 4px 12px; padding: 4px 0;
  }
  .site-header.menu-open .nav-actions { display: flex; width: 100%; padding-bottom: 8px; }
  .grid-2, .form-grid, .cadence-grid, .situation-grid, .scenario-compare, .calc-metrics { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 768px) {
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   BRANDED ELENS GOOGLE CALENDAR BOOKING MODAL (Solid White, 100% Opaque)
   ========================================================================== */
.elens-booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 34, 24, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.elens-booking-dialog {
  width: min(940px, 96vw);
  height: min(740px, 92vh);
  background: #FFFFFF;
  color: var(--elens-charcoal);
  border-radius: var(--radius-md);
  border-top: 5px solid var(--elens-gold);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
}
.elens-booking-header {
  background: var(--elens-forest);
  color: var(--elens-white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.elens-booking-title-wrap { min-width: 0; }
.elens-booking-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--elens-gold);
}
.elens-booking-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--elens-white);
  line-height: 1.25;
}
.elens-booking-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.elens-booking-newtab {
  color: var(--elens-parchment);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid rgba(246, 241, 231, 0.45);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.elens-booking-newtab:hover {
  background: rgba(246, 241, 231, 0.14);
  color: var(--elens-white);
}
.elens-booking-close {
  background: #FFFFFF;
  color: var(--elens-forest-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.elens-booking-close:hover {
  background: var(--elens-gold);
  color: var(--elens-charcoal);
}
.elens-booking-body {
  flex: 1;
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}
.elens-booking-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--elens-olive-muted);
  font-size: 0.95rem;
  padding: 20px;
  text-align: center;
  z-index: 1;
}
.elens-booking-iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #FFFFFF;
  display: block;
}
@media (max-width: 640px) {
  .elens-booking-backdrop { padding: 8px; }
  .elens-booking-dialog { width: 100vw; height: 94vh; border-radius: 10px; }
  .elens-booking-header { padding: 12px 14px; }
  .elens-booking-newtab { display: none; }
}


/* ==========================================================================
   LOCAL TOWN AUTHORITY MODULES (LIVE v5.3 — Deep Research 6-Town Upgrade)
   ========================================================================== */
.ymyl-bar {
  background: var(--elens-white);
  border-bottom: 1px solid var(--elens-sage-line);
  padding: 13px 0;
  font-size: 0.86rem;
  color: var(--elens-olive-muted);
}
.ymyl-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.ymyl-bar strong { color: var(--elens-forest-deep); }
.town-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.town-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--elens-parchment);
  border: 1px solid var(--elens-sage-line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--elens-forest-deep);
}
.local-module-card {
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-top: 5px solid var(--elens-forest);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.local-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.local-checklist li {
  background: var(--elens-parchment);
  border: 1px solid var(--elens-sage-line);
  border-left: 4px solid var(--elens-forest);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
}
.local-checklist li strong {
  display: block;
  color: var(--elens-forest-deep);
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.local-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
}
.local-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  background: var(--elens-white);
}
.local-table th {
  background: var(--elens-forest);
  color: var(--elens-white);
  font-family: var(--font-display);
  text-align: left;
  padding: 11px 14px;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.local-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--elens-sage-line);
  vertical-align: top;
}
.local-table tr:nth-child(even) td { background: #FAF8F3; }
.local-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}
.local-tab-btn {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--elens-sage-line);
  background: var(--elens-parchment);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--elens-forest-deep);
  cursor: pointer;
}
.local-tab-btn[aria-selected="true"] {
  background: var(--elens-forest);
  color: var(--elens-white);
  border-color: var(--elens-forest);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.resource-card {
  background: var(--elens-white);
  border: 1px solid var(--elens-sage-line);
  border-left: 4px solid var(--elens-river-blue);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.resource-cat {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--elens-bronze);
}
.resource-card a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--elens-forest-deep);
  text-decoration: none;
}
.resource-card a:hover { text-decoration: underline; color: var(--elens-bronze); }
.resource-note { font-size: 0.82rem; color: var(--elens-olive-muted); margin: 0; }
.pillar-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pillar-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--elens-parchment);
  border: 1px solid var(--elens-sage-line);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--elens-forest-deep);
  text-decoration: none;
}
.pillar-chip:hover { background: var(--elens-forest); color: var(--elens-white); border-color: var(--elens-forest); }
@media (max-width: 960px) {
  .local-checklist, .resource-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   v5.4 E-E-A-T, LOCAL PHOTO FRAMES, AUDIT NOTES & PILLAR CROSS-LINKS
   ========================================================================== */
.town-photo-card {
  margin: 0;
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.town-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.town-photo-card figcaption {
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--elens-olive-muted);
  background: var(--elens-parchment);
  border-top: 1px solid var(--elens-sage-line);
  line-height: 1.45;
}
.town-photo-card figcaption strong { color: var(--elens-forest-deep); }
.town-diagram-card {
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-top: 4px solid var(--elens-river-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.town-diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.town-diagram-caption {
  margin: 10px 0 0;
  font-size: 0.83rem;
  color: var(--elens-olive-muted);
  line-height: 1.45;
}
.audit-note-box {
  background: var(--elens-white);
  border: 1.5px solid var(--elens-sage-line);
  border-left: 6px solid var(--elens-gold);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.audit-note-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.audit-note-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--elens-gold);
  flex-shrink: 0;
}
.audit-note-math {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 12px;
}
.audit-math-cell {
  background: var(--elens-parchment);
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.audit-math-cell.verified {
  background: #EDF5EF;
  border-color: var(--elens-forest);
}
.audit-math-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elens-bronze);
}
.audit-math-cell.verified .audit-math-label { color: var(--elens-forest-deep); }
.audit-math-val {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--elens-charcoal);
  margin: 4px 0 3px;
}
.local-examples-strip {
  background: var(--elens-parchment);
  border: 1.5px solid var(--elens-sage-line);
  border-left: 5px solid var(--elens-forest);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 32px;
}
.local-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.local-example-link {
  display: flex;
  flex-direction: column;
  background: var(--elens-white);
  border: 1px solid var(--elens-sage-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--elens-charcoal);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.local-example-link:hover {
  transform: translateY(-2px);
  border-color: var(--elens-forest);
  box-shadow: var(--shadow-card);
  color: var(--elens-charcoal);
}
.local-example-link strong {
  font-family: var(--font-display);
  color: var(--elens-forest-deep);
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.local-example-link span {
  font-size: 0.84rem;
  color: var(--elens-olive-muted);
  line-height: 1.45;
}
.dual-track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.spec-box-dark {
  background: var(--elens-forest);
  color: var(--elens-parchment);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 5px solid var(--elens-gold);
}
.spec-box-dark h3 { color: var(--elens-white); }
.spec-box-dark li { margin-bottom: 8px; font-size: 0.93rem; }
@media (max-width: 960px) {
  .audit-note-math, .local-examples-grid, .dual-track-grid { grid-template-columns: 1fr; }
}
