@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400&family=Michroma&display=swap");

:root {
  --navy: #003B7A;
  --navy-deep: #002650;
  --ink: #12253F;
  --green: #419B0B;
  --green-text: #2F7407;
  --lime: #9BD13A;
  --paper: #F3F6FA;
  --line: #D3DCE8;
  --muted: #586579;
  --white: #FFFFFF;
  --danger: #B42318;
  --radius-sm: 4px;
  --radius-md: 8px;
  --wrap: 1180px;
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); line-height: 1.18; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.25; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 900; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 62%, var(--green) 62% 100%);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.6rem 0; }
.brand img { width: 150px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 700 0.95rem var(--body); color: var(--navy); padding: 0.5rem 0.8rem; cursor: pointer;
}
.nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.55rem 0.8rem; text-decoration: none; font-weight: 700; color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .nav-cta a { background: var(--navy); color: var(--white); margin-left: 0.5rem; }
.nav .nav-cta a:hover { background: var(--navy-deep); color: var(--white); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1rem; }
  .nav .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); }
}

/* Buttons */
.btn {
  display: inline-block; font: 900 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm); border: 2px solid var(--navy);
  background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.text-link { font-weight: 700; }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero .lede { font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.cutaway { width: 100%; height: auto; }
.cutaway text { font-family: var(--body); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.band.alt { background: var(--paper); border-block: 1px solid var(--line); }
.band.dark { background: var(--navy); color: var(--white); }
.band.dark h2 { color: var(--white); }
.band.dark p { color: #DCE6F3; }
.band.dark .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.band.dark .btn:hover { background: var(--lime); border-color: var(--lime); color: var(--navy-deep); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }

.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.product-link {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start;
  text-decoration: none; color: inherit; padding: 1.5rem; background: var(--white);
  border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius-md);
}
.product-link.oc { border-left-color: var(--navy); }
.product-link:hover { border-color: var(--navy); color: inherit; }
.product-link:hover h3 { color: var(--navy); text-decoration: underline; }
.product-link p { margin: 0 0 0.75rem; }
.product-link .kind { font-weight: 700; color: var(--green-text); margin: 0 0 0.25rem; }
.product-link.oc .kind { color: var(--navy); }
.swatch { width: 96px; height: 96px; border-radius: var(--radius-sm); }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.facts li { font-size: 0.95rem; color: var(--muted); }
.facts strong { color: var(--ink); font-size: 1.05rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.5rem; color: var(--green-text); display: block; margin-bottom: 0.4rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-row p { margin: 0; }

/* Page head */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.5rem); }
.page-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product + .product { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.product aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; }
.product aside h3 { font-size: 1rem; }
.spec-list { margin: 0 0 1.25rem; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
.checks { padding-left: 1.2rem; margin: 0 0 1em; }
.checks li { margin-bottom: 0.4rem; }
.checks li::marker { color: var(--green); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* Tech data */
.jump { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.jump a { font-weight: 700; padding: 0.55rem 1rem; border: 2px solid var(--navy); border-radius: var(--radius-sm); text-decoration: none; }
.jump a:hover { background: var(--navy); color: var(--white); }
.td-product + .td-product { margin-top: clamp(3rem, 6vw, 5rem); }
.td-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; border-bottom: 4px solid var(--green); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.td-product.oc .td-title { border-bottom-color: var(--navy); }
.td-title h2 { margin: 0; }
.td-title p { margin: 0; color: var(--muted); }
.td-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.td-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .td-grid { grid-template-columns: 1fr; } }
.td-block h3 { font-size: 1.05rem; color: var(--navy); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); font-weight: 900; color: var(--ink); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
td.num { white-space: nowrap; }
.note { font-size: 0.92rem; color: var(--muted); }
.docs { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 1fr; gap: 0.75rem; }
.docs li { display: flex; }
.docs a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  flex: 1; width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem;
  background: var(--green); color: var(--white); border: 2px solid var(--green);
  border-radius: var(--radius-sm); text-decoration: none;
  font: 900 1.17rem/1.2 var(--body);
}
.docs a:hover { background: var(--green-text); border-color: var(--green-text); color: var(--white); }
.docs a:active { transform: translateY(1px); }
.docs span {
  flex: none; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.04em;
  color: var(--white); border: 1.5px solid rgba(255,255,255,0.85); border-radius: 3px; padding: 0.1rem 0.35rem;
}
.source { margin-top: 1rem; }

/* About */
.prose { max-width: 70ch; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.callout { border-left: 6px solid var(--green); background: var(--paper); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.callout p:last-child { margin-bottom: 0; }

/* Contact & form */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius-md); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.req { color: var(--danger); margin-left: 0.15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--white);
  border: 1px solid #9AA8BB; border-radius: var(--radius-sm); padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.choice { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0; font-weight: 400; }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--navy); }
.help { font-size: 0.9rem; color: var(--muted); margin: 0.3rem 0 0; }
.error { color: var(--danger); font-size: 0.92rem; margin: 0.3rem 0 0; font-weight: 700; }
.form-error { color: var(--danger); font-weight: 700; margin-bottom: 1rem; }
.thanks { border-left: 6px solid var(--green); padding: 1rem 1.25rem; background: var(--paper); }
.info dl { margin: 0; }
.info dt { font-weight: 900; margin-top: 1rem; }
.info dd { margin: 0.2rem 0 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #D6E0EE; padding: 3rem 0 2rem; font-size: 1.0625rem; line-height: 1.65; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-name { font-family: var(--display); color: var(--white); font-size: 1.15rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .h { color: var(--white); font-weight: 900; font-size: 1.0625rem; margin-bottom: 0.6rem; }
.fine { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 2.25rem; padding-top: 1.5rem; font-size: 1rem; line-height: 1.7; color: #D6E0EE; }
.fine p { max-width: 78ch; margin: 0 0 0.75rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .cutaway .rise { transform-origin: 50% 100%; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .cutaway .rise.late { animation-delay: 0.35s; }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
/* Contact details */
address { font-style: normal; }
.footer-contact { margin-top: 0.75rem; line-height: 1.7; }
.reach { margin: 0 0 1rem; }
.reach dt { font-weight: 900; margin-top: 0.9rem; }
.reach dd { margin: 0.15rem 0 0; }

/* Equipment dropdown */
.has-menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: 0.45rem; background: none; border: 0; cursor: pointer;
  font: 700 1.0625rem var(--body); color: var(--ink); padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
}
.menu-btn::after {
  content: ""; width: 0.42em; height: 0.42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.has-menu.open > .menu-btn::after { transform: translateY(1px) rotate(225deg); }
.menu-btn:hover { color: var(--navy); background: var(--paper); }
.menu-btn.is-current { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 30;
  flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0.4rem;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: 0 12px 28px rgba(0, 38, 80, 0.14);
}
.nav .has-menu.open > .submenu { display: flex; }
@media (hover: hover) and (min-width: 861px) {
  .nav .has-menu:hover > .submenu { display: flex; }
}
.nav .submenu a { white-space: nowrap; padding: 0.55rem 0.75rem; }
.nav .submenu li:first-child a { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 0.25rem; }
@media (max-width: 860px) {
  .menu-btn { width: 100%; justify-content: space-between; }
  .menu-btn.is-current { box-shadow: inset 3px 0 0 var(--green); }
  .nav .submenu {
    position: static; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--green);
    border-radius: 0; margin: 0 0 0.25rem 0.8rem; padding: 0 0 0 0.5rem;
  }
}

/* Equipment listing */
.btn-secondary { background: var(--white); color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.chips:empty { display: none; }
.chips a {
  padding: 0.5rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white);
  font-weight: 700; text-decoration: none; color: var(--ink);
}
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
[data-status]:empty { display: none; }
.eq-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); transition: opacity 0.2s;
}
.eq-grid.is-fetching { opacity: 0.55; }
.eq-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.eq-card:hover { border-color: var(--navy); color: inherit; box-shadow: 0 8px 22px rgba(0, 38, 80, 0.12); }
.eq-card:hover h3 { color: var(--navy); text-decoration: underline; }
.eq-media { aspect-ratio: 4 / 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.eq-media img { width: 100%; height: 100%; object-fit: cover; }
.eq-noimg {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; font-weight: 700;
  background: repeating-linear-gradient(135deg, var(--paper) 0 12px, #E8EDF4 12px 24px);
}
.eq-body { padding: 1rem 1.15rem 1.25rem; }
.eq-cat { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); }
.eq-body h3 { margin: 0 0 0.35rem; }
.eq-meta { margin: 0; font-size: 0.92rem; color: var(--muted); }
.eq-meta span + span::before { content: "/"; margin: 0 0.45rem; color: #9AA8BB; }
.eq-skel { min-height: 300px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); }
.eq-empty { grid-column: 1 / -1; border: 1px dashed #9AA8BB; border-radius: var(--radius-md); padding: 2.5rem 1.5rem; text-align: center; }
.eq-empty p { margin-inline: auto; }
.eq-more { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Equipment item */
.crumbs { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumbs a { font-weight: 700; }
.eq-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.eq-detail .eq-media { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.eq-detail h1 { margin-bottom: 0.75rem; }
.lede-sm { font-size: 1.15rem; color: var(--muted); }
.eq-facts { margin: 0 0 1.25rem; }
.eq-facts div { display: flex; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.eq-facts dt { color: var(--muted); min-width: 7rem; }
.eq-facts dd { margin: 0; font-weight: 700; }
.rich img { border-radius: var(--radius-sm); margin: 1rem 0; }
.eq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .eq-detail { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* Equipment gallery: one row, a column per category, bars between columns */
.eq-row { display: flex; align-items: stretch; }
.eq-col { flex: 1 1 0; min-width: 0; padding: 0 clamp(1rem, 2vw, 1.75rem); border-left: 2px solid var(--line); }
.eq-col:first-child { border-left: 0; padding-left: 0; }
.eq-col:last-child { padding-right: 0; }
.eq-col h2 {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.35; text-align: center;
  border-bottom: 4px solid var(--green); padding-bottom: 0.6rem; margin: 0 0 1.25rem;
}
.eq-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.eq-gallery li {
  aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
}
.eq-gallery img { width: 100%; height: 100%; object-fit: contain; }
.eq-contact { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
@media (max-width: 860px) {
  .eq-row { flex-wrap: wrap; row-gap: 2rem; }
  .eq-col { flex: 1 1 50%; padding: 0 1rem; }
  .eq-col:nth-child(odd) { border-left: 0; padding-left: 0; }
  .eq-col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 520px) {
  .eq-col { flex-basis: 100%; padding: 1.5rem 0 0; border-left: 0; border-top: 2px solid var(--line); }
  .eq-col:first-child { padding-top: 0; border-top: 0; }
}
