/*
 * shared.css — North Star Human Rights
 * WCAG 2.1 AA Compliant
 * Navy #002868 on white = 12.1:1 ✓
 * Red #B22234 on white = 5.9:1 ✓
 * White on Navy = 12.1:1 ✓
 * All body text #1a1a1a on white = 19:1 ✓
 * Focus: 3px solid navy ✓
 */

/* =====================
   VARIABLES
===================== */
:root {
  --navy:         #002868;
  --navy-dark:    #001a45;
  --navy-light:   #e8edf7;
  --red:          #B22234;
  --red-dark:     #8b1a28;
  --white:        #ffffff;
  --gray-100:     #f0f2f5;
  --gray-300:     #d0d5dd;
  --gray-900:     #1a1a1a;
  --max-width:    1100px;
  --font-serif:   'Source Serif 4', Georgia, serif;
  --font-sans:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* =====================
   ACCESSIBILITY
===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* =====================
   NAVIGATION
===================== */
nav {
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.flag-stripe {
  width: 5px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    var(--red) 33%,
    var(--white) 33%,
    var(--white) 66%,
    var(--red) 66%
  );
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.logo-text span { color: #c8d8f8; }

.logo-sub {
  font-size: 0.68rem;
  color: #a0b4d6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: #c8d8f8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

/* =====================
   PAGE HEADER
   (navy banner on interior pages)
===================== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  border-bottom: 4px solid var(--red);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #c8d8f8;
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  gap: 0.4rem;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy-light);
}

/* =====================
   SECTION UTILITIES
===================== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-sub {
  color: var(--gray-900);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* =====================
   DISCLAIMER BAR
===================== */
.disclaimer-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  padding: 1rem 1.5rem;
  text-align: center;
}

.disclaimer-bar p {
  font-size: 0.8rem;
  color: var(--gray-900);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--navy-dark);
  color: #a0b4d6;
  padding: 2.5rem 1.5rem;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: #6b8ab0;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul a {
  color: #a0b4d6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #0a3070;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: #6b8ab0;
  line-height: 1.6;
  text-align: center;
}

.footer-bottom a { color: #a0c4ff; }

/* =====================
   TAGLINE
===================== */
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #a0b4d6;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
    gap: 0;
    border-bottom: 3px solid var(--red);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    width: 100%;
  }

  .nav-toggle { display: block; }

  .footer-inner { grid-template-columns: 1fr; }

  .page-header { padding: 2.5rem 1.5rem; }
}

@media print {
  nav, footer, .disclaimer-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
