:root {
  --ink: #202034;
  --muted: #65667a;
  --paper: #fffdf8;
  --soft: #f6f0e6;
  --saffron: #f7a414;
  --gold: #ffc640;
  --red: #d90d12;
  --teal: #0f8f8c;
  --green: #2f8f5b;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(32, 32, 52, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto;
}

#home,
#about,
#gallery,
#contact {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(32, 32, 52, 0.08);
  backdrop-filter: blur(16px);
}

.navbar {
  width: calc(100% - 36px);
  max-width: 1220px;
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 28px 0;
  color: rgba(32, 32, 52, 0.78);
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--red));
  border-radius: 999px;
  transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--red);
}

.menu-toggle {
  display: inline-flex;
  position: relative;
  z-index: 31;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(32, 32, 52, 0.18);
  background: var(--white);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

@media (min-width: 961px) {
  .menu-toggle {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: clamp(640px, calc(100svh - 150px), 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../assets/JCF%20hero%20image.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 21, 35, 0.84), rgba(21, 21, 35, 0.56) 44%, rgba(217, 13, 18, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.32));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  max-width: 760px;
  margin-left: max(20px, calc((100vw - 1160px) / 2));
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 92px);
}

h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  margin-bottom: 22px;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

.hero-subtitle {
  width: 100%;
  max-width: 590px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 600;
}

.primary-button,
.light-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(247, 164, 20, 0.32);
}

.primary-button:hover,
.light-button:hover,
.primary-button:focus-visible,
.light-button:focus-visible {
  transform: translateY(-2px);
}

.intro-section,
.impact-section,
.gallery-section {
  padding: 96px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.intro-copy p:last-child,
.story-panel p {
  color: var(--muted);
  font-size: 18px;
}

.intro-copy,
.intro-points,
.intro-points article,
.story-panel,
.section-heading,
.impact-card,
.values-grid > *,
.gallery-card,
.contact-copy,
.contact-form,
.footer-grid > * {
  min-width: 0;
}

.intro-points {
  display: grid;
  gap: 18px;
}

.intro-points article,
.impact-card,
.gallery-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(32, 32, 52, 0.08);
}

.intro-points article {
  position: relative;
  padding: 28px 30px 26px 86px;
  border-left: 5px solid var(--saffron);
}

.intro-points span {
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--teal);
  font-weight: 900;
}

.intro-points p,
.impact-card p,
.gallery-card p,
.footer-brand p,
.site-footer p {
  color: var(--muted);
}

.image-story {
  padding: 72px 0;
  background: linear-gradient(90deg, var(--soft), var(--white));
}

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.story-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.story-panel {
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.mini-metrics div {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: #f8fbf8;
  border: 1px solid rgba(47, 143, 91, 0.18);
  text-align: center;
}

.mini-metrics strong {
  display: block;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.mini-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.impact-section {
  background: var(--paper);
}

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

.impact-card {
  position: relative;
  min-height: 244px;
  padding: 36px 30px;
  overflow: hidden;
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--saffron);
}

.impact-card:nth-child(2)::before {
  background: var(--red);
}

.impact-card:nth-child(3)::before {
  background: var(--teal);
}

.impact-number {
  margin-bottom: 22px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 800;
  line-height: 0.95;
}

.impact-card:nth-child(2) .impact-number {
  color: var(--saffron);
}

.impact-card:nth-child(3) .impact-number {
  color: var(--teal);
}

.values-section {
  padding: 78px 0;
  background: #f5fbfa;
}

.values-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-list span {
  padding: 12px 16px;
  border: 1px solid rgba(15, 143, 140, 0.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 143, 140, 0.08);
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.gallery-card div {
  padding: 24px;
}

.contact-section {
  position: relative;
  padding: 94px 0;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(32, 32, 52, 0.88), rgba(217, 13, 18, 0.78)),
    url("../assets/classroom-listening.jpg") center / cover no-repeat;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 25, 39, 0), rgba(25, 25, 39, 0.16));
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.contact-copy {
  max-width: 560px;
}

.contact-copy h2 {
  margin-bottom: 30px;
}

.contact-copy p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(32, 32, 52, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

.form-field input {
  min-height: 52px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(255, 198, 64, 0.42);
  border-color: var(--saffron);
}

.contact-status {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.contact-status.is-visible {
  display: block;
}

.contact-status.is-success {
  color: #1f6d45;
  background: rgba(47, 143, 91, 0.12);
  border: 1px solid rgba(47, 143, 91, 0.26);
}

.contact-status.is-error {
  color: #a51f23;
  background: rgba(217, 13, 18, 0.1);
  border: 1px solid rgba(217, 13, 18, 0.24);
}

.contact-form button {
  grid-column: 1 / -1;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(247, 164, 20, 0.3);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.15fr;
  gap: 38px;
  padding: 72px 0 54px;
}

.footer-brand img {
  width: 230px;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin-bottom: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
}

.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-contact-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.footer-contact-link svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .container,
  .hero-content {
    width: calc(100% - 32px);
  }

  .navbar {
    width: calc(100% - 32px);
    gap: 22px;
  }

  .nav-links {
    gap: 24px;
    font-size: 13px;
  }

  .hero-content {
    margin-left: 16px;
    max-width: 680px;
  }

  .intro-grid,
  .story-grid,
  .values-grid,
  .contact-grid {
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: clamp(580px, calc(100svh - 122px), 720px);
  }

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

  .intro-section,
  .impact-section,
  .gallery-section {
    padding: 82px 0;
  }

  .image-story,
  .values-section,
  .contact-section {
    padding: 72px 0;
  }

  .intro-grid,
  .story-grid,
  .values-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy,
  .contact-copy p:last-child,
  .section-heading {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .navbar {
    height: 74px;
  }

  .brand img {
    width: 186px;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: fixed;
    top: 15px;
    right: 18px;
    margin-left: auto;
    border-color: rgba(32, 32, 52, 0.28);
    background:
      linear-gradient(var(--ink), var(--ink)) center 14px / 20px 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center 21px / 20px 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center 28px / 20px 2px no-repeat,
      var(--white);
  }

  .menu-toggle span {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 18px;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    border: 1px solid rgba(32, 32, 52, 0.08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 4px;
  }

  .nav-links a::after {
    bottom: 8px;
  }

  .hero {
    min-height: clamp(620px, calc(100svh - 130px), 760px);
  }

  .hero-content {
    padding: 64px 0;
  }

  .intro-grid,
  .story-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .story-panel {
    padding: 34px;
  }

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

@media (max-width: 720px) {
  .impact-grid,
  .gallery-grid,
  .footer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 26px;
  }

  .footer-grid {
    gap: 28px;
    padding-top: 56px;
  }

  .gallery-card img {
    aspect-ratio: 1.14;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 160px;
  }

  .hero {
    min-height: clamp(590px, calc(100svh - 112px), 700px);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(21, 21, 35, 0.88), rgba(21, 21, 35, 0.48) 60%, rgba(217, 13, 18, 0.26)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .menu-toggle {
    top: 14px;
    right: 14px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 44px);
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .intro-section,
  .impact-section,
  .gallery-section {
    padding: 68px 0;
  }

  .intro-points article {
    padding: 70px 22px 24px;
  }

  .intro-points span {
    left: 22px;
  }

  .image-story,
  .values-section,
  .contact-section {
    padding: 58px 0;
  }

  .story-panel {
    padding: 26px;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    padding-top: 52px;
  }

  .contact-form {
    padding: 24px;
  }

  .form-field textarea {
    min-height: 104px;
  }

  .intro-copy,
  .intro-points,
  .story-image,
  .story-panel,
  .section-heading,
  .impact-card,
  .values-grid,
  .value-list,
  .gallery-card,
  .contact-copy,
  .contact-form,
  .footer-brand {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 520px;
  }

  .hero-content {
    max-width: 540px;
    padding: 52px 0;
  }

  .contact-section {
    padding: 52px 0;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .hero {
    min-height: 460px;
  }

  .hero-content {
    max-width: 460px;
    padding: 40px 0;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero-subtitle {
    margin-bottom: 22px;
  }

  .intro-section,
  .impact-section,
  .gallery-section,
  .image-story,
  .values-section,
  .contact-section {
    padding: 46px 0;
  }
}
