:root {
  --green: #063d2e;
  --green-2: #0f6a47;
  --cream: #fbfbf3;
  --mint: #eef5e9;
  --amber: #f3b12f;
  --text: #1e2a24;
  --muted: #66736b;
  --line: #d7dfd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar,
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #405047;
}

.nav a:hover,
.nav a.active {
  background: var(--green);
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: white;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 47, 35, 0.96), rgba(3, 47, 35, 0.72), rgba(3, 47, 35, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d89212;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd978;
}

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

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 8vw, 70px);
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

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

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.65;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: #173528;
  font-size: 14px;
  font-weight: 900;
}

.button.secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.button.secondary-dark {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}

.section {
  padding: 64px 0;
}

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

.grid {
  display: grid;
  gap: 22px;
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 0;
}

.stat {
  border-left: 3px solid var(--amber);
  padding-left: 16px;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 34px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(18, 54, 40, 0.07);
}

.card-body {
  padding: 22px;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.about-hero,
.contact-hero {
  background: linear-gradient(135deg, var(--mint), var(--cream));
}

.about-hero h1,
.contact-hero h1 {
  color: var(--green);
}

.lead.dark {
  color: #46584e;
}

.profile-copy p:first-child {
  margin-top: 0;
}

.two-grid {
  grid-template-columns: repeat(2, 1fr);
}

.info-panel,
.contact-form-panel {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(18, 54, 40, 0.07);
}

.dark-panel {
  background: var(--green);
  color: white;
}

.dark-panel h2,
.dark-panel h3 {
  color: white;
}

.dark-panel .eyebrow {
  color: #ffd978;
}

.detail-list,
.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.detail-list p,
.contact-details p {
  display: grid;
  gap: 6px;
  margin: 0;
  line-height: 1.6;
}

.detail-list strong,
.contact-details strong {
  color: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-form label {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status.success {
  color: var(--green-2);
}

.form-status.error {
  color: #a33d2d;
}

.program-list {
  gap: 30px;
}

.program-row {
  display: grid;
  grid-template-columns: 390px 1fr;
}

.program-row img {
  height: 100%;
  min-height: 310px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  color: #53645b;
  font-size: 14px;
  font-weight: 700;
}

.outcomes {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

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

.gallery .wide {
  grid-column: span 2;
}

.gallery img {
  height: 300px;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  background: var(--green);
  color: white;
  padding: 38px 0;
}

.footer .muted {
  color: rgba(255, 255, 255, 0.74);
}

.bot-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(18, 54, 40, 0.22);
}

.bot-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .stats,
  .program-grid,
  .gallery,
  .about-grid,
  .two-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .stats,
  .program-grid,
  .gallery,
  .about-grid,
  .two-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery .wide {
    grid-column: auto;
  }

  .bot-widget {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: min(480px, 70vh);
  }
}
