/* Elko Engineering: site styles ("Desert Light") */

:root {
  --sand: #F3EFE8;
  --sand-2: #E9E3D8;
  --sand-3: #D9D1C4;
  --line: #D3CABB;
  --line-2: #DDD5C8;
  --ink: #1B1E22;
  --ink-2: #2E3237;
  --ink-3: #33373C;
  --muted: #4A4F56;
  --muted-2: #5A5F66;
  --accent: #A8462C;
  --accent-dark: #8E3922;
  --accent-light: #E39A80;
  --on-dark: #C7C1B7;
  --white: #FFFFFF;
  --field: #FBFAF7;
  --field-line: #C9C1B4;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", Arial, Helvetica, sans-serif;
  --wrap: 1240px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; }
.h1 { font-size: 76px; line-height: 1.02; }
.h1--hero { font-size: 84px; line-height: 1.02; max-width: 780px; letter-spacing: -0.005em; }
.h2 { font-size: 52px; line-height: 1.05; }
.h2--md { font-size: 44px; line-height: 1.05; }
.h3 { font-size: 32px; line-height: 1.1; }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.muted { color: var(--muted); }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 14px 24px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  font-family: var(--body);
}
.btn:hover { background: var(--accent-dark); color: var(--white); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 12.5px 24px; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.link-arrow { font-weight: 600; color: var(--accent); }
.link-arrow:hover { color: var(--accent-dark); }

.callout { display: inline-flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--ink); padding-left: 16px; }
.callout__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.callout__number { font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.callout:hover .callout__number { color: var(--accent); }
.callout--dark { border-left-color: var(--accent-light); }
.callout--dark .callout__label { color: var(--on-dark); }
.callout--dark .callout__number { color: var(--sand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--ink); padding: 10px 16px; font-size: 14px; font-weight: 600; }
.chip:hover { background: var(--ink); color: var(--white); }
.chip--lg { padding: 12px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line-2); position: relative; z-index: 20; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo {
  display: block;
  -webkit-mask: url("../img/elko-logo.png") no-repeat left center / contain;
  mask: url("../img/elko-logo.png") no-repeat left center / contain;
  background: var(--ink);
}
.logo--head { width: 173px; height: 72px; }
.logo--foot { width: 87px; height: 36px; background: var(--sand); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__links a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--ink); width: 48px; height: 44px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 680px; overflow: hidden; display: flex; align-items: center;
  background: #b6ada1 url("../img/hero-desert-road.jpg") center / cover no-repeat;
}
.hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243,239,232,0.85) 0%, rgba(243,239,232,0.55) 45%, rgba(243,239,232,0) 75%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero__lead { margin-top: 28px; font-size: 20px; line-height: 1.55; max-width: 560px; color: var(--ink-2); }
.hero .callout { margin-top: 36px; }
.hero .callout__number { font-size: 26px; }

.stats { background: var(--ink); color: var(--sand); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.stat__value { font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; }
.stat__label { margin-top: 6px; font-size: 14px; color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--tight-top { padding-top: 0; }
.section--alt { background: var(--sand-2); padding: 96px 0; }
.section--white { background: var(--white); padding: 96px 0; }
.section--dark { background: var(--ink); color: var(--sand); padding: 96px 0; }
.section--dark .eyebrow { color: var(--accent-light); }
.section--rule { border-top: 1px solid var(--line); }
.page-head { padding: 96px 0 72px; }
.page-head .lead { margin-top: 24px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.center { text-align: center; }
.narrow { max-width: 980px; }
.narrow-text { max-width: 820px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-3--tight { gap: 16px; }
.align-center { align-items: center; }
.align-end { align-items: end; }

/* Homepage service list */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.svc-item { display: flex; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.svc-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.svc-item__num { font-family: var(--display); color: var(--accent); font-size: 18px; font-weight: 500; }
.svc-item__title { display: block; font-size: 19px; font-weight: 600; }
.svc-item__desc { display: block; margin-top: 6px; font-size: 15px; color: var(--muted-2); }

/* Projects */
.proj-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.proj-grid__side { display: flex; flex-direction: column; gap: 24px; }
.proj-card { display: block; }
.proj-card img { width: 100%; height: 220px; object-fit: cover; }
.proj-card--lg img { height: 560px; }
.proj-card__meta { margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.proj-card__title { margin-top: 6px; font-family: var(--display); font-size: 22px; font-weight: 500; text-transform: uppercase; }
.proj-card--lg .proj-card__title { font-size: 28px; }

/* Audience panels */
.panel { border-top: 3px solid var(--accent); padding-top: 28px; }
.panel__kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.panel .h3 { margin-top: 12px; }
.panel p.panel__body { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.panel .link-arrow { display: inline-block; margin-top: 20px; }

/* Closing call band */
.call-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.call-band p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.section--dark .call-band p { color: var(--on-dark); }

/* ---------- Services page ---------- */
.svc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row__num { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--accent); }
.svc-row .h2 { font-size: 36px; line-height: 1.1; margin-top: 8px; }
.badge { display: inline-block; margin-top: 14px; background: var(--ink); color: var(--sand); padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; }
.bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.bullets--single { grid-template-columns: minmax(0, 1fr); color: var(--ink-2); }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--accent-light); padding-top: 20px; }
.step__title { font-family: var(--display); font-size: 22px; font-weight: 500; text-transform: uppercase; }
.step__body { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--on-dark); }

/* ---------- Sectors page ---------- */
.sector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector--rev .sector__media { order: 2; }
.sector__media img, .photo-ph { width: 100%; height: 420px; object-fit: cover; }
.photo-ph { background: var(--sand-3); }
.sector__num { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.sector .h2 { font-size: 40px; line-height: 1.08; margin-top: 8px; }
.sector__body { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.sector__label { margin: 24px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.sector__list { font-size: 15px; line-height: 1.7; color: var(--muted); }
.sector .link-arrow { display: inline-block; margin-top: 20px; }

/* ---------- About page ---------- */
.photo-strip img { width: 100%; height: 280px; object-fit: cover; }
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.profile__photo { width: 100%; height: 560px; object-fit: cover; object-position: center 30%; }
.profile__role { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--muted-2); }
.profile .body-lg { font-size: 17px; }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.creds .stat__value { font-size: 36px; }

/* ---------- Contact ---------- */
.contact-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.form-card { background: var(--white); padding: 40px; border: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  border: 1px solid var(--field-line); padding: 0 14px; font: inherit; font-weight: 400;
  background: var(--field); color: var(--ink); width: 100%; border-radius: 0;
}
.field input, .field select { height: 48px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.req { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { font-size: 13px; color: var(--muted-2); max-width: 420px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; font-size: 15px; display: none; }
.form-status.is-ok { display: block; background: #E6EFE3; color: #24442A; }
.form-status.is-error { display: block; background: #F6E1DA; color: #6B2412; }

.contact-aside { display: flex; flex-direction: column; gap: 32px; }
.contact-aside .callout__number { font-size: 34px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.6; }
.contact-list__label { margin-bottom: 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.map { display: block; border: 1px solid var(--line-2); background: var(--sand-2); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.map__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--sand); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.map__bar a { color: var(--accent-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 48px 0; font-size: 14px; }
.site-footer--ruled { border-top: 1px solid var(--ink-3); }
.site-footer__bar { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .h1 { font-size: 60px; }
  .h1--hero { font-size: 60px; }
  .h2 { font-size: 42px; }
  .section { padding: 80px 0; }
  .grid-2, .grid-3, .svc-list, .proj-grid, .svc-row, .sector, .profile, .contact-main { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { gap: 32px; }
  .svc-row { gap: 16px; }
  .sector { gap: 24px; }
  .sector--rev .sector__media { order: 0; }
  .sector__media img, .photo-ph { height: 300px; }
  .svc-item:nth-last-child(2) { border-bottom: 0; }
  .stats__grid, .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .proj-card--lg img { height: 360px; }
  .profile__photo { height: 480px; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 88px;
    flex-direction: column; gap: 0; background: var(--sand); border-bottom: 1px solid var(--line-2);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav__links a[aria-current="page"] { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; }
  .nav.is-open .nav__links { display: flex; }
  .nav { gap: 12px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .h1, .h1--hero { font-size: 44px; }
  .h2 { font-size: 34px; }
  .h2--md, .svc-row .h2, .sector .h2 { font-size: 30px; }
  .hero { min-height: 560px; background-image: url("../img/hero-desert-road-1000.jpg"); }
  .hero__fade { background: linear-gradient(180deg, rgba(243,239,232,0.88) 0%, rgba(243,239,232,0.7) 55%, rgba(243,239,232,0.35) 100%); }
  .logo--head { width: 130px; height: 54px; }
  .bullets, .form-grid, .creds { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 24px; }
  .photo-strip img { height: 200px; }
  .page-head { padding: 64px 0 48px; }
  .nav .btn--sm { padding: 11px 14px; }
}
