/* Imperial Land Services — site styles */
:root {
  --green: #123C26;
  --green-deep: #0C2A1B;
  --green-band: #0E3020;
  --green-field: #0E3020;
  --sand: #EFE6D2;
  --sand-2: #D8D2C4;
  --muted: #B9B2A0;
  --gold: #C9963A;
  --gold-light: #D9B56A;
  --gold-dark: #8F6318;
  --rule: rgba(239, 230, 210, 0.22);
  --rule-dark: rgba(18, 60, 38, 0.3);
  --max: 1240px;
  --pad: 20px;
  --disp: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: var(--sand); }
a:hover { color: var(--gold-light); }
h1, h2, h3 { margin: 0; }

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

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.disp {
  font-family: var(--disp);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
}
.eyebrow { margin: 0 0 8px; color: var(--gold-light); }
.lede { margin: 0; color: var(--sand-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0;
}
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--green-deep); }
.btn-outline { border-color: var(--sand); color: var(--sand); background: transparent; }
.btn-outline:hover { background: rgba(239, 230, 210, 0.08); color: var(--sand); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--sand); }
.brand img { width: 56px; height: 56px; background: var(--sand); padding: 2px; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name .disp { font-size: 24px; }
.brand-name .mono { color: var(--gold-light); font-size: 11px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav a { text-decoration: none; font-size: 13px; }
.site-nav a:not(.btn) { display: none; }
.site-nav .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .16; pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "photo" "facts";
  gap: 28px 48px;
  padding-top: 40px; padding-bottom: 48px;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.hero-photo { grid-area: photo; }
.facts { grid-area: facts; }
.hero-copy .mono { color: var(--gold-light); margin: 0; }
.hero h1 { font-size: clamp(56px, 11vw, 112px); }
.hero-copy .lede { font-size: 19px; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.facts {
  margin: 0; display: flex; flex-wrap: wrap; gap: 18px 36px;
  border-top: 1px solid var(--rule); padding-top: 20px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 60% 38%; }
.cap {
  position: absolute; left: 0; bottom: 0; margin: 0;
  background: var(--sand); color: var(--green); padding: 8px 12px;
}
.cap.cap-green { background: var(--green); color: var(--sand); }

/* Family */
.family { background: var(--sand); color: var(--green); }
.family a { color: var(--green); }
.family .wrap {
  padding-top: 64px; padding-bottom: 64px;
  display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: start;
}
.family .eyebrow { color: var(--gold-dark); }
.family h2 { font-size: clamp(44px, 7vw, 64px); margin-bottom: 20px; }
.family p { font-size: 18px; margin: 0 0 16px; }
.family p:last-child { margin-bottom: 0; }
.family-media { display: flex; flex-direction: column; gap: 28px; }
.family-media figure { margin: 0; position: relative; border: 1px solid var(--rule-dark); }
.family-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--green-deep); }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-dark); }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 17px; }
.steps .mono { color: var(--gold-dark); flex: 0 0 56px; padding-top: 3px; }

/* Section headings */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 40px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(48px, 7vw, 64px); }
.section-head .lede { color: var(--muted); max-width: 46ch; font-size: 17px; }

/* Services */
.services .wrap { padding-top: 72px; padding-bottom: 72px; }
.service-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.service { background: var(--green); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.service .mono { color: var(--gold-light); }
.service h3 { font-size: 34px; }
.service p { margin: 0; font-size: 16px; color: var(--sand-2); }
.service-cta { background: var(--gold); color: var(--green-deep); justify-content: space-between; }
.service-cta .mono { color: var(--green-deep); }
.service-cta p { color: var(--green-deep); font-weight: 600; font-size: 18px; }
.service-cta a { color: var(--green-deep); text-decoration: none; font-size: 34px; }

/* Equipment */
.equipment { background: var(--green-band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.equipment .wrap { padding-top: 64px; padding-bottom: 72px; }
.ledger { display: grid; grid-template-columns: 1fr; gap: 0 56px; border-top: 2px solid var(--gold); }
.ledger-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger-row .mono { color: var(--gold-light); flex: 0 0 44px; padding-top: 4px; }
.ledger-row strong { display: block; font-size: 17px; font-weight: 600; }
.ledger-row span:last-child { font-size: 15px; color: var(--muted); }

/* Work */
.work .wrap { padding-top: 72px; padding-bottom: 72px; }
.work .section-head .mono { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; height: 100%; }
.gallery picture { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .tall img { aspect-ratio: 3 / 4; }
.hero-photo picture { display: block; height: 100%; }

/* Service area */
.area { border-top: 1px solid var(--rule); }
.area .wrap {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: start;
}
.area h2 { font-size: clamp(48px, 7vw, 64px); margin-bottom: 16px; }
.area .lede { margin-bottom: 28px; font-size: 18px; max-width: 44ch; }
.counties { display: grid; grid-template-columns: 1fr; gap: 20px 32px; }
.county { border-top: 1px solid rgba(239, 230, 210, 0.3); padding-top: 10px; }
.county.home { border-top: 2px solid var(--gold); }
.county h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.county p { margin: 0; font-size: 16px; }
.map-wrap { display: flex; justify-content: center; }
.map { position: relative; width: 100%; max-width: 540px; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map .mono { position: absolute; color: var(--green); }
.map .gold { color: var(--gold-dark); }
.map .gulf { top: 46%; left: 10px; writing-mode: vertical-rl; transform: rotate(180deg); }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pin.left { flex-direction: row-reverse; }
.pin i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--sand); }
.pin span { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.pin.hq i { width: 16px; height: 16px; background: var(--gold); border-color: var(--green); }
.pin.hq span { font-weight: 700; font-size: 12px; }

/* Contact */
.contact { border-top: 1px solid var(--rule); }
.contact .wrap {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: start;
}
.contact h2 { font-size: clamp(48px, 7vw, 64px); margin-bottom: 16px; }
.contact .lede { font-size: 18px; margin-bottom: 28px; max-width: 44ch; }
.big-phone { display: block; color: var(--sand); text-decoration: none; font-size: clamp(44px, 9vw, 60px); }
.contact .note { margin: 10px 0 24px; color: var(--muted); }
.contact address { font-style: normal; color: var(--sand-2); }
.form {
  display: grid; grid-template-columns: 1fr; gap: 18px 20px;
  border: 1px solid var(--rule); padding: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--gold-light); }
.in {
  width: 100%; border: 1px solid rgba(239, 230, 210, 0.35); background: var(--green-band); color: var(--sand);
  padding: 12px 14px; font: inherit; font-size: 16px; border-radius: 0;
}
.in:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.in { resize: vertical; min-height: 96px; }
select.in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sand) 50%), linear-gradient(135deg, var(--sand) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions span { font-size: 14px; color: var(--muted); }
.hp { display: none; }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--muted); }
.site-footer .wrap {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 40px;
}
.site-footer .mono { font-size: 11px; }
.site-footer .light { color: var(--sand); }
.site-footer a { text-decoration: none; }

/* Thanks page */
.thanks .wrap { padding-top: 96px; padding-bottom: 120px; max-width: 760px; }
.thanks h1 { font-size: clamp(56px, 10vw, 96px); margin-bottom: 20px; }
.thanks p { font-size: 19px; color: var(--sand-2); }

/* ≥ 720px */
@media (min-width: 720px) {
  :root { --pad: 24px; }
  .brand img { width: 64px; height: 64px; }
  .brand-name .disp { font-size: 28px; }
  .brand-name .mono { font-size: 12px; }
  .site-nav a:not(.btn) { display: inline; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px; }
  .field.wide, .form-actions { grid-column: 1 / -1; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
    grid-template-areas:
      "i i"
      "i i"
      "a b"
      "a c"
      "d e"
      "d f"
      "g g"
      "h h";
    gap: 18px;
  }
  .gallery img, .gallery .tall img { aspect-ratio: auto; height: 100%; }
  .gallery .gi { grid-area: i; }
  .gallery .ga { grid-area: a; } .gallery .gb { grid-area: b; } .gallery .gc { grid-area: c; } .gallery .gd { grid-area: d; }
  .gallery .ge { grid-area: e; } .gallery .gf { grid-area: f; } .gallery .gg { grid-area: g; } .gallery .gh { grid-area: h; }
}

/* ≥ 1000px */
@media (min-width: 1000px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: "copy photo" "facts photo";
    gap: 0 48px;
    padding-top: 0; padding-bottom: 0;
  }
  .hero-copy { padding: 72px 0 28px; }
  .facts { margin-bottom: 64px; }
  .hero h1 { font-size: clamp(72px, 8vw, 112px); }
  .hero-photo img { aspect-ratio: auto; min-height: 640px; }
  .family .wrap { grid-template-columns: 1.1fr 1fr; padding-top: 80px; padding-bottom: 80px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { padding: 28px; }
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    grid-template-areas:
      "i i a d"
      "i i a d"
      "b c e f"
      "g g h h";
    gap: 20px;
  }
  .area .wrap { grid-template-columns: 1.1fr 1fr; padding-top: 80px; padding-bottom: 80px; }
  .contact .wrap { grid-template-columns: 1fr 1.2fr; padding-top: 80px; padding-bottom: 80px; }
  .services .wrap, .work .wrap { padding-top: 80px; padding-bottom: 80px; }
  .equipment .wrap { padding-top: 72px; padding-bottom: 80px; }
}

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