/* ===================================================================
   Ahsen Malik for Congress — stylesheet
   Palette : deep purple ink · cool paper · one bold campaign gold
   Type    : Barlow Condensed (display/labels) + Inter (body)
   Signature element : the hero carousel + "Right for Virginia's Tenth" banner
   =================================================================== */

:root {
  --ink:       #4B1D6E;
  --ink-deep:  #33134D;
  --paper:     #F5F1F8;
  --paper-2:   #FFFFFF;
  --gold:      #F2A900;
  --gold-dim:  #C98A00;
  --slate:     #5A5468;
  --error:     #B3261E;
  --line:      rgba(40, 16, 60, 0.12);
  --line-soft: rgba(255, 255, 255, 0.14);

  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ---- Shared type pieces ---------------------------------------- */
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gold-dim);
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink-deep); }
.btn-primary:hover { transform: translateY(-2px); background: #ffba1a; }

:where(a, button, input, label):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Header ----------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--gold);
  color: var(--ink-deep);
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.brand-text {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1.4rem;
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  display: inline-block;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.is-active { color: var(--gold); }

/* dropdown (Issues) */
.nav-item { position: relative; }
.nav-item.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  width: 0.5em;
  height: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 20rem;
  padding: 0.5rem;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(20, 10, 30, 0.35);
}
.dropdown-menu a {
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  white-space: normal;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* mobile nav toggle */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---- Hero carousel --------------------------------------------- */
.hero-carousel {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(242, 169, 0, 0.10), transparent 55%),
    var(--ink-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: clamp(28rem, 58vw, 42rem);
  align-items: center;
}
.slide-text {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* align left edge with the rest of the page content */
  padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  max-width: calc((100vw - var(--wrap)) / 2 + var(--wrap) * 0.55);
}
.slide-heading {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.96;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin: 0;
}
.slide-body {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.68;
  margin: 0;
  max-width: 48ch;
}
.slide-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid var(--line-soft);
}
.slide-visual svg {
  width: clamp(8rem, 18vw, 14rem);
  height: auto;
}
.slide-visual--banner { padding: clamp(1.5rem, 3vw, 2.5rem); }
.carousel-controls {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dot.is-active {
  width: 1.6rem;
  background: var(--gold);
}
.carousel-dot:hover:not(.is-active) { background: rgba(255, 255, 255, 0.6); }

/* ---- Video embed (campaign video slide) ------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 9 / 16;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- "Right for Virginia's Tenth" banner ------------------------ */
.right-banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 24rem;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
a.right-banner:hover { transform: translateY(-3px); }
.right-banner__row {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  padding: 1rem 1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.15;
}
.right-banner__row--red { background: #C41E3A; }
.right-banner__row--green { background: #14532D; }
.right-banner__row--purple { background: var(--ink); }
.right-banner--static { max-width: 30rem; margin: 0 0 1.75rem; }

/* ---- Pillars ---------------------------------------------------- */
.pillars { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.pillar { position: relative; padding-top: 2.6rem; }
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
}
.pillar-num {
  position: absolute;
  top: 0.55rem; right: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--line);
}
.pillar-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}
.pillar-body { margin: 0; color: var(--slate); }
a.pillar-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.pillar-link * { text-decoration: none; }
a.pillar-link:hover { transform: translateY(-2px); }
a.pillar-link:hover .pillar-title { color: var(--gold-dim); }

/* ---- Intro / generic prose ------------------------------------- */
.intro-inner { padding-block: clamp(3rem, 7vw, 5rem); max-width: 44rem; }

.page-head { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head .eyebrow { color: var(--gold); }
.page-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
}
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.prose { max-width: 44rem; }
.prose h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 2.25rem 0 0.6rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-2);
  color: var(--slate);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.post-list { list-style: none; padding: 0; }

/* issue hub list */
.post-list li { margin-bottom: 0.6rem; font-size: 1.0625rem; }
.post-list a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.1rem;
}
.post-list a:hover { color: var(--gold-dim); border-color: var(--gold); }

/* issue comparison tables (e.g. Abortion page) */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 0.875rem;
}
.prose td { background: var(--paper-2); }

/* "Right for Virginia" static banner wrapper used inline in prose */
.prose .right-banner--static { margin-top: 0; }

/* ---- Congressional District 10 section (homepage) --------------- */
.district-check { background: var(--paper-2); border-top: 1px solid var(--line); }
.district-check-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
  min-height: 18rem;
}
.district-check__media {
  display: grid;
  place-items: center;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.district-check__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.14;
}
.district-check__panel {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.district-check__panel h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: #fff;
}
.district-check__panel p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.district-check__panel a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.district-check__panel a:hover { color: #fff; }

/* ---- Footer ----------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.footer-brand .brand-text { color: #fff; font-size: 1.6rem; }
.footer-tag { margin: 0.5rem 0 0; max-width: 36ch; color: rgba(255, 255, 255, 0.6); }
.footer-heading {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.disclaimer { margin: 0; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.copyright { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.9375rem; }

/* ---- Contact form ------------------------------------------------ */
.contact-intro {
  font-size: 1.125rem;
  color: var(--slate);
  margin: 0 0 2rem;
  max-width: 50ch;
}

.contact-form {
  max-width: 40rem;
  display: grid;
  gap: 1.25rem;
}

.contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-field--full { grid-column: 1 / -1; }

.contact-field label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.contact-field--required label span[aria-hidden] {
  color: var(--gold-dim);
  margin-left: 0.15em;
}

.contact-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
  font-size: 0.8125rem;
  color: var(--slate);
}

.contact-field input,
.contact-field textarea {
  font-family: var(--body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid rgba(40, 16, 60, 0.22);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.18);
}

.marketing-prefs {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.marketing-prefs h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 1.375rem;
  margin: 0 0 0.9rem;
  color: var(--ink);
}
.mp-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
}
.mp-checkbox-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.mp-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.55;
  max-width: 55ch;
}

.contact-submit { justify-self: start; margin-top: 0.25rem; }

.contact-note {
  max-width: 40rem;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  color: var(--ink);
}

/* ---- Get Involved — embedded Google Form ------------------------ */
.form-embed {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 70rem;
  max-height: 80vh;
  border: 0;
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 820px) {
  .carousel-slide { grid-template-columns: 1fr; }
  .slide-visual { display: none; }
  .slide-text { max-width: 100%; padding-left: var(--pad); padding-right: var(--pad); }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .district-check-inner { grid-template-columns: 1fr; }
  .district-check__media { display: none; }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.6rem;
    height: 1.1rem;
    cursor: pointer;
  }
  .nav-toggle-label span {
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--line-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 0.85rem var(--pad); border-radius: 0; }
  .nav-toggle:checked ~ .site-nav { max-height: 40rem; overflow-y: auto; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-item.has-dropdown > a::after { display: none; }
  .dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0;
    margin: 0;
  }
}

/* ---- Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
