/* =========================================================
   EASY WAY — ALL ENGINEERING FIELDS
   Page: engineering-services.html
   Independent layout; shares Index header/topbar/nav/footer
   and the Index desktop+mobile hero scale, but its own
   section design (not a copy of Academic or Research).
   ========================================================= */

.engineering-services-page {
  --es-navy: #071f35;
  --es-navy-2: #0a3048;
  --es-ink: #0a2942;
  --es-text: #607589;
  --es-line: #dbe6ed;
  --es-soft: #f4f8fa;
  --es-teal: #59e3df;
  --es-teal-deep: #078f92;
  --es-gold: #f2a531;
  background: #fff;
}

.es-container-note { display: none; }

.es-eyebrow,
.engineering-services-page .eyebrow {
  color: var(--es-teal-deep);
}

.es-section {
  padding: 38px 0 40px;
}

.es-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
}

.es-heading h2 {
  margin: 5px 0 0;
  color: var(--es-ink);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.es-heading > p {
  color: var(--es-text);
  line-height: 1.65;
}

.es-heading--light h2 { color: #fff; }
.es-heading--light > p { color: #a8bcc9; }
.es-heading--light .eyebrow { color: var(--es-teal); }


/* ---------------- HERO ---------------- */

.es-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(89, 227, 223, .14), transparent 30%),
    linear-gradient(120deg, #061c31 0%, #082943 58%, #0a4056 100%);
}

.es-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000 8%, transparent 92%);
}

.es-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
  padding: 44px 0 46px;
}

.es-hero__copy { max-width: 660px; }
.es-hero__copy .eyebrow { color: var(--es-teal); }

.es-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 3.2vw, 3.35rem);
  line-height: 1.01;
  letter-spacing: -.035em;
}

.es-hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--es-teal);
}

.es-hero__lead {
  max-width: 610px;
  margin: 16px 0 0;
  color: #c2d2de;
  font-size: .92rem;
  line-height: 1.62;
}

.es-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.es-hero__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #e9f4f7;
  font-size: .68rem;
  font-weight: 800;
}

.es-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 19px;
}

.es-hero__actions .button { min-height: 45px; padding-inline: 18px; font-size: .79rem; }

.es-hero__actions .button--outline {
  color: #fff;
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.03);
}


/* Hero right panel — quick field index (distinct from Academic's intake
   card and Research's numbered framework board) */

.es-hero-panel {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.es-hero-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.es-hero-panel__head small {
  color: #cfe3ea;
  font-size: .78rem;
  font-weight: 800;
}

.es-hero-panel__badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(89,227,223,.14);
  color: var(--es-teal);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.es-hero-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.es-hero-panel__grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(4,25,39,.32);
  color: #eef8fa;
  transition: border-color .15s ease, background .15s ease;
}

.es-hero-panel__grid a:hover {
  border-color: rgba(89,227,223,.4);
  background: rgba(89,227,223,.08);
}

.es-hero-panel__grid b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #0a3146;
  color: var(--es-teal);
  font-size: .62rem;
  font-weight: 900;
}

.es-hero-panel__grid span {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.es-hero-panel__more { border-style: dashed; }
.es-hero-panel__more b { background: rgba(255,255,255,.08); color: #fff; }


/* ---------------- FACTS STRIP ---------------- */

.es-facts {
  border-bottom: 1px solid var(--es-line);
  background: #fff;
}

.es-facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.es-facts__row > div {
  flex: 1 1 0;
  min-width: 150px;
  padding: 19px 22px;
  border-right: 1px solid var(--es-line);
}

.es-facts__row > div:first-child { border-left: 1px solid var(--es-line); }

.es-facts__row strong {
  display: block;
  color: var(--es-teal-deep);
  font-size: 1.5rem;
  line-height: 1;
}

.es-facts__row span {
  display: block;
  margin-top: 5px;
  color: var(--es-text);
  font-size: .78rem;
  font-weight: 700;
}


/* ---------------- FIELDS GRID ---------------- */

.es-fields {
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}

.es-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.es-field-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--es-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  box-shadow: 0 10px 28px rgba(7,35,56,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.es-field-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--es-teal-deep), var(--es-teal));
  opacity: 0;
  transition: opacity .2s ease;
}

.es-field-card:hover {
  transform: translateY(-3px);
  border-color: #a9d5dc;
  box-shadow: 0 17px 38px rgba(7,35,56,.08);
}

.es-field-card:hover::before { opacity: 1; }

.es-field-card__num {
  display: block;
  margin-bottom: 32px;
  color: var(--es-teal-deep);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.es-field-card h3 {
  margin: 0 0 10px;
  color: var(--es-ink);
  font-size: 1.1rem;
  line-height: 1.22;
}

.es-field-card p {
  margin: 0 0 18px;
  color: var(--es-text);
  font-size: .86rem;
  line-height: 1.56;
}

.es-field-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.es-field-card__topics span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--es-soft);
  color: #426071;
  font-size: .68rem;
  font-weight: 800;
}

.es-field-card > strong {
  display: block;
  margin-top: 16px;
  color: var(--es-teal-deep);
  font-size: .78rem;
  font-weight: 900;
}

.es-field-card--guide {
  background: radial-gradient(circle at 90% 10%, rgba(89,233,226,.16), transparent 33%), #08263e;
  border-color: #08263e;
}

.es-field-card--guide .es-field-card__num { color: var(--es-teal); }
.es-field-card--guide h3 { color: #fff; }
.es-field-card--guide p { color: #b8cad6; }
.es-field-card--guide .es-field-card__topics span { background: rgba(255,255,255,.08); color: #d9e8ed; }
.es-field-card--guide > strong { color: var(--es-teal); }


/* ---------------- CROSS-DISCIPLINARY COMBOS ---------------- */

.es-combos { background: #fff; }

.es-combo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.es-combo-card {
  padding: 22px;
  border: 1px solid var(--es-line);
  border-radius: 16px;
  background: var(--es-soft);
}

.es-combo-card__pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.es-combo-card__pair span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--es-line);
  color: var(--es-ink);
  font-size: .78rem;
  font-weight: 800;
}

.es-combo-card__pair i {
  font-style: normal;
  color: var(--es-teal-deep);
  font-weight: 900;
}

.es-combo-card p {
  margin: 0;
  color: var(--es-text);
  font-size: .85rem;
  line-height: 1.55;
}

.es-combos__action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.es-combos__action a {
  color: var(--es-teal-deep);
  font-weight: 900;
  font-size: .88rem;
}


/* ---------------- SUPPORT TYPES RAIL ---------------- */

.es-types {
  padding: 38px 0 40px;
  color: #fff;
  background: linear-gradient(125deg, #061c31 0%, #082943 100%);
}

.es-types-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}

.es-types-rail__item {
  padding: 24px 20px;
  background: #0a2c44;
}

.es-types-rail__item > span {
  display: block;
  margin-bottom: 30px;
  color: var(--es-teal);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.es-types-rail__item strong {
  display: block;
  color: #fff;
  font-size: .95rem;
}

.es-types-rail__item small {
  display: block;
  margin-top: 7px;
  color: #a8bcc9;
  font-size: .78rem;
  line-height: 1.5;
}


/* ---------------- FINAL CTA ---------------- */

.es-final {
  padding: 76px 0;
  background: #fff;
}

.es-final__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 85%, rgba(68,226,219,.14), transparent 33%),
    #08263e;
  box-shadow: 0 24px 55px rgba(7,35,56,.13);
}

.es-final__box > div:first-child > small {
  display: block;
  color: var(--es-teal);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.es-final__box h2 {
  max-width: 780px;
  margin: 8px 0 9px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.es-final__box p {
  max-width: 760px;
  margin: 0;
  color: #b9cad6;
  line-height: 1.6;
}

.es-final__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 215px;
}

.es-final__actions .button { justify-content: center; }


/* ---------------- CURRENT NAV ITEM ---------------- */

.engineering-services-page .nav-dropdown a[aria-current="page"] {
  background: rgba(23,161,163,.08);
  color: #087f83;
}


/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1100px) {
  .es-hero__inner { grid-template-columns: minmax(0,1fr) 390px; gap: 42px; }
  .es-fields-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .es-combo-grid { grid-template-columns: repeat(2, 1fr); }
  .es-types-rail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .es-section, .es-types { padding: 34px 0; }
  .es-hero__inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 0; }
  .es-hero-panel { max-width: 560px; }
  .es-heading { grid-template-columns: 1fr; gap: 20px; }
  .es-facts__row > div { min-width: 50%; }
}

@media (max-width: 760px) {
  .es-hero__inner { padding: 24px 0 28px; }

  .es-hero .eyebrow {
    max-width: 290px;
    margin-bottom: 10px;
    font-size: .57rem;
    line-height: 1.55;
    letter-spacing: .11em;
  }

  .es-hero h1 {
    max-width: 345px;
    font-size: clamp(1.72rem, 8.35vw, 2.08rem);
    line-height: 1.035;
    letter-spacing: -.03em;
    text-wrap: balance;
  }

  .es-hero__lead {
    max-width: 345px;
    margin-top: 12px;
    font-size: .75rem;
    line-height: 1.58;
  }

  .es-hero__tags { gap: 6px; margin-top: 14px; }
  .es-hero__tags span { min-height: 26px; padding: 0 9px; font-size: .57rem; }

  .es-hero__actions { gap: 8px; margin-top: 16px; display: grid; grid-template-columns: 1fr; }
  .es-hero__actions .button { justify-content: center; min-height: 43px; padding: 10px 14px; font-size: .72rem; }
}

@media (max-width: 680px) {
  .es-section, .es-types { padding: 28px 0; }
  .es-heading h2 { font-size: 2rem; }

  .es-hero-panel__grid { grid-template-columns: 1fr 1fr; }

  .es-facts__row > div { min-width: 100%; border-left: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
  .es-facts__row > div:last-child { border-bottom: 0; }

  .es-fields-grid { grid-template-columns: 1fr; }
  .es-field-card { min-height: 0; padding: 21px; }
  .es-field-card__num { margin-bottom: 22px; }

  .es-combo-grid { grid-template-columns: 1fr; }

  .es-types-rail { grid-template-columns: 1fr; }
  .es-types-rail__item > span { margin-bottom: 20px; }

  .es-final__box { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 18px; }
  .es-final__actions { display: grid; grid-template-columns: 1fr; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .es-field-card { transition: none; }
}
