@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

:root{
  --navy:#0e1442;
  --navy-2:#141a52;
  --red:#c8283f;
  --red-deep:#a71f33;
  --cream:#f5f3ef;
  --gray:#6b6f76;
  --line:#e4e1da;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Barlow', sans-serif;
  color:#1c1e26;
  background:#fff;
}
h1,h2,h3,.display{
  font-family:'Barlow', sans-serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.01em;
}
a{color:inherit;}
img{max-width:100%; display:block;}

/* ---- header ---- */
header{
  background:var(--navy);
  padding:14px 32px;
  position:relative;
  z-index:100;
}
.nav-wrap{
  max-width:1300px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.brand{
  color:#fff; text-decoration:none;
  display:flex; align-items:center;
}
.brand img{height:34px; width:auto; display:block;}
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; padding:0; background:transparent; border:none; cursor:pointer;
  flex-shrink:0;
}
.menu-toggle span{
  display:block; width:100%; height:2px; background:#fff; border-radius:2px; transition:transform .2s, opacity .2s;
}
.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-toggle.open span:nth-child(2){opacity:0;}
.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.nav-right{display:flex; align-items:center; gap:28px; flex-wrap:wrap;}
.lang-switch{display:flex; border-radius:100px; overflow:hidden; border:1px solid #2c336e; background:#1c2260;}
.lang-switch button{
  font-family:'Barlow', sans-serif; font-weight:700; font-size:.78rem; letter-spacing:.03em;
  padding:7px 16px; border:none; cursor:pointer; background:transparent; color:#c7cbe6;
  border-radius:100px;
}
.lang-switch button.active{background:#2b3378; color:#fff;}
nav.links{display:flex; gap:26px;}
nav.links a{
  color:#e7e8f0; text-decoration:none; font-weight:700; font-size:.85rem;
  letter-spacing:.04em; text-transform:uppercase; padding-bottom:4px; border-bottom:2px solid transparent;
}
nav.links a.active, nav.links a:hover{color:var(--red); border-color:var(--red);}

/* ---- generic hero photo block (illustrative placeholder, since original photography isn't ours to copy) ---- */
.photo-hero{
  position:relative; min-height:640px; display:flex; align-items:center;
  background:
    linear-gradient(100deg, rgba(14,20,66,.86) 15%, rgba(14,20,66,.35) 60%, rgba(14,20,66,.1)),
    url('images/hero-photo.png');
  background-size:cover; background-position:top center; background-repeat:no-repeat;
  padding:70px 32px;
}
.photo-hero .inner{max-width:640px; color:#fff; position:relative; z-index:2;}
.eyebrow{
  display:flex; align-items:center; gap:12px;
  color:var(--red); font-family:'Barlow', sans-serif; font-weight:600; font-style:italic;
  letter-spacing:.1em; font-size:1.15rem; margin-bottom:14px;
}
.eyebrow::before{content:""; width:36px; height:3px; background:var(--red); flex-shrink:0;}
.photo-hero h1{color:#fff; font-size:clamp(2.2rem,4.4vw,3.4rem); line-height:1.05;}
.photo-hero h1 .accent{color:var(--red);}
.hero-actions{display:flex; flex-direction:column; align-items:flex-start; gap:14px; margin-top:30px; width:100%; max-width:270px;}
.hero-actions .btn{width:100%; text-align:center;}

.btn{
  display:inline-block; font-weight:700; font-size:.85rem; letter-spacing:.04em;
  text-transform:uppercase; text-decoration:none; padding:15px 30px; border-radius:2px;
  transition:.2s;
}
.btn-outline{border:1.5px solid #fff; color:#fff; background:transparent;}
.btn-outline:hover{background:rgba(255,255,255,.12);}
.btn-outline-dark{border:1.5px solid var(--red); color:var(--red); background:transparent;}
.btn-outline-dark:hover{background:var(--red); color:#fff;}
.btn-red{background:var(--red); color:#fff;}
.btn-red:hover{background:var(--red-deep);}

/* ---- sections ---- */
section{padding:70px 32px;}
.section-inner{max-width:1180px; margin:0 auto; width:100%;}
.section-head h2{font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.05; color:var(--navy);}
.section-head h2 .accent{color:var(--red);}
.section-head p{color:var(--gray); max-width:620px; margin-top:14px; font-size:1.02rem;}

.two-col{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:start;}
.stakes-copy p{color:#3a3d44; margin-top:14px; font-size:.98rem; line-height:1.65;}
.stakes-copy p strong{color:var(--navy);}
.collage{display:flex; justify-content:center;}
.collage img{max-width:100%; height:auto;}

.cta-row{display:flex; gap:14px; margin-top:26px; flex-wrap:wrap;}

/* ---- resources / gray section ---- */
.section-gray{background:var(--cream);}
.res-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:38px;}
.res-card{
  display:block; background:#fff; border:1px solid var(--line); border-radius:4px; padding:26px 24px;
  text-decoration:none; color:inherit; transition:box-shadow .2s, transform .2s, border-color .2s;
}
.res-card:hover, .res-card:focus-visible{
  box-shadow:0 10px 28px rgba(14,20,66,.12); transform:translateY(-3px); border-color:var(--red);
}
.res-icon-wrap{
  width:44px; height:44px; border-radius:8px; background:var(--red);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  transition:background .2s;
}
.res-card:hover .res-icon-wrap{background:var(--navy);}
.res-icon{
  width:22px; height:22px; object-fit:contain;
}
.res-card h3{font-size:1.05rem; color:var(--navy); letter-spacing:.01em; margin-bottom:8px;}
.res-card p{color:var(--gray); font-size:.9rem; line-height:1.55; margin-bottom:14px;}
.res-card .link{
  color:var(--red); font-weight:700; font-size:.82rem; letter-spacing:.03em;
  text-decoration:none; text-transform:uppercase; display:inline-block;
}
.res-card:hover .link{text-decoration:underline;}

/* ---- sponsors ---- */
.sponsor-title{text-align:center; margin-bottom:36px;}
.sponsor-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:30px 20px; align-items:center; justify-items:center;
}
.sponsor-grid .badge{
  font-family:'Barlow',sans-serif; font-weight:700; color:var(--navy); text-align:center;
  font-size:.95rem; letter-spacing:.02em; opacity:.75;
}
.sponsor-cta{text-align:center; margin-top:44px;}

/* ---- newsletter band ---- */
.newsletter{
  background:var(--red); color:#fff; padding:56px 32px;
}
.newsletter .inner{
  max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; align-items:flex-start;
}
.newsletter h2{font-size:1.5rem; color:#fff; font-family:'Barlow',sans-serif; font-style:italic; font-weight:700; text-transform:none; letter-spacing:0;}
.newsletter p{margin-top:14px; max-width:420px; font-size:.92rem; color:#ffe3e6;}
.newsletter form{display:flex; gap:10px; flex-wrap:wrap;}
.newsletter input{
  box-sizing:border-box; height:52px; padding:0 18px; border:none; border-radius:4px; min-width:260px;
  font-family:'Barlow',sans-serif; font-size:.95rem; color:var(--navy);
}
.newsletter button{
  box-sizing:border-box; height:52px; background:var(--navy); color:#fff; border:none; padding:0 30px; border-radius:4px;
  font-weight:700; letter-spacing:.04em; cursor:pointer; text-transform:uppercase; font-size:.85rem;
  font-family:'Barlow',sans-serif; transition:background .2s, transform .15s;
}
.newsletter button:hover{background:var(--navy-2); transform:translateY(-1px);}

/* ---- footer ---- */
footer{background:var(--navy); color:#c7cbe6; padding:50px 32px 30px;}
.footer-inner{
  max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.footer-brand{display:flex; flex-direction:column; gap:16px;}
.social{display:flex; gap:10px;}
.social a{
  width:34px; height:34px; border-radius:50%; border:1px solid #454c8c;
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; font-size:.85rem;
}
.footer-links{display:flex; flex-direction:column; gap:12px;}
.footer-links a{text-decoration:none; font-weight:600; font-size:.85rem; letter-spacing:.03em; text-transform:uppercase; color:#c7cbe6;}
.footer-links a:hover{color:#fff;}
.footer-actions{display:flex; flex-direction:column; gap:12px; min-width:220px;}
.footer-actions .btn{text-align:center;}
.paid-for{
  max-width:1180px; margin:34px auto 0; border:1px solid #333a75; text-align:center;
  padding:12px; font-size:.78rem; letter-spacing:.03em; color:#9aa0d4;
}

/* ---- about page ---- */
.about-hero{background:var(--red); color:#fff; padding:60px 32px;}
.about-hero .inner{max-width:1000px; margin:0 auto;}
.about-hero h1{color:#fff; font-size:clamp(1.9rem,3.6vw,2.6rem);}
.about-hero p{margin-top:16px; font-size:.98rem; line-height:1.65; max-width:820px;}
.about-hero p + p{margin-top:12px;}
.about-hero a{color:#fff; text-decoration:underline;}

.team{max-width:1000px; margin:0 auto; padding:60px 32px;}
.member{
  display:grid; grid-template-columns:110px 1fr; gap:30px; padding:34px 0; border-bottom:1px solid var(--line);
}
.member:last-child{border-bottom:none;}
.avatar{
  width:100px; height:100px; border-radius:50%;
  object-fit:cover; object-position:center top;
  background:linear-gradient(135deg,#3a4270,#8b93c2);
  flex-shrink:0;
}
.member h3{color:var(--navy); font-size:1.15rem; letter-spacing:.01em;}
.member .role{color:var(--red); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin:4px 0 10px;}
.member p{color:#3a3d44; font-size:.94rem; line-height:1.6;}
.member p + p{margin-top:10px;}

/* ---- for candidates page ---- */
.cand-hero{
  position:relative; min-height:600px; display:flex; align-items:center; justify-content:flex-start;
  background:
    linear-gradient(90deg, rgba(14,20,66,.6), rgba(14,20,66,.4)),
    url('images/candidates-photo.png');
  background-size:cover; background-position:top center; background-repeat:no-repeat;
  padding:70px 32px;
}
.cand-hero .inner{max-width:620px; color:#fff;}
.cand-hero h1{color:#fff; font-size:clamp(1.9rem,3.6vw,2.6rem); text-transform:none; font-family:'Barlow',sans-serif; font-weight:800;}
.cand-hero p{margin-top:14px; font-size:1rem; line-height:1.65;}
.cand-hero .btn{margin-top:26px;}

@media (max-width:860px){
  .menu-toggle{display:flex;}
  .nav-right{
    position:absolute; top:100%; left:0; right:0;
    background:var(--navy);
    flex-direction:column; align-items:flex-start;
    gap:20px; padding:0 24px; margin:0;
    max-height:0; overflow:hidden; opacity:0;
    transition:max-height .25s ease, opacity .2s ease, padding .25s ease;
    border-top:0 solid #23285f;
  }
  .nav-right.open{
    max-height:420px; opacity:1; padding:22px 24px 30px; border-top-width:1px;
  }
  .lang-switch{order:-1;}
  nav.links{flex-direction:column; align-items:flex-start; gap:16px; width:100%;}
  nav.links a{font-size:.95rem;}
}

@media (max-width:900px){
  .two-col{grid-template-columns:1fr;}
  .res-grid{grid-template-columns:1fr 1fr;}
  .sponsor-grid{grid-template-columns:repeat(2,1fr);}
  .member{grid-template-columns:70px 1fr;}
  .avatar{width:64px; height:64px; font-size:1.1rem;}
}
@media (max-width:640px){
  header{padding:14px 18px;}
  section{padding:50px 18px;}
  .res-grid{grid-template-columns:1fr;}
  .sponsor-grid{grid-template-columns:repeat(2,1fr);}
  .newsletter .inner{flex-direction:column;}
  .footer-inner{flex-direction:column;}
}

/* language visibility */
html.es [data-en]{display:none !important;}
html.es .en-only{display:none !important;}
html.es [data-es-only]{display:block !important;}
html:not(.es) [data-es]{display:none !important;}

/* ---- tiered sponsors (Founding / Supporting / Community) ---- */
.sponsors-section{padding:72px 32px; background:#fff; border-top:1px solid var(--line);}
.sponsors-header{text-align:center; max-width:640px; margin:0 auto 56px;}
.sponsors-header .eyebrow{justify-content:center;}
.sponsors-header .s-title{
  font-family:'Barlow', sans-serif; font-weight:800; text-transform:uppercase;
  font-size:clamp(1.6rem,2.6vw,2.1rem); color:var(--navy); letter-spacing:.02em; margin-bottom:12px;
}
.sponsors-header .s-sub{font-family:'Barlow',sans-serif; font-size:.92rem; color:var(--gray); line-height:1.7;}

.tier-block{margin-bottom:52px;}
.tier-block:last-of-type{margin-bottom:0;}
.tier-label-row{display:flex; align-items:center; gap:16px; margin-bottom:26px;}
.tier-label{
  font-family:'Barlow', sans-serif; font-weight:700; font-size:.72rem; letter-spacing:.16em;
  text-transform:uppercase; color:var(--navy); white-space:nowrap; background:var(--cream);
  padding:6px 16px; border-radius:3px; border:1px solid var(--line);
}
.tier-label-row hr{flex:1; border:none; border-top:1px solid var(--line);}

.top-grid{display:flex; flex-wrap:wrap; justify-content:center; gap:20px;}
.top-tile{
  flex:0 1 calc(25% - 15px); min-width:200px;
  height:150px; border-radius:5px; background:var(--navy); display:flex; align-items:center;
  justify-content:center; flex-direction:column; gap:10px; padding:16px; text-align:center;
  transition:transform .2s, background .2s;
}
.top-tile:hover{transform:translateY(-3px); background:#182a52;}
.t1-name{font-family:'Barlow',sans-serif; font-weight:800; font-size:1rem; color:#fff; text-transform:uppercase; letter-spacing:.04em; line-height:1.25; transition:color .2s;}
.top-tile:hover .t1-name{color:var(--red);}
.t1-rule{width:36px; height:3px; background:var(--red); border-radius:2px;}

.mid-grid{display:flex; flex-wrap:wrap; justify-content:center; gap:20px;}
.mid-tile{
  flex:0 1 calc(25% - 15px); min-width:200px;
  height:110px; border-radius:5px; background:#fff; border:2px solid var(--red); display:flex;
  align-items:center; justify-content:center; flex-direction:column; gap:5px; padding:16px; text-align:center;
  transition:transform .2s, background .2s;
}
.mid-tile:hover{transform:translateY(-3px); background:var(--cream);}
.t2-name{font-family:'Barlow',sans-serif; font-weight:800; font-size:.88rem; color:var(--navy); text-transform:uppercase; letter-spacing:.04em; line-height:1.2; transition:color .2s;}
.mid-tile:hover .t2-name{color:var(--red);}

.low-grid{display:flex; flex-wrap:wrap; justify-content:center; gap:10px;}
.low-tile{
  flex:0 1 calc(16.6667% - 8.4px); min-width:130px;
  height:44px; border-radius:4px; background:var(--cream); border:1px solid var(--line); display:flex;
  align-items:center; justify-content:center; padding:0 12px;
  transition:transform .2s, border-color .2s;
}
.low-tile:hover{transform:translateY(-2px); border-color:var(--red);}
.t3-name{
  font-family:'Barlow',sans-serif; font-weight:800; font-size:.68rem; color:var(--navy); text-transform:uppercase;
  letter-spacing:.04em; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
  transition:color .2s;
}
.low-tile:hover .t3-name{color:var(--red);}

.sponsor-cta{text-align:center; margin-top:52px; padding-top:36px; border-top:1px solid var(--line);}
.sponsor-cta p{font-family:'Barlow',sans-serif; font-size:.9rem; color:var(--gray); margin-bottom:18px;}

@media (max-width:1024px){
  .low-tile{flex-basis:calc(25% - 7.5px);}
}
@media (max-width:768px){
  .sponsors-section{padding:48px 18px;}
  .top-grid, .mid-grid{gap:12px;}
  .low-grid{gap:8px;}
  .top-tile, .mid-tile{flex-basis:calc(50% - 6px); min-width:0;}
  .low-tile{flex-basis:calc(50% - 4px); min-width:0;}
  .t1-name{font-size:.82rem;} .t2-name{font-size:.76rem;} .t3-name{white-space:normal; font-size:.64rem;}
  .tier-block{margin-bottom:36px;}
  .top-tile{height:130px;} .mid-tile{height:90px;}
}

/* ---- popup modal ---- */
.popup-overlay{
  position:fixed; inset:0; background:rgba(10,13,40,.55); z-index:200;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.popup-overlay.show{opacity:1; pointer-events:auto;}
.popup-card{
  background:var(--navy); border-radius:6px; max-width:560px; width:100%;
  position:relative; padding:22px 22px 30px; box-shadow:0 30px 60px rgba(0,0,0,.4);
  transform:translateY(14px) scale(.98); transition:transform .25s ease;
  max-height:90vh; overflow-y:auto;
}
.popup-overlay.show .popup-card{transform:translateY(0) scale(1);}
.popup-close{
  position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%;
  background:var(--red); color:#fff; border:none; font-size:1.1rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.popup-close:hover{background:var(--red-deep);}
.popup-img{
  width:100%; height:auto; display:block; border-radius:4px; margin-bottom:22px;
}
.popup-headline{
  font-family:'Barlow', sans-serif; font-weight:800; text-transform:uppercase;
  color:#fff; font-size:1.5rem; line-height:1.18; margin-bottom:18px;
}
.popup-headline .accent{color:var(--red); font-style:italic;}
.popup-card .btn{width:100%; text-align:center; background:#fff; color:var(--navy);}
.popup-card .btn:hover{background:#e9e9ee;}
@media (max-width:520px){
  .popup-headline{font-size:1.25rem;}
}
