/* Direct Advanced Operations — site stylesheet
   Palette pulled from the company's own DAO logo (navy + gold). */

:root {
  --navy-950: #070f1f;
  --navy-900: #0b1b33;
  --navy-800: #122642;
  --navy-700: #1b3557;
  --navy-600: #274870;
  --gold-500: #f0b429;
  --gold-600: #d99a12;
  --gold-100: #fdf1d3;
  --paper: #f6f7f9;
  --paper-dim: #ececef;
  --white: #ffffff;
  --ink-900: #10151f;
  --ink-700: #333c48;
  --ink-500: #5c6675;
  --line: #dde1e7;
  --line-dark: #24344c;
  --radius: 2px;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { line-height: 1.65; margin: 0 0 1em; color: var(--ink-700); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; border-radius: 1px; }
.brand-text {
  font-family: var(--mono);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.brand-text b { color: var(--gold-500); display:block; font-size: 14px; letter-spacing: 0.08em; }
nav.main-nav { display: flex; align-items: center; gap: 2px; }
nav.main-nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4cedb;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--white);
  border-color: var(--gold-500);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  width: 40px;
  height: 40px;
  font-family: var(--mono);
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,180,41,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,180,41,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold-500); }
.hero p.lead {
  color: #c4cedb;
  font-size: 16.5px;
  max-width: 46ch;
}
.hero-media {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--navy-800);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; }
.hero-media .tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(7,15,31,0.85);
  border: 1px solid var(--gold-500);
  color: var(--gold-100);
  padding: 5px 10px;
  text-transform: uppercase;
}

.btn-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); }
.btn-outline { border-color: #3c5171; color: var(--white); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn:active { transform: translateY(1px); }

/* ---------- stat band ---------- */
.stat-band {
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-dark);
}
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 28px;
}
.stat { text-align: center; border-left: 1px solid var(--line-dark); padding: 6px 12px; }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--mono); font-size: 26px; color: var(--gold-500); font-weight: 600; }
.stat .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #93a1b7; margin-top: 4px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-500); }
.on-dark { background: var(--navy-900); color: var(--white); }
.on-dark p { color: #b7c1d1; }
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dim { background: var(--paper-dim); }

/* brand / capability pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-700);
}
.on-dark .pill { border-color: var(--line-dark); background: var(--navy-800); color: #dbe3ee; }

/* capability icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 8px;
}
.icon-card {
  background: var(--navy-900);
  padding: 26px 22px;
}
.icon-card .mark {
  font-family: var(--mono);
  color: var(--gold-500);
  font-size: 13px;
  margin-bottom: 10px;
}
.icon-card h4 { color: var(--white); font-size: 14.5px; margin-bottom: 6px; }
.icon-card p { color: #93a1b7; font-size: 13.5px; margin: 0; }

/* equipment / product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.product-card .media { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.product-card p { font-size: 13.5px; color: var(--ink-500); flex: 1; }
.product-card .more {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* datasheet style — used on equipment/parts detail pages */
.datasheet {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 28px;
}
.datasheet .media { background: var(--paper-dim); border-right: 1px solid var(--line); }
.datasheet .media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.datasheet .content { padding: 32px 34px; }
.datasheet .sku {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 8px;
}
.datasheet h3 { font-size: 22px; margin-bottom: 14px; }
.datasheet p { font-size: 14.5px; }

@media (max-width: 760px) {
  .datasheet { grid-template-columns: 1fr; }
  .datasheet .media { border-right: none; border-bottom: 1px solid var(--line); }
  .datasheet .media img { min-height: 220px; }
}

/* gallery strip */
.gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.gallery-scroll img {
  scroll-snap-align: start;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--line-dark);
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line-dark); }

/* team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.team-card { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.team-avatar {
  width: 52px; height: 52px;
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: var(--mono);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 16px;
}
.team-card h3 { font-size: 16px; margin-bottom: 2px; }
.team-card .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.team-card p { font-size: 13.5px; color: var(--ink-500); }

/* about / history block */
.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.history-marks { display: grid; gap: 18px; }
.history-mark { border-left: 2px solid var(--gold-500); padding-left: 16px; }
.history-mark .year { font-family: var(--mono); color: var(--gold-600); font-size: 13px; }
.history-mark p { margin: 4px 0 0; font-size: 13.5px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
form.contact-form { display: grid; gap: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field .req { color: var(--gold-600); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-900);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-500); margin-top: -4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.map-card {
  border: 1px solid var(--line);
  background: var(--navy-900);
  color: var(--white);
  padding: 28px;
}
.map-card h3 { color: var(--white); }
.map-card p { color: #b7c1d1; }

/* warranty / callout banner */
.callout {
  border: 1px solid var(--gold-500);
  background: var(--gold-100);
  padding: 18px 22px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.callout b { font-family: var(--mono); }

/* footer */
footer.site-footer {
  background: var(--navy-950);
  color: #93a1b7;
  border-top: 1px solid var(--line-dark);
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 28px 32px;
}
footer .brand-text { color: var(--white); }
footer h4 {
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: var(--gold-500); }
footer p { color: #93a1b7; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #5c6b81;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* page banner (interior pages) */
.page-banner {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  padding: 52px 0 40px;
}
.page-banner h1 { color: var(--white); font-size: clamp(26px, 3.4vw, 34px); }
.page-banner p { color: #b7c1d1; max-width: 60ch; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-media { order: -1; }
  .history { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .datasheet { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr; gap: 14px; }
  .stat { border-left: none; border-top: 1px solid var(--line-dark); padding-top: 14px; }
  .stat:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 680px) {
  .site-header .wrap { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 32px; }
  .brand-text { display: none; }
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 0;
  }
  nav.main-nav.open a { padding: 14px 28px; border-bottom: 1px solid var(--line-dark); }
  .nav-toggle { display: block; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}
