/*
  Elevate Growth Solutions — hiring page
  Colors, fonts, and corner radius match www.elevategrowth.solutions and the EGS logo.
*/

/* Self-hosted fonts (SIL Open Font License, see fonts/LICENSE-*.txt) */
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Brand palette (from the EGS logo and website) */
  --teal: #266d82;
  --teal-dark: #1d5566;
  --teal-mid: #3a95b5;
  --teal-light: #4ac0d8;
  --mist: #eaf1f3;
  --mist-soft: #f3f7f8;

  --ink: #000;
  --ink-body: #2b2b2b;
  --ink-soft: #444;
  --ink-faint: #666;
  --line: #e0e0e0;
  --field-line: #c8d3d7;
  --surface: #fdfdfd;
  --white: #fff;
  --danger: #b3261e;
  --danger-soft: #fcebea;

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --shadow: 0 1px 2px rgba(38, 109, 130, 0.06), 0 8px 24px rgba(38, 109, 130, 0.08);
  --shadow-lg: 0 2px 4px rgba(38, 109, 130, 0.06), 0 20px 48px rgba(38, 109, 130, 0.14);

  --font-heading: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

/* Buttons (matches the main site: Montserrat, 0.5rem corners) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--mist);
}

.btn-small {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 253, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.header-link {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.header-link:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-art {
  position: absolute;
  right: -120px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.14;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(38, 109, 130, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 0 rgba(74, 192, 216, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(74, 192, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 192, 216, 0);
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 32px;
}

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

.facts-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}

.facts-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.facts {
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.fact:first-child {
  border-top: 0;
  padding-top: 4px;
}

.fact svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--mist);
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact dt {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.fact dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.fact-pay dd strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--teal);
}

/* Sections */
.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-tint {
  background: var(--mist-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.muted {
  color: var(--ink-soft);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.prose p {
  color: var(--ink-soft);
}

.support-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-list li {
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--teal-dark);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

/* Echoes the center tile of the EGS logo */
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--teal);
  display: grid;
  place-items: center;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23266d82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.check-list-lg li {
  padding: 14px 16px 14px 48px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-body);
}

.check-list-lg li::before {
  left: 16px;
  top: 17px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.step p {
  color: var(--ink-soft);
  margin: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--mist);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Apply */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.apply-intro {
  position: sticky;
  top: 108px;
}

.apply-intro > p {
  color: var(--ink-soft);
}

.apply-intro .check-list {
  margin-bottom: 24px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.app-form fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}

.app-form > fieldset > legend {
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

.field {
  margin-bottom: 18px;
  min-width: 0;
}

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

.field label,
.checks legend {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--danger);
}

.optional {
  font-weight: 500;
  color: var(--ink-faint);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--field-line);
  border-radius: var(--radius);
  background: var(--mist-soft);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--teal-mid);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: var(--teal-dark);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(58, 149, 181, 0.2);
}

::placeholder {
  color: #8a9599;
  font-weight: 400;
}

.input-affix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-affix:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(58, 149, 181, 0.2);
}

.input-affix input {
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding-inline: 6px;
}

.input-affix input:focus {
  box-shadow: none;
}

.affix {
  display: grid;
  place-items: center;
  padding-inline: 12px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--mist-soft);
}

.field-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--mist-soft);
  border: 1px solid var(--mist);
}

.field-check label {
  flex: 1 1 0;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.checks {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

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

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.check-grid input {
  margin-top: 0;
}

/* Validation */
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .input-affix {
  border-color: var(--danger);
}

.field-check.has-error {
  background: var(--danger-soft);
  border-color: #f3c7c3;
}

.field-error {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--danger);
}

.field-check .field-error {
  flex-basis: 100%;
  margin: 0 0 0 32px;
}

.form-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: #8c1d18;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-status a {
  color: inherit;
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  text-align: center;
  padding: clamp(16px, 4vw, 40px) 0;
}

.form-success:focus {
  outline: none;
}

.form-success svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  fill: var(--mist);
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success p {
  color: var(--ink-soft);
  max-width: 30em;
  margin-inline: auto;
  margin-bottom: 24px;
}

/* Footer (light, like the main site) */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-tag {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
}

.footer-nav a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--teal);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Thank-you page */
.thanks {
  min-height: calc(100vh - 73px);
  display: grid;
  align-items: center;
}

.thanks-card {
  max-width: 640px;
  margin-inline: auto;
}

.thanks-card h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.thanks-card .hero-actions {
  justify-content: center;
}

/* 404 page */
.not-found {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .apply-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply-intro {
    position: static;
  }

  .hero-art {
    top: 0;
    right: -200px;
    width: 460px;
    height: 460px;
    transform: rotate(8deg);
    opacity: 0.1;
  }
}

@media (max-width: 680px) {
  .card-grid,
  .field-row,
  .check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-link {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
