:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e2ea;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --navy: #06224a;
  --blue: #1454d6;
  --cyan: #09a5c8;
  --gold: #f0b323;
  --green: #0f8f61;
  --shadow: 0 24px 60px rgba(6, 34, 74, 0.14);
}

* {
  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;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 210px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: #223047;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 0;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(90deg, rgba(245, 248, 251, 0.96), rgba(245, 248, 251, 0.72)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-copy {
  max-width: 720px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(44px, 6.8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: #344155;
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 570px;
  margin: 44px 0 0;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: 8px;
}

.hero-stats dt {
  color: var(--blue);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: -20px;
  bottom: 28px;
  width: min(310px, calc(100% - 28px));
  padding: 20px;
  color: #ffffff;
  background: var(--navy);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.hero-card span {
  margin-top: 6px;
  color: #dce7f5;
}

.section {
  padding: clamp(58px, 8vw, 105px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: end;
  background: #ffffff;
}

.intro p:last-child,
.service-copy p,
.tour-copy p,
.faq-copy p,
.cta p,
.footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: clamp(58px, 8vw, 105px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.program-grid .section-heading {
  grid-column: 1 / -1;
}

.program-card {
  min-height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(6, 34, 74, 0.08);
}

.program-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.program-card h3,
.program-card p,
.program-card a {
  margin-left: 22px;
  margin-right: 22px;
}

.program-card h3 {
  margin-top: 22px;
}

.program-card p {
  color: var(--muted);
}

.program-card a {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 800;
}

.courses {
  background: #ffffff;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-list article,
.why-grid article,
.service-grid article {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-list span,
.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.course-list p,
.why-grid p,
.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(58px, 8vw, 105px) clamp(18px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(6, 34, 74, 0.96), rgba(20, 84, 214, 0.78)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.service-band .eyebrow,
.service-band h2 {
  color: #ffffff;
}

.service-copy p {
  color: #dce7f5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article {
  background: rgba(255, 255, 255, 0.96);
}

.why {
  background: var(--soft);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 0 clamp(18px, 5vw, 72px) clamp(58px, 8vw, 105px);
  background: var(--soft);
}

.tour-media img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 8px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 74px);
  background: #ffffff;
}

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

details {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.cta {
  max-width: calc(100% - clamp(36px, 10vw, 144px));
  margin: 0 auto clamp(58px, 8vw, 105px);
  padding: clamp(38px, 6vw, 70px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue) 62%, var(--green));
  border-radius: 8px;
}

.cta .eyebrow,
.cta h2,
.cta p {
  color: #ffffff;
}

.cta p {
  max-width: 720px;
}

.contact {
  background: #ffffff;
}

.contact .section-heading {
  max-width: 780px;
}

.contact-form {
  max-width: 620px;
  margin-bottom: 48px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 84, 214, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group select {
  cursor: pointer;
  color: var(--ink);
}

.form-group select option {
  color: var(--ink);
  background: var(--paper);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.error-message {
  display: none;
  color: #d84040;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  margin-left: 4px;
}

.input-error {
  border-color: #d84040 !important;
  background-color: rgba(216, 64, 64, 0.05);
}

.input-error:focus {
  border-color: #d84040 !important;
  box-shadow: 0 0 0 3px rgba(216, 64, 64, 0.1) !important;
}

.contact-form button[type="submit"] {
  width: 100%;
}

.contact-info {
  padding: 30px;
  background: var(--soft);
  border-radius: 8px;
  border-left: 4px solid var(--blue);
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-info p {
  margin: 12px 0;
  color: var(--ink);
}

.contact-info a {
  color: var(--blue);
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  padding: 54px clamp(18px, 5vw, 72px);
  color: #dce7f5;
  background: #07182f;
}

.footer h2,
.footer h3 {
  color: #ffffff;
}

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

.footer a {
  display: block;
  margin: 9px 0;
  color: #dce7f5;
}

@media (max-width: 1040px) {

  .hero,
  .intro,
  .service-band,
  .tour,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .program-grid,
  .course-list,
  .why-grid,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    gap: 0;
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    color: var(--navy);
    transition: max-height 220ms ease, padding-top 220ms ease;
  }

  .nav-open .nav {
    max-height: 360px;
    padding-top: 14px;
  }

  .nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:not(.nav-cta) {
    background: var(--soft);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand small {
    font-size: 11px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-stats,
  .program-grid,
  .course-list,
  .service-grid,
  .why-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 360px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -18px;
  }

  .cta {
    max-width: calc(100% - 36px);
  }

  .button {
    width: 100%;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-info {
    margin-top: 24px;
  }
}
