:root {
  --lake-blue: #6E89A8;
  --forest-green: #5D7257;
  --soft-sage: #AAB8A3;
  --warm-earth: #8A6E56;
  --sandstone: #D9D0C3;
  --deep-chocolate: #3A322C;
  --cream: #F7F3EB;
  --paper: #FFFDF8;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

/* UNIVERSAL HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 50, 44, 0.08);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-chocolate);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: "Avenir Next", Montserrat, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 11px;
  color: rgba(58, 50, 44, 0.72);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  min-width: 0;
  white-space: nowrap;
}

.main-nav a {
  color: rgba(58, 50, 44, 0.84);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 27px 0 24px;
  border-bottom: 3px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--forest-green);
  border-bottom-color: var(--forest-green);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-button.call {
  background: var(--white);
  color: var(--deep-chocolate);
  border: 1px solid rgba(58, 50, 44, 0.12);
  box-shadow: 0 8px 22px rgba(58, 50, 44, 0.08);
}

.header-button.consult {
  background: var(--forest-green);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(93, 114, 87, 0.24);
}

.header-button:hover,
.header-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

/* Hide center navigation before it can squeeze. */
@media (max-width: 1160px) {
  .header-inner {
    grid-template-columns: minmax(250px, 1fr) auto;
  }
  .main-nav { display: none; }
}

@media (max-width: 680px) {
  .header-inner {
    width: min(100% - 28px, 1280px);
    min-height: 70px;
    gap: 12px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .brand-name { font-size: 14px; }
  .brand-subtitle { display: none; }
  .header-actions { gap: 8px; }
  .header-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 470px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }
  .brand-link { justify-content: center; }
  .header-actions { justify-content: center; }
}

/* UNIVERSAL FOOTER */
.site-footer {
  background: var(--deep-chocolate);
  color: var(--cream);
  padding: 52px 24px 24px;
  font-size: 14px;
  line-height: 1.58;
}

.site-footer a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .72fr 1.58fr;
  gap: 38px;
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  font-family: "Avenir Next", Montserrat, Arial, sans-serif;
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.site-footer p {
  margin: 0 0 12px;
}

.footer-kicker {
  color: rgba(247,243,235,.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer-logos {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.footer-disclosures p {
  color: rgba(247,243,235,.90);
}

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  color: rgba(247,243,235,.80);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer {
    padding: 40px 20px 22px;
  }
}


/* Calculator-page integration safety: approved header/footer win over older page-level styles. */
.site-header .brand-mark {
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
}
.site-header .brand-mark::after { content: none !important; }
.site-header a { text-decoration: none; }
.site-footer .footer-links { display: block !important; }
.site-footer .footer-links ul { display: grid !important; justify-content: initial !important; }
.site-footer .footer-links a { text-decoration: none; }
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible { text-decoration: underline; }

/* UNIVERSAL FOOTER HARD GUARD
   Legal/page-level CSS may define global h2, p, ul, li rules after this file loads.
   These footer-specific rules keep the universal footer visually consistent on every page. */
.site-footer,
.site-footer * {
  box-sizing: border-box;
}
.site-footer {
  background: #3A322C !important;
  color: #F7F3EB !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
}
.site-footer h2,
.site-footer h3 {
  color: #F7F3EB !important;
  font-family: "Avenir Next", Montserrat, Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 12px !important;
}
.site-footer p,
.site-footer li {
  color: rgba(247,243,235,.90) !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  margin: 0 0 12px !important;
}
.site-footer a {
  color: #F7F3EB !important;
}
.site-footer .footer-kicker {
  color: rgba(247,243,235,.74) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  margin: 0 0 12px !important;
}
.site-footer .footer-links ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
}
.site-footer .footer-links li {
  margin: 0 !important;
}
.site-footer .footer-links a {
  font-weight: 800 !important;
  text-decoration: none !important;
}
.site-footer .footer-bottom p {
  font-size: 12px !important;
  color: rgba(247,243,235,.80) !important;
  margin: 0 !important;
}
