/* =========================================================
   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.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: var(--teal-900);
  color: var(--white);
}
.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: 3rem;
  padding-block: 3rem;
  min-height: 712px;
}
.hero__content { max-width: 560px; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.hero__lead {
  max-width: 470px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 1.75rem;
}
.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: 2.125rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.hero__stat dd { font-size: .875rem; color: rgba(255, 255, 255, .82); }

/* ---------- Apply card ---------- */
.apply-card {
  justify-self: end;
  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: 5px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #007878;
  padding: .875rem 1rem 1.25rem;
}
.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;
}
/* .field { position: relative; }
.field--phone { display: grid; grid-template-columns: 78px 1fr; gap: .5rem; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.field--captcha { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .5rem; }

.input {
  width: 100%;
  height: 36px;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .75rem;
  color: var(--ink-800);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder { color: var(--ink-400); opacity: 1; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: var(--ring); }
.input:disabled { background: var(--soft); cursor: not-allowed; color: var(--ink-400); }
.input.is-invalid { border-color: #d14343; background: #fff8f8; }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(209, 67, 67, .2); }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%234f5859' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 8px 5px;
}
.select:invalid, .select option[disabled] { color: var(--ink-400); }
.select option { color: var(--ink-800); }
.select--code { padding-right: 1.5rem; background-position: right .5rem center; }

.captcha {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 78px; height: 36px; padding: 0 .625rem;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(-45deg, #eef2f1 0 6px, #e4ebe9 6px 12px);
  font-weight: 700; font-size: .875rem; letter-spacing: .14em;
  font-style: italic; color: #3e3a76;
  user-select: none;
}
.captcha__refresh {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink-600);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .35s var(--ease);
}
.captcha__refresh:hover { background: var(--teal-50); color: var(--teal-500); }
.captcha__refresh:active { transform: rotate(-180deg); }
.captcha__refresh:focus-visible { outline: none; box-shadow: var(--ring); }

.check { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .125rem 0; font-size: .75rem; color: var(--ink-600); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex-shrink: 0; width: 14px; height: 14px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--white);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.check:hover .check__box { border-color: var(--teal-500); }
.check input:focus-visible + .check__box { box-shadow: var(--ring); border-color: var(--teal-500); }
.check input:checked + .check__box {
  background: var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2.5 6.2 5 8.5l4.5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-color: var(--teal-500);
}
.check input.is-invalid + .check__box { border-color: #d14343; }

.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; }
