/* ==========================================================
   Oriella Mejia for Congress — style.css
   Color scheme sampled from Home.jpg
   ========================================================== */

:root {
  --navy-dark: #16375e;      /* header / hero overlay */
  --navy: #1d4266;           /* main section background */
  --navy-panel: #274b70;     /* secondary panel */
  --slate-blue: #3d5a7d;     /* donate band */
  --slate-light: #46618a;
  --action-blue: #2e6fd8;    /* donate button */
  --action-blue-hover: #1f5cc0;
  --cream: #f5f1e8;          /* light text */
  --cream-soft: #e8e2d4;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
}

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

/* ----------------------------------------------------------
   Header / Nav — sits over the hero image
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(320px, 60vw, 640px);
  background-color: var(--navy-dark);
  background-image: linear-gradient(rgba(22, 55, 94, 0.35), rgba(22, 55, 94, 0.55)),
                    url("leesylvania.jpg");
  background-size: 100% auto;   /* fills the full width of the page */
  background-position: center 45%; /* slice centered lower on the photo */
  background-repeat: no-repeat;
}

/* Shorter hero on interior pages */
.hero--short { min-height: clamp(140px, 22vw, 220px); }

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: clamp(0.2rem, 0.5vw, 0.4rem) clamp(1rem, 4vw, 3rem);
}

/* Logo fills the left side of the hero, pulled down and to the right */
.logo-link {
  flex: 0 1 auto;
  margin-top: clamp(2rem, 10vw, 7rem);
  margin-left: clamp(1rem, 5vw, 4rem);
}

.logo {
  width: clamp(158px, 35.2vw, 493px);
  height: auto;
}

/* Fallback wordmark if logo image missing */
.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-decoration: none;
}

/* ----- Nav ----- */
.main-nav {
  background: rgba(245, 241, 232, 0.95);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.4rem, 1.5vw, 1.3rem);
}

.nav-list a {
  text-decoration: none;
  color: var(--navy-dark);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.05vw, 0.85rem);
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover { color: var(--action-blue); }

.nav-list a.nav-donate {
  color: var(--action-blue);
}

.nav-list a.active { text-decoration: underline; }

/* Hamburger button — hidden on wide screens */
.nav-toggle {
  display: none;
  background: rgba(245, 241, 232, 0.95);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */
section { padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4rem); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
}

/* Featured photo — sits beneath the hero */
.featured-photo {
  background: var(--navy);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
}

.featured-photo img {
  width: min(100%, 720px);
  margin: 0 auto;
  border-radius: 6px;
}

/* About — single column of text */
.about {
  background: var(--navy);
}

.about-text {
  max-width: 850px;
  margin: 0 auto;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-text p { margin-bottom: 1rem; font-size: clamp(0.95rem, 1.3vw, 1.1rem); }

/* Donate CTA — sits above the About section */
.donate-cta {
  background: var(--navy);
  text-align: center;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 0;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Donate band */
.donate-band {
  background: var(--slate-blue);
  text-align: center;
}

.donate-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1.25rem;
}

.btn-donate {
  display: inline-block;
  background: var(--action-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  padding: 0.8em 2.6em;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}

.btn-donate:hover { background: var(--action-blue-hover); transform: translateY(-2px); }

/* Blockquote */
.quote-section { background: var(--navy-dark); text-align: center; }

.quote-section blockquote {
  max-width: 850px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
}

.quote-section blockquote footer {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--cream-soft);
  background: none;
  padding: 0;
}

/* Unions / feature split */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--navy);
}

.feature-split img { border-radius: 6px; width: 100%; }

.feature-split h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4.2rem);
  text-align: center;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* Issues cards */
.issues-cards { background: var(--navy-panel); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1100px;
  margin: 0 auto;
}

.issue-card {
  display: block;
  text-decoration: none;
  color: var(--navy-dark);
  background: var(--cream);
  border-radius: 10px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.issue-card:hover { transform: translateY(-5px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }

.issue-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.issue-card p { font-size: clamp(0.9rem, 1.2vw, 1rem); }

.issue-card .card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--action-blue);
}

/* ----------------------------------------------------------
   Issues page
   ---------------------------------------------------------- */
.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.platform + .platform { border-top: 1px solid rgba(245, 241, 232, 0.25); }

.platform:nth-of-type(even) { background: var(--navy-panel); }

.platform h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.platform p { margin-bottom: 1rem; font-size: clamp(0.95rem, 1.3vw, 1.1rem); }

section.platform-band { padding: 0; }
.platform-band:nth-of-type(even) { background: var(--navy-panel); }
.platform-band .platform { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem); }

/* ----------------------------------------------------------
   Volunteer page
   ---------------------------------------------------------- */
.volunteer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.volunteer-form {
  background: var(--cream);
  color: var(--navy-dark);
  width: min(92vw, 520px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.volunteer-form h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9b2a1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--action-blue);
  border-color: var(--action-blue);
}

fieldset.form-group { border: 1px solid #b9b2a1; border-radius: 8px; padding: 0.8rem; }
fieldset.form-group legend { font-weight: 600; padding: 0 0.4rem; font-size: 0.95rem; }
fieldset.form-group label { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
fieldset.form-group input { width: auto; }

.btn-submit {
  width: 100%;
  background: var(--action-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--action-blue-hover); }

.form-status { text-align: center; margin-top: 1rem; font-weight: 600; color: #1c7a3d; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-address {
  justify-self: start;
  align-self: start;
  font-style: normal;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: var(--cream-soft);
}

.footer-address strong { display: block; color: var(--cream); margin-bottom: 0.25rem; }

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: var(--cream-soft);
  border: 1px solid rgba(245, 241, 232, 0.4);
  padding: 0.5rem 1.25rem;
}

.footer-social {
  justify-self: end;
  align-self: start;
  text-align: right;
}

.footer-social strong { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }

.social-icons { display: flex; gap: 0.75rem; justify-content: flex-end; }

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}

.social-icons a:hover { background: var(--action-blue); color: #fff; transform: translateY(-2px); }

.social-icons svg { width: 20px; height: 20px; fill: currentColor; }

/* ----------------------------------------------------------
   Responsive: collapse nav into dropdown
   ---------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: clamp(1rem, 4vw, 3rem);
    z-index: 50;
    min-width: 220px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .site-header { position: relative; }

  .main-nav.open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }

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

  .nav-list li + li { border-top: 1px solid rgba(22, 55, 94, 0.15); }
}

/* ----------------------------------------------------------
   Responsive: mobile stacking
   ---------------------------------------------------------- */
@media (max-width: 700px) {
  /* Nav stacks beneath the logo */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .logo { width: clamp(180px, 60vw, 320px); }

  .logo-link { margin-top: 0.5rem; margin-left: 0; }

  /* On narrow screens the portrait photo fills the hero again */
  .hero {
    background-size: cover;
    background-position: center 25%;
  }

  .main-nav {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  /* All content sections stack vertically */
  .feature-split,
  .platform {
    grid-template-columns: 1fr;
  }

  /* Donate CTA buttons stack vertically */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn-donate {
    width: 100%;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .feature-split h2 { order: -1; }

  /* Footer stacks vertically, centered */
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-address { justify-self: center; text-align: center; }
  .footer-social { justify-self: center; text-align: center; }
  .social-icons { justify-content: center; }
}
