/* ===================== styles.css ===================== */
/* Design aligned to:
   Chicago Latina Trailblazers – Testimonios of Political Activism
   Visual cues: warm adobe red, maize gold, deep teal accents,
   academic serif headings + clean body text
*/

:root {
  /* Extracted / inferred from book cover */
  --primary: #c9472d;      /* adobe / terracotta red */
  --secondary: #ffc105;    /* maize gold (title text) */
  --accent: #8dc5d3;       /* deep teal / aquatic tones */
  --light: #f9f4ee;        /* warm parchment */
  --dark: #2a2a2a;
  --black: #000000;
}

/* Base reset */
* {
  box-sizing: border-box;
}

/* Body text: clean, institutional */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: #ffffff;
  line-height: 1.75;
}

/* Headings: academic / book-title inspired */
h1, h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.03em;
}

h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(30, 149, 204, 0.75), rgba(221, 70, 0, 0.75)),
    url('hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  padding: 2.5rem;
  color: #ffffff;
}

.hero p {
  text-shadow: var(--black) 1px 1px 1px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--secondary);
  text-shadow: var(--black) 1px 1px 1px;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.2rem;
}

/* Primary CTA */
.btn-primary {
  background: var(--secondary);
  color: #000;
  padding: 0.95rem 2.2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* Sections */
.section {
  padding: 5.5rem 8%;
}

.section.alt {
  background: var(--light);
}

/* Layout */
.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
  align-items: center;
}

.content.single {
  grid-template-columns: 1fr;
}

.text {
  max-width: 620px;
}

/* Image placeholders – echo mural art colors */
.image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--primary),
    var(--secondary)
  );
  border-radius: 14px;
  opacity: 0.95;
}

/* Impact list */
.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  position: relative;
}

.impact-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 2.2rem 1rem;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 1.3s ease-out forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Funding Budget Visualization
=========================== */

.funding-summary {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2f2f2f;
}

.budget-chart {
  max-width: 800px;
  margin: 0 auto;
}

.budget-row {
  display: grid;
  grid-template-columns: 1.5fr 4fr 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.budget-row span {
  font-weight: 500;
}

.bar {
  background: #e7e1dc;
  border-radius: 6px;
  height: 14px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    #c63d2f,
    #e2b23a
  );
  border-radius: 6px;
  transition: width 1.6s ease-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .budget-row {
    grid-template-columns: 1fr;
  }

  .budget-row span:last-child {
    text-align: right;
  }
}


/* =====================
   Navigation
===================== */

.main-nav {
  background: #f9f4ee;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;          /* keep all items on one line */
  padding: 0.75rem 2%;        /* flexible horizontal padding */
  width: 100%;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* responsive font size */
  flex-shrink: 1;              /* allow shrinking */
  white-space: nowrap;         /* prevent wrapping */
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;           /* prevent links from wrapping */
  gap: clamp(0.5rem, 1vw, 2rem); /* responsive gap */
  margin: 0;
  padding: 0;
  flex-grow: 1;                /* take remaining space */
  justify-content: flex-end;   /* push links to the right */
  flex-shrink: 1;              /* allow links to shrink */
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  font-size: clamp(0.85rem, 2vw, 1rem); /* shrink text on small screens */
  white-space: nowrap;         /* prevent link text from breaking */
}

.nav-links a:hover {
  color: var(--light);
  text-shadow: 0 1px 2px var(--black);
}

/* =====================
   Gradient Navigation Buttons
===================== */

.nav-mission {
  background: linear-gradient(90deg, var(--primary), #b53f29);
}

.nav-program {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-schools {
  background: linear-gradient(90deg, var(--accent), var(--accent));
}

.nav-board {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.nav-cta {
  background: linear-gradient(90deg, var(--secondary), #ffd54f);
}

.nav-video {
  background: linear-gradient(90deg, #ffd54f, #ffffff);
}

/* Shared button styling */
.nav-mission,
.nav-program,
.nav-schools,
.nav-board,
.nav-cta,
.nav-video {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-mission:hover,
.nav-program:hover,
.nav-schools:hover,
.nav-board:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Optional: for very small screens, stack links and CTA */
@media (max-width: 480px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    margin-top: 0.5rem;
  }

.nav-mission,
.nav-program,
.nav-schools,
.nav-board,
.nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    margin-left: 0;    
  }
}


/* =====================
   Schools Table
===================== */

.schools-table {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.schools-table th,
.schools-table td {
  padding: 0.75rem 1rem;
}

.schools-table thead th {
  background-color: var(--primary);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.schools-table tbody tr:nth-child(even) {
  background-color: #f9f4ee; /* light parchment stripe */
}

.schools-table tbody td:first-child {
  text-align: left;
}

.schools-table tbody td:last-child {
  text-align: right;
  font-weight: 500;
}

/* Optional: add subtle hover effect */
.schools-table tbody tr:hover {
  background-color: #eae3d9;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .schools-table th,
  .schools-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* =====================
   BOARD OF DIRECTORS
===================== */

.board-header h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.board-header hr {
  width: 120px;
  border: none;
  border-top: 3px solid var(--primary);
  margin: 0 auto;
}

/* Desktop layout */
.board-member {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* Left column */
.board-left {
  display: flex;
  flex-direction: column;
}

.board-left img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Contact info */
.board-contact {
  font-size: 0.95rem;
  line-height: 1.6;
}

.board-contact strong {
  display: block;
  font-size: 1.05rem;
}

.board-contact span {
  display: block;
}

.board-contact a {
  color: var(--primary);
  text-decoration: none;
}

.board-contact a:hover {
  text-decoration: underline;
}

/* Bio */
.board-bio {
  max-width: 680px;
}

/* =====================
   MOBILE RESTRUCTURE
===================== */

@media (max-width: 900px) {
  .board-member {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Top row: image left, contact right */
  .board-left {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
  }

  .board-left img {
    margin-bottom: 0;
  }

  .board-contact {
    font-size: 0.9rem;
  }

  /* Bio full width below */
  .board-bio {
    max-width: 100%;
  }
}

/* Prevent any accidental overflow */
body {
  overflow-x: hidden;
}

/* Donate */

.donate-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donate-option strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.donate-logo {
  height: 20px;
  width: auto;
}
