:root {
  --navy: #0e1a24;
  --navy-2: #162736;
  --steel: #2c4558;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --muted: #5c6b76;
  --line: rgba(14, 26, 36, 0.12);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(14, 26, 36, 0.12);
  --radius: 16px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 0;
  flex: 1;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.drop > button {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav a:hover,
.nav a.active,
.drop > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.drop {
  position: relative;
}

.drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.drop:hover .drop-menu,
.drop:focus-within .drop-menu {
  display: grid;
}

.drop-menu a {
  color: var(--navy);
  padding: 10px 12px;
}

.drop-menu a:hover {
  background: var(--cream);
  color: var(--navy);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slides img.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 36, 0.25) 0%, rgba(14, 26, 36, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.05;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: 24px; }

.lead {
  max-width: 640px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.muted {
  color: var(--muted);
  max-width: 560px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat b {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 36px;
  color: var(--accent);
}

.quote-band {
  background: var(--navy-2);
  color: #fff;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

blockquote {
  margin: 0;
  font-size: 28px;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.25;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 26, 36, 0.06);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.link {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(14, 26, 36, 0.88), rgba(14, 26, 36, 0.55)),
    url("../images/banner02.jpg") center/cover no-repeat;
  color: #fff;
  padding: 90px 0 70px;
}

.page-hero.about {
  background-image: linear-gradient(120deg, rgba(14, 26, 36, 0.88), rgba(14, 26, 36, 0.55)), url("../images/thumb-up.jpg");
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.side-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.side-nav a.active,
.side-nav a:hover {
  color: var(--accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img {
  transform: scale(1.06);
}

.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.client {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}

.client img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.contact-list p {
  margin: 0 0 14px;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h3 {
  color: #fff;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footnote {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.product-main {
  min-width: 0;
}

.product-main > p:first-child {
  margin-top: 0;
}

.product-list {
  margin: 0 0 28px;
  padding-left: 20px;
}

.product-list li {
  margin-bottom: 10px;
}

.product-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #000;
  margin: 8px 0 36px;
}

.datasheet {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 8px;
}

.spec-note {
  margin-top: 16px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 20px;
  font-size: 15px;
}

.spec-table caption {
  text-align: left;
  padding: 0 0 12px;
  font-weight: 700;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    z-index: 60;
    max-height: calc(100vh - 78px);
    overflow: auto;
  }
  .nav.open { display: flex; }
  .drop-menu {
    position: static;
    display: grid;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .drop-menu a { color: #fff; }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 28px);
  }
  .brand-text {
    display: none;
  }
  .brand img {
    height: auto;
    max-height: 40px;
    max-width: min(200px, calc(100vw - 96px));
    padding: 3px 6px;
  }
  .header-inner {
    min-height: 64px;
    gap: 8px;
  }
  .hero {
    min-height: 0;
  }
  .hero-content {
    padding: 48px 0 56px;
  }
  h1 {
    font-size: clamp(32px, 10vw, 48px);
    word-break: break-word;
  }
  .lead {
    font-size: 16px;
  }
  .section {
    padding: 48px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .stats, .cards, .gallery, .clients, .quote-grid, .split, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: -28px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .client { grid-template-columns: 72px 1fr; }
  .page-hero {
    padding: 48px 0 36px;
  }
  .product-photo {
    height: 220px;
  }
  .spec-table {
    display: block;
    overflow-x: auto;
    font-size: 13px;
  }
  blockquote {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .stats,
  .gallery {
    grid-template-columns: 1fr;
  }
}
