/* ============================================================
   Mikey for City Council — Custom CSS
   Design system: dark-first, navy + oxide-red, Inter
   ============================================================ */

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --ivory:        #F2EFEA;
  --ivory-dim:    #C9C5BE;
  --ivory-faint:  #6F6E6A;
  --steel-navy:   #2E3A44;
  --navy-dark:    #1C2830;
  --navy-deep:    #111820;
  --navy-black:   #07090C;
  --oxide-red:    #8C3B2E;
  --red-mid:      #A04535;
  --red-deep:     #6B2C22;
  --hairline:     rgba(242, 239, 234, 0.10);

  --grad-bottom:     linear-gradient(to top, rgba(7,9,12,0.85) 0%, transparent 60%);
  --grad-cinematic:  linear-gradient(180deg, rgba(7,9,12,0.3) 0%, rgba(7,9,12,0.6) 100%);

  --container:    1200px;
  --gutter:       clamp(16px, 3vw, 24px);

  --radius-input: 4px;
  --radius-pill:  999px;

  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy-deep);
  color: var(--ivory);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ─── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Typography ──────────────────────────────────────────── */
.text-display {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.text-h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.text-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.text-h3 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.text-h4 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.text-body-large { font-size: 1.125rem; line-height: 1.6; }
.text-body       { font-size: 1rem;     line-height: 1.5; }
.text-small      { font-size: 0.875rem; line-height: 1.5; }

.text-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.text-ivory      { color: var(--ivory); }
.text-ivory-dim  { color: var(--ivory-dim); }
.text-ivory-faint{ color: var(--ivory-faint); }
.text-oxide-red  { color: var(--oxide-red); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--oxide-red);
  color: var(--ivory);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn:hover  { background: var(--red-mid); }
.btn:active { background: var(--red-deep); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ivory);
}
.btn-outline:hover { border-color: var(--ivory-dim); background: transparent; }

/* ─── Divider / hairline ──────────────────────────────────── */
.hairline { border: none; border-top: 1px solid var(--hairline); }

/* ─── Announce bar ────────────────────────────────────────── */
.announce-bar {
  background: var(--navy-black);
  border-bottom: 1px solid var(--hairline);
  padding: 10px var(--gutter);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.announce-bar__rule {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--hairline);
}
.announce-bar__text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ─── Site header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__mark { width: 40px; height: 40px; }
.site-header__name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.site-header__district {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.site-header__nav a:hover { color: var(--ivory); }
.site-header__actions { display: flex; align-items: center; gap: 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ivory);
}
@media (max-width: 768px) {
  .site-header__nav { display: none; }
  .site-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-black);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-toggle { display: block; }
}

/* ─── Hero carousel ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  background: var(--navy-black);
  overflow: hidden;
  margin-top: 0;
}
.hero__slides { position: relative; width: 100%; height: 100%; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--grad-cinematic);
}
.hero__scrim-bottom {
  position: absolute;
  inset: 0;
  background: var(--grad-bottom);
}
.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px var(--gutter) 64px;
}
.hero__content .container { position: relative; }
.hero__eyebrow { margin-bottom: 16px; }
.hero__headline {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slide indicators */
.hero__indicators {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ivory-faint);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.hero__dot.is-active { background: var(--ivory); width: 24px; }

/* ─── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--steel-navy);
  border: none;
  padding: 40px var(--gutter);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
}
.stats-bar__item {
  background: var(--steel-navy);
  padding: 32px 24px;
  text-align: center;
}
.stats-bar__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 8px;
}
.stats-bar__label {
  font-size: 0.875rem;
  color: var(--ivory-dim);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .stats-bar__grid { grid-template-columns: 1fr; }
}

/* ─── Issues grid ─────────────────────────────────────────── */
.issues { padding: 0; background: var(--navy-deep); }
.issues__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.issue-card {
  position: static;
  background: var(--navy-deep);
  aspect-ratio: unset;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(28px,3.5vw,40px) clamp(24px,3vw,40px);
  transition: background var(--transition);
  text-decoration: none;
  color: var(--ivory);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.issue-card:nth-child(even) { border-right: none; }
.issue-card::after { display: none; content: none; }
.issue-card:hover { background: var(--navy-dark); }

@media (max-width: 600px) {
  .issues__grid { grid-template-columns: 1fr; }
  .issue-card { border-right: none; }
}

/* ─── About ───────────────────────────────────────────────── */
.about { padding: 96px var(--gutter); background: var(--navy-dark); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about__photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__photo-wrap::after {
  display: none;
}
.about__eyebrow { margin-bottom: 24px; }
.about__headline { margin-bottom: 24px; }
.about__body { color: var(--ivory-dim); font-size: 1.125rem; line-height: 1.7; margin-bottom: 32px; }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__photo-wrap { aspect-ratio: 3/2; }
}

/* ─── Get involved ────────────────────────────────────────── */
.involve {
  padding: 96px var(--gutter);
  background: var(--navy-deep);
  border-top: 1px solid var(--hairline);
}
.involve__header { text-align: left; margin-bottom: 0; }
.involve__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
}
.involve__panel {
  background: var(--navy-deep);
  padding: 48px 40px;
}
.involve__panel-title { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 16px; }
.involve__panel-body  { color: var(--ivory-dim); line-height: 1.6; margin-bottom: 32px; }

/* Donate amount selector */
.donate-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.donate-amount {
  padding: 10px 20px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ivory-dim);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  border-radius: 0;
}
.donate-amount:hover,
.donate-amount.is-selected {
  border-color: var(--oxide-red);
  color: var(--ivory);
  background: rgba(140, 59, 46, 0.1);
}

/* Volunteer form */
.involve__form { display: flex; flex-direction: column; gap: 12px; }
.involve__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--steel-navy);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  color: var(--ivory);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.involve__input::placeholder { color: var(--ivory-faint); }
.involve__input:focus { border-color: rgba(242, 239, 234, 0.3); }

@media (max-width: 768px) {
  .involve__grid { grid-template-columns: 1fr; }
}

/* ─── Issue pages ─────────────────────────────────────────── */
.issue-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 80px var(--gutter) 64px;
  overflow: hidden;
  background: var(--navy-black);
}
.issue-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.issue-hero__scrim { position: absolute; inset: 0; background: var(--grad-bottom); }
.issue-hero__content { position: relative; z-index: 1; }
.issue-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 24px;
  transition: color var(--transition);
}
.issue-hero__back:hover { color: var(--ivory); }
.issue-hero__eyebrow { margin-bottom: 16px; }
.issue-hero__headline { max-width: 16ch; }

.issue-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.issue-stat {
  background: var(--steel-navy);
  padding: 40px 32px;
  text-align: center;
}
.issue-stat__number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ivory);
  margin-bottom: 8px;
}
.issue-stat__label { font-size: 0.875rem; color: var(--ivory-dim); }

.issue-body {
  padding: 80px var(--gutter);
  background: var(--navy-deep);
}
.issue-body__inner {
  max-width: 740px;
  margin-inline: auto;
}
.issue-body__section { margin-bottom: 56px; }
.issue-body h3 { margin-bottom: 20px; }
.issue-body p  { color: var(--ivory-dim); font-size: 1.125rem; line-height: 1.75; margin-bottom: 16px; }

@media (max-width: 600px) {
  .issue-stats-grid { grid-template-columns: 1fr; }
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-black);
  border-top: 1px solid var(--hairline);
  padding: 48px var(--gutter);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__brand .site-header__name { font-size: 1rem; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__links a { font-size: 0.875rem; color: var(--ivory-dim); transition: color var(--transition); }
.site-footer__links a:hover { color: var(--ivory); }
.site-footer__social { display: flex; gap: 16px; align-items: center; }
.site-footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--ivory-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__disclaimer { max-width: 640px; line-height: 1.6; }

/* ─── GHL Form embed ──────────────────────────────────────── */
.ghl-form-wrap iframe,
.ghl-form-wrap .hl_form { width: 100%; border: none; }

/* ─── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.wp-block-group { max-width: 100%; }
