:root {
  --ink: #17211f;
  --muted: #5e6962;
  --sage: #6f8d7a;
  --sage-dark: #344a3f;
  --coral: #c8735f;
  --cream: #f7f2ea;
  --paper: #fffaf3;
  --line: rgba(23, 33, 31, 0.14);
  --shadow: 0 22px 70px rgba(30, 39, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 243, 0.84);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(22px, 6vw, 92px) 76px;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96) 0%, rgba(255, 250, 243, 0.82) 34%, rgba(255, 250, 243, 0.22) 70%),
    linear-gradient(0deg, rgba(23, 33, 31, 0.14), rgba(23, 33, 31, 0));
}

.hero-content {
  position: relative;
  max-width: 680px;
}

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

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

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

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

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

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

.button.primary,
.button.dark {
  color: #fff;
  background: var(--sage-dark);
}

.button.secondary {
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  min-height: 128px;
  padding: 30px clamp(22px, 4vw, 54px);
  background: #fffaf3;
}

.intro-item strong,
.intro-item span {
  display: block;
}

.intro-item strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.intro-item span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(22px, 6vw, 92px);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.course-card {
  display: block;
  min-height: 224px;
  width: 100%;
  padding: 28px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(30, 39, 34, 0.06);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(52, 74, 63, 0.34);
  box-shadow: 0 22px 54px rgba(30, 39, 34, 0.13);
  outline: none;
}

.course-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--sage);
  font-weight: 800;
}

.course-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.course-card strong {
  display: inline-flex;
  color: var(--sage-dark);
  font-size: 14px;
}

.jaas-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(22px, 6vw, 92px) clamp(72px, 9vw, 112px);
  padding: clamp(34px, 5vw, 58px);
  color: #fff;
  background: linear-gradient(135deg, var(--sage-dark), #17211f 72%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.jaas-content {
  max-width: 760px;
}

.jaas-content .eyebrow {
  color: #e7aa95;
}

.jaas-content p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.jaas-section .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: #fffaf3;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(64px, 8vw, 98px) clamp(22px, 6vw, 92px);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.contact-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 11px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--sage-dark);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(22px, 6vw, 92px);
  color: var(--muted);
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 46px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 17, 0.62);
  backdrop-filter: blur(10px);
}

.course-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  background: #fffaf3;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-shell.is-open .course-modal {
  transform: translateY(0) scale(1);
}

.course-modal:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(23, 33, 31, 0.76);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--sage-dark);
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.modal-image {
  min-height: 100%;
  background: var(--sage-dark);
}

.modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-content {
  overflow-y: auto;
  padding: clamp(28px, 5vw, 58px);
}

.modal-content h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 54px);
}

.modal-copy {
  margin-bottom: 28px;
}

.modal-copy p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.modal-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .site-header,
  .footer,
  .jaas-section,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: absolute;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 150px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.62)),
      linear-gradient(0deg, rgba(23, 33, 31, 0.18), rgba(23, 33, 31, 0));
  }

  .intro-band,
  .course-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-link {
    width: 100%;
  }

  .course-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .modal-image img {
    height: 220px;
    min-height: 220px;
  }

  .modal-content {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .course-card {
    min-height: auto;
  }
}
