:root {
  --brand: #22213c;
  --brand-dark: #16152a;
  --brand-accent: #f4b322;
  --text: #1f2430;
  --text-light: #4b5162;
  --bg: #f7f7fb;
  --white: #ffffff;
  --border: #e1e4ec;
  --shadow: 0 18px 45px rgba(10, 8, 29, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: relative;
  min-height: 100vh;
  background: url("../images/gallery-3.jpg") center/cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 13, 30, 0.88), rgba(34, 34, 58, 0.55));
  z-index: 0;
}

.nav-bar {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.site-footer .brand-logo {
  width: 100px;
}

.brand-mark {
  font-size: 1.5rem;
}

.brand-name {
  font-size: 1rem;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
  text-align: left;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  flex: 1 1 320px;
}

.hero-portrait {
  flex: 0 0 320px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-portrait img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

.hero-portrait figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
}

.highlight-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.impact-list {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.impact-list p {
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.impact-list ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.impact-list li {
  margin-bottom: 0.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", "Times New Roman", serif;
  color: inherit;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.tertiary {
  background: var(--white);
  color: var(--brand);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-stats strong {
  font-size: 1.8rem;
  color: var(--brand-accent);
}

main {
  background: var(--bg);
  margin-top: -4rem;
  position: relative;
  z-index: 2;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -40px 60px rgba(10, 16, 40, 0.25);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.cards {
  background: var(--white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-grid.single-card {
  grid-template-columns: minmax(260px, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.card {
  background: var(--bg);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  min-height: 260px;
}

.card-eyebrow {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

blockquote {
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
}

.quote-author {
  font-weight: 600;
  color: var(--brand);
}

.text-link {
  color: var(--brand);
  font-weight: 600;
}

.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-panel {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-panel ul {
  padding-left: 1.2rem;
  color: var(--text-light);
}

.info-pill {
  margin-top: 1.5rem;
  background: var(--brand);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.programs {
  background: var(--white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.program {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  background: var(--bg);
}

.program ul {
  padding-left: 1.2rem;
  color: var(--text-light);
}

.highlights {
  background: var(--bg);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.highlight-grid article {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.map-card {
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-card img {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.benefits {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.benefits-list {
  padding-left: 1.2rem;
  color: var(--text-light);
}

.benefits-visual {
  margin: 0;
  text-align: center;
}

.benefits-visual img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.benefits-visual figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 70px;
    right: 4%;
    flex-direction: column;
    background: rgba(15, 13, 32, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
  }

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

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero-content {
    text-align: left;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions,
  .cta-group {
    flex-direction: column;
  }
}
