/* =========================================================
   Haiti Renewal 2026 — Design System v2
   White-base, flag-accent (red #C8102E + navy #1A3A6B), gold as premium touch
   ========================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600&family=Playfair+Display:ital@1&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand colors */
  --navy: #1A3A6B;
  --navy-deep: #0F2347;
  --navy-light: #2a52a0;
  --red: #C8102E;
  --red-deep: #9e0c24;
  --gold: #D4AF37;
  --gold-deep: #B8970F;
  --white: #FFFFFF;
  --ink: #1A1A1A;

  /* Background — WHITE base */
  --bg-base: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --bg-section-alt: #F2F5F9;

  /* Glass tokens — light mode: frosted white panels */
  --glass-surface: rgba(255, 255, 255, 0.80);
  --glass-border: var(--hairline);
  --glass-hover: rgba(255, 255, 255, 0.95);
  --glass-tint-blue: rgba(26, 58, 107, 0.05);
  --glass-tint-red: rgba(200, 16, 46, 0.04);
  --glass-tint-gold: rgba(212, 175, 55, 0.06);

  /* Accent */
  --accent-primary: #C8102E;
  --accent-secondary: #1A3A6B;
  --accent-gold: #D4AF37;
  --accent-gradient: linear-gradient(135deg, #C8102E, #9e0c24);
  --navy-gradient: linear-gradient(135deg, #1A3A6B, #0F2347);
  --flag-gradient: linear-gradient(135deg, #1A3A6B 0%, #2a52a0 50%, #C8102E 100%);

  /* Text — near-black on white for AA contrast */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;

  /* Shadows — soft layered, light-mode */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 4px 24px rgba(26, 58, 107, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 58, 107, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(26, 58, 107, 0.14), 0 4px 16px rgba(0, 0, 0, 0.08);

  /* Geometry */
  --blur-radius: 20px;
  /* Premium pass: ONE hairline and ONE radius site-wide. Every border is a
     1px rule in navy-deep at low alpha (or white on navy); corners are 2px,
     an editorial near-square. Avatars/dots keep 50%. */
  --hairline: rgba(15, 35, 71, 0.14);          /* dividers, card rules, nav edge */
  --hairline-strong: rgba(15, 35, 71, 0.32);   /* secondary buttons, inputs, lockup rule */
  --hairline-dark: rgba(255, 255, 255, 0.16);  /* the same rule on navy surfaces */
  --hairline-gold: rgba(212, 175, 55, 0.45);   /* the single accent rule */
  --radius-ui: 2px;
  --radius: var(--radius-ui);
  --radius-sm: var(--radius-ui);
  --radius-lg: var(--radius-ui);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Max content width */
  --max-w: 1200px;
  --max-w-text: 760px;

  /* =======================================================
     PREMIUM PASS TOKENS (2026-10-08) — ONE spacing scale, ONE type
     scale, ONE palette for every page (home.css and site.css map their
     old --home-space / --site-space onto these; .section uses them).
     ======================================================= */
  /* Palette: navy + gold + white/off-white. Red is reserved for errors. */
  --navy-900: #0A1830;
  --gold-ink: #8A6D1A;            /* gold TEXT on light surfaces: 4.9:1 on #fff, 4.6:1 on --bg-subtle */
  --gold-rule: rgba(212, 175, 55, 0.55);
  --link-hover: var(--navy-deep);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4rem, 7vw, 6rem);
  --section-y-tight: clamp(2.5rem, 5vw, 3.5rem);
  --header-top: clamp(3.5rem, 7vw, 6rem);
  --header-bottom: clamp(2rem, 4vw, 3rem);
  --header-gap: clamp(2rem, 4vw, 3rem);   /* section header -> its content */
  --grid-gap: clamp(1.25rem, 2.5vw, 2rem);
  --gutter: clamp(1.25rem, 4vw, 1.5rem);

  /* Type scale */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --fs-display: clamp(2.5rem, 4.5vw, 4rem);
  --lh-display: 1.05;
  --fs-h1: clamp(2.25rem, 4vw, 3.25rem);
  --lh-h1: 1.1;
  --fs-h2: clamp(1.75rem, 2.8vw, 2.375rem);
  --lh-h2: 1.2;
  --fs-h3: clamp(1.2rem, 1.8vw, 1.375rem);
  --lh-h3: 1.3;
  --fs-lede: clamp(1.125rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --lh-body: 1.7;
  --fs-card: 1rem;
  --fs-meta: 0.875rem;
  --fs-label: 0.75rem;
  --tracking-label: 0.16em;
  --measure: 65ch;
  --measure-lede: 55ch;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }

/* Line breaks: balanced headings, no orphans in paragraphs, and long
   French/Kreyol words wrap instead of overflowing at 360-390px. */
h1, h2, h3, h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, li, blockquote, figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--link-hover); }

strong { font-weight: 600; color: var(--text-primary); }

blockquote,
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--glass-tint-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Glass Panel — frosted white light-mode --- */
.glass-panel {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-radius));
  -webkit-backdrop-filter: blur(var(--blur-radius));
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
}

.glass-panel:hover {
  background: var(--glass-hover);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section--lg {
  padding: var(--section-y) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Accent Colors --- */
.text-gold   { color: var(--accent-gold); }
.text-red    { color: var(--accent-primary); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }

/* --- Badges / Labels --- */
.badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-ui);
}

.badge--gold {
  background: linear-gradient(135deg, var(--accent-gold), #B8970F);
  color: var(--ink);
}

.badge--navy {
  background: var(--navy-gradient);
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  color: inherit;
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(200, 16, 46, 0.25);
}

.btn--primary:hover { color: var(--white); }

.btn--outline {
  background: rgba(26, 58, 107, 0.04);
  color: var(--navy);
  border: 1px solid var(--hairline-strong);
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--accent-gold), #B8970F);
  color: var(--ink);
  font-weight: 800;
}

.btn--ghost {
  background: rgba(26, 58, 107, 0.07);
  color: var(--navy);
  border: 1px solid var(--hairline);
}

.btn--ghost:hover {
  background: rgba(26, 58, 107, 0.12);
  color: var(--navy-deep);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  color: var(--navy-deep);
}

/* Sections on subtle background — override section-header */
.section--subtle .section-header h2 { color: var(--navy-deep); }
.section--subtle h2 { color: var(--navy-deep); }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Dividers --- */
.divider {
  border: none;
  height: 1px;
  background: rgba(26, 58, 107, 0.12);
  margin: var(--space-lg) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  height: 2px;
}

.divider--flag {
  background: linear-gradient(90deg, transparent, var(--navy) 20%, var(--red) 80%, transparent);
  height: 2px;
}

/* --- Stat / Data Cards --- */
.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-card .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Checklist --- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '✅';
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

/* --- Timeline (Agenda) --- */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) + 0.4rem);
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.25);
}

.timeline-item .time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-item .event-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-item .event-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Day Header (Agenda) --- */
.day-header {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--accent-primary);
  background: rgba(26, 58, 107, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.day-header .day-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.day-header .day-title {
  margin: 0 0 0.25rem;
  color: var(--navy-deep);
}

.day-header .day-subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* --- Leadership Card --- */
.leader-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
}

.leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--glass-tint-blue);
  border: 3px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.leader-info .leader-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: var(--navy-deep);
}

.leader-info .leader-title {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* --- Registration Category Card --- */
.reg-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.reg-card .reg-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.reg-card .reg-type {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.reg-card .reg-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.comparison-table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: rgba(26, 58, 107, 0.04);
}

.comparison-table td:first-child {
  color: var(--text-secondary);
}

.comparison-table td:last-child {
  color: var(--navy);
  font-weight: 600;
}

.comparison-table tr:hover td {
  background: rgba(26, 58, 107, 0.03);
}

/* --- Partner Logos Strip --- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.partner-badge {
  padding: 0.6rem 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.contact-row .icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  color: var(--navy);
  font-style: normal;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Pillar Cards — flag-accent top border --- */
.pillar-card {
  padding: var(--space-lg) var(--space-md);
  border-top: 3px solid var(--navy);
  position: relative;
}

/* Alternate pillar accent colors for visual rhythm */
.pillar-card:nth-child(2) { border-top-color: var(--red); }
.pillar-card:nth-child(3) { border-top-color: var(--navy); }

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.pillar-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Hero background: full-bleed photo with dark navy-gradient overlay for text legibility */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/people/dr-ray-21-960.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark gradient overlay — navy sweep from left + dark veil so white text is WCAG-AA */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(15, 35, 71, 0.82) 0%,
      rgba(15, 35, 71, 0.60) 50%,
      rgba(15, 35, 71, 0.50) 100%),
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.00) 60%);
}

/* Subtle red-flag accent glow bottom-right */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at bottom right, rgba(200, 16, 46, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Homepage hero photo alternates — swap .hero-bg background-image to switch option */
/* Option A (active): Dr. Pierre professional photo (dr-ray-21) */
/* Option B: Alternative Dr. Pierre photo */
.hero-bg--option-b {
  background-image: url('../img/people/dr-ray-15-1600.jpg');
  background-position: center 50%;
}

/* Wave divider at bottom of hero — flag colors */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1;
  overflow: hidden;
}

.hero-wave::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-subtle);
  clip-path: ellipse(52% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md) calc(var(--space-2xl) + 60px);
  width: 100%;
}

/* Seal logo in hero */
.hero-seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(26, 58, 107, 0.18));
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-sm);
  padding: 0.35rem 1rem;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-title .accent {
  /* On photo hero, use gold for the accent word — high contrast, flag-family */
  background: linear-gradient(135deg, #f0cc5a 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  margin: 0 auto var(--space-lg);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: var(--space-lg);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- Navigation — masthead with presence ---
   Frosted off-white surface (content scrolling beneath reads as depth),
   a strong 1px gold rule and two deep navy shadow layers. The bar is a
   fixed 60px from first paint: nothing changes on scroll, so there is no
   jump and no layout shift. */
.nav {
  --nav-h: 60px;
  --nav-surface: rgba(255, 255, 255, 0.88);
  --nav-rule: 0 1px 0 rgba(212, 175, 55, 0.70);
  --nav-shadow:
    var(--nav-rule),
    0 6px 16px rgba(15, 35, 71, 0.09),
    0 18px 44px rgba(15, 35, 71, 0.13);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-surface);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 0;
  padding: 0 var(--gutter);
  box-shadow: var(--nav-shadow);
}

/* The bar is wider than the 1200px content column (a full-bleed masthead)
   so nine links + the name fit on one row at 1440 in en/fr/ht. */
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--space-sm);
}

/* Nav logo: seal image + wordmark */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 5px rgba(26, 58, 107, 0.22));
}

/* Fallback text mark (hidden when image shows) */
.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: var(--space-sm);
  border-left: 1px solid var(--hairline-strong);
}

/* Lockup: outlined RP mark (assets/img/brand/monogram-rp.svg, path data,
   no font dependency) | hairline | small-caps name. */
.nav-logo .home-nav-mark {
  width: 34px;
  height: 34px;
}

/* The name is always set in the display serif (one typeface for the name
   site-wide: nav, hero h1, footer). */
.nav-logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  font-variant-caps: small-caps;
  color: var(--navy-deep);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: #4B5563; /* AA over the frosted bar even with navy beneath */
  letter-spacing: var(--tracking-label);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links — single row, refined hover */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

/* Desktop: the name/monogram is the Home link; the explicit "Home" item
   only appears in the hamburger menu. */
.nav-links > li:first-child {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 0.55rem;
  border-radius: 0;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

/* Gold underline grows from the center (transform only, GPU-cheap).
   Hover, keyboard focus and the current page all draw it; focus keeps
   the global navy outline as well. */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy-deep);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--navy-deep);
  font-weight: 700;
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  height: 2px;
  transform: scaleX(1);
}

/* Donate: the last nav item, a quiet outlined accent (hairline gold box,
   navy text). Deliberately NOT a filled red/gradient button: the design
   reference (.design/premium-political-reference.md) rules out
   "DONATE" scream buttons for a statesman's site. The gold underline is
   replaced by the box; the current page gets a faint gold wash. */
.nav-links a.nav-donate {
  min-height: 36px;
  margin-left: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid var(--gold-rule);
  color: var(--navy-deep);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-links a.nav-donate::after {
  display: none;
}

.nav-links a.nav-donate:hover,
.nav-links a.nav-donate:focus-visible,
.nav-links a.nav-donate[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

/* Mobile-only nav actions (register + auth) shown inside the dropdown */
.nav-mobile-actions,
.nav-mobile-auth {
  display: none;
}

.nav-register-mobile {
  display: block;
  background: var(--accent-gradient);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.22);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-register-mobile:hover {
  opacity: 0.92;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Desktop Register CTA — primary action, clear visual authority */
.nav-register-cta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: 7px;
  text-decoration: none;
  box-shadow:
    0 2px 8px rgba(200, 16, 46, 0.28),
    0 1px 3px rgba(200, 16, 46, 0.15);
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.nav-register-cta:hover {
  opacity: 0.92;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow:
    0 4px 14px rgba(200, 16, 46, 0.34),
    0 2px 6px rgba(200, 16, 46, 0.18);
}

.nav-register-cta:active {
  transform: translateY(0);
}

/* Auth control in nav-right — sign-in link or signed-in chip */
.nav-auth-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Sign In — ghost/secondary, clearly distinct from Register primary */
.nav-signin-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  padding: 0.48rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-signin-btn:hover {
  background: rgba(26, 58, 107, 0.05);
  border-color: var(--navy);
  color: var(--navy-deep);
}

/* Signed-in account chip — deliberate, not default-buttony */
.nav-account-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 58, 107, 0.05);
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  max-width: 180px;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-account-chip:hover {
  background: rgba(26, 58, 107, 0.08);
  border-color: var(--hairline-strong);
}

.nav-account-email {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* Sign Out — minimal, understated */
.nav-signout-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.18s ease;
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 114, 128, 0.3);
  padding-bottom: 1px;
}

.nav-signout-btn:hover {
  color: var(--accent-primary);
  border-bottom-color: rgba(200, 16, 46, 0.4);
}

/* Admin quick-access link — admin-only, sits in the account chip next to Sign Out.
   Styled as a compact bordered badge so it's clearly actionable but not dominant.
   UX-only gate: server enforces auth + admin-role checks on every /api/admin/* call. */
.nav-admin-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(26, 58, 107, 0.07);
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.nav-admin-btn:hover {
  background: rgba(26, 58, 107, 0.13);
  border-color: var(--navy);
  color: var(--navy-deep);
}

/* Right cluster — push further right with generous spacing between items */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding-right: 0.25rem;
}

/* Language switcher — compact dropdown replacing the old 4-button row.
   The container acts as a positioned parent for the dropdown panel. */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

/* Dropdown trigger button — globe icon + current lang + chevron */
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(26, 58, 107, 0.04);
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn[aria-expanded="true"] {
  color: var(--navy-deep);
  background: rgba(26, 58, 107, 0.08);
  border-color: var(--hairline-strong);
}

.lang-globe {
  font-size: 0.85rem;
  line-height: 1;
}

.lang-label {
  min-width: 2.2ch; /* prevents layout shift when switching EN↔Français */
}

.lang-chevron {
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.18s ease;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel — positioned below the trigger, right-aligned */
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.12), 0 2px 6px rgba(26, 58, 107, 0.07);
  padding: 0.3rem;
  list-style: none;
  margin: 0;
  z-index: 1100;
  backdrop-filter: blur(16px);
}

.lang-dropdown-menu.open {
  display: block;
}

.lang-dropdown-menu li {
  margin: 0;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 5px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-option:hover {
  color: var(--navy-deep);
  background: rgba(26, 58, 107, 0.06);
}

.lang-option.active {
  color: var(--navy-deep);
  background: rgba(26, 58, 107, 0.10);
  font-weight: 800;
}

/* Legacy 4-button style (kept for graceful fallback; not rendered in nav) */
.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 5px;
  transition: color 0.18s ease, background 0.18s ease;
}

.lang-btn:hover {
  color: var(--navy);
  background: rgba(26, 58, 107, 0.07);
}

.lang-btn.active {
  color: var(--navy-deep);
  background: rgba(26, 58, 107, 0.12);
  font-weight: 800;
}

/* Hamburger toggle — min 44x44 tap target (WCAG 2.5.5 / mobile a11y
   minimum). It is the ONLY mobile nav entry point, so this is the single
   highest-leverage tap-target fix on the whole site. align-items +
   justify-content keep the 3 bars centered now that the box is larger
   than their own content size. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(26, 58, 107, 0.06);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: block;
}

/* Open state: the three bars become an X (aria-expanded is kept in sync
   by assets/js/nav.js). 7px = bar height 2px + gap 5px. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer — navy dark base --- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--gold-rule);
  padding: var(--s-8) 0 var(--s-6);
  color: rgba(255,255,255,0.75);
}

/* Brand | Explore (two link columns, mirrors the 8-item nav) | Contact.
   The old 2fr brand column held two short lines and read as an empty
   left half at 1440; the link list now carries the width instead. */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}

.footer p {
  color: rgba(255,255,255,0.65);
}

/* Footer seal logo */
.footer-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  display: block;
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer-brand .footer-logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--s-2);
}

.footer-brand .footer-tagline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
}

/* Short gold hairline closing the brand block (same rule language as
   the hero and section kickers). Decorative only. */
.footer-brand::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin-top: var(--s-5);
  background: var(--gold-rule);
}

.footer-nav h5,
.footer .contact-info h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
}

.footer .contact-info {
  gap: 0;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  /* column-major, so each column reads top-down in nav order */
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: var(--s-7);
  row-gap: 0.5rem;
}

.footer-nav a,
.footer .contact-info a {
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-meta);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer .contact-info a:hover,
.footer .contact-info a:focus-visible { color: var(--white); }

.footer :focus-visible { outline-color: var(--gold); }

.footer .contact-row { color: rgba(255,255,255,0.65); }
.footer .contact-row .icon { color: var(--accent-gold); }
.footer .contact-row a { color: rgba(255,255,255,0.65); }
.footer .contact-row a:hover { color: var(--white); }

/* The rule is inset to the text column (the container's own border box
   would run into the gutters). */
.footer-bottom {
  position: relative;
  padding-top: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.footer-bottom p {
  color: rgba(255,255,255,0.65); /* bumped from 0.40 — AA pass on navy-deep (7.29:1) */
  font-size: 0.8rem;
  margin: 0;
}

.footer-hashtags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-hashtags span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.60); /* bumped from 0.35 — AA pass on navy-deep (6.41:1) */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  color: rgba(255,255,255,0.50);
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover { color: var(--accent-gold); }

/* --- Page Hero (inner pages) — photo banner with dark overlay + flag-color bottom border --- */
.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Photo set per-page via inline style or page-hero--[name] modifier; fallback is navy */
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--navy) 50%, var(--red) 50%) 1;
}

/* Dark overlay for readability over photos */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 35, 71, 0.72) 0%,
    rgba(15, 35, 71, 0.62) 70%,
    rgba(15, 35, 71, 0.75) 100%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.page-hero .subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* --- Urgency Block --- */
.urgency-block {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-section-alt);
  border-top: 2px solid rgba(200,16,46,0.15);
  border-bottom: 2px solid rgba(200,16,46,0.15);
}

.urgency-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.urgency-title--positive {
  color: var(--navy);
}

/* --- Conference Snapshot --- */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(26, 58, 107, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.snapshot-item {
  background: var(--white);
  padding: var(--space-md);
  text-align: center;
}

.snapshot-item .snap-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.snapshot-item .snap-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

/* --- Quote Rotator --- */
.quote-rotator {
  position: relative;
  min-height: 180px;
}

.quote-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.quote-slide.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.quote-dot {
  width: 8px;
  height: 8px;
  background: rgba(26, 58, 107, 0.15);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.quote-dot.active {
  background: var(--accent-primary);
}

/* --- Wave image divider --- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.35;
  filter: hue-rotate(0deg) saturate(0.6);
}

/* --- Polls empty-state text override ---
   api.js injects rgba(240,244,255,0.45) text designed for dark modals, but the
   polls-public container sits on a white section — yielding 1.04:1 (invisible).
   The broad selector catches both the injected empty-state and the static loading text. */
#polls-public p {
  color: var(--text-muted) !important; /* #6B7280 = 4.54:1 on white — WCAG AA */
}

/* --- Tier-2 registration form text override ---
   api.js injects rgba(240,244,255,0.6/0.8) inline colors designed for dark modals.
   #tier2-form-wrap sits on a white glass-panel — those near-white colors fail badly.
   Overrides cover: the "Applying as…" subtitle, all question labels, and checkbox
   option spans. Inline styles require !important to win specificity. */
#tier2-form-wrap > p {
  color: var(--text-secondary) !important; /* #374151 = 10.31:1 on white — WCAG AAA */
}
#tier2-form-wrap label {
  color: var(--text-secondary) !important; /* question labels: 10.31:1 on white */
}
#tier2-form-wrap span {
  color: var(--text-primary) !important;   /* checkbox option text: 18.1:1 on white */
}

/* --- Dark-surface button overrides (WCAG AA: white text on dark bg) ---
   Used when .btn--outline or .btn--ghost appear inside .hero or .cta-block
   (navy-deep or dark photo overlay backgrounds where navy text is invisible).  */
.hero .btn--outline,
.cta-block .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn--outline:hover,
.cta-block .btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  color: var(--white);
}
.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* --- Flag accent bar — thin decorative --- */
.flag-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 50%, var(--red) 50%);
  display: block;
}

/* --- Section backgrounds --- */
.section--white  { background: var(--white); }
.section--subtle,
.section--alt    { background: var(--bg-subtle); }
.section--navy   {
  background: var(--navy-deep);
  color: var(--white);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.section--navy p  { color: rgba(255,255,255,0.75); }

/* --- Responsive ---
   Three breakpoints site-wide (premium pass): 1360px (nav collapses to
   the menu button; the widest language, French, needs ~1300px for nine
   links on one row), 960px (layouts stack), 600px (phones). */
@media (max-width: 1360px) {
  /* Show the drawer-only Home item again inside the menu */
  .nav-links > li:first-child {
    display: list-item;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    /* Near-opaque: a backdrop-filter nested inside the blurred .nav has
       nothing to blur (the bar is its backdrop root), so the drawer
       carries its own density instead. */
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-4);
    border-top: 1px solid var(--hairline-gold);
    border-bottom: 1px solid var(--hairline-gold);
    box-shadow:
      0 4px 12px rgba(15, 35, 71, 0.06),
      0 18px 44px rgba(15, 35, 71, 0.13);
    gap: 0;
    font-size: initial;
  }

  .nav-links li {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    display: flex;
    padding: 0 var(--s-1);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .nav-links a::after {
    left: var(--s-1);
    right: auto;
    width: 1.5rem;
    bottom: 12px;
    transform-origin: left center;
  }

  /* Drawer: Donate keeps its outline as a full-width row after Contact. */
  .nav-links a.nav-donate {
    min-height: 44px;
    margin: var(--s-2) 0 0;
    justify-content: center;
  }

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

  .nav-toggle { display: flex; }
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .footer-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-5);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Keep the name (smaller); drop only the tagline line */
  .nav-logo-name { font-size: 0.95rem; }
  .nav-logo-sub { display: none; }

  /* Long French/Kreyol words in big display type: hyphenate headings
     (html[lang] is kept in sync by i18n.js) on narrow screens only. Body
     copy is never hyphenated; overflow-wrap (base rule) is its guard. */
  h1, h2, h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip-to-content link: visually hidden like .sr-only until it receives
   keyboard focus, then it becomes a normal visible, positioned element. */
.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--white);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2000;
}

/* --- Form validation --- */
.required-mark {
  color: var(--accent-primary);
  margin-left: 0.2rem;
}

.form-error {
  display: block;
  color: var(--accent-primary);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  min-height: 1em;
}

/* --- Image utility classes (shared sizing for repeated inline img styles) --- */
.portrait {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.portrait--compact {
  max-width: 320px;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Utility --- */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Machine-translation notice (fr/ht only; hidden while footer.mt_notice is empty) */
.footer-mt-notice[hidden] { display: none; }
.footer-bottom .footer-mt-notice { font-size: 0.75rem; }
.footer-mt-notice a { color: inherit; text-decoration: underline; }

/* --- Masthead: no backdrop-filter -> opaque surface; reduced motion --- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { --nav-surface: #FFFFFF; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after { transition: none; }
}
