/* ============================================================
   RAINBOW TOP BAR
============================================================ */
.rainbow-bar {
  height: 5px;
  background: linear-gradient(90deg,
    var(--purple)     0%,
    var(--red)        12.5%,
    var(--orange)     25%,
    var(--yellow)     37.5%,
    var(--green)      50%,
    var(--blue)       62.5%,
    var(--crimson)    75%,
    var(--gray)       87.5%,
    var(--tan)        100%
  );
}

/* ============================================================
   HEADER & NAV
============================================================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid #D9E4F5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-text {
  white-space: nowrap;
}

.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-heading);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: #EBF1FB;
  text-decoration: none;
}

.nav-link:hover .nav-en,
.nav-link.active .nav-en {
  color: var(--blue);
}

/* EN label — top, primary */
.nav-en {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* ES label — bottom, secondary */
.nav-es {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.3;
}

/* Get Help nav link — slightly highlighted */
.nav-link--help .nav-en {
  color: var(--red);
}
.nav-link--help:hover,
.nav-link--help.active {
  background: #FBE9E7;
}
.nav-link--help:hover .nav-en,
.nav-link--help.active .nav-en {
  color: var(--red);
}

/* Mobile hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   HERO (Homepage)
============================================================ */
.hero {
  background: linear-gradient(140deg, #EBF1FB 0%, #EEF6EE 55%, #FDF5EE 100%);
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--brown);
  max-width: 820px;
  margin: 0 auto 0.4rem;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0.5rem auto 0;
  font-style: italic;
  line-height: 1.5;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.75rem auto;
}

.hero-divider span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE BANNER (Inner pages — replaces full hero)
============================================================ */
.page-banner {
  background: linear-gradient(140deg, #EBF1FB 0%, #EEF6EE 55%, #FDF5EE 100%);
  padding: 2.75rem 0 2.25rem;
  text-align: center;
  border-bottom: 3px solid var(--color-divider);
}

.page-banner h1 {
  color: var(--brown);
  font-size: 2rem;
}

.page-banner .page-banner-sub {
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* Get Help page — urgent red accent */
.page-banner--help {
  background: linear-gradient(140deg, #FBE9E7 0%, #FFF3F0 60%, #FDF5EE 100%);
  border-bottom-color: var(--red);
}

.page-banner--help h1 { color: var(--red); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
  border: none;
  letter-spacing: 0.02em;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  text-decoration: none;
}

.btn--help         { background: var(--red);    color: #fff; }
.btn--help:hover   { background: #8C2025; color: #fff; }

.btn--donate       { background: var(--crimson); color: #fff; }
.btn--donate:hover { background: #9C1840; color: #fff; }

.btn--volunteer {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--volunteer:hover {
  background: var(--green);
  color: #fff;
}

.btn--primary       { background: var(--blue);  color: #fff; }
.btn--primary:hover { background: #0046A0; color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================================
   SECTION HEADINGS
============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-heading h2 { color: var(--brown); }

.section-heading .sub {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

.accent-bar {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  margin: 0.9rem auto 0;
}

/* ============================================================
   SERVICE CARDS (Homepage preview + Services page)
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  border-top: 5px solid var(--blue);
  padding: 1.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card:nth-child(2) { border-top-color: var(--red); }
.card:nth-child(3) { border-top-color: var(--green); }
.card:nth-child(4) { border-top-color: var(--purple); }
.card:nth-child(5) { border-top-color: var(--orange); }

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-title {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-divider);
}

.card-title .en {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  display: block;
}

.card-title .es {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-muted);
  font-style: italic;
  display: block;
  margin-top: 0.1rem;
}

.card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.card-body .lang-en-text,
.card-body .lang-es-text {
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
}

.card-body .lang-en-text {
  background: #EBF1FB;
  color: var(--color-text);
  border-left: 3px solid var(--blue);
}

.card-body .lang-es-text {
  background: #EEF6EE;
  color: var(--color-text);
  border-left: 3px solid var(--green);
}

/* Services page — full service blocks */
.service-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.service-block-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.service-block-title .en {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
  display: block;
}

.service-block-title .es {
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
  display: block;
  margin-top: 0.1rem;
}

/* ============================================================
   GET HELP PAGE — special elements
============================================================ */
.contact-card {
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card .phone-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  display: block;
  margin: 0.5rem 0;
}

.contact-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.crisis-box {
  background: #FFF8E1;
  border: 2px solid var(--yellow);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 1.5rem;
}

.crisis-box h3 {
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-item {
  padding: 1.25rem;
  background: var(--color-bg-section);
  border-radius: 8px;
  border-left: 4px solid var(--blue);
}

.info-item h4 {
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-item p {
  font-size: 0.92rem;
  color: var(--color-text);
}

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail-text {
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-detail-text strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
  color: var(--color-muted);
}

.form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 2rem;
}

.form-card h3 {
  color: var(--brown);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-divider);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-divider);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,86,184,0.12);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   BOARD & LEADERSHIP CARDS
============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.board-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 2px solid var(--color-divider);
  padding: 1.5rem;
  /* Gradient border accent — matches the mockup style */
  border-image: none;
  position: relative;
}

/* Colored left accent per card */
.board-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: var(--purple);
}
.board-card:nth-child(2)::before { background: var(--blue); }
.board-card:nth-child(3)::before { background: var(--green); }
.board-card:nth-child(4)::before { background: var(--orange); }
.board-card:nth-child(5)::before { background: var(--red); }

/* Header row: circle photo + name/title side by side */
.board-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-divider);
}

/* Circle photo */
.board-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--purple);
  background: linear-gradient(135deg, #EBF1FB, #EEF6EE);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-card:nth-child(2) .board-photo { border-color: var(--blue); }
.board-card:nth-child(3) .board-photo { border-color: var(--green); }
.board-card:nth-child(4) .board-photo { border-color: var(--orange); }
.board-card:nth-child(5) .board-photo { border-color: var(--red); }

.board-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 0 !important;
  max-width: none !important;
}

.board-card-header .board-photo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.board-photo--placeholder .board-photo-initials {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-divider);
}

/* Name and role text */
.board-header-text {
  flex: 1;
  min-width: 0;
}

.board-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.board-role {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.role-divider {
  margin: 0 0.3rem;
  color: var(--color-divider);
}

/* Bio — stacked EN/ES blocks */
.board-bio {
  display: grid;
  gap: 0.5rem;
}

.board-bio .lang-en-text,
.board-bio .lang-es-text {
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
}

.board-bio .lang-en-text {
  background: #EBF1FB;
  border-left: 3px solid var(--blue);
}

.board-bio .lang-es-text {
  background: #EEF6EE;
  border-left: 3px solid var(--green);
}

@media (max-width: 768px) {
  .board-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE — mission block
============================================================ */
.mission-block {
  background: linear-gradient(135deg, #EBF1FB 0%, #EEF6EE 100%);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 5px solid var(--blue);
}

.mission-block.vision {
  border-left-color: var(--green);
  background: linear-gradient(135deg, #EEF6EE 0%, #F7F4FF 100%);
}

.values-list {
  padding-left: 0;
}

.values-list li {
  padding: 0.6rem 0;
  padding-left: 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--color-divider);
  line-height: 1.5;
}

.values-list li:last-child { border-bottom: none; }

.values-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.75rem;
  top: 0.75rem;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #1A2332;
  color: #C8D4E3;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 56px;
  margin-bottom: 0.85rem;
  mix-blend-mode: screen;
  filter: brightness(1.8);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #8A9EBA;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tan);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.footer-col ul li { margin-bottom: 0.45rem; }

.footer-col ul li a {
  color: #8A9EBA;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-emergency {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #2E3D54;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #5A6E88;
  text-align: center;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-divider);
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    z-index: 200;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .nav-link {
    text-align: left;
    padding: 0.5rem 0.75rem;
  }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Contact layout */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Info grid */
  .info-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Hero */
  .hero { padding: 2rem 0 2.5rem; }

  /* Contact card phone */
  .contact-card .phone-number { font-size: 1.5rem; }

  /* Logo — shrink image and text so they don't crowd the hamburger */
  .site-logo img { width: 56px; height: 56px; }
  .logo-text { white-space: normal; }
  .logo-text strong { font-size: 0.95rem; }
  .logo-text span { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
}
