:root {
  --ink: #132230;
  --ink-soft: #3d5163;
  --muted: #5f7386;
  --line: rgba(19, 34, 48, 0.12);
  --paper: #eef2f5;
  --paper-2: #f7f9fb;
  --steel: #1a3f5c;
  --steel-deep: #0f2a3d;
  --blue: #1f6db5;
  --blue-bright: #2d87d4;
  --red: #c8102e;
  --red-soft: rgba(200, 16, 46, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(15, 42, 61, 0.12);
  --radius: 4px;
  --font-display: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
    repeating-linear-gradient(
      135deg,
      rgba(26, 63, 92, 0.035) 0 1px,
      transparent 1px 12px
    ),
    radial-gradient(900px 480px at 100% -10%, rgba(45, 135, 212, 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(200, 16, 46, 0.06), transparent 50%),
    linear-gradient(180deg, #e8eef3, var(--paper) 40%, #e4eaef);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site {
  position: relative;
  z-index: 1;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--steel-deep);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 42, 61, 0.88) 18%, rgba(15, 42, 61, 0.55) 52%, rgba(15, 42, 61, 0.28) 100%),
    url('images/facility/gate.jpg') center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 42, 61, 0.55), transparent 42%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.03) 48px,
      rgba(255, 255, 255, 0.03) 49px
    );
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
}

.hero-brand span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.28em;
  letter-spacing: 0.28em;
  font-weight: 500;
  opacity: 0.82;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #a70d25;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-steel {
  background: var(--steel);
  color: var(--white);
}

.btn-steel:hover {
  background: var(--steel-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--steel);
  color: var(--steel);
}

.btn-outline:hover {
  background: var(--steel);
  color: var(--white);
}

/* Sections */
.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 40rem;
  animation: rise 0.8s ease both;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  color: var(--steel-deep);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    var(--paper-2);
  border-block: 1px solid var(--line);
}

.band-dark {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(45, 135, 212, 0.18), transparent 60%),
    linear-gradient(145deg, var(--steel-deep), var(--steel));
  color: var(--white);
  border: none;
}

.band-dark .section-head h2,
.band-dark .eyebrow {
  color: var(--white);
}

.band-dark .eyebrow {
  color: #ffb3bf;
}

.band-dark .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--red);
  animation: rise 0.8s ease both;
}

.value:nth-child(2) { animation-delay: 0.08s; }
.value:nth-child(3) { animation-delay: 0.16s; }

.value h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--steel-deep);
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Category / product grids — interactive containers */
.cat-grid,
.product-grid,
.equip-grid,
.facility-grid {
  display: grid;
  gap: 1.1rem;
}

.cat-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.equip-grid {
  grid-template-columns: repeat(4, 1fr);
}

.facility-grid {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.cat-item,
.product-item,
.equip-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-item:hover,
.product-item:hover,
.equip-item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 109, 181, 0.35);
  box-shadow: 0 22px 44px rgba(15, 42, 61, 0.16);
}

.cat-item a,
.product-item {
  display: block;
  color: inherit;
  height: 100%;
}

.cat-media,
.product-media,
.equip-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 40%, #fff, #e8eef3 70%);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.cat-media img,
.product-media img,
.equip-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-body,
.product-body,
.equip-body {
  padding: 1rem 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
}

.cat-body h3,
.product-body h3,
.equip-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--steel-deep);
}

.cat-body p,
.product-body p,
.equip-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 600;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}

.product-item.is-hidden {
  display: none;
}

/* Facility mosaic */
.facility-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  min-height: 220px;
}

.facility-grid figure:first-child {
  grid-row: span 2;
  min-height: 100%;
}

.facility-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility-grid figure:hover img {
  transform: scale(1.05);
}

.facility-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(15, 42, 61, 0.78));
  color: var(--white);
  font-size: 0.9rem;
}

/* About / prose */
.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

.prose p {
  margin: 0;
  font-size: 1.02rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.stat {
  padding: 1rem 0;
  border-top: 2px solid var(--red);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--steel-deep);
  letter-spacing: 0.03em;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Install steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-media {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.08);
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body {
  padding: 0.95rem 1rem 1.1rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #ffb3bf;
}

.step-body p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list strong {
  font-size: 1.05rem;
  color: var(--steel-deep);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--blue);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid rgba(31, 109, 181, 0.35);
  border-color: var(--blue);
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note.is-ok {
  color: #1f7a4d;
}

/* Breadcrumb */
.breadcrumb-wrap {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--line);
  margin-left: 0.15rem;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current='page'] {
  color: var(--ink-soft);
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 280px;
  display: grid;
  align-items: end;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 42, 61, 0.9), rgba(15, 42, 61, 0.55)),
    url('images/facility/cnc-1.jpg') center / cover no-repeat;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 2.5rem;
  animation: rise 0.7s ease both;
}

.page-hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
}

/* CTA strip */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-strip h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  color: var(--steel-deep);
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 1.5rem 2rem;
  background: var(--steel-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 4px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-col h3 {
  margin: 0 0 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(100%, var(--max));
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .cat-grid,
  .product-grid,
  .steps,
  .values,
  .stat-row,
  .footer-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .equip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facility-grid figure:first-child {
    grid-row: auto;
    grid-column: span 2;
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(247, 249, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.2rem;
  }

  .hero-copy,
  .page-hero-copy,
  .section {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    min-height: 78vh;
  }

  .cat-grid,
  .product-grid,
  .steps,
  .values,
  .stat-row,
  .footer-inner,
  .split,
  .contact-grid,
  .equip-grid,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid figure:first-child {
    grid-column: auto;
  }

  .cta-strip {
    padding: 1.25rem;
  }
}
