/* chrome.css
 * Shared brand tokens, header and footer for every page on the site:
 * the website pages (with site.css) and the /crew-health/ directory
 * (with global.css). Keep page-specific styles out of this file.
 */

:root {
  --ocean: #004D6D;          /* Deep Ocean Blue */
  --ocean-deep: #003A52;
  --teal: #00A3A3;           /* Energized Teal, decoration only (fails text contrast) */
  --teal-text: #007A7A;      /* teal for links/text on light backgrounds */
  --coral: #FF8C6A;          /* Subtle Coral, decoration only */
  --coral-btn: #BF4F33;      /* deeper coral so white button text passes AA */
  --coral-btn-hover: #A6432A;
  --sand: #F8F5EE;           /* Soft Sand, page background */
  --paper: #FDFBF7;
  --mist: #E0E8E8;           /* Light Mist */
  --charcoal: #2C3E50;       /* Rich Charcoal, body text */
  --muted: #5B6B78;
  --tint-teal: #E7F1F0;
  --tint-coral: #FBEBE4;
  --tint-sage: #EDF0E6;
  --line: #E4DED2;

  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-label: 'Montserrat', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1200px;
  --section: clamp(64px, 9vw, 120px);
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ocean); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── NAV ─────────────────────────────────────────────── */

.site-header { position: relative; z-index: 20; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.logo {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--ocean); }

.menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) { color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 400; }
.menu a:not(.btn):hover { color: var(--ocean); }
.menu a[aria-current="page"] { color: var(--ocean); font-weight: 700; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ocean-deep);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .menu {
    display: none;
    position: absolute; top: 80px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(0, 58, 82, 0.12);
    padding: 8px 20px 20px;
  }
  .menu.is-open { display: flex; }
  .menu li { border-bottom: 1px solid var(--line); }
  .menu li:last-child { border: 0; padding-top: 16px; }
  .menu a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; }
  .menu .btn { width: 100%; }
}

/* header Apply button, scoped so it looks the same next to either stylesheet */
.site-header .btn--coral {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 20px; border-radius: 10px; border: 0;
  background: var(--coral-btn); color: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
}
.site-header .btn--coral:hover { background: var(--coral-btn-hover); color: #fff; }

/* ─── FOOTER ──────────────────────────────────────────── */

.ob-footer { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 36px 0 44px; font-size: 14px; }
.ob-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.ob-footer .logo { color: #fff; font-size: 13px; }
.ob-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ob-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ob-footer a:hover { color: #fff; text-decoration: underline; }
.ob-footer__meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, 0.6); }


/* standalone dark band, used where there is no closing CTA above the footer */
.ob-footer--solo {
  background: linear-gradient(180deg, var(--ocean) 0%, #00324A 100%);
  color: #fff; border-top: 0;
  font-family: var(--font-body); line-height: 1.65;
}
.ob-footer--solo ul { margin: 0; }

/* very narrow phones: keep the logo and menu button on one line */
@media (max-width: 400px) {
  .site-header .logo { font-size: 12px; letter-spacing: 0.18em; }
  .site-header__inner { gap: 12px; }
}

.ob-footer__disclaimer { width: 100%; margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
