:root {
  --ink: #112027;
  --ink-soft: #415760;
  --surface: #f5f8f8;
  --card: #ffffff;
  --brand: #0f7a6d;
  --brand-dark: #0b544b;
  --accent: #ffb347;
  --line: #d8e3e3;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(10, 32, 37, 0.1);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% -8%, rgba(15, 122, 109, 0.2), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 179, 71, 0.16), transparent 25%),
    var(--surface);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(94%, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(245, 248, 248, 0.88);
  border-bottom: 1px solid rgba(216, 227, 227, 0.9);
}

.contact-strip { background: var(--brand-dark); color: #dff3ef; font-size: 0.85rem; }
.contact-strip__inner {
  min-height: 2.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-wrap {
  min-height: 5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.brand img { width: 168px; height: auto; }

.main-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-nav > ul > li { position: relative; }

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1b3138;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-dark);
  background: rgba(15, 122, 109, 0.12);
}

.nav-subtoggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.nav-subtoggle { display: none; }
.nav-toggle { display: none; padding: 0.5rem 0.8rem; }

.submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  padding: 0.4rem;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.submenu a {
  display: block;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  min-height: auto;
  font-size: 0.88rem;
}
.has-children.open > .submenu { display: block; }

.hero { padding: 3rem 0 2.2rem; }
.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}
.lead { font-size: 1.04rem; color: #2f444d; }
h1 { margin: 0.5rem 0 1rem; line-height: 1.2; font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { margin-top: 0; line-height: 1.3; }

.section { padding: 2.8rem 0; }
.section--surface {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(225, 239, 237, 0.82));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-head { padding: 2.4rem 0 0.3rem; }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.card--media { overflow: hidden; padding: 0; }
.card--media img { width: 100%; aspect-ratio: 1.75 / 1; object-fit: cover; }
.card--media h2,
.card--media p { padding-inline: 1rem; }
.card--media h2 { margin-top: 0.9rem; }
.card--media p { margin-bottom: 1.1rem; }

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.split--top { grid-template-columns: 1fr 1fr; align-items: start; }

.stack { display: grid; gap: 1rem; }
.cta-row { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.chip-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip-list li {
  border: 1px solid #b9d8d4;
  background: #eff8f7;
  color: #174741;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--brand), #115e55); }
.btn--ghost { background: #fff; border: 1px solid var(--line); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
label { display: block; margin-bottom: 0.8rem; font-weight: 600; }
input,
textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #c8d7d7;
  font: inherit;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.2rem;
  color: #dbe8e7;
  background: linear-gradient(150deg, #0f2f36, #102127);
}
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: 1.1fr 1fr 1fr; }
.site-footer h3,
.site-footer h4 { color: #fff; margin-top: 0; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0.3rem; }
.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(216, 227, 227, 0.2);
}

.hero--video {
  position: relative;
  padding: 4.2rem 0 2.4rem;
  min-height: 78vh;
  overflow: clip;
}
.hero-video-layer { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(4, 23, 31, 0.86) 15%, rgba(7, 40, 45, 0.55) 55%, rgba(8, 25, 32, 0.8) 100%),
    radial-gradient(circle at 78% 22%, rgba(255, 179, 71, 0.26), transparent 30%);
}
.hero-video-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}
.hero-copy { color: #f4fbfb; }
.hero-copy h1 { color: #fff; max-width: 18ch; font-size: clamp(2.05rem, 4.3vw, 3.55rem); margin-top: 0.55rem; }
.hero-copy .lead { color: #d4ece8; max-width: 55ch; }
.hero-copy .chip-list li {
  border-color: rgba(192, 235, 228, 0.5);
  background: rgba(235, 250, 247, 0.12);
  color: #e4f8f4;
}

.hero-side-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 42px rgba(6, 20, 24, 0.24);
  backdrop-filter: blur(8px);
}
.hero-side-panel h2,
.hero-side-panel h3 { margin-top: 0; color: #123038; }
.hero-side-panel h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.hero-side-panel h3 { margin-top: 0.95rem; margin-bottom: 0.6rem; font-size: 0.98rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.project-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7dad8;
  background: #f8fcfc;
  color: #1a3f46;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.customer-strip { padding-top: 1.5rem; }
.customer-rail {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.customer-chip {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  padding: 0.6rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.customer-chip img { width: 100%; max-width: 130px; height: 54px; object-fit: contain; }
.customer-chip span { font-size: 0.78rem; font-weight: 700; color: #2a4950; }

.hero--video .btn--ghost { background: #ffffff; border: 1px solid #d5e7e4; color: #0e4f46; }
.hero--video .btn--ghost:hover { background: #eaf7f4; color: #0b413a; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-head { gap: 1.2rem; }
.product-hero-image { margin: 0; padding: 0; overflow: hidden; }
.product-hero-image img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.product-nav-wrap { padding-top: 0; }
.product-quick-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.product-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #bfd8d4;
  background: #eff9f7;
  color: #174741;
  font-weight: 700;
  font-size: 0.9rem;
}
.product-quick-nav a:hover { background: #dbf2ed; }
.product-detail-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-detail-card h2 { margin-bottom: 0.65rem; }
.rich-content ul,
.rich-content ol { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.rich-content table { width: 100%; border-collapse: collapse; }
.rich-content td,
.rich-content th { border: 1px solid #cfe0de; padding: 0.5rem 0.6rem; vertical-align: top; }
.rich-content tr:nth-child(even) { background: #f4f9f8; }

@media (max-width: 1080px) {
  .hero-video-grid,
  .grid-3,
  .footer-grid,
  .split,
  .split--top,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    right: 3%;
    top: calc(100% + 0.35rem);
    min-width: min(92vw, 360px);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 0.55rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a { display: block; border-radius: 8px; min-height: auto; }
  .main-nav li + li { margin-top: 0.25rem; }
  .main-nav .has-children { padding-right: 2.3rem; }

  .nav-subtoggle {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.3rem;
    top: 0.28rem;
    font-weight: 700;
  }

  .submenu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0.3rem 0 0.3rem 0.7rem;
    margin-top: 0.2rem;
  }

  .nav-toggle { display: inline-flex; }

  .contact-strip__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.35rem 0;
  }

  .hero--video { min-height: 0; padding-top: 3rem; }
  .hero-copy h1 { max-width: none; font-size: clamp(1.9rem, 7.2vw, 2.9rem); }
  .customer-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .customer-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
