/* =========================================
   Accountable Representation — Main Styles
   AccountableRepresentation.com
   ========================================= */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1d35;
  --navy2:      #152d50;
  --navy3:      #1c3560;
  --red:        #b52b2b;
  --red2:       #d43030;
  --gold:       #c8973a;
  --gold2:      #e0b05a;
  --cream:      #f6f3ed;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --textmid:    #4a4a4a;
  --textlight:  #777777;
  --border:     rgba(0,0,0,0.08);
  --bordergold: rgba(200,151,58,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 18px;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(11, 29, 53, 0.97);
  backdrop-filter: blur(10px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid var(--bordergold);
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span { color: #fff; }

.footer-logo {
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
}

.navlinks {
  display: flex;
  gap: 24px;
  list-style: none;
}

.navlinks a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.navlinks a:hover { color: var(--gold2); }

.navcta {
  background: var(--red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  white-space: nowrap;
}

.navcta:hover { background: var(--red2); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

/* --- Section Shared --- */
section { padding: 96px 6%; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 14px;
}

.lead {
  font-size: 18px;
  color: var(--textmid);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 56px;
  font-weight: 300;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 100px 6% 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -10%; top: 10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(200,151,58,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { max-width: 740px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  border: 1px solid var(--bordergold);
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(46px, 7.5vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 28px;
}

h1 .accent { color: var(--gold); }
h1 .red    { color: #e05555; }

.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 300;
}

.btnrow { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-red {
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-red:hover { background: var(--red2); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.82);
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold2); }

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.2); }

/* --- Problem Section --- */
.problem { background: #fff; }

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.problem-text p {
  font-size: 16px;
  color: var(--textmid);
  line-height: 1.8;
  margin-bottom: 18px;
}

.pullquote {
  border-left: 3px solid var(--red);
  padding: 20px 0 20px 28px;
  margin: 32px 0;
}

.pullquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}

.pullquote cite {
  font-size: 13px;
  color: var(--textlight);
  letter-spacing: 0.05em;
  font-style: normal;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 8px;
}

.stat-box { background: var(--navy); padding: 28px 24px; }

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }

/* --- Pledge Section --- */
.pledge-section { background: var(--cream); }

.pledge-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 52px 56px;
  max-width: 820px;
}

.pledge-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pledge-subtitle {
  font-size: 14px;
  color: var(--textlight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pledge-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pledge-item:last-of-type { border-bottom: none; margin-bottom: 0; }

.pledge-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.pledge-body h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pledge-body p  { font-size: 14px; color: var(--textmid); line-height: 1.7; }

.pledge-sig {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.sig-field {
  border-bottom: 1px solid #999;
  height: 36px;
}

.sig-label {
  font-size: 11px;
  color: var(--textlight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* --- Platform --- */
.platform-section { background: #fff; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 64px;
}

.plank {
  background: #fff;
  padding: 36px 32px;
  transition: background 0.2s;
}

.plank:hover { background: #fdfcfa; }

.plank-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.plank-icon svg { width: 18px; height: 18px; stroke: var(--gold); }

.plank h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.plank p { font-size: 14px; color: var(--textmid); line-height: 1.75; }

/* --- Qualities --- */
.qualities { background: var(--navy); }
.qualities h2 { color: #fff; }
.qualities .section-label { color: var(--gold2); }
.qualities .lead { color: rgba(255,255,255,0.55); }

.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.q-card {
  background: var(--navy2);
  padding: 32px 28px;
  transition: background 0.2s;
}

.q-card:hover { background: var(--navy3); }

.q-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.q-card h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.q-card p  { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* --- Job Description --- */
.jobdesc { background: var(--cream); }

.jd-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.jd-sidebar { position: sticky; top: 80px; }

.jd-meta {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
}

.jd-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 12px;
}

.jd-meta-row:last-child { border-bottom: none; }
.jd-meta-label { color: var(--textlight); flex-shrink: 0; }
.jd-meta-val   { font-weight: 500; color: var(--navy); text-align: right; }

.jd-section { margin-bottom: 40px; }

.jd-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e4dd;
}

.jd-list { list-style: none; padding: 0; }

.jd-list li {
  font-size: 15px;
  color: var(--textmid);
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.jd-list li:last-child { border-bottom: none; }

.jd-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* --- Cabinet --- */
.cabinet { background: #fff; }

.cabinet-rules {}

.rule {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.rule:first-child { padding-top: 0; }
.rule:last-child  { border-bottom: none; }

.rule-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
}

.rule-body h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.rule-body p  { font-size: 14px; color: var(--textmid); line-height: 1.75; }

/* --- Join / CTA --- */
.join {
  background: var(--red);
  text-align: center;
  padding: 80px 6%;
}

.join h2 { color: #fff; margin-bottom: 12px; }

.join p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.join-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.join-form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: inherit;
  outline: none;
}

.join-form input::placeholder { color: rgba(255,255,255,0.5); }
.join-form input:focus { background: rgba(255,255,255,0.25); border-color: #fff; }

.join-form button {
  background: #fff;
  color: var(--red);
  padding: 14px 28px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.join-form button:hover { background: var(--cream); }

/* --- Footer --- */
footer {
  background: #060f1e;
  padding: 52px 6% 36px;
  border-top: 1px solid var(--bordergold);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
  font-family: inherit;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* --- Scroll Fade-in --- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .navlinks {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: rgba(11,29,53,0.99);
    flex-direction: column;
    padding: 20px 6%;
    gap: 16px;
    border-bottom: 1px solid var(--bordergold);
  }
  .navlinks.open { display: flex; }
  .navcta { display: none; }
  .problem-layout { grid-template-columns: 1fr; gap: 40px; }
  .jd-layout { grid-template-columns: 1fr; }
  .jd-sidebar { position: static; }
  .pledge-card { padding: 32px 24px; }
  .pledge-sig { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-sub { font-size: 16px; }
  section { padding: 64px 5%; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; }
}
