/* ==========================================================================
   Andy Bowline for NC Senate 31
   "Sunset Rebellion" Color Palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Sunset Rebellion Palette */
  --orange: #FF8A65;
  --orange-bright: #FF6D3F;
  --magenta: #E91E63;
  --magenta-dark: #C2185B;
  --purple: #4A148C;
  --purple-deep: #311B92;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE4;

  /* Neutrals */
  --charcoal: #2D2D2D;
  --slate: #1F2933;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-accent: 'Permanent Marker', cursive;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--magenta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--magenta-dark);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3rem, 10vw, 7rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

p {
  margin: 0 0 var(--space-sm);
}

.accent-text {
  font-family: var(--font-accent);
  text-transform: none;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-xxl) 0;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  transform: rotate(-1deg);
}

.btn-primary:hover {
  background: var(--magenta-dark);
  color: var(--white);
  transform: rotate(0deg) scale(1.02);
}

.btn-secondary {
  background: var(--orange);
  color: var(--charcoal);
  transform: rotate(1deg);
}

.btn-secondary:hover {
  background: var(--orange-bright);
  color: var(--charcoal);
  transform: rotate(0deg) scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
}

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

/* --------------------------------------------------------------------------
   Scrolling Banner
   -------------------------------------------------------------------------- */
.banner {
  background: var(--purple-deep);
  overflow: hidden;
  border-bottom: 4px solid var(--magenta);
}

.marquee {
  overflow: hidden;
}

.marquee__inner {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 0;
  padding-left: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  will-change: transform;
  animation: marquee 20s linear infinite;
}

.marquee__inner span {
  color: var(--orange);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__inner {
    animation: none;
    padding-left: 16px;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  height: 100vh;
  max-height: 100vh;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 50%, var(--magenta-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: var(--orange);
  opacity: 0.1;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero__nc-outline {
  position: absolute;
  bottom: 5%;
  right: 0;
  width: clamp(300px, 55vw, 700px);
  height: auto;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  /* Filter to convert black SVG to orange (#FF8A65) */
  filter: invert(62%) sepia(56%) saturate(1000%) hue-rotate(326deg) brightness(101%) contrast(101%);
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  padding-top: var(--space-xl);
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--orange);
  margin-bottom: var(--space-sm);
  transform: rotate(-2deg);
}

.hero h1 {
  margin-bottom: var(--space-xs);
  text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.hero__hook {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--orange);
}

.hero__description {
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  opacity: 0.95;
}

.hero__description:last-of-type {
  margin-bottom: var(--space-md);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--space-lg);
    padding-top: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__description {
    font-size: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.problem {
  background: var(--cream);
  position: relative;
}

.problem__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.problem__intro h2 {
  color: var(--purple);
}

.problem__stat {
  display: inline-block;
  background: var(--orange);
  color: var(--charcoal);
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  transform: rotate(-1deg);
}

.problem__budget {
  background: var(--white);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-left: 6px solid var(--magenta);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.08);
}

.problem__budget h3 {
  color: var(--purple);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-md);
}

.budget-kicker {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--magenta);
  margin-bottom: 0;
}

.issues-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.issue-card {
  background: var(--white);
  padding: var(--space-md);
  border-left: 6px solid var(--magenta);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(0,0,0,0.1);
}

.issue-card:nth-child(2) { border-color: var(--orange); }
.issue-card:nth-child(3) { border-color: var(--purple); }
.issue-card:nth-child(4) { border-color: var(--magenta-dark); }

.issue-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.issue-card h3 {
  color: var(--purple);
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Why Run Section
   -------------------------------------------------------------------------- */
.why-run {
  background: var(--purple);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-run::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: var(--magenta);
  opacity: 0.15;
  transform: rotate(10deg);
  pointer-events: none;
}

.why-run .container {
  position: relative;
  z-index: 1;
}

.why-run h2 {
  color: var(--orange);
}

.why-run__content {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .why-run__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.why-run__column h3 {
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.why-run__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-run__list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-md);
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.why-run__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 0;
}

.callout {
  background: rgba(255,255,255,0.1);
  padding: var(--space-md);
  margin-top: var(--space-md);
  border-left: 4px solid var(--orange);
}

.callout p {
  font-size: 1.125rem;
  font-style: italic;
  margin: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  background: var(--cream-dark);
}

.about__grid {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
  }
}

.about__photo {
  display: flex;
  justify-content: center;
}

.photo-placeholder {
  width: 250px;
  height: 300px;
  background: var(--white);
  border: 4px solid var(--charcoal);
  box-shadow: 8px 8px 0 var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  transform: rotate(-2deg);
  transition: transform var(--transition-fast);
}

.photo-placeholder:hover {
  transform: rotate(0deg);
}

.photo-placeholder__icon {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  opacity: 0.3;
}

.photo-placeholder__text {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--purple);
  line-height: 1.3;
}

.about__content {
  max-width: 800px;
}

.about h2 {
  color: var(--purple);
}

.about h2 .accent-text {
  color: var(--magenta);
}

.about__stands {
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(0,0,0,0.06) 27px,
      rgba(0,0,0,0.06) 28px
    ),
    linear-gradient(to right, #fce4ec 60px, var(--white) 60px);
  padding: var(--space-lg);
  padding-left: 80px;
  margin-top: var(--space-xl);
  border: none;
  box-shadow:
    4px 4px 0 rgba(0,0,0,0.1),
    8px 8px 20px rgba(0,0,0,0.1);
  transform: rotate(-1.5deg);
  position: relative;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* Red margin line */
.about__stands::before {
  content: '';
  position: absolute;
  left: 58px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--magenta);
  opacity: 0.5;
}

/* Hole punches */
.about__stands::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 200px;
  background-image:
    radial-gradient(circle, var(--cream-dark) 8px, transparent 8px),
    radial-gradient(circle, var(--cream-dark) 8px, transparent 8px),
    radial-gradient(circle, var(--cream-dark) 8px, transparent 8px);
  background-size: 20px 60px;
  background-position: center;
  background-repeat: no-repeat;
}

.about__stands h3 {
  font-family: var(--font-accent);
  color: var(--purple);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-md);
  text-transform: none;
  transform: rotate(1deg);
}

.about__stands p {
  max-width: 800px;
  line-height: 1.75;
}

.stands-kicker {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 0;
  margin-top: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--orange);
  display: inline-block;
  transform: rotate(1deg);
}

/* --------------------------------------------------------------------------
   Get Involved Section
   -------------------------------------------------------------------------- */
.involved {
  background: linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 100%);
  color: var(--white);
}

.involved h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.involved-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .involved-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.involved-card {
  background: rgba(255,255,255,0.1);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.involved-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.involved-card h3 {
  color: var(--orange);
  margin-bottom: var(--space-sm);
}

.involved-card p {
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.involved-card .btn {
  width: 100%;
}

.involved-contact {
  margin-top: var(--space-xl);
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.3);
}

.involved-contact p {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--orange);
  text-decoration: none;
  display: inline-block;
  transform: rotate(-1deg);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-email:hover {
  color: var(--cream);
  transform: rotate(0deg) scale(1.02);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--slate);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__content {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.footer__main {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__main {
    text-align: left;
  }
}

.footer__tagline {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: var(--space-xs);
}

.footer__description {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer__contact {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__contact {
    text-align: right;
  }
}

.footer__contact p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: var(--space-xs);
}

.footer__contact a {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer__contact a:hover {
  color: var(--cream);
}

.footer__bottom {
  text-align: center;
}

.footer__disclaimer {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: var(--space-xs);
}

.footer__copyright {
  font-size: 0.75rem;
  opacity: 0.5;
  margin: 0;
}

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

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-magenta { color: var(--magenta); }
.text-purple { color: var(--purple); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Focus States (Accessibility)
   -------------------------------------------------------------------------- */
:focus {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
