/* =========================================================
   Henan Qinyu — Structural Support & Seismic Bracing Systems
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --navy-950: #0F2547;
  --navy-900: #132C55;
  --navy-800: #1A3A6E;
  --navy-700: #20488A;
  --heading: #16355F;
  --orange: #EE6C1E;
  --orange-dark: #D5580F;
  --green: #25D366;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --bg-card: #F0F5FB;
  --text: #3D4C61;
  --muted: #5E7089;
  --line: #DCE4EF;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 53, 95, .10);
  --shadow-sm: 0 4px 14px rgba(22, 53, 95, .08);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------
   Sections & typography
   --------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 52px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9FB6DA;
  margin-bottom: 14px;
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; }

.h2, .section h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 800;
}

.section-sub {
  color: var(--muted);
  font-size: .98rem;
  margin-top: 12px;
  max-width: 760px;
}

.heading-bar::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin-top: 14px;
}

.center { text-align: center; }
.center .heading-bar::after { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 0;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(238, 108, 30, .35); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: #EAF1FA; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy-800); border: 2px solid var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #1FB855; transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------
   Icons (inline SVG sprite)
   --------------------------------------------------------- */
.icon {
  width: 40px;
  height: 40px;
  color: var(--navy-800);
  flex: none;
}
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 48px; height: 48px; }
.icon-white { color: #fff; }
.icon-orange { color: var(--orange); }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(15, 37, 71, .10); }

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy-900); font-size: 1.02rem; font-weight: 800; letter-spacing: .5px; }
.brand-text small { color: var(--muted); font-size: .58rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-left: auto;
}
.main-nav a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-900);
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a.active { color: var(--navy-900); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
.main-nav .nav-cta { margin-left: 6px; padding: 10px 20px; }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: all .25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 71, .45);
  z-index: 98;
}

@media (max-width: 1279px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -320px;
    height: 100dvh;
    width: 300px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 92px 28px 32px;
    box-shadow: -12px 0 34px rgba(15, 37, 71, .18);
    transition: right .3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  body.nav-open .main-nav { right: 0; }
  body.nav-open .nav-backdrop { display: block; }
  .main-nav a { font-size: .95rem; padding: 10px 0; width: 100%; }
  .main-nav a.active::after { width: 40px; bottom: 4px; }
  .main-nav .nav-cta { margin: 16px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------
   Heroes
   --------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, #142E58 0%, #1E4480 100%);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.3px;
}
.hero p {
  color: #C9D6EA;
  font-size: 1.02rem;
  margin: 18px 0 30px;
  max-width: 540px;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 22px 44px rgba(6, 18, 40, .35);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Light hero (Applications page) */
.hero--light { background: var(--bg-alt); }
.hero--light h1 { color: var(--heading); }
.hero--light p { color: var(--muted); }
.hero--light .eyebrow { color: var(--orange); }

/* Split hero (Contact page) */
.hero--split { background: var(--navy-900); }
.hero--split .hero-grid { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; align-items: stretch; }
.hero--split .hero-copy { padding: 72px 48px 72px 0; }
.hero--split .hero-media { height: 100%; }
.hero--split .hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
@media (max-width: 900px) {
  .hero--split .hero-grid { grid-template-columns: 1fr; }
  .hero--split .hero-copy { padding: 56px 0; }
  .hero--split .hero-media img { border-radius: 0 0 var(--radius) var(--radius); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 52px 0 60px; gap: 36px; }
}

/* ---------------------------------------------------------
   Card grids (product ecosystem / category matrix)
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.eco-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all .25s ease;
  height: 100%;
}
.eco-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--shadow);
}
.eco-card h3 { font-size: 1.02rem; font-weight: 700; margin: 18px 0 8px; }
.eco-card p { font-size: .88rem; color: var(--muted); }

@media (max-width: 1024px) { .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Split layouts (image + text)
   --------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split > * { min-width: 0; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.split-body .section-sub { margin-top: 14px; }
.split-body h2 { margin-bottom: 6px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; }
}

/* ---------------------------------------------------------
   Feature rows (icon + title + text)
   --------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 38px;
}
.feature-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature h4 { font-size: .96rem; font-weight: 700; margin: 14px 0 6px; }
.feature p { font-size: .86rem; color: var(--muted); }

@media (max-width: 1024px) { .feature-row, .feature-row.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-row, .feature-row.cols-3 { grid-template-columns: 1fr; } }

/* Numbered advantages */
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 34px;
}
.num-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.num-item h4 { font-size: .98rem; font-weight: 700; margin: 14px 0 6px; }
.num-item p { font-size: .86rem; color: var(--muted); }

@media (max-width: 1024px) { .num-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .num-grid { grid-template-columns: 1fr; } }

/* Check list */
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .95rem;
  color: #46586F;
}
.check-list li + li { margin-top: 13px; }
.check-list .icon { width: 21px; height: 21px; margin-top: 2px; color: var(--navy-700); }

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.stat .icon { width: 34px; height: 34px; }
.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading);
  margin: 10px 0 3px;
  line-height: 1.1;
}
.stat-label { font-size: .86rem; color: var(--muted); }

@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   QC workflow flow
   --------------------------------------------------------- */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.flow-step { flex: 1; text-align: center; }
.flow-icon {
  width: 74px; height: 74px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon .icon { width: 34px; height: 34px; }
.flow-step p { font-size: .88rem; font-weight: 600; color: var(--heading); margin-top: 12px; line-height: 1.4; }
.flow-arrow { color: #B7C6DC; margin-top: 26px; flex: none; }
.flow-arrow .icon { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .flow { flex-wrap: wrap; gap: 22px; }
  .flow-step { flex: 1 1 40%; }
  .flow-arrow { display: none; }
}

/* ---------------------------------------------------------
   Certificates
   --------------------------------------------------------- */
.cert-row { display: flex; gap: 20px; justify-content: center; }
.cert-row img {
  width: 46%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

/* ---------------------------------------------------------
   Timeline
   --------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  margin-top: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: #D6E0EE;
}
.tl-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.section .tl-dot { box-shadow: 0 0 0 6px #fff; }
.section-alt .tl-dot { box-shadow: 0 0 0 6px var(--bg-alt); }
.tl-dot.o { background: var(--orange); }
.tl-dot.n { background: var(--navy-800); }
.tl-item h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 6px; }
.tl-item p { font-size: .86rem; color: var(--muted); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 34px; }
  .timeline::before { display: none; }
}

/* ---------------------------------------------------------
   Comparison table
   --------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 13px 16px;
}
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 13px 16px; text-align: center; border-top: 1px solid var(--line); color: var(--text); }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--heading); }
.compare-table td:last-child { font-weight: 700; color: var(--heading); }

/* Benefit grid (2x2 with round icons) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon {
  width: 50px; height: 50px;
  flex: none;
  border-radius: 50%;
  background: #E4EDF8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon .icon { width: 24px; height: 24px; }
.benefit h4 { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.benefit p { font-size: .85rem; color: var(--muted); }

@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Gallery & testimonial
   --------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial {
  background: #E9F0F9;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.testimonial .quote-mark {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
}
.testimonial p { font-size: .9rem; color: #46586F; margin: 8px 0 14px; flex: 1; }
.testimonial strong { display: block; font-size: .9rem; color: var(--heading); }
.testimonial span { font-size: .8rem; color: var(--muted); }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #142E58, #1E4480);
  color: #fff;
  padding: 40px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 26px;
}
.cta-inner > .icon { color: #9FB6DA; width: 46px; height: 46px; }
.cta-inner h3 { color: #fff; font-size: 1.25rem; font-weight: 700; }
.cta-inner p { color: #C9D6EA; font-size: .93rem; margin-top: 4px; }
.cta-inner .btn { margin-left: auto; flex: none; }

@media (max-width: 900px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { margin-left: 0; }
}

/* ---------------------------------------------------------
   Product / hardware cards
   --------------------------------------------------------- */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card h4 {
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  padding: 14px 10px;
}
.product-card p { font-size: .8rem; color: var(--muted); text-align: center; padding: 0 16px 16px; }

/* Download panel */
.download-panel {
  background: #E9F0F9;
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-panel h3 { font-size: 1.15rem; font-weight: 700; }
.download-panel .q { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.download-panel .q strong { color: var(--heading); }
.download-panel .btn { align-self: flex-start; margin-top: auto; }

/* ---------------------------------------------------------
   Contact channel cards & regions
   --------------------------------------------------------- */
.channel-card .btn { max-width: 100%; white-space: normal; line-height: 1.3; }
.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.channel-card .icon { margin: 0 auto; }
.channel-card h4 { font-size: .98rem; font-weight: 700; margin: 12px 0 6px; }
.channel-card p { font-size: .83rem; color: var(--muted); margin-bottom: 16px; }

.region-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.region-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 14px;
  text-align: center;
}
.region-card .icon { width: 30px; height: 30px; margin: 0 auto; }
.region-card h4 { font-size: .9rem; font-weight: 700; margin: 10px 0 6px; }
.region-card p { font-size: .78rem; color: var(--muted); line-height: 1.7; word-break: break-all; }

@media (max-width: 1100px) { .region-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.field label em { color: var(--orange); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #D4DEEB;
  border-radius: 8px;
  font: inherit;
  font-size: .92rem;
  color: #31405A;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(32, 72, 138, .12);
}
.upload-box {
  border: 2px dashed #C4D2E4;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-box:hover { border-color: var(--navy-700); }
.upload-box strong { display: block; color: var(--heading); font-size: .92rem; margin-bottom: 4px; }
.upload-box .icon { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--navy-700); }
.form-note { margin-top: 12px; font-size: .88rem; font-weight: 600; color: #1B8A4B; display: none; }
.form-note.ok { display: block; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: #A9BBD6;
  padding-top: 58px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr 1.1fr 1fr;
  gap: 44px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #8FA3C2; }
.footer-brand > p { font-size: .88rem; margin: 16px 0 18px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9D6EA;
  transition: all .2s;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-social .icon { width: 17px; height: 17px; }

.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: #9FB6DA; }
.footer-contact a:hover { color: var(--orange); }
.footer-contact .btn { margin-top: 8px; }

.cert-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 46px;
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #8FA3C2;
}
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------------------------------------------------------
   Scroll-reveal animation system
   html.js is set by main.js; without JS everything stays visible.
   --------------------------------------------------------- */
html.js .reveal,
html.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
html.js .rv-from-left { transform: translateX(-46px); }
html.js .rv-from-right { transform: translateX(46px); }
html.js .rv-fade { transform: none; }
html.js .reveal.in,
html.js .rv.in { opacity: 1; transform: none; }

/* staggered groups: children rise in one after another */
html.js .rv-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 85ms);
}
html.js .rv-group.group-in > * { opacity: 1; transform: none; }

/* hero plays its own entrance on page load */
html.js .hero .hero-copy > * {
  opacity: 0;
  animation: rvUp .8s cubic-bezier(.22, .61, .36, 1) forwards;
}
html.js .hero .hero-copy > :nth-child(1) { animation-delay: .08s; }
html.js .hero .hero-copy > :nth-child(2) { animation-delay: .2s; }
html.js .hero .hero-copy > :nth-child(3) { animation-delay: .32s; }
html.js .hero .hero-copy > :nth-child(4) { animation-delay: .44s; }
html.js .hero .hero-media {
  opacity: 0;
  animation: rvSide .95s cubic-bezier(.22, .61, .36, 1) .3s forwards;
}
html.js .hero--split .hero-media { animation-name: rvFade; }
@keyframes rvUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rvSide { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes rvFade { from { opacity: 0; } to { opacity: 1; } }

/* Reduced motion: keep a quick, calm fade — never large movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .rv { transform: none; transition: opacity .25s ease; }
  html.js .rv-group > * { transform: none; transition: opacity .25s ease; transition-delay: calc(var(--i, 0) * 40ms); }
  html.js .hero .hero-copy > *, html.js .hero .hero-media { animation: rvFade .4s ease forwards !important; }
  html.js .hero .hero-copy > :nth-child(1) { animation-delay: 0s !important; }
  html.js .hero .hero-copy > :nth-child(2) { animation-delay: .08s !important; }
  html.js .hero .hero-copy > :nth-child(3) { animation-delay: .16s !important; }
  html.js .hero .hero-copy > :nth-child(4) { animation-delay: .24s !important; }
  html.js .hero .hero-media { animation-delay: .2s !important; }
  .btn:hover, .eco-card:hover, .product-card:hover { transform: none; }
}

/* ---------------------------------------------------------
   Product detail pages
   --------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--navy-700); font-weight: 600; }

.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table th { background: var(--navy-900); color: #fff; font-weight: 600; padding: 10px 14px; text-align: center; white-space: nowrap; }
.spec-table th:first-child { text-align: left; }
.spec-table td { padding: 9px 14px; border-top: 1px solid var(--line); text-align: center; color: var(--text); white-space: nowrap; }
.spec-table td:first-child { text-align: left; color: var(--heading); font-weight: 600; }
.spec-table tr:nth-child(even) td { background: #F7FAFD; }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.prod-card img { height: 150px; width: auto; max-width: 100%; margin: 0 auto 14px; object-fit: contain; }
.prod-card h4 { font-size: .95rem; }
.prod-card .model { color: var(--orange); font-weight: 700; font-size: .85rem; margin: 3px 0 6px; }
.prod-card p { font-size: .83rem; color: var(--muted); }

.diagram-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.diagram-panel img { max-width: 100%; margin: 0 auto; }
.diagram-panel figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.note { font-size: .83rem; color: var(--muted); margin-top: 12px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 12px; }
.mini-table th { background: var(--navy-900); color: #fff; padding: 6px 8px; font-weight: 600; }
.mini-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; }

@media (max-width: 1024px) { .prod-grid, .prod-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-grid, .prod-grid.cols-2 { grid-template-columns: 1fr; } }

/* Direct contacts grid (contact page) */
.direct-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .direct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .direct-grid { grid-template-columns: 1fr; } }

/* Two vertical certificates side by side */
.duo-shots { display: flex; gap: 16px; align-items: flex-start; }
.duo-shots img { width: calc(50% - 8px); height: auto; border-radius: 8px; box-shadow: var(--shadow-sm); }
@media (max-width: 480px) { .duo-shots { gap: 10px; } .duo-shots img { width: calc(50% - 5px); } }
