/* Latitude 17 — layout: white page, navy "drawing sheet" bands with a faint engineering grid, orange used only for actions. */
:root {
  --navy: #223a59;
  --navy-deep: #172a43;
  --orange: #e8641c;
  --orange-hover: #cf5513;
  --steel: #6b7480;
  --ink: #18212d;
  --paper: #f4f6f9;
  --line: #d8dee6;
  --white: #ffffff;
  --grid: rgba(255, 255, 255, 0.07);
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
}
.lead { font-size: 1.15rem; color: var(--steel); max-width: 62ch; }
.prose { display: grid; gap: 1rem; max-width: 68ch; }
.prose p { color: #3a4452; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--navy); text-decoration: none;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .btn { padding: 0.65rem 1.1rem; border-bottom: 2px solid transparent; color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.55rem 0.75rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); cursor: pointer;
}
@media (max-width: 860px) {
  .brand img { width: 180px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange); }
  .nav .btn { margin-top: 1rem; }
}

/* Navy bands with the engineering grid */
.band-navy {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .lead { color: #c9d3e0; }

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
.hero .wrap.hero-copy { max-width: 1160px; }
.hero .wrap.hero-copy > * { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }
.hero h1 .accent { color: var(--orange); }
.titleblock {
  border: 1px solid rgba(255, 255, 255, 0.35); font-family: var(--font-mono); font-size: 0.8rem; color: #dbe3ee;
  display: grid; min-width: 0;
}
.titleblock div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.titleblock div:last-child { border-bottom: 0; }
.titleblock span { padding: 0.65rem 0.85rem; }
.titleblock span:first-child { border-right: 1px solid rgba(255, 255, 255, 0.2); color: #9fb0c6; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-hero .wrap { display: grid; gap: 1rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-paper { background: var(--paper); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 70ch; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head-row .section-head { margin-bottom: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1060px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 1.75rem; display: grid; gap: 0.75rem; align-content: start; }
.service .num { font-family: var(--font-mono); color: var(--orange); font-size: 0.8rem; }
.service p { color: #4a5563; }
@media (max-width: 860px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 1rem;
  background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.project { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.project-visual {
  aspect-ratio: 16 / 7; max-width: 100%; position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.1rem;
}
.project-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.project-visual .tag { background: rgba(23, 42, 67, 0.82); border-color: transparent; }
.project-visual .tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); padding: 0.2rem 0.5rem; position: relative;
}
.project-visual .system { font-family: var(--font-mono); color: #e9eef5; font-size: 0.85rem; position: relative; }
.project-visual .system b { color: var(--orange); font-weight: 500; }
.project-body { padding: 1.4rem; display: grid; gap: 0.55rem; align-content: start; }
.project-body .where { font-size: 0.85rem; color: var(--steel); font-weight: 500; }
.project-body p { color: #4a5563; font-size: 0.95rem; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 1.75rem 1.75rem 0 0; display: grid; gap: 0.6rem; align-content: start; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.step .stage { font-family: var(--font-mono); font-size: 0.78rem; color: var(--orange); }
.step p { color: #4a5563; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Two-column content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: #3a4452; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 2px; background: var(--orange); }
.facts { border: 1px solid var(--line); display: grid; }
.facts div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts span { padding: 0.85rem 1rem; }
.facts span:first-child { background: var(--paper); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); border-right: 1px solid var(--line); }
@media (max-width: 520px) { .facts div, .titleblock div { grid-template-columns: minmax(0, 1fr); } .facts span:first-child, .titleblock span:first-child { border-right: 0; } }

.service-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail .head { display: grid; gap: 0.75rem; align-content: start; }
.service-detail .body { display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .service-detail { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.35rem 0.7rem; background: var(--paper); border: 1px solid var(--line); color: var(--navy); }

/* CTA band */
.cta { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-copy { display: grid; gap: 0.6rem; max-width: 60ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
form.enquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 620px) { form.enquiry { grid-template-columns: minmax(0, 1fr); } }
label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--navy); }
label .opt { font-family: var(--font-body); font-weight: 400; color: var(--steel); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--white); width: 100%;
  border: 1px solid #b9c3cf; border-radius: var(--radius); padding: 0.75rem 0.85rem;
}
textarea { min-height: 9rem; resize: vertical; }
input[type="file"] { padding: 0.6rem; background: var(--paper); }
.hint { font-size: 0.82rem; color: var(--steel); }
.form-note { grid-column: 1 / -1; padding: 1rem 1.1rem; background: var(--paper); border-left: 3px solid var(--orange); color: var(--ink); }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: 1.75rem; display: grid; gap: 1.25rem; }
.contact-card h3 { font-size: 1rem; }
.contact-card .item { display: grid; gap: 0.2rem; }
.contact-card .label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b8c4d4; padding-block: 3.5rem 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid img { width: 230px; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--white); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #dbe3ee; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-base {
  margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: #8d9bb0;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.legal h2 { font-size: 1.3rem; margin-top: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; color: #3a4452; display: grid; gap: 0.4rem; }

/* Registrations strip */
.creds { padding-block: 2.25rem; border-top: 1px solid var(--line); background: var(--white); }
.creds-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.creds-text { font-family: var(--font-display); font-weight: 600; color: var(--navy); max-width: 46ch; }
.creds img { width: 370px; max-width: 100%; height: auto; }

/* Service groups */
.service-group { display: grid; gap: 1rem; }
.service-group + .service-group { margin-top: 2.5rem; }
.group-title { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
