/* =============================================================
   eBulletins — Shared Styles
   Loaded by every page. Page-specific overrides live in each
   file's own <style> block.
   ============================================================= */

/* TOKENS */
:root {
  --navy: #0D1B3E;
  --navy-mid: #1A2F5E;
  --cream: #F7F3EC;
  --white: #FDFCFA;
  --amber: #F4A01C;
  --amber-dark: #C47E0E;
  --teal: #1FA898;
  --coral: #ED1C24;
  --text-body: #3A3A3A;
  --text-muted: #767676;
  --border: #E2DDD6;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--text-body); line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 68px;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(13,27,62,0.08); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--navy); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 4px; transition: background 0.2s !important; text-decoration: none !important; }
.nav-cta:hover { background: var(--teal) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn-primary {
  background: var(--amber); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: #f8b73a; transform: translateY(-1px); }

/* Ghost on dark backgrounds */
.btn-ghost,
.btn-ghost-light {
  color: rgba(253,252,250,0.55); font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.2s;
}
.btn-ghost:hover,
.btn-ghost-light:hover { color: var(--white); }
.btn-ghost::after,
.btn-ghost-light::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after,
.btn-ghost-light:hover::after { transform: translateX(4px); }

/* Ghost on light backgrounds */
.btn-ghost-dark { color: var(--navy-mid); font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.btn-ghost-dark:hover { color: var(--teal); }
.btn-ghost-dark::after { content: '→'; transition: transform 0.2s; }
.btn-ghost-dark:hover::after { transform: translateX(4px); }

/* SECTION TYPOGRAPHY */
.section-eyebrow { font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.section-headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.5rem); color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; margin-bottom: 1.25rem; }
.section-desc { font-size: 0.93rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--navy);
  padding-top: calc(68px + 5rem); padding-bottom: 5rem;
  padding-left: 7rem; padding-right: 7rem;
  position: relative; overflow: hidden; text-align: center;
}
.page-hero-geo-1 { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: var(--teal); opacity: 0.08; top: -120px; right: -80px; pointer-events: none; }
.page-hero-geo-2 { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--amber); opacity: 0.1; bottom: -80px; left: -60px; pointer-events: none; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); }
.page-hero-eyebrow::after  { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1;
  color: var(--white); letter-spacing: -0.025em;
  max-width: 22ch; margin: 0 auto 1.25rem;
}
.page-hero h1 em { font-style: normal; color: var(--amber); }
.page-hero p {
  font-size: 0.95rem; font-weight: 300; color: rgba(253,252,250,0.55);
  max-width: 52ch; margin: 0 auto; line-height: 1.8;
}
.page-hero-actions { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; text-align: center; }

/* STAT STRIP */
.stat-strip { background: var(--amber); display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item { padding: 2rem 4rem; text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(13,27,62,0.2); }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--navy); line-height: 1; letter-spacing: -0.01em; }
.stat-label { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; color: rgba(13,27,62,0.6); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; }

/* PHOTO STRIP */
.photo-strip { position: relative; height: 460px; overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.photo-strip-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,27,62,0.82) 0%, rgba(13,27,62,0.35) 60%, rgba(13,27,62,0.1) 100%); display: flex; align-items: center; padding: 0 7rem; }
.photo-strip-quote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: var(--white); max-width: 26ch; line-height: 1.25; letter-spacing: -0.02em; }
.photo-strip-quote em { font-style: normal; color: var(--amber); }

/* FOOTER */
footer { background: var(--navy); padding: 2.5rem 7rem 1.75rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; align-items: start; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(253,252,250,0.08); margin-bottom: 1.25rem; }
.footer-tagline { font-size: 0.8rem; font-weight: 300; color: rgba(253,252,250,0.32); line-height: 1.6; max-width: 38ch; margin-top: 0.85rem; margin-bottom: 0.85rem; }
.footer-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-contact a { font-size: 0.78rem; color: rgba(253,252,250,0.38); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--teal); }
.footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(253,252,250,0.45); margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.8rem; font-weight: 300; color: rgba(253,252,250,0.32); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.71rem; color: rgba(253,252,250,0.22); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.71rem; color: rgba(253,252,250,0.22); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--teal); }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* RESPONSIVE — shared rules only */
@media (max-width: 1100px) {
  nav { padding: 0 2rem; }
  .page-hero { padding-left: 4rem; padding-right: 4rem; }
  footer { padding: 2.5rem 4rem 1.75rem; }
}
@media (max-width: 900px) {
  /* Mobile nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem; box-shadow: 0 8px 24px rgba(13,27,62,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 0.85rem; }
  .nav-cta { background: none !important; color: var(--teal) !important; padding: 0.85rem 0 !important; border-radius: 0 !important; }
  /* Page hero */
  .page-hero { padding: calc(68px + 3rem) 2rem 4rem; }
  /* Photo strip */
  .photo-strip { height: 300px; }
  .photo-strip-overlay { padding: 0 2rem; }
  /* Stat strip */
  .stat-item { padding: 1.5rem 2rem; flex: 1 1 50%; }
  .stat-item + .stat-item::before { display: none; }
  /* Footer */
  footer { padding: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .section-headline { font-size: clamp(1.6rem, 5vw, 2rem); }
  .stat-item { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  /* desktop-only line breaks in intro copy */
  .page-hero p br, .hero-sub br, .option-desc br, .page-hero h1 br { display: none; }
  .page-hero h1 { text-wrap: balance; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ARTICLE PAGES — small-phone safety net (loaded after each publication stylesheet) */
@media (max-width: 600px) {
  .resource-layout > *, .article-layout > * { min-width: 0; }
  .resource-body, .article-body { overflow-wrap: break-word; }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  .resource-body img, .article-body img { max-width: 100%; height: auto; }
  .resource-share, .article-share { flex-wrap: wrap; }
}
/* headings whose &nbsp; runt guard was released by shared.js */
.nbsp-released { text-wrap: balance; }
