@import url('extras-base.css');

.logo {
  display: block;
  width: min(340px, 34vw);
  height: 78px;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

header { background: #fff; }
header { height: 96px; }
header nav a { color: #061b2b; }
header .phone { color: #061b2b; white-space: nowrap; }
header button { color: #061b2b; }

footer img {
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-bg {
  background-image: url('assets/hero-drone-real.png');
  background-position: center 58%;
}

.equipment {
  background:
    linear-gradient(90deg, rgba(6, 27, 43, .98), rgba(6, 27, 43, .86)),
    url('assets/terrain-model-bg.jpg') center / cover no-repeat;
}

.equipment-grid article {
  background: rgba(5, 25, 39, .38);
  backdrop-filter: blur(2px);
}

.earthworks {
  padding: 64px clamp(24px, 6vw, 90px);
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 5vw, 70px);
}

.earthworks-media {
  height: min(430px, 44vw);
  min-height: 300px;
  overflow: hidden;
  position: relative;
  border-left: 4px solid var(--bright);
}

.earthworks-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(17, 27, 33, .45));
}

.earthworks-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.earthworks h2 {
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: -.025em;
}

.contact > div:first-child .eyebrow {
  max-width: 680px;
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.2;
  letter-spacing: .04em;
}

.contact h2 {
  font-size: clamp(29px, 3.2vw, 48px);
  line-height: 1.08;
}

.contact {
  background:
    linear-gradient(90deg, rgba(4, 23, 36, .98) 0%, rgba(4, 23, 36, .9) 48%, rgba(4, 23, 36, .72) 100%),
    url('assets/survey-technology-bg.jpg') center / cover no-repeat;
}

.contact-card {
  background: rgba(10, 42, 62, .9);
  backdrop-filter: blur(5px);
}

@media (max-width: 900px) {
  header { height: 74px; }
  .logo { width: 270px; max-width: 68vw; height: 56px; }
  .earthworks { grid-template-columns: 1fr; padding: 58px 24px; }
  .earthworks-media { height: 360px; min-height: 0; }
}

/* Project references: original survey imagery, in the existing navy/lime palette. */
.references {
  padding: 90px clamp(24px, 6vw, 95px);
  background: #0b2432;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.reference-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.reference-heading .eyebrow { font-size: .875rem; }
.reference-index { color: var(--muted); font-size: .875rem; }
.reference-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 65px); align-items: center; }
.reference-image { display: block; background: #172e34; overflow: hidden; border: 1px solid #36525e; position: relative; }
.reference-image img { width: 100%; height: auto; display: block; }
.reference-cover { border-left: 4px solid var(--bright); }
.reference-open { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: .875rem; font-weight: 700; background: #102f3d; }
.reference-open > span { font-size: 1.5rem; line-height: 1; color: var(--bright); }
.reference-copy h2 { font-size: clamp(1.875rem, 3.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; }
.reference-copy h2 span { color: var(--bright); }
.reference-copy > p { color: #c1cdd2; font-size: 1rem; line-height: 1.7; }
.reference-tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 26px 0; }
.reference-tags li { border: 1px solid #3d5762; padding: 9px 12px; font-size: .875rem; line-height: 1.4; color: #e0e8eb; }
.reference-copy .reference-hint { font-size: .875rem; color: var(--muted); margin-bottom: 0; }
.reference-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.reference-gallery figure { margin: 0; min-width: 0; }
.reference-gallery .reference-image img { aspect-ratio: 4 / 3; object-fit: contain; }
.reference-gallery figcaption { font-size: .875rem; line-height: 1.45; color: #d7e1e4; margin-top: 12px; }
.reference-gallery figcaption span { color: var(--bright); margin-right: 7px; font-variant-numeric: tabular-nums; }
.reference-image:hover { border-color: var(--bright); }
.reference-image:focus-visible, .reference-lightbox button:focus-visible { outline: 3px solid var(--bright); outline-offset: 4px; }
.reference-image { text-decoration: none; }
.reference-lightbox {
  width: min(1240px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 22px;
  background: #08212e;
  color: var(--white);
  border: 1px solid #46616a;
  overflow: auto;
}
.reference-lightbox::backdrop { background: rgba(1, 12, 19, .93); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.lightbox-top h2 { font-size: 1rem; line-height: 1.4; margin: 0; }
.reference-lightbox button { min-height: 44px; border: 1px solid #68808a; color: #fff; background: #163746; padding: 10px 16px; font: inherit; font-size: .875rem; cursor: pointer; }
.reference-lightbox button:hover { border-color: var(--bright); }
.lightbox-close { flex-shrink: 0; }
.lightbox-close span { margin-left: 10px; font-size: 1.125rem; }
.reference-lightbox figure { margin: 0; }
.lightbox-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 240px); object-fit: contain; background: #172e34; touch-action: pan-y pinch-zoom; }
.reference-lightbox figcaption { margin-top: 14px; font-size: 1rem; line-height: 1.5; color: #d7e1e4; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lightbox-counter { font-variant-numeric: tabular-nums; font-size: .875rem; color: #cedcdf; white-space: nowrap; }
body.gallery-open { overflow: hidden; }
@media (max-width: 1200px) {
  header > button { display: block; font: inherit; font-size: .875rem; min-height: 44px; }
  header nav { display: none; position: absolute; top: 96px; left: 0; right: 0; padding: 24px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 96px); overflow-y: auto; border-bottom: 1px solid #cad4d8; }
  header nav.open { display: flex; }
  header nav a { padding: 14px 12px; }
  header nav .phone { margin-top: 8px; }
  .reference-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  header nav { top: 74px; max-height: calc(100dvh - 74px); }
  .references { scroll-margin-top: 88px; padding-top: 65px; padding-bottom: 65px; }
  .reference-feature { grid-template-columns: 1fr; }
  .reference-copy { grid-row: 1; }
  .reference-copy h2 { max-width: 620px; font-size: clamp(2rem, 5.5vw, 3rem); }
  .reference-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .reference-heading { display: block; margin-bottom: 26px; }
  .reference-heading .eyebrow { margin-bottom: 10px; }
  .reference-gallery { gap: 22px 14px; }
  .reference-gallery figcaption span { display: block; margin: 0 0 3px; }
  .reference-lightbox { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 14px; }
  .lightbox-top { align-items: flex-start; }
  .lightbox-top h2 { font-size: .875rem; }
  .reference-lightbox button { padding: 10px 12px; }
  .lightbox-controls { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
