/* ── SHARED STYLES ──
   Nav, footer, CSS variables, and mobile hamburger.
   Single source of truth — do not duplicate in page <style> blocks.
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
:root {
  --green:      #5F9620;
  --green-dk:   #4A7818;
  --green-lt:   #EDF6DC;
  --green-xlt:  #F5FAF0;
  --blue:       #3D8FC0;
  --blue-dk:    #2A6E99;
  --blue-lt:    #E4F2FA;
  --blue-xlt:   #F0F8FC;
  --teal:       #1E7272;
  --teal-dk:    #145252;
  --teal-lt:    #E0F0F0;
  --charcoal:   #2D2D2D;
  --mid:        #4A5A5A;
  --muted:      #6B8080;
  --visited:    #5A7A9A;
  --white:      #FFFFFF;
  --offwhite:   #F8FAFA;
  --border:     #D8E8E8;
}

/* ── BODY ── */
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--charcoal); background: var(--white); }

/* ── GLOBAL LINK STATES ── */
a:visited { color: var(--visited); }
a:active  { opacity: 0.75; }

/* ── BUTTON VISITED OVERRIDES (shared) ── */
.nav-cta:visited { color: var(--white) !important; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 13px; border-radius: 6px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--mid); transition: all 0.15s;
}
.nav-links a:hover { background: var(--blue-xlt); color: var(--blue-dk); }
.nav-links a:visited { color: var(--mid); }
.nav-links a.active { color: var(--green-dk); font-weight: 600; }
.nav-links a.nav-hub {
  color: var(--blue-dk); font-weight: 600;
  border: 1.5px solid rgba(61,143,192,0.3);
}
.nav-links a.nav-hub:hover { background: var(--blue-xlt); border-color: var(--blue); }
.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 6px;
  font-weight: 600 !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dk) !important; }

/* ── MOBILE NAV (hamburger) ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none;
  padding: 6px; border-radius: 6px; transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--offwhite); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
footer { background: #1A2828; color: rgba(255,255,255,0.6); padding: 52px 40px 28px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-footer { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.65; }
.footer-brand .addr { margin-top: 14px; font-size: 13px; line-height: 1.8; }
.footer-brand .addr a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-brand .addr a:hover { color: #fff; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-col a:visited { color: rgba(255,255,255,0.55); }
.footer-col a.ext::after { content: ' \2197'; font-size: 10px; opacity: 0.5; }
.footer-col .pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: rgba(115,183,42,0.25); color: #A8E060;
  border-radius: 4px; padding: 2px 6px; margin-left: 4px; vertical-align: middle;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 8px;
}

/* ── RESPONSIVE (shared components) ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 20px; }
  .nav-links a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; position: sticky; top: 0; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 2px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px; font-size: 15px;
    border-radius: 8px; border: none !important;
  }
  .nav-links a.nav-cta {
    margin-left: 0; margin-top: 8px;
    text-align: center; padding: 13px 16px !important;
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── SHARED SECTION LAYOUT ── */
section { padding: 72px 40px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green-dk); background: var(--green-lt);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 800;
  color: var(--charcoal); letter-spacing: -0.4px; line-height: 1.2;
  margin-bottom: 12px;
}
.section-header p { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ── SHARED RESPONSIVE — hero & section ── */
@media (max-width: 768px) {
  .hero { padding: 64px 20px 52px !important; }
  .hero-stats { gap: 28px; margin-top: 40px; padding-top: 28px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; max-width: 320px; text-align: center; }
  section { padding: 48px 20px !important; }
  .stat .num { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .hero-stats .stat .num { font-size: 26px; }
}
