@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

/* =====================
   CSS VARIABLES
   ===================== */
:root {
  --navy: #0f1f4b;
  --navy-dark: #0a1530;
  --navy-mid: #162259;
  --red: #c8102e;
  --red-dark: #a00d24;
  --white: #ffffff;
  --off-white: #f4f5f8;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1a1f36;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* =====================
   LAYOUT HELPERS
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section--tinted {
  background: var(--off-white);
}

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  height: 64px;
  width: auto;
}

.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-title-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-title-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-donate {
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--red);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-donate:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

/* =====================
   NAVIGATION
   ===================== */
nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}

.nav-list a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-list a.active {
  color: var(--red);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================
   PAGE HERO
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a2d6e 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 80px
  );
}

.page-hero h1 {
  color: var(--white);
  position: relative;
}

.page-hero .hero-accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* =====================
   FORMS
   ===================== */
.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  max-width: 560px;
  margin: 0 auto;
}

.form-card--wide {
  max-width: 680px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* =====================
   INLINE EMAIL FORM (Homepage)
   ===================== */
.email-signup {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 1.5rem auto 0;
}

.email-signup input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
}

.email-signup input::placeholder {
  color: rgba(255,255,255,0.5);
}

.email-signup input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
}

/* =====================
   SUCCESS / ERROR MESSAGES
   ===================== */
.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* =====================
   RED DIVIDER
   ===================== */
.red-rule {
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.red-rule--center {
  margin: 1rem auto 1.5rem;
}

/* =====================
   FAQ ACCORDION
   ===================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  cursor: pointer;
  gap: 1rem;
}

.faq-question h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 0 1.2rem;
  color: var(--gray);
  line-height: 1.75;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 3px solid var(--red);
}

.footer-logo {
  height: 70px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer-email a {
  color: var(--red);
  font-weight: 600;
}

.footer-email a:hover {
  color: #ff4d68;
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  nav.open {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .nav-list a {
    display: block;
    padding: 0.7rem 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .header-left {
    gap: 0.75rem;
  }

  .site-logo {
    height: 48px;
  }

  .site-title-main {
    font-size: 1.2rem;
  }

  .email-signup {
    flex-direction: column;
  }

  .form-card {
    padding: 1.75rem 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-donate {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
  }
}
