/* ============================================
   PURPLE AMERICA PAC - Main Stylesheet
   ============================================ */

/* CSS Variables for consistent theming */
:root {
  /* Primary Colors */
  --purple-deep: #4A1259;
  --purple-mid: #6B2D7B;
  --purple-light: #8E4B9E;
  --purple-pale: #E8D5ED;
  
  /* Accent Colors */
  --red-accent: #B8293D;
  --blue-accent: #1E3A5F;
  
  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAF8F5;
  --cream: #F5F0E8;
  --gray-light: #E5E0DB;
  --gray-mid: #6B6560;
  --gray-dark: #3D3835;
  --black: #1A1817;
  
  /* Footer (High Contrast) */
  --footer-bg: #0D0D0D;
  --footer-text: #FFFFFF;
  --footer-accent: #FFD700;
  
  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --nav-height: 70px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-dark);
  background-color: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: var(--nav-height);
}

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

a {
  color: var(--purple-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--purple-deep);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: var(--space-xl);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: var(--space-lg);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
  color: var(--black);
}

em, i {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--purple-mid);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--gray-mid);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo:hover {
  color: var(--purple-mid);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--red-accent), var(--purple-deep), var(--blue-accent));
  border-radius: 50%;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-mid);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--purple-deep);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--purple-deep);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
}

.nav__link--cta:hover {
  background: var(--purple-mid);
  color: var(--white);
}

.nav__link--cta::after {
  display: none;
}

/* Mobile Navigation */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .nav__links--open {
    transform: translateX(0);
  }
  
  .nav__link {
    font-size: 1.25rem;
  }
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--content-width);
}

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

.section--purple {
  background: var(--purple-deep);
  color: var(--white);
}

.section--purple h1,
.section--purple h2,
.section--purple h3 {
  color: var(--white);
}

.section--purple a {
  color: var(--purple-pale);
}

.section--cream {
  background: var(--cream);
}

/* ============================================
   SPLASH PAGE (index.html)
   ============================================ */

.splash {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    160deg,
    var(--blue-accent) 0%,
    var(--purple-deep) 40%,
    var(--purple-mid) 60%,
    var(--red-accent) 100%
  );
  position: relative;
  overflow: hidden;
}

.splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

.splash__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: var(--space-xl) var(--space-lg);
  color: var(--white);
}

.splash__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.splash__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.splash__subhead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.splash__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-deep);
  background: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.splash__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  color: var(--purple-deep);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  background: var(--purple-deep);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
}

.page-header__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  font-size: 1.25rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CONTENT STYLES
   ============================================ */

.content {
  padding: var(--space-xxl) 0;
}

.content__body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.content__body p {
  margin-bottom: var(--space-lg);
}

.content__body p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph */
.lead {
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--gray-mid);
  margin-bottom: var(--space-xl);
}

/* ============================================
   FAQ STYLES
   ============================================ */

.faq-list {
  max-width: var(--content-width);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: var(--space-lg) 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.faq-item__answer {
  color: var(--gray-dark);
}

.faq-item__answer p {
  margin-bottom: var(--space-md);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* ============================================
   ARTICLES OF IMPEACHMENT
   ============================================ */

.articles {
  max-width: var(--content-width);
  margin: 0 auto;
}

.articles__preamble {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--cream);
  border-left: 4px solid var(--purple-mid);
}

.articles__resolution {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--black);
}

.article {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-light);
}

.article:last-of-type {
  border-bottom: none;
}

.article__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.article__body {
  text-align: justify;
  hyphens: auto;
}

.articles__closing {
  font-family: var(--font-display);
  font-style: italic;
  padding: var(--space-xl);
  background: var(--purple-pale);
  border-radius: 4px;
  margin-top: var(--space-xl);
}

/* ============================================
   ACT NOW PAGE
   ============================================ */

.act-now__intro {
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
}

.act-now__steps {
  max-width: var(--content-width);
  margin: 0 auto;
}

.act-now__highlight {
  background: var(--cream);
  padding: var(--space-xl);
  border-radius: 4px;
  margin: var(--space-xl) 0;
  border-left: 4px solid var(--purple-mid);
}

.act-now__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.act-now__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-lg);
  background: var(--purple-deep);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.act-now__link:hover {
  background: var(--purple-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.footer__disclaimer {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--footer-text);
  padding: var(--space-md);
  border: 2px solid var(--footer-accent);
  border-radius: 4px;
  display: inline-block;
}

.footer__disclaimer a {
  color: var(--footer-accent);
  text-decoration: underline;
}

.footer__disclaimer a:hover {
  color: var(--white);
}

.footer__nav {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--white);
}

.footer__copyright {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.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;
}

.text-center {
  text-align: center;
}

.text-purple {
  color: var(--purple-deep);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }
  
  body {
    font-size: 1rem;
  }
  
  .splash__content {
    padding: var(--space-lg);
  }
  
  .act-now__links {
    flex-direction: column;
  }
  
  .act-now__link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav__container {
    padding: 0 var(--space-md);
  }
  
  .footer__links {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .nav,
  .footer__nav {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .splash {
    background: none;
    color: black;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .splash__headline,
  .splash__tagline,
  .splash__subhead {
    color: black;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .page-header {
    background: none;
    color: black;
    border-bottom: 2px solid black;
  }
  
  .page-header__title {
    color: black;
  }
}
