:root {
  --navy: #0B1C3D;
  --red: #C1121F;
  --white: #FFFFFF;
  --black: #111111;
  --gray-100:#F3F4F6;
  --gray-300:#D1D5DB;
  --gray-600:#4B5563;
  --offwhite:#FAFAFA;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; color: var(--black); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.topbar { background: var(--black); color: var(--white); font-size: 14px; }
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; height: 42px; }
.topbar .cta {
  background: var(--red); color: var(--white); padding: 6px 12px; border-radius: 8px; font-weight: 600;
}
.topbar .cta:hover { opacity: .9; text-decoration: none; }

.header { position: sticky; top: 0; background: var(--offwhite); border-bottom: 1px solid var(--gray-300); z-index: 50; transition: box-shadow .2s, background .2s; }
.header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.08); background:white; }
 display: flex; align-items: center; justify-content: space-between; gap: 16px; }


.nav .links a { font-weight:600; color: var(--black); padding: 8px 10px; border-radius: 8px; }
.nav .links a:not(.primary-cta):hover { background: var(--gray-100); text-decoration:none; }



.hero { background: linear-gradient(180deg, var(--navy), #15254d); color: white; padding: 72px 0 48px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; }
.hero p.lead { font-size: clamp(16px, 2.5vw, 20px); opacity: .95; max-width: 820px; }
.hero .cta-row { display:flex; gap:12px; margin-top: 20px; flex-wrap: wrap; }
.btn { display:inline-flex; align-items:center; gap:8px; padding: 12px 16px; border-radius: 10px; font-weight:700; border: 2px solid transparent; cursor:pointer; }
.btn.primary { background: var(--red); color: white; }
.btn.primary:hover { filter: brightness(.95); }
.btn.secondary { background: transparent; color: white; border-color: rgba(255,255,255,.35); }
.btn.secondary:hover { background: rgba(255,255,255,.08); }

.section { padding: 56px 0; background: white; }
.section.alt { background: var(--gray-100); }
.kpis { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.kpi { background:white; border:1px solid var(--gray-300); border-radius: 14px; padding:18px; text-align:center; }
.kpi .number { font-size: 36px; font-weight: 900; color: var(--navy); }
.cards3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card { background:white; border:1px solid var(--gray-300); border-radius: 14px; padding:18px; }
.card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.card h3 { margin-top: 0; }
.badges { display:flex; gap:12px; flex-wrap:wrap; }
.badge { border:1px dashed var(--gray-300); padding:8px 10px; border-radius: 999px; font-size: 14px; color: var(--gray-600); background:white; }

.grid2 { display:grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items:center; }
.process { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background:white; border:1px solid var(--gray-300); border-radius: 14px; padding:18px; text-align:center; font-weight:600; }

.accordion .item { border-bottom:1px solid var(--gray-300); }
.accordion .head { cursor:pointer; display:flex; justify-content:space-between; padding: 14px 0; font-weight:700; }
.accordion .body { display:none; padding: 0 0 14px; color: var(--gray-600); }
.accordion .item.open .body { display:block; }

.footer { background: #F3F4F6; color: #000000; padding: 40px 0; margin-top: 40px; border-top: 1px solid var(--gray-300); }
.footer a { color: #000000; }
.footer .cols { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.footer h4 { margin-top:0; }

.cta-rail { position: fixed; right: 20px; bottom: 20px; display:flex; flex-direction:column; gap:10px; z-index: 60; }
.cta-rail a { box-shadow: 0 6px 16px rgba(0,0,0,.15); }

.notice { background: #fff8e1; border:1px solid #ffe082; padding: 12px 14px; border-radius: 10px; }

@media (max-width: 960px) {
  .mobile-drawer { display:block; position: fixed; top:0; bottom:0; right:-100%; width: 80vw; background:white; z-index: 90; padding:16px; transition:right .25s; border-left:1px solid var(--gray-300); }

  .cards3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2,1fr); }
  .footer .cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .process { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(10px); transition: all .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Modal */
.modal-backdrop { position: fixed; inset:0; background: rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:80; }
.modal { width: min(720px, 92vw); background:white; border-radius: 14px; overflow:hidden; border:1px solid var(--gray-300); }
.modal header { background: var(--navy); color:white; padding: 14px 18px; font-weight:800; }
.modal .content { padding: 18px; }
.modal-backdrop.show { display:flex; }

/* Forms */
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.form-grid .full { grid-column: 1/-1; }
input, select, textarea { width:100%; padding: 12px 12px; border:1px solid var(--gray-300); border-radius: 10px; font-size: 16px; }
label { font-weight: 700; font-size: 14px; margin-bottom: 6px; display:block; }
.help { font-size: 12px; color: var(--gray-600); }
button { font-family: inherit; }
.dropzone { padding: 16px; border: 2px dashed var(--gray-300); border-radius: 10px; text-align:center; background: var(--gray-100); }
.file-list { margin-top:10px; font-size: 14px; }

/* Before/After slider */
.ba-wrap { position: relative; overflow: hidden; border-radius: 14px; border:1px solid var(--gray-300); }
.ba-wrap img { width:100%; display:block; }
.ba-handle { position:absolute; top:0; bottom:0; width: 2px; background: var(--red); left:50%; }
.ba-input { position:absolute; left:0; right:0; bottom:10px; width:100%; -webkit-appearance:none; background: transparent; }
.ba-input::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:50%; background: var(--red); border:2px solid white; box-shadow: 0 0 0 2px var(--red); }

/* Mobile nav */
.mobile-toggle { display:none; }
@media (max-width: 960px) {
  .mobile-drawer { display:block; position: fixed; top:0; bottom:0; right:-100%; width: 80vw; background:white; z-index: 90; padding:16px; transition:right .25s; border-left:1px solid var(--gray-300); }

  
  .mobile-toggle { display:block; background: var(--navy); color:white; padding:8px 12px; border-radius:8px; }
  .mobile-drawer { position: fixed; top:0; bottom:0; right:-100%; width: 80vw; background:white; z-index: 90; padding:16px; transition:right .25s; border-left:1px solid var(--gray-300); }
  .mobile-drawer.open { right:0; }
  .mobile-drawer a { display:block; padding:12px; border-bottom:1px solid var(--gray-300); color:var(--black); }
}

.nav .brand img { height: 78px; width: auto; display:block; }

/* Navbar fixes */
.mobile-drawer { display:none; }


/* --- NAVBAR LAYOUT (authoritative) --- */
.nav { height: 92px; display:flex; align-items:center; justify-content:flex-start; gap:24px; flex-wrap:nowrap; }
.nav .brand { flex: 0 0 auto; display:flex; align-items:center; }
.nav .links { margin-left: auto !important; display: flex !important; align-items: center; gap: 24px; white-space: nowrap; }
.nav .links a { font-weight:600; color: var(--black); padding: 8px 10px; border-radius: 8px; }
.nav .links a:not(.primary-cta):hover { background: var(--gray-100); text-decoration:none; }
.nav .links a.primary-cta { background: var(--navy); color: var(--white) !important; padding: 10px 14px; border-radius: 10px; font-weight:700; }
.nav .links a.primary-cta:hover { background:#0a1730 !important; color: var(--white) !important; text-decoration:none; }


#footer-logo { height: 40px; width: auto; display:block; border-radius: 0; background: transparent; }

#footer-wordmark { height: 48px; width: auto; display: block; }


/* MOBILE NAV RULES */
.nav { position: relative; }
.nav .hamburger { display:none; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid var(--gray-300); border-radius:10px; background: var(--white); cursor:pointer; }
.nav .hamburger span { display:block; width:22px; height:2px; margin:4px 0; background: var(--navy); }

@media (max-width: 900px) {
  .nav { height: 64px; gap: 12px; }
  .nav .brand img { height: 40px; }
  .nav .hamburger { display:flex; margin-left:auto; }
  .nav .links { 
    display: none; position: absolute; top: 100%; left: 0; right: 0; 
    background: var(--white); border-top: 1px solid var(--gray-200); 
    padding: 16px; flex-direction: column; gap: 12px; z-index: 50; 
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nav.open .links { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav .links a { padding: 10px 6px; }
  .nav .links .primary-cta { width: 100%; text-align: center; }
}


/* MOBILE NAV COLLAPSE FIX */
.nav { position: relative; }
.nav .links { display: flex; align-items: center; gap: 16px; } /* desktop default */
.nav .hamburger { display: none; }

@media (max-width: 900px) {
  .nav { height: 64px; gap: 12px; }
  .nav .brand img { height: 40px; }
  .nav .hamburger { display: flex; margin-left: auto; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid var(--gray-300); border-radius:10px; background: var(--white); cursor:pointer; }
  .nav .hamburger span { display:block; width:22px; height:2px; margin:4px 0; background: var(--navy); }
  .nav .links { 
    display: none; position: absolute; top: 100%; left: 0; right: 0; 
    background: var(--white); border-top: 1px solid var(--gray-200); 
    padding: 16px; flex-direction: column; gap: 12px; z-index: 50; 
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nav.open .links { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav .links a { padding: 10px 6px; }
  .nav .links .primary-cta { width: 100%; text-align: center; }
}


/* MOBILE NAV HARDENED */
@media (max-width: 900px) {
  .nav { position: relative; }
  .nav .hamburger { display: flex !important; margin-left:auto; }
  .nav .links {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--gray-200);
    padding: 16px; flex-direction: column; gap: 12px;
    z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nav.open .links { display: flex !important; }
  body.nav-open { overflow: hidden; }
}


/* TEAM PAGE */
.team .intro { max-width: 800px; color: var(--gray-600); margin-top: 8px; }
.team-grid { 
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.team-card { 
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; 
  padding: 16px; border: 1px solid var(--gray-200); border-radius: 14px; background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.team-card .avatar { width: 96px; height: 96px; border-radius: 999px; overflow: hidden; background: #eef3fb; }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.team-card .role { margin: 4px 0 8px; color: var(--gray-600); }
.team-card .contact { display: flex; gap: 8px; flex-wrap: wrap; }
.team-card .contact a { color: var(--navy); text-decoration: none; border-bottom: 1px dashed rgba(0,0,0,.15); }
.team-card .contact a:hover { border-bottom-color: currentColor; }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .team-card { grid-template-columns: 72px 1fr; }
  .team-card .avatar { width: 72px; height: 72px; }
  .team-grid { grid-template-columns: 1fr; }
}



/* === WFPE Sleek Modern Theme (Aug 2025) ===================================
   Non-destructive: extends existing styles without removing sticky behavior.
   Focus: refined typography, generous spacing, cleaner cards, subtle motion.
============================================================================ */

/* Core scale & spacing */
:root{
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 6px 20px rgba(0,0,0,.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,.12);
  --container-w: 1200px;
  --leading: 1.55;
  --h1: clamp(32px, 4.6vw, 56px);
  --h2: clamp(24px, 3.2vw, 40px);
  --h3: clamp(20px, 2.6vw, 28px);
  --text: clamp(16px, 1.4vw, 18px);
}

/* Containers */
.container{ max-width: var(--container-w); padding-inline: 20px; margin-inline:auto; }
.section{ padding: clamp(40px, 5vw, 80px) 0; background: transparent; }
.section.alt{ background: var(--offwhite); }

/* Typography */
h1,h2,h3{ letter-spacing:-0.02em; line-height:1.2; margin: 0 0 14px; }
h1{ font-size: var(--h1); }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }
p, li{ font-size: var(--text); line-height: var(--leading); }
.lead{ font-size: clamp(18px, 2.2vw, 22px); line-height:1.6; opacity:.95; }

/* Header / Nav refinement (keeps sticky) */
.header{ backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid rgba(0,0,0,.06); }
.header .nav{ display:flex; align-items:center; justify-content:space-between; gap: 16px; height: 72px; }
.brand img{ height: 36px; }

.nav .links{ display:flex; align-items:center; gap: 8px; }
.nav .links a{ padding: 10px 12px; border-radius: 10px; color: var(--black); }
.nav .links a:hover{ background: var(--gray-100); }

.nav .links .primary-cta,
.nav .links a.primary-cta { 
  background: var(--navy); color: var(--white) !important; 
  border-radius: 999px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-1);
}
.nav .links a.primary-cta:hover{ transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration:none; }

/* Mobile drawer polish */
#mobile-drawer{
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.06);
}
#mobile-drawer a{ padding: 14px 20px; border-radius: 10px; }
#mobile-drawer a:hover{ background: var(--gray-100); text-decoration:none; }

/* Hero refresh */
.hero{ background: linear-gradient(180deg, var(--navy), #15254d); color:#fff; padding: clamp(72px, 10vw, 120px) 0 56px; }
.hero .cta-row{ display:flex; flex-wrap:wrap; gap: 12px; }
.btn{ border-radius: 12px; padding: 12px 18px; font-weight:700; }
.btn.primary{ background: var(--red); border-color: var(--red); color: var(--white); }
.btn.secondary{ background: transparent; border-color: rgba(255,255,255,.6); color:#fff; }
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-1); text-decoration:none; }

/* Cards & grids */
.cards3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px){ .cards3{ grid-template-columns: 1fr; } }
.card{
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card h3{ margin: 6px 0 8px; }

/* Feature rows */
.feature{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items:center; }
@media (max-width: 1000px){ .feature{ grid-template-columns: 1fr; } }
.feature .media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-1); }

/* Tables (projects/resources) */
.table{ width:100%; border-collapse: collapse; font-size: var(--text); }
.table th, .table td{ text-align:left; padding: 14px 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.table th{ background: var(--offwhite); font-weight: 700; }
.table tr:hover td{ background: rgba(0,0,0,.02); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="file"], textarea, select{
  width:100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15); background:#fff; outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
input:focus, textarea:focus, select:focus{
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11,28,61,.10);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width: 800px){ .form-row{ grid-template-columns:1fr; } }

/* Footer */
.footer{ background: #F3F4F6; color: #000000; padding: 48px 0; margin-top: 48px; }
.footer a{ color: #000000; opacity:.92; }
.footer .cols{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 950px){ .footer .cols{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .footer .cols{ grid-template-columns: 1fr; } }
#footer-wordmark{ max-width:220px; opacity:.95; }

/* Subtle motion */
.reveal{ opacity:0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.show{ opacity:1; transform: none; }

/* Accessibility niceties */
:focus-visible{ outline: 3px solid rgba(193,18,31,.35); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce){
  *{ animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}


/* === About page modern cards === */
.values-grid { --value-accent: var(--navy); }
.values-grid .value { padding: 22px; border-radius: 16px; box-shadow: var(--shadow-1); border: 1px solid rgba(0,0,0,.06); }
.values-grid .value .icon{ width:48px; height:48px; border-radius: 12px; display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(11,28,61,.08), rgba(11,28,61,.02)); color: var(--navy);
  margin-bottom: 10px; }
.values-grid .value h3{ margin:6px 0 8px; font-size: clamp(18px, 2.2vw, 22px); }
.values-grid .value p{ margin:0; opacity:.9; }


/* === About page: Purpose & Vision cards === */
.cards2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px){ .cards2{ grid-template-columns: 1fr; } }
.pv-grid .pv-card{ padding:22px; border-radius:16px; border:1px solid rgba(0,0,0,.06); box-shadow: var(--shadow-1); background:#fff; }
.pv-grid .icon{ width:48px; height:48px; border-radius:12px; display:grid; place-items:center; margin-bottom:10px;
  background: linear-gradient(135deg, rgba(11,28,61,.08), rgba(11,28,61,.02)); color: var(--navy); }
.pv-grid h3{ margin:6px 0 8px; font-size: clamp(18px, 2.2vw, 22px); }
.pv-grid p{ margin:0 0 10px; opacity:.92; }


/* Team headshots */
.headshot{
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.08);
  display: block;
  margin: 8px auto 12px auto;
}
@media (min-width: 800px){
  .team-grid .card .headshot, .team .card .headshot{ margin-top: 4px; }
}


/* Team grid */
.cards4{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
@media (max-width: 1100px){ .cards4{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px){ .cards4{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .cards4{ grid-template-columns: 1fr; } }
.cards4 .person{ text-align:center; }
.cards4 .person h3{ margin: 6px 0 0; font-size: clamp(16px, 2vw, 18px); }
