/* ===== Brendan Joseph for Trustee — Design System ===== */

:root {
  --navy: #0b1f3d;
  --navy-2: #142a52;
  --navy-3: #1c3868;
  --gold: #d9a62a;
  --gold-dark: #b5841a;
  --gold-light: #f0cf7a;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #16233d;
  --ink-soft: #4a5568;
  --blue: #2f6fed;
  --green: #1e9e6b;
  --purple: #7c5cbf;
  --coral: #e85d4c;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 31, 61, 0.12);
  --shadow-sm: 0 4px 14px rgba(11, 31, 61, 0.08);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.section {
  padding: 80px 0;
}
.section-tight { padding: 56px 0; }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 40px;
}

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-title, .bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(217, 166, 42, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(217, 166, 42, 0.45); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--navy-2); }

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

.btn-block { width: 100%; justify-content: center; }

/* ===== Header / Nav ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar strong { color: var(--gold-light); }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold-light); }

header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(11,31,61,0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.brand-text .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text .role {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-color: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 0%, var(--navy-3) 0%, var(--navy) 55%, #081527 100%);
  color: var(--white);
  padding: 84px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(217,166,42,0.28) 0%, transparent 45%),
    radial-gradient(circle at 95% 85%, rgba(47,111,237,0.22) 0%, transparent 40%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(217,166,42,0.5);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 6px;
}
.hero h1 .last {
  display: block;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold-light);
  margin-top: 2px;
}

.hero .tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  margin: 18px 0 8px;
  font-weight: 600;
}
.hero .subtagline {
  color: rgba(255,255,255,0.65);
  font-size: 1.02rem;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
}
.hero-stats div strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 800;
}
.hero-stats div span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy-3), var(--navy) 70%);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-photo-frame .initials {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 5rem;
  color: rgba(217,166,42,0.85);
}
.hero-photo-frame img,
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-photo-frame .cross {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  opacity: 0.8;
}
.hero-card .election-box {
  text-align: center;
  background: rgba(217,166,42,0.14);
  border: 1px solid rgba(217,166,42,0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.hero-card .election-box .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-card .election-box .date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 6px;
}
.hero-card .countdown {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-card .countdown strong { color: var(--gold-light); }

/* ===== Pillars ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--accent, var(--gold));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent, var(--gold));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p { color: var(--ink-soft); font-size: 0.95rem; }
.pillar-card .learn { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.88rem; color: var(--accent, var(--gold-dark)); }

.pillar-card.c-blue { --accent: var(--blue); }
.pillar-card.c-gold { --accent: var(--gold-dark); }
.pillar-card.c-green { --accent: var(--green); }
.pillar-card.c-purple { --accent: var(--purple); }

/* ===== Stat / fact bar ===== */
.fact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.fact-card strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.fact-card span { color: var(--ink-soft); font-size: 0.88rem; }

/* ===== Problem/Solution blocks (Platform page) ===== */
.priority-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  margin-bottom: 28px;
  border-left: 6px solid var(--accent, var(--gold));
}
.priority-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.priority-head .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  background: var(--accent, var(--gold));
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.priority-head h3 { font-size: 1.4rem; margin: 0; }

.priority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 22px; }
.priority-col .label {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.priority-col.problem .label { color: var(--coral); }
.priority-col.solution .label { color: var(--green); }
.priority-col p { color: var(--ink-soft); font-size: 0.96rem; }

.commit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.commit-list li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink);
}
.commit-list li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green); margin-top: 3px; }

.priority-block.c-blue { --accent: var(--blue); }
.priority-block.c-gold { --accent: var(--gold-dark); }
.priority-block.c-green { --accent: var(--green); }
.priority-block.c-purple { --accent: var(--purple); }

/* ===== Role / accountability callout ===== */
.callout {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.callout h3 { color: var(--gold-light); margin-bottom: 12px; }
.callout p { color: rgba(255,255,255,0.82); }
.callout p + p { margin-top: 10px; }

/* ===== About page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  outline: 2px solid var(--gold);
}
.about-photo-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  display: flex; align-items: center; justify-content: center;
}
.about-photo-frame .initials {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 6rem;
  color: rgba(217,166,42,0.85);
}
.quick-facts {
  margin-top: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.quick-facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e3ddcf;
  font-size: 0.92rem;
}
.quick-facts li:last-child { border-bottom: none; }
.quick-facts li span:first-child { color: var(--ink-soft); }
.quick-facts li span:last-child { font-weight: 700; text-align: right; }

.about-body h2 { margin-top: 6px; }
.about-body p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.value-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p { font-size: 0.88rem; margin-bottom: 0; }

/* ===== Get Involved / Contact ===== */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}
.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.involve-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.involve-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.involve-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }

.form-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 700; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #dcd6c6;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--cream);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.contact-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-item .ico {
  width: 44px; height: 44px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.contact-item a, .contact-item span { color: var(--ink-soft); font-size: 0.92rem; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.faq-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius);
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--navy);
}
.cta-banner h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: 6px; }
.cta-banner p { color: rgba(11,31,61,0.75); }
.cta-banner .btn-navy { flex-shrink: 0; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand .name { color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; }
.footer-brand .role { color: var(--gold-light); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Utility ===== */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .fact-bar { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .involve-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; max-width: 320px; height: 100vh;
    background: var(--navy);
    padding: 90px 30px 30px;
    transition: right 0.25s ease;
    z-index: 99;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  nav.main-nav a { color: var(--white); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-navy { display: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .fact-bar { grid-template-columns: 1fr 1fr; }
  .involve-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .commit-list { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,31,61,0.5);
  z-index: 98;
}
.nav-overlay.open { display: block; }
