/*
Theme Name: EnglishNY Grant Site
Author: Codex
Description: Compact nonprofit landing site for COPE ESL / EnglishNY.org.
Version: 1.0.0
*/

:root {
  --navy: #08245a;
  --blue: #0f5fb8;
  --red: #d7192a;
  --ink: #122033;
  --muted: #5a6678;
  --line: #dce4ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(8, 36, 90, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--white);
}

a {
  color: var(--blue);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  text-decoration: none;
  color: var(--navy);
  min-width: 185px;
}

.brand-mark {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--red);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
}

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

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(215, 25, 42, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(244,248,253,0.98) 52%, rgba(223,235,249,0.92) 100%);
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 38px;
}

.hero-content {
  max-width: 650px;
  padding: 72px 0;
}

.eyebrow {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.12;
}

h1 {
  max-width: 620px;
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 72px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 40px);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #1f2b3d;
  font-size: 20px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  display: grid;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  height: 430px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: 42px;
  width: min(300px, calc(100% - 44px));
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 36, 90, 0.94);
  box-shadow: 0 14px 30px rgba(8, 36, 90, 0.22);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge span {
  margin-top: 5px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--red);
}

.trust-band {
  background: var(--navy);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 28px 0;
}

.trust-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  font-size: 24px;
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.trust-item p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}

.section {
  padding: 62px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.program-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(8, 36, 90, 0.06);
}

.program-card {
  padding: 22px;
}

.program-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
}

.program-card p,
.location-card p,
.story p,
.faq p {
  color: var(--muted);
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: start;
}

.location-grid {
  grid-template-columns: repeat(2, 1fr);
}

.location-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px;
}

.location-card img {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
}

.mini-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.mini-list li {
  margin: 6px 0;
}

.form-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.form-card label {
  display: block;
  margin: 0 0 12px;
}

.form-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cad5e4;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.schedule .card,
.faq .card {
  padding: 20px;
}

.stories {
  grid-template-columns: repeat(3, 1fr);
}

.story {
  padding: 22px;
}

.quote {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.photo-grid,
.language-grid {
  display: grid;
  gap: 18px;
}

.photo-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.photo-grid figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.photo-grid figure:first-child {
  grid-row: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(8, 36, 90, 0.86);
  font-weight: 800;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
}

.video-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.video-stack {
  display: grid;
  gap: 16px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.language-grid {
  grid-template-columns: repeat(4, 1fr);
}

.language-card {
  display: block;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.language-card strong {
  display: block;
  color: var(--navy);
}

.language-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.disclosure {
  border-left: 5px solid var(--red);
  padding: 22px;
  background: #fff8f9;
}

.page-hero {
  padding: 62px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-content {
  max-width: 880px;
  padding: 54px 0;
}

.site-footer {
  background: #061b44;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.site-footer a {
  color: var(--white);
}

.footer-title {
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 800;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 8px 0;
}

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.74);
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .trust-grid,
  .program-grid,
  .main-layout,
  .schedule,
  .stories,
  .faq-grid,
  .photo-grid,
  .language-grid,
  .video-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .hero-visual {
    align-self: auto;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .hero-visual img {
    height: 280px;
  }

  .hero-badge {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-card img {
    width: 100%;
    height: 180px;
  }
}
