/* ===== SWJBA — Shared Stylesheet ===== */
/* Brand tokens pulled from SWJBA_Brand_Style_Guide_DRAFT.docx — update here, everywhere updates */

:root {
  --navy: #0D3B4C;
  --charcoal: #1C1C1E;
  --white: #FFFFFF;
  --gold: #E67000;
  --green: #59AE47;
  --sky: #2079BA;
  --gray-bg: #F6F7F8;
  --gray-border: #E1E4E6;

  --font-heading: "Poppins", "Montserrat", sans-serif;
  --font-body: "Calibri", "Open Sans", sans-serif;

  --max-width: 1120px;
  --nav-height: 72px;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}
.brand img { height: 40px; width: auto; }

/* Desktop nav — hidden on mobile */
.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-desktop > ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* Dropdown for Chapters */
.has-dropdown {
  position: relative;
}
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(13,59,76,0.12);
  padding: 10px 0;
  min-width: 220px;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  display: block;
}
.dropdown-panel a {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.dropdown-panel a:hover { background: var(--gray-bg); text-decoration: none; }
.dropdown-panel .state-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sky);
  padding: 8px 18px 2px;
  font-weight: 700;
}
.dropdown-panel .soon {
  color: #999;
  font-style: italic;
}

/* Hamburger — mobile only */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 900px) {
  .hamburger { display: none; }
}

/* Mobile panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 12px 0;
}
.nav-mobile.open { display: block; }
@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile > ul > li { border-bottom: 1px solid var(--gray-border); }
.nav-mobile a {
  display: block;
  padding: 16px 24px;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1.05rem;
}
.nav-mobile a:hover { text-decoration: none; background: var(--gray-bg); }

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-toggle .chev { transition: transform 0.2s ease; font-size: 0.8rem; color: var(--sky); }
.accordion-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel {
  display: none;
  background: var(--gray-bg);
}
.accordion-panel.open { display: block; }
.accordion-panel a { padding-left: 44px; font-size: 0.95rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #C9D6DB;
  margin-top: 60px;
}
.site-footer .wrap {
  padding: 40px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: #C9D6DB; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 24px;
  font-size: 0.8rem;
  text-align: center;
  color: #93A6AD;
}

/* ===== Utility ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-bg); }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.btn:hover { text-decoration: none; opacity: 0.9; }

/* ===== Notify form (inline email capture, no mailto) ===== */
.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}
.notify-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sky);
}
.notify-form button {
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
}
.notify-error {
  color: #B00000;
  font-size: 0.85rem;
  margin-top: 10px;
}
.notify-success {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}
/* honeypot field — hidden from real users, visible to bots that ignore CSS */
.notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
