/* =========================
   Base / Typography
========================== */
:root{
  --navy-1:#0b3c5d;
  --navy-2:#123d6a;
  --navy-3:#004080;
  --gold:#ffcc00;
  --text:#1f2933;
  --muted:#e6eef5;
  --card:#f4f4f4;
  --max:900px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height:1.6;
  color:var(--text);
  background:#fff;
}

a{
  color:inherit;
}

/* =========================
   Header / Hero
========================== */
header{
  background:linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color:#fff;
  text-align:center;
  padding:80px 20px 60px;
  position:relative;
  overflow:hidden;
}

/* subtle California bear watermark */
header::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 360'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M78 236c12 0 25-10 33-16 11-9 26-16 41-17 17-1 32 9 49 11 23 2 45-7 68-12 21-5 45-5 64 5 18 9 34 25 53 32 16 6 35 3 51-2 20-7 40-15 60-17 17-2 32 7 49 7 15 0 30-7 41-17 12-10 16-28 10-42-5-12-17-19-28-23-15-6-31-8-46-14-19-7-34-21-50-34-18-15-37-29-59-33-24-4-49 2-72 8-25 6-50 14-76 12-24-2-45-14-68-20-22-6-45-6-65 4-21 10-34 31-46 50-8 13-18 26-17 40 1 11 10 21 18 26z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10% center;
  background-size:420px auto;
  pointer-events:none;
}
header h1{
  margin:0;
  font-size:3.4em;
  font-weight:900;
  color:#ffffff;
  letter-spacing:2px;
  text-transform:uppercase;

  text-shadow:
    0 3px 0 rgba(0,0,0,0.6),
    0 6px 18px rgba(0,0,0,0.45);

  position:relative;
  z-index:2;
}

header h2{
  margin:12px 0 28px;
  font-weight:500;
  font-size:1.2em;
  letter-spacing:1px;
  color:#d8e3ef;
}

/* =========================
   Candidate Photo
========================== */
.candidate-photo{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:22px auto 24px;
  position:relative;
  z-index:2;
}

.candidate-photo img{
  width:170px;
  height:auto;
  object-fit:cover;
  object-position:center top;
  border-radius:10px;
  border:3px solid rgba(255,255,255,0.9);
  box-shadow:0 14px 32px rgba(0,0,0,0.35);
  background:#dfe7ee;
}

/* CTA buttons */
.cta-buttons{
  position:relative;
  z-index:1;
}

.cta-buttons a{
  display:inline-block;
  background:var(--gold);
  color:var(--navy-1);
  padding:15px 30px;
  margin:10px;
  text-decoration:none;
  font-weight:700;
  border-radius:8px;
  border:2px solid transparent;
  transition:transform .08s ease, opacity .15s ease, box-shadow .15s ease;
}

.cta-buttons a:hover{
  opacity:0.95;
  box-shadow:0 6px 18px rgba(0,0,0,0.18);
  transform:translateY(-1px);
}

.cta-buttons a:focus{
  outline:3px solid rgba(255,204,0,0.55);
  outline-offset:2px;
}

/* =========================
   Sections / Content
========================== */
section{
  padding:60px 20px;
  max-width:var(--max);
  margin:0 auto;
}

section h2{
  font-size:2em;
  margin:0 0 20px;
  color:var(--navy-1);
}

section h3{
  font-size:1.3em;
  margin:0 0 15px;
  color:var(--navy-2);
}

section p{
  margin:0 0 20px;
  color:var(--text);
}

/* Video */
.video-container{
  text-align:center;
  margin-bottom:40px;
}

.video-container iframe{
  width:100%;
  max-width:600px;
  height:340px;
  border:none;
  border-radius:10px;
}

/* =========================
   Pillars / Cards
========================== */
.pillars{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px 60px;
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:space-between;
}

.pillar{
  flex:1 1 calc(45% - 20px);
  background:var(--card);
  padding:20px;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  display:block;
  border:1px solid rgba(0,0,0,0.04);
  transition:transform .08s ease, box-shadow .15s ease;
}

.pillar:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
}

.pillar h3{
  margin:0 0 10px;
}

.pillar p{
  margin:0;
}

/* =========================
   Footer
========================== */
.footer{
  background:var(--navy-3);
  color:#fff;
  text-align:center;
  padding:40px 20px;
}

.footer a{
  color:var(--gold);
  margin:0 10px;
  text-decoration:none;
  font-weight:600;
}

.footer a:hover{
  text-decoration:underline;
}

/* =========================
   Language Switch
========================== */
.language-switch{
  position:absolute;
  top:20px;
  right:20px;
  text-align:left;
  z-index:1001;
}

/* Button-style dropdown */
.lang-btn{
  background:var(--gold);
  color:var(--navy-1);
  border:none;
  padding:8px 12px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow:0 4px 10px rgba(0,0,0,0.12);
}

.lang-btn .globe{
  display:inline-flex;
  opacity:0.95;
}

.lang-menu{
  display:none;
  position:absolute;
  right:0;
  margin-top:8px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,0.18);
  min-width:210px;
  z-index:1002;
  text-align:left;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.06);
}

.lang-menu a,
.lang-menu .current{
  display:block;
  padding:10px 14px;
  text-decoration:none;
  color:var(--navy-3);
  font-weight:700;
  white-space:nowrap;
}

.lang-menu a:hover{
  background:#f4f6f9;
}

.lang-menu .current{
  background:#e9eef6;
  cursor:default;
}

/* open state can be on .language-switch OR #langSwitch */
.language-switch.open .lang-menu,
#langSwitch.open .lang-menu{
  display:block;
}

/* Select-style language menu */
.lang-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#fff;
  margin-right:8px;
}

.lang-select{
  background:#fff;
  color:var(--navy-3);
  border:1px solid rgba(0,0,0,0.12);
  border-radius:8px;
  padding:8px 10px;
  font-weight:700;
}

/* =========================
   $300 Impact Box
========================== */
.impact-box{
  background:var(--card);
  border-radius:10px;
  padding:24px;
  margin:30px 0;
  border:1px solid rgba(0,0,0,0.04);
}

.impact-box h3{
  margin:0 0 12px;
  color:var(--navy-3);
}

.impact-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:15px 0;
  justify-content:flex-start;
}

.impact-buttons button{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:var(--navy-3);
  color:#fff;
  padding:12px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  line-height:1.2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  flex:1 1 180px;
  max-width:280px;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,0.14);
  transition:transform .08s ease, opacity .15s ease, box-shadow .15s ease;
}

.impact-buttons button:hover{
  opacity:0.95;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,0.18);
}

.impact-buttons button:focus{
  outline:3px solid rgba(0,64,128,0.25);
  outline-offset:2px;
}

/* =========================
   Mobile tweaks
========================== */
@media (max-width:768px){
  header::after{
    display:none !important;
    background-image:none;
  }

  .candidate-photo{
    margin:18px auto 18px;
  }

  .candidate-photo img{
    width:140px;
  }

  .pillars{
    padding:0 20px 60px;
  }

  .pillar{
    flex:1 1 100%;
  }

  .impact-buttons{
    flex-direction:column;
  }

  .impact-buttons button{
    width:100%;
    max-width:none;
  }

  .language-switch{
    position:static;
    margin:0 auto 16px;
    display:inline-block;
  }
}

/* =========================
   RTL support (Arabic/Farsi)
   Add dir="rtl" on <html>
========================== */
html[dir="rtl"] body{
  direction:rtl;
}

html[dir="rtl"] .language-switch{
  right:auto;
  left:20px;
  text-align:right;
}

html[dir="rtl"] .lang-menu{
  right:auto;
  left:0;
  text-align:right;
}