/* ==========================================================================
   Everest Enterprises — site styles
   Brand colours sampled from the Everest Enterprises portfolio PDF.
   ========================================================================== */

:root {
  --navy: #233469;
  --navy-deep: #17224a;
  --orange: #d76e1c;
  --orange-dark: #bf5f14;
  --blueprint: #f3f5f9;
  --line: #dde2ec;
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --body: #4b5470;
  --muted-dark: rgba(255, 255, 255, 0.72);

  --font: "Source Sans 3", "Myriad Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "Archivo Narrow", "Arial Narrow", "Source Sans 3", sans-serif;

  --container: 1200px;
  --gutter: 48px;
  --section-y: 120px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--blueprint { background: var(--blueprint); }
.section--navy { background: var(--navy); }
.section--tight-top { padding-top: 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 56px;
}
.section-head__title { max-width: 620px; display: grid; gap: 20px; }
.section-head__text { max-width: 440px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__title { max-width: 720px; justify-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--top { align-items: start; gap: 80px; }

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

.stack { display: grid; gap: 24px; align-content: start; }
.stack--28 { gap: 28px; }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--font-narrow);
  font-weight: 700; font-size: 14px; line-height: 1.4;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--white { color: var(--white); }

.display {
  font-weight: 700; font-size: 68px; line-height: 1.04; letter-spacing: -0.02em;
  color: var(--white); text-wrap: balance;
}
.page-title {
  font-weight: 700; font-size: 56px; line-height: 1.06; letter-spacing: -0.02em;
  color: var(--white); text-wrap: balance; max-width: 820px;
}
.h2 {
  font-weight: 700; font-size: 46px; line-height: 1.1; letter-spacing: -0.015em;
  color: var(--navy); text-wrap: balance;
}
.h2--white { color: var(--white); }
.h3 { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.h3--white { color: var(--white); }
.h4 { font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--navy); }

.lead { font-size: 19px; line-height: 1.55; color: var(--body); }
.lead--dark { color: var(--muted-dark); }
.text-dark { color: var(--muted-dark); }
.small { font-size: 14px; line-height: 1.5; }
.center { text-align: center; }

.stat-mega {
  font-family: var(--font-narrow); font-weight: 700; font-size: 150px; line-height: 0.95;
  letter-spacing: -0.02em; color: var(--orange);
}
.stat-num {
  font-family: var(--font-narrow); font-weight: 700; font-size: 48px; line-height: 1;
  letter-spacing: -0.01em; color: var(--white);
}
.stat-num--orange { color: var(--orange); font-size: 60px; }
.stat-index { font-family: var(--font-narrow); font-weight: 700; font-size: 30px; line-height: 1; color: var(--orange); }

.link-arrow { font-weight: 700; font-size: 15px; color: var(--orange); transition: color .2s; }
.link-arrow:hover { color: var(--orange-dark); }

.rule { width: 120px; height: 4px; background: var(--orange); }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 12px; }
.btn-row--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 18px 30px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 14px 24px; }

/* ---------- Header ---------- */

.topbar { background: var(--navy-deep); color: var(--muted-dark); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar__contacts { display: flex; gap: 28px; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; }
.header-main { background: var(--white); border-bottom: 1px solid var(--line); }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 54px; height: 34px; }
.logo__words { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.logo__name { font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: 0.01em; color: var(--navy); }
.logo__sub {
  background: var(--orange); color: var(--white); text-align: center;
  font-weight: 700; font-size: 9px; line-height: 1; letter-spacing: 0.28em; padding: 3px 7px;
}
.logo--light .logo__name { color: var(--white); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--navy); white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; padding: 0;
}
.burger svg { width: 22px; height: 22px; stroke: var(--navy); }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(23, 34, 74, 0.12); padding: 8px 20px 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a.mobile-menu__link {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 17px; color: var(--navy);
}
.mobile-menu .btn { width: 100%; margin-top: 16px; }
.mobile-menu__phone { display: block; text-align: center; margin-top: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Heroes ---------- */

.hero, .page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy-deep); background-size: cover; background-position: center;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; background: rgba(20, 30, 66, 0.82);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

.hero { padding-top: 130px; }
.hero__content { display: grid; gap: 28px; max-width: 740px; justify-items: start; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; }
.hero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--orange); }
.hero__text { max-width: 600px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px;
  background: rgba(23, 34, 74, 0.88); border-top: 3px solid var(--orange);
}
.hero-stats__item { padding: 32px; display: grid; gap: 8px; border-right: 1px solid var(--line-dark); }
.hero-stats__item:last-child { border-right: 0; }

.page-hero { padding: 120px 0 104px; }
.page-hero__content { display: grid; gap: 22px; justify-items: start; }
.page-hero__content .lead { max-width: 640px; }
.crumb { font-family: var(--font-narrow); font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
.crumb a:hover { color: var(--orange); }
.badge {
  display: inline-block; background: var(--orange); color: var(--white);
  font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 4px;
}

/* ---------- Timeline ---------- */

.timeline { border-top: 1px solid var(--line); }
.timeline__step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline__body { display: grid; gap: 8px; }

/* ---------- Partner strip ---------- */

.partners { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.partners__label { width: 260px; flex-shrink: 0; display: grid; gap: 6px; }
.partners__logos { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partners__logos--3 { grid-template-columns: repeat(3, 1fr); }
.partner {
  height: 88px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--blueprint); border-radius: 6px; padding: 0 12px;
  font-family: var(--font-narrow); font-weight: 700; font-size: 26px; line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy);
}

/* ---------- Cards ---------- */

.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 34, 74, 0.12); }
.card__img { height: 220px; width: 100%; object-fit: cover; }
.card__body { display: grid; gap: 12px; padding: 28px 28px 32px; align-content: start; }

.spec-card {
  display: grid; gap: 18px; align-content: start; padding: 36px 32px;
  background: var(--blueprint); border-top: 4px solid var(--orange); border-radius: var(--radius);
}
.spec-card--white { background: var(--white); }
.spec-card--navy-top { border-top-color: var(--navy); }

.icon { width: 52px; height: 52px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--orange { stroke: var(--orange); }
.icon--44 { width: 44px; height: 44px; }
.icon--40 { width: 40px; height: 40px; }
.icon--36 { width: 36px; height: 36px; }

/* ---------- Projects (dark stats) ---------- */

.tile-dark {
  display: grid; gap: 18px; padding: 24px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.tile-dark__top { display: flex; align-items: center; gap: 16px; }
.tile-dark__text { display: grid; gap: 4px; }
.track { height: 4px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--orange); }
.tile-dark--row { display: flex; align-items: center; gap: 18px; padding: 28px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 620px; flex-shrink: 0; }
.projects-split { display: flex; align-items: center; gap: 72px; }
.projects-split__text { display: grid; gap: 20px; flex: 1; }

/* ---------- Industries ---------- */

.industries { display: grid; gap: 20px; }
.industries__row { display: grid; gap: 20px; }
.industries__row--2 { grid-template-columns: repeat(2, 1fr); }
.industries__row--3 { grid-template-columns: repeat(3, 1fr); }

.photo-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 300px; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background-color: var(--navy); background-size: cover; background-position: center;
}
.photo-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 66, 0.25) 0%, rgba(20, 30, 66, 0.85) 100%); }
.photo-tile > * { position: relative; }
.photo-tile--tall { min-height: 340px; padding: 32px; }
.photo-tile--xl { min-height: 440px; padding: 32px; }

/* ---------- Advantage ---------- */

.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.adv-item { display: grid; gap: 12px; align-content: start; padding: 8px 0 8px 28px; border-left: 4px solid var(--orange); }

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

.cta { text-align: center; }
.cta__inner { max-width: 860px; margin: 0 auto; display: grid; gap: 24px; justify-items: center; }
.cta__inner .lead { max-width: 640px; }

/* ---------- Media ---------- */

.media { width: 100%; height: 540px; object-fit: cover; border-radius: var(--radius); }

.feature-list { display: grid; gap: 24px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature--divided { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.feature__body { display: grid; gap: 6px; }

.bar-item { display: grid; gap: 8px; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); }

/* ---------- Elevators ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chip {
  font-weight: 600; font-size: 16px; color: var(--navy); background: var(--blueprint);
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px;
}

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th {
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 16px;
  padding: 22px 32px; border-bottom: 3px solid var(--orange);
}
.table td { padding: 26px 32px; vertical-align: top; border-bottom: 1px solid var(--line); width: 33.33%; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: var(--blueprint); }
.table td:first-child { font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--navy); }

.safety-card { display: grid; gap: 12px; align-content: start; padding: 32px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--orange); }

/* ---------- Contact ---------- */

.info-row { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row__body { display: grid; gap: 4px; }
.info-row__body a.h4:hover { color: var(--orange); }

.form {
  display: grid; gap: 18px; padding: 36px; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--navy); width: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: 14px; color: var(--body); }

.help-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.help-card:hover { border-color: var(--orange); box-shadow: 0 10px 24px rgba(23, 34, 74, 0.08); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); border-top: 4px solid var(--orange); color: var(--muted-dark); font-size: 15px; line-height: 1.5; padding-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 340px 1fr 1fr 280px; gap: 48px; }
.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-col h2 {
  font-family: var(--font-narrow); font-weight: 700; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.footer-col a:hover { color: var(--white); }
.footer-brand { gap: 24px; }
.footer-bottom {
  margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav, .header-cta, .topbar__contacts { display: none; }
  .burger { display: inline-flex; }
  .projects-split { flex-direction: column; align-items: stretch; }
  .projects-grid { width: 100%; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; --section-y: 96px; }
  .display { font-size: 56px; }
  .page-title { font-size: 46px; }
  .h2 { font-size: 38px; }
  .stat-mega { font-size: 120px; }
  .grid--4, .partners__logos { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats__item:nth-child(2) { border-right: 0; }
  .hero-stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .split, .split--top { grid-template-columns: 1fr; gap: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head--center { align-items: center; }
  .partners .container { flex-direction: column; align-items: stretch; }
  .partners__label { width: auto; }
  .industries__row--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media { height: 420px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; --section-y: 72px; }
  body { font-size: 16px; }
  .topbar { display: none; }
  .display { font-size: 40px; }
  .page-title { font-size: 36px; }
  .h2 { font-size: 30px; }
  .h3 { font-size: 21px; }
  .lead { font-size: 17px; }
  .stat-mega { font-size: 88px; }
  .stat-num { font-size: 38px; }
  .hero { padding-top: 80px; }
  .hero-stats { margin-top: 56px; }
  .hero-stats__item { padding: 22px 18px; }
  .page-hero { padding: 80px 0 72px; }
  .grid--2, .grid--3, .grid--4, .adv-grid, .projects-grid,
  .industries__row--2, .industries__row--3, .form__row { grid-template-columns: 1fr; }
  .partners__logos, .partners__logos--3 { grid-template-columns: 1fr 1fr; }
  .partner { font-size: 20px; height: 72px; }
  .adv-grid { gap: 32px; }
  .btn-row .btn { flex: 1 1 100%; }
  .media { height: 300px; }
  .photo-tile, .photo-tile--tall, .photo-tile--xl { min-height: 260px; }
  .form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-top: 64px; }

  /* Comparison table becomes stacked cards on phones */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border-bottom: 0; padding: 8px 20px; }
  .table td:first-child { padding-top: 22px; }
  .table td:last-child { padding-bottom: 22px; }
  .table td[data-label]::before {
    content: attr(data-label); display: block; font-family: var(--font-narrow); font-weight: 700;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
