/* =========================================================
   layout.css — container, header/nav, hero, apply form, footer
   ========================================================= */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header .header__inner { min-height: 84px; }
.brand img { width: 154px; }
.nav { gap: 1.5rem; }
.nav__list { gap: 1.5rem; }
.nav__link { font-size: .9375rem; }
.nav__cta { background: #058287; border-radius: 999px; min-width: 112px; max-width: 120px; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex-shrink: 0; border-radius: var(--radius-sm); }
.brand img { width: 146px; height: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .375rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-800);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--teal-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-500); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:active { color: var(--teal-700); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--teal-50); }
.nav-toggle__bar {
  width: 22px; height: 2px; border-radius: 2px; background: var(--ink-800);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fafafa;
  color: var(--ink-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* background:
    linear-gradient(90deg, rgba(5, 78, 75, .94) 0%, rgba(7, 86, 83, .86) 45%, rgba(7, 86, 83, .78) 100%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px; */
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  align-items: center;
  gap: 4.5rem;
  padding-block: 3.25rem 2.5rem;
  min-height: 680px;
}
.hero__content { max-width: 610px; align-self: start; padding-top: 96px; }
.hero__eyebrow {
  font-size: .9375rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1.75rem;
}
.hero__title {
  max-width: 610px;
  font-size: clamp(2.5rem, 3.25vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #111;
  margin-bottom: 1.15rem;
}
.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #000;
  margin-bottom: 1.35rem;
}
.hero__lead {
  max-width: 580px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 2rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 2.5rem;
  column-gap: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}
.hero__stat { display: flex; flex-direction: column; gap: .25rem; }
.hero__stat dt { font-size: 1.125rem; font-weight: 600; color: var(--ink-800); line-height: 1.3; }
.hero__stat dd { font-size: .875rem; color: var(--ink-500); }
.hero__dates {
  grid-template-columns: repeat(3, 1fr);
  width: min(635px, 100%);
  gap: 0;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #087c80;
  color: var(--white);
}
.hero__dates .hero__stat {
  min-height: 100px;
  justify-content: center;
  padding: .9rem 1.5rem;
}
.hero__dates .hero__stat dt {
  color: rgba(255, 255, 255, .78);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero__dates .hero__stat dd {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Apply card ---------- */
.apply-card {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 348px;
  color: var(--ink-800);
}
.apply-card__title {
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 12px 12px 0 0;
  background: #087c80;
  padding: .85rem 1rem 1rem;
}
.apply-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  background: var(--white);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: var(--shadow-form);
  border-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-status { font-size: .75rem; line-height: 1.4; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #c03030; }
.form-status.is-success { color: var(--teal-600); font-weight: 600; }

.apply-form__submit { margin-top: .25rem; min-height: 38px; text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 600; }
.apply-form__links { display: flex; flex-direction: column; align-items: center; gap: .125rem; padding-top: .375rem; }
.apply-form__links a {
  font-size: .6875rem; color: var(--teal-500); text-decoration: underline; text-underline-offset: 2px;
  border-radius: 2px; transition: color .2s var(--ease);
}
.apply-form__links a:hover { color: var(--teal-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .78); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; min-height: 72px; padding-block: 1rem;
}
.footer__inner img { width: 128px; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; }
.footer__meta a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s var(--ease); border-radius: 2px; }
.footer__meta a:hover { color: var(--white); }

/* Sticky mobile CTA (shown via responsive.css) */
.mobile-apply { display: none; }
