:root {
  --ink: #17233f;
  --ink-soft: #23345a;
  --blue: #0b75bb;
  --sky: #d9edf7;
  --green: #4fae78;
  --green-dark: #2f7f61;
  --chalk: #f7f3ea;
  --gold: #9a7a3d;
  --white: #ffffff;
  --text: #343a42;
  --muted: #667085;
  --border: rgba(23, 35, 63, 0.16);
  --shadow: 0 20px 52px rgba(23, 35, 63, 0.14);
  --max: 1160px;
  --radius: 8px;
  --font: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.button.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button.light {
  color: var(--white);
}

.button.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}

.utility {
  background: rgba(23, 35, 63, 0.78);
  backdrop-filter: blur(12px);
}

.utility-inner {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 96px;
}

.utility-inner > * {
  min-width: 0;
}

.brand {
  display: grid;
  gap: 4px;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
}

.brand strong {
  font-size: 29px;
  letter-spacing: 0.06em;
}

.brand span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.admissions {
  justify-self: center;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.top-actions .button {
  min-height: 42px;
  padding-inline: 16px;
  color: var(--white);
}

.main-nav {
  background: rgba(154, 122, 61, 0.92);
}

.nav-shell {
  display: flex;
  justify-content: center;
}

.nav-toggle {
  display: none;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-menu a {
  padding: 18px 15px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  min-height: 740px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.86), rgba(23, 35, 63, 0.46) 52%, rgba(23, 35, 63, 0.14)),
    url("../images/classroom-lesson.jpg") center 30% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
}

.hero-copy {
  max-width: 760px;
  padding: 230px 0 90px;
  position: relative;
  z-index: 1;
}

.hero .eyebrow,
.hero p {
  color: var(--white);
}

.hero p {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 20px;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(820px, calc(100% - 40px));
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proof-item {
  background: var(--white);
  padding: 22px 24px;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

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

.section {
  padding: 92px 0;
}

.section.chalk {
  background: var(--chalk);
}

.section.ink {
  background: var(--ink);
  color: var(--white);
}

.section.ink h2,
.section.ink h3,
.section.ink p {
  color: var(--white);
}

.section.ink .eyebrow {
  color: var(--sky);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.lead {
  font-size: 20px;
  color: var(--ink-soft);
}

.section.ink .lead {
  color: rgba(255, 255, 255, 0.86);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.media-frame img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-frame.portrait img {
  min-height: 0;
  aspect-ratio: 1 / 1.08;
  object-position: center top;
}

.note-grid,
.course-grid,
.news-grid,
.staff-grid,
.price-grid {
  display: grid;
  gap: 18px;
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.course-card,
.news-card,
.staff-card,
.price-card,
.table-card,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.course-card,
.news-card,
.price-card,
.table-card {
  padding: 26px;
}

.course-card strong,
.price-card strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card p,
.news-card p,
.price-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.course-card h3,
.news-card h3 {
  margin-top: 10px;
}

.staff-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.staff-card {
  aspect-ratio: 1 / 1.05;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  margin: 0;
}

.staff-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.price-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 34px;
}

.price-card {
  min-height: 142px;
}

.price-card b {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

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

.table-card.wide {
  grid-column: 1 / -1;
}

.table-card h3 {
  margin-bottom: 10px;
}

.table-card p {
  color: var(--muted);
  font-size: 15px;
}

.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(11, 117, 187, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td:first-child {
  color: var(--ink);
  font-weight: 800;
}

td span {
  color: var(--muted);
  font-size: 12px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.info-list li {
  padding-left: 18px;
  position: relative;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.news-card time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card.featured {
  grid-column: span 2;
  background: var(--sky);
}

.next-steps {
  background:
    linear-gradient(rgba(23, 35, 63, 0.9), rgba(23, 35, 63, 0.86)),
    url("../images/classroom-map-room.jpg") center / cover no-repeat;
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.step-link {
  display: block;
  min-height: 88px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 800;
}

.step-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact h2,
.contact h3 {
  color: var(--white);
}

.contact .eyebrow {
  color: var(--sky);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 26px 0;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--white);
}

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

.download-list li + li,
.footer-list li + li {
  margin-top: 8px;
}

.download-list a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-link {
  display: block;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(11, 117, 187, 0.78), rgba(79, 174, 120, 0.72)),
    url("../images/green-classroom.jpg") center / cover no-repeat;
  position: relative;
}

.map-link span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.site-footer h3 {
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
}

.site-footer a,
.site-footer p {
  color: var(--white);
  font-size: 15px;
}

.brand-strip {
  padding: 16px 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: var(--white);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

@media (max-width: 1040px) {
  .utility-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
    text-align: center;
  }

  .admissions {
    justify-self: center;
  }

  .top-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-shell {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero {
    min-height: 790px;
  }

  .hero-copy {
    padding-top: 340px;
  }

  .split,
  .split.reverse,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .news-grid,
  .price-grid,
  .detail-grid,
  .schedule-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .brand strong {
    font-size: 24px;
  }

  .top-actions .button {
    min-width: 0;
    width: 100%;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    width: 100%;
  }

  .top-actions .button.primary {
    grid-column: auto;
  }

  .hero {
    min-height: 800px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 44px);
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-copy {
    padding: 360px 0 76px;
    max-width: 100%;
  }

  .hero p {
    font-size: 18px;
    max-width: 34ch;
  }

  .hero-proof,
  .course-grid,
  .news-grid,
  .staff-grid,
  .price-grid,
  .detail-grid,
  .schedule-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .table-card.wide {
    grid-column: auto;
  }

  .table-card {
    padding: 20px;
  }

  table {
    min-width: 560px;
  }

  .section {
    padding: 62px 0;
  }

  .media-frame img {
    min-height: 300px;
  }

  .price-card {
    min-height: 0;
  }

  .footer-inner {
    padding: 34px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 38px;
  }
}
