/* ==========================================================================
   The Latino Youth Collective — shared styles
   Design tokens pulled from the brand mark (collective_logo_header.svg)
   ========================================================================== */

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

:root {
  /* brand blues, lifted directly from the logo gradient bars */
  --blue-100: #98daf8;
  --blue-200: #00c2f3;
  --blue-300: #00aeef;
  --blue-400: #1b96d4;

  /* ink + neutrals */
  --ink: #17181a;
  --gray-700: #676767;
  --gray-500: #8b8b8b;
  --gray-300: #c9c9c9;
  --bg-tint: #eeeeee;
  --white: #ffffff;

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --page-max: 1180px;
  --page-pad: 40px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-tint);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ---- eyebrow / label style used throughout ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-700);
}

/* ---- headline utility ---- */
.h-display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-accent {
  background: var(--blue-300);
  color: var(--white);
}
.btn-accent:hover { background: var(--blue-400); }

/* ==========================================================================
   Header / primary nav
   ========================================================================== */

.site-header {
  background: var(--white);
  border-radius: 18px;
  margin: 24px var(--page-pad);
  padding: 22px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.primary-nav a:hover { background: var(--bg-tint); }

.primary-nav a[aria-current="page"] {
  background: var(--bg-tint);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .site-header { margin: 14px var(--page-pad); padding: 16px 20px; border-radius: 14px; }
  .brand img { height: 32px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 14px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 64px var(--page-pad) 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 44px; }

.footer-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--gray-700);
}
.footer-brand .wordmark strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-nav a:hover { color: var(--blue-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  color: var(--gray-500);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; gap: 32px; }
}

/* ==========================================================================
   Shared page utilities
   ========================================================================== */

main { display: block; }

.section {
  padding: 72px var(--page-pad);
}
.section-tight { padding: 48px var(--page-pad); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.section-head .h-display { font-size: clamp(32px, 4vw, 44px); }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

.body-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 46ch;
}
.body-copy + .body-copy { margin-top: 16px; }
.body-copy strong { color: var(--ink); }

/* ---- hero (2-col: photo/media + info card) ---- */
.hero {
  padding: 0 var(--page-pad);
  margin-top: 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.hero-media {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  min-height: 340px;
}
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-card img.hero-logo { width: 96px; height: auto; }
.hero-card .eyebrow { margin-top: 4px; }
.hero-card .h-display {
  font-size: clamp(28px, 4vw, 38px);
  text-transform: none;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; }
}

/* ---- stats bar ---- */
.stats-bar {
  padding: 44px var(--page-pad) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 14px;
  overflow: hidden;
}
.stat {
  background: var(--bg-tint);
  padding: 26px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.stat:last-child { border-right: none; }
.stat .stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.stat .stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
}
@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---- three-photo row with caption overlay ---- */
.photo-caption-lead {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 24px;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tile .tile-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
@media (max-width: 700px) {
  .photo-row { grid-template-columns: 1fr; }
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--bg-tint);
  border-radius: 18px;
  margin: 0 var(--page-pad) 40px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band .eyebrow { display: block; margin-bottom: 10px; }
.cta-band .h-display {
  font-size: clamp(24px, 3vw, 32px);
  text-transform: none;
  color: var(--gray-700);
  max-width: 22ch;
}
@media (max-width: 700px) {
  .cta-band { margin: 0 16px 32px; padding: 36px 28px; }
}

/* ---- cards grid (services / allies) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
}
.card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--gray-500);
}
.card .card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 18px;
}
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card ul li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-700);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.card ul li:last-child { border-bottom: none; }

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

/* ---- ally cards (home) ---- */
.ally-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.ally-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.ally-card .ally-body h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 6px;
}
.ally-card .ally-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
  margin: 0 0 14px;
}
.ally-stack { display: flex; flex-direction: column; gap: 14px; }

/* ---- numbered curriculum list (athena) ---- */
.numbered-list {
  display: flex;
  flex-direction: column;
}
.numbered-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.numbered-item:first-child { padding-top: 0; }
.numbered-item .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--gray-300);
}
.numbered-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.numbered-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
}
.numbered-item p strong { color: var(--ink); }

/* ---- apply block (athena) ---- */
.apply-block .eyebrow { display: block; margin-bottom: 14px; }
.apply-block .h-display { font-size: clamp(30px, 4vw, 42px); margin-bottom: 24px; }

/* ---- supporters note + logos (image sourced from uploaded screenshot) ---- */
.supporters-note {
  margin: 20px var(--page-pad) 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.supporters-image {
  margin: 0 var(--page-pad) 40px;
  border-radius: 18px;
  overflow: hidden;
}
.supporters-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- testimonials: photo w/ text overlay + quote-only cards ---- */
.testimonial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.testimonial-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 460px;
  background: #111;
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}
.testimonial-photo .t-overlay {
  position: absolute;
  left: 28px;
  top: 28px;
  right: 28px;
  z-index: 1;
  color: var(--white);
}
.testimonial-photo .t-overlay .eyebrow {
  color: var(--white);
  opacity: 0.9;
}
.testimonial-photo .t-overlay h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: none;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.quote-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.quote-card .t-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
}
.quote-card h4 {
  margin: 14px 0 0;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 700;
  line-height: 1.3;
}
.quote-card p {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .testimonial-layout { grid-template-columns: 1fr; }
  .testimonial-photo, .quote-card { min-height: 320px; }
}

/* ---- allies + programs two column (home) ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.mini-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 10px;
}

.award-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.award-list li {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ---- contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.contact-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-media { min-height: 260px; }
}

.form-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}
.form-note.success { color: var(--blue-400); font-weight: 600; }

.gform-embed {
  border-radius: 10px;
  overflow: hidden;
}
.gform-embed iframe {
  width: 100%;
  border: none;
  display: block;
}
