/* Dayin Partitions — factory-direct operable walls
   Brand blue sampled from the 2024 catalog: #1C3188
   Gold accent from the catalog honor-page rule: #C7A462
*/

:root {
  --blue: #1c3188;
  --blue-mid: #2a44a8;
  --blue-dark: #101c4d;
  --blue-deep: #0a1233;
  --gold: #c7a462;
  --gold-soft: #d4b87a;
  --cream: #f3f0e8;
  --paper: #fbfbf8;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #e4e0d6;
  --line-strong: #cfc9b8;
  --white: #ffffff;
  --danger: #9b2c2c;
  --ok: #1b6b4a;
  --shadow: 0 12px 40px rgba(16, 28, 77, 0.12);
  --header-h: 76px;
  --max: 1180px;
  --max-wide: 1320px;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --display: "Barlow", "Arial Narrow", "Segoe UI", sans-serif;
  focus-ring: 0 0 0 3px rgba(28, 49, 136, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-mid); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--max-wide), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(16, 28, 77, 0.06);
}
.header-inner {
  height: var(--header-h);
  width: min(var(--max-wide), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  flex-shrink: 0;
}
.logo:hover { color: var(--blue); }
.logo-mark { width: 28px; height: 36px; display: block; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.logo-text small {
  font-family: var(--display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--gold);
}

.has-sub { position: relative; }
.has-sub > button {
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.has-sub > button::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.subnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 20;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav,
.has-sub.is-open .subnav { display: block; }
.subnav a {
  display: block;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.subnav a:hover { background: var(--cream); }

.header-cta {
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: var(--blue-dark);
  position: relative;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-mid); color: #fff; }
.btn-gold {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--blue-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-email {
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-light {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-light:hover { background: var(--cream); color: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--blue-deep);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,51,.82) 0%, rgba(10,18,51,.55) 48%, rgba(10,18,51,.18) 100%),
    linear-gradient(0deg, rgba(10,18,51,.55) 0%, transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-wide), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 72px;
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--max-wide)) / 2));
}
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 38em;
  color: rgba(255,255,255,.9);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--blue-dark);
  overflow: hidden;
}
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.page-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,51,.12) 0%, rgba(10,18,51,.58) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-wide), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 48px;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.page-hero .lede {
  font-size: 18px;
  max-width: 40em;
  color: rgba(255,255,255,.9);
  margin: 0;
}

.hero-plain {
  background: var(--blue-dark);
  color: #fff;
  padding: 72px 0 56px;
}
.hero-plain h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-plain .lede { color: rgba(255,255,255,.85); margin: 0; max-width: 40em; }
.hero-plain .eyebrow { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-blue { background: var(--blue-dark); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.section-blue .kicker { color: var(--gold); }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--blue-dark);
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--blue-dark);
}
h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--blue-dark);
}
.section p.intro { font-size: 18px; color: var(--muted); margin: 0; }

/* ---------- Stats / trust ---------- */
.stat-bar {
  background: var(--blue);
  color: #fff;
  padding: 28px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  text-align: center;
}
.stat-grid strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.stat-grid span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.8);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: inherit;
  text-decoration: none;
}
.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
a.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 20px; margin-bottom: 8px; }
.card-meta {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 8px;
}
.card-body p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; flex: 1; }
.card-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Product range strip ---------- */
.range-item .spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.chip {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 3px 8px;
  color: var(--muted);
  background: var(--paper);
}

/* ---------- Applications ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.app-tile {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.app-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .45s;
}
.app-tile:hover img { transform: scale(1.05); }
.app-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,51,.05), rgba(10,18,51,.72));
}
.app-tile span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 280px;
  padding: 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.app-tile small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- Spec tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
table.specs th,
table.specs td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.specs th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blue-dark);
  color: #fff;
  border-bottom: 0;
  white-space: nowrap;
}
table.specs tbody tr:nth-child(even) { background: #f7f6f2; }
table.specs tbody tr:hover { background: #efece3; }
table.specs .model { font-weight: 600; color: var(--blue-dark); font-family: var(--display); }

.note, .callout {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 16px 18px;
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink);
}
.callout-warn {
  border-left-color: #8a6d2b;
}
.callout h3, .callout h4 { margin-top: 0; }

/* ---------- Split / prose ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.split-rev { grid-template-columns: 0.9fr 1.1fr; }
.split img { width: 100%; height: auto; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0 0 .4em; }
.prose h2, .prose h3 { margin-top: 1.4em; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 14px 0 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .n {
  font-family: var(--display);
  font-weight: 600;
  color: var(--gold);
  font-size: 18px;
}

/* ---------- Hardware gallery ---------- */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hw-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
}
.hw-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
.hw-item figcaption {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Forms ---------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
}
.form h2, .form h3 { margin-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
.req { color: #9b2c2c; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 1px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-success {
  display: none;
  background: #e8f5ee;
  border: 1px solid #b7dcc8;
  color: var(--ok);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  color: var(--danger);
  font-size: 14px;
  margin: 0 0 12px;
}
.form-error.is-visible { display: block; }
.field-error input,
.field-error select,
.field-error textarea { border-color: var(--danger); background: #fdf4f4; }
.field-msg { display: none; color: var(--danger); font-size: 12px; margin-top: 4px; }
.field-error .field-msg { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.82);
  padding: 56px 0 24px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px 24px;
  margin-bottom: 40px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-brand p { margin: 10px 0 0; max-width: 36em; }
.legal-name { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.tel-link { white-space: nowrap; }

/* ---------- About / misc ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cert-grid figure {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  margin: 0;
}
.cert-grid img { width: 100%; height: 200px; object-fit: contain; background: #fff; }
.cert-grid figcaption {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-top: 6px;
}

.project-list { columns: 2; column-gap: 40px; }
.project-list h3 { break-after: avoid; margin-top: 1.2em; }
.project-list ul { list-style: none; padding: 0; margin: 0 0 1em; }
.project-list li {
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.diagram { background: #fff; border: 1px solid var(--line); padding: 16px; }
.diagram img { width: 100%; object-fit: contain; background: #fff; }
.diagram figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Legal pages */
.legal { max-width: 72ch; }
.legal h2 { font-size: 22px; margin-top: 2em; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .card-grid, .card-grid-4, .card-grid-5, .related, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hw-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a, .has-sub > button {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
    font-size: 16px;
  }
  .subnav {
    position: static;
    border: 0;
    box-shadow: none;
    display: none;
    padding: 0 0 8px 12px;
    min-width: 0;
  }
  .has-sub.is-open .subnav { display: block; }
  .hero { min-height: auto; }
  .stat-bar { padding-bottom: 96px; }
  .hero-content { padding: 48px 0 96px; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(10,18,51,.2) 0%, rgba(10,18,51,.78) 62%);
  }
  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .gallery, .gallery-2 { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .project-list { columns: 1; }
}

@media (max-width: 560px) {
  .wrap, .wrap-wide, .header-inner, .hero-content, .page-hero-content {
    width: calc(100% - 32px);
  }
  .card-grid, .card-grid-2, .card-grid-4, .card-grid-5,
  .related, .cert-grid, .hw-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile click-to-call emphasis */
@media (max-width: 800px) {
  .mobile-call {
    display: block;
  }
}
.mobile-call { display: none; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* Sticky mobile call / quote bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--blue-dark);
  border-top: 1px solid rgba(199,164,98,.4);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 800px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 64px; }
}
.crumb {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin: 0 0 12px;
}
.crumb a { color: #fff; text-decoration: none; }
.crumb a:hover { color: var(--gold-soft); }
.hero-plain .crumb a { color: rgba(255,255,255,.9); }

.section-diagrams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) {
  .section-diagrams { grid-template-columns: 1fr; }
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .quote-layout { grid-template-columns: 1fr; }
}

.addr {
  font-style: normal;
  line-height: 1.6;
}
