/* ==========================================================================
   WOMEN AND YOUTH PROMPTERS ASSOCIATION — DESIGN SYSTEM
   ==========================================================================
   Palette (sampled directly from the client's logo file)
     --navy     #082266  deep navy — trust / stability (the "women" thread)
     --red      #EF0B68  magenta-pink — energy / advocacy (the "youth" thread)
     --gold     #E8A33D  warmth accent, used sparingly (highlights only)
     --bg       #F1F3F6  cool off-white page background
     --paper    #FFFFFF  card / surface background
     --ink      #16181D  body text
     --ink-soft #4B5160  secondary text

   Type
     Display : "Fraunces"      — headlines, characterful serif
     Body    : "Work Sans"     — paragraphs, nav, UI
     Utility : "IBM Plex Mono" — eyebrows, labels, numbers

   Signature motif: two overlapping circles (red + navy) forming a
   lens/handoff shape — one person's support passed to the next.
   It appears as the mark, and as a section-divider instead of a hairline.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --navy: #082266;      /* sampled from client logo */
  --navy-soft: #123090;
  --red: #EF0B68;       /* sampled from client logo (magenta-pink) */
  --red-soft: #F23E86;
  --gold: #E8A33D;
  --bg: #F1F3F6;
  --paper: #FFFFFF;
  --ink: #16181D;
  --ink-soft: #4B5160;
  --line: #DADFE6;

  --display: 'Fraunces', serif;
  --body: 'Work Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--red);
  display: inline-block;
}

p.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(193,39,45,0.35); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }

/* ==================== HEADER / NAV ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,243,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.logo-img { height: 40px; width: auto; flex-shrink: 0; }
.site-footer .logo-img { height: 44px; }
.logo small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; align-items: center; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--red); }
.nav-links a.active::after { content: ""; position: absolute; left:0; right:0; bottom: -4px; height: 2px; background: var(--red); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 20px 32px; gap: 18px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ==================== HERO ==================== */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-copy p.lede { margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-mark {
  aspect-ratio: 1; border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-mark .ring { position: absolute; border-radius: 50%; }
.hero-mark .ring.navy { width: 78%; height: 78%; background: var(--navy); left: 4%; top: 11%; mix-blend-mode: multiply; opacity: 0.92; }
.hero-mark .ring.red { width: 78%; height: 78%; background: var(--red); right: 4%; top: 11%; mix-blend-mode: multiply; opacity: 0.92; }
.hero-mark .caption {
  position: relative; z-index: 2; color: #fff; font-family: var(--mono);
  font-size: 0.75rem; text-align: center; letter-spacing: 0.08em; max-width: 160px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { max-width: 280px; margin: 0 auto; }
}

/* ==================== DIVIDER (signature motif, replaces hairlines) ==================== */
.lens-divider { display: flex; align-items: center; justify-content: center; gap: -8px; margin: 0 auto; height: 26px; }
.lens-divider span { width: 20px; height: 20px; border-radius: 50%; mix-blend-mode: multiply; }
.lens-divider .d1 { background: var(--red); margin-right: -8px; }
.lens-divider .d2 { background: var(--navy); }

/* ==================== SECTIONS ==================== */
section { padding: 78px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #E9ECF2; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .eyebrow { color: var(--gold); }
.bg-navy .eyebrow::before { background: var(--gold); }

/* Grid of cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,33,61,0.08); }
.card .num { font-family: var(--mono); color: var(--red); font-size: 0.8rem; margin-bottom: 12px; display: block; }
.card p { color: var(--ink-soft); margin-top: 10px; font-size: 0.96rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .figure { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gold); }
.stat .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #C7CEDC; margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Quote / voices */
.quote-card { border-left: 3px solid var(--red); padding-left: 22px; }
.quote-card q { font-family: var(--display); font-size: 1.2rem; color: var(--navy); font-style: italic; display: block; margin-bottom: 12px; }
.quote-card cite { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); font-style: normal; }

/* CTA banner */
.cta-banner { background: var(--red); color: #fff; text-align: center; padding: 70px 32px; border-radius: var(--radius); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #FBDCDD; max-width: 50ch; margin: 14px auto 30px; }

/* Forms */
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--body); font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,39,45,0.12);
}
.form-error { color: var(--red); font-size: 0.82rem; margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--red); }
#form-success {
  display: none; background: #E9F5EC; border: 1px solid #B7DDC0; color: #1F5A32;
  padding: 16px; border-radius: var(--radius); margin-top: 20px; font-size: 0.95rem;
}
#form-success.show { display: block; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--navy); color: #B9C1D2; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a:hover { color: var(--gold); }
.footer-col ul { list-style: none; margin-top: 14px; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--gold); text-decoration: underline; font-weight: 600; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Page hero (interior pages) */
.page-hero { padding: 60px 0 50px; }
.page-hero .eyebrow { }
.breadcrumb { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--red); }

/* Placeholder image block */
.ph-image {
  background: repeating-linear-gradient(135deg, #E3E7ED, #E3E7ED 10px, #DADFE6 10px, #DADFE6 20px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: var(--mono); font-size: 0.75rem; text-align: center; padding: 20px;
  min-height: 220px;
}

/* Leadership */
.leader-hero { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.leader-hero .ph-image { aspect-ratio: 4/5; }
.credential-list { list-style: none; margin-top: 16px; }
.credential-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.credential-list li::before { content: "— "; color: var(--red); font-family: var(--mono); }
@media (max-width: 700px) { .leader-hero { grid-template-columns: 1fr; } .leader-hero .ph-image { max-width: 220px; } }

.exec-note {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px;
  color: var(--ink-soft); font-family: var(--mono); font-size: 0.82rem; background: var(--bg);
}

/* Document / Gallery grids */
.doc-grid, .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .doc-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-card { text-align: center; }
.doc-card .ph-image { aspect-ratio: 3/4; min-height: 0; }
.doc-card .doc-label { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); margin-top: 10px; }
.gallery-grid .ph-image { aspect-ratio: 1; min-height: 0; }

/* Contact info list */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .info-label { font-family: var(--mono); font-size: 0.72rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; width: 90px; flex-shrink: 0; padding-top: 2px; }

/* Objectives list */
.objectives-list { list-style: none; counter-reset: obj; }
.objectives-list li { counter-increment: obj; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.objectives-list li::before {
  content: counter(obj, decimal-leading-zero);
  font-family: var(--mono); color: var(--red); font-size: 0.85rem; flex-shrink: 0; padding-top: 2px;
}

/* Timeline (About page) */
.timeline { border-left: 2px solid var(--line); padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ""; position: absolute; left: -37px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline-item .year { font-family: var(--mono); color: var(--red); font-size: 0.8rem; }

/* ==========================================================================
   GALLERY PAGE — grid, cards, lightbox, back-to-top
   ========================================================================== */

/* ---- Responsive grid ----
   Mobile   (default) : 1 column
   Tablet   (>=600px) : 2 columns
   Tablet L (>=900px) : 3 columns
   Desktop  (>=1200px): 4 columns                                          */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 600px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Gallery card ---- */
.gallery-card {
  background: var(--paper);
  border-radius: 12px;              /* rounded corners */
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10,61,145,0.08);   /* soft box shadow */
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--body);
  transition: transform 0.25s ease, box-shadow 0.25s ease;  /* smooth hover animation */
}
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px) scale(1.02);   /* slight zoom + elevation */
  box-shadow: 0 18px 34px rgba(10,61,145,0.18);
  outline: none;
}
.gallery-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.gallery-card .thumb-wrap {
  width: 100%;
  height: 230px;                 /* equal height across every card */
  overflow: hidden;
  background: #E3E7ED;
}
.gallery-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* equal image height, no distortion */
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card:hover .thumb-wrap img { transform: scale(1.08); }

.gallery-card .caption {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.gallery-card .caption strong { color: var(--navy); display: block; font-size: 0.82rem; margin-bottom: 2px; }

/* ==========================================================================
   LIGHTBOX / MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.94);
  display: none;                 /* toggled to flex via JS */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: #E9ECF2;
  margin-top: 16px;
  font-size: 0.95rem;
}
.lightbox-counter {
  color: #8D97AC;
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 6px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--red); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(214,40,40,0.35);
  opacity: 0;
  pointer-events: none;          /* invisible + unclickable until shown */
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 500;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--navy); }
