/* ============================================================
   YUANZHU MOULD — Global stylesheet
   Precision Mold Manufacturer · Dongguan, China
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #07182B;
  --navy-900: #0C2440;
  --navy-800: #123050;
  --navy-700: #1B3E68;
  --navy-600: #25517F;
  --blue-500: #2F74C4;
  --blue-400: #4E8FD8;
  --accent: #E8622C;
  --accent-dark: #C74B1D;
  --accent-soft: #FDE9E0;
  --steel-50: #F5F7FA;
  --steel-100: #E9EEF4;
  --steel-200: #D9E1EA;
  --ink: #17222E;
  --gray-600: #4C5A68;
  --gray-400: #8A97A5;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(8, 26, 48, 0.08);
  --shadow: 0 12px 32px rgba(8, 26, 48, 0.14);
  --shadow-lg: 0 24px 56px rgba(8, 26, 48, 0.22);
  --container: 1400px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-900);
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .15s ease;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.65); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-ghost { border-color: var(--steel-200); color: var(--navy-800); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 38px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--navy-900); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #C3CFDD; }
.section-steel { background: var(--steel-50); }

.section-head { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px; 
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-dark .eyebrow { color: #FFB98F; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0; }
.section-head p { color: var(--gray-600); font-size: 1.02rem; margin: 0; }
.section-dark .section-head p { color: #B9C6D6; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.topbar {
  background: var(--navy-950);
  color: #C6D2E0;
  font-size: .8rem;
  display: none;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #C6D2E0; }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 22px; }

.navbar { background: var(--white); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 60px; width: auto; display: block; }
.site-footer .brand-logo { height: 56px; }
@media (max-width: 640px) {
  .brand-logo { height: 32px; }
  .site-footer .brand-logo { height: 44px; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .06em; color: var(--navy-900); }
.brand-text small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-400); font-weight: 600; }

.main-nav { display: none; gap: 4px; align-items: center; }
.main-nav > a, .nav-drop > a {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
}
.main-nav > a:hover, .nav-drop > a:hover, .main-nav > a.active, .nav-drop > a.active { color: var(--navy-800); background: var(--steel-100); }
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.drop-menu a:hover { background: var(--steel-100); color: var(--navy-800); }
.drop-menu a + a { margin-top: 2px; }
.chev { transition: transform .2s ease; }
.nav-drop:hover .chev { transform: rotate(180deg); }

.nav-cta { display: none; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-search {
  display: none;
  flex-shrink: 0;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--navy-800);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.nav-search:hover { background: var(--steel-100); color: var(--accent); }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--steel-200); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-900); margin: 3px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-950);
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav .brand-text strong { color: var(--white); }
.mobile-nav .brand-text small { color: #7E92A8; }
.mobile-close { width: 46px; height: 46px; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: var(--white); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.mobile-nav-links a {
  display: block;
  padding: 14px 6px;
  color: #D6DFEA;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-links a:hover { color: var(--white); }
.mobile-nav-links .drop-title { color: #F9A77E; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 18px 6px 6px; font-weight: 700; }
.mobile-nav-contact { margin-top: 26px; color: #C6D2E0; font-size: .9rem; }
.mobile-nav-contact a { color: var(--white); }
.mobile-nav-contact p { margin: 8px 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  color: var(--white);
  background-color: var(--navy-900);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,24,43,.94) 5%, rgba(7,24,43,.72) 28%, rgba(7,24,43,.25) 50%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 90px 70px; max-width: var(--container); flex: 1 1 auto; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: #F9A77E;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 820px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #D6DFEA; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(12, 36, 64, .45);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px;
  z-index: 5;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.hero-dot.is-active { width: 30px; background: var(--accent); }
.hero-dot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(110deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 72px 0 60px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,98,44,.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-about::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/hero-factory.jpg"); }
.page-hero-capabilities::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-seibu-wire-cut-machine.jpg"); }
.page-hero-workshop::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-high-speed-cnc.jpg"); }
.page-hero-contact::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-factory-exterior.jpg"); }
.page-hero-products::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/hero-precision-parts.jpg"); }
.page-hero-plastic-molds::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-injection-molding.jpg"); }
.page-hero-mold-parts::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/mold-part-18.jpg"); }
.page-hero-metal-overmolding::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/overmolding-1.jpg"); }
.page-hero-connectors::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/hero-connectors.jpg"); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #C6D2E0; max-width: 640px; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: #8FA4BA; margin: 0 0 22px; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb .fa-circle { font-size: 5px; color: #5F7490; }
.breadcrumb a { color: #B9C6D6; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: #5F7490; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card-body p { color: var(--gray-600); font-size: .92rem; margin-bottom: 14px; }
.card-link { font-weight: 700; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--accent-dark); }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* Product category cards (bigger) */
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(7,24,43,.88) 0%, rgba(7,24,43,.25) 55%, transparent 100%);
  color: var(--white);
}
.cat-card-overlay h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.cat-card-overlay p { color: #C6D2E0; font-size: .85rem; margin-bottom: 10px; }
.cat-card-overlay .more { color: #F9A77E; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }

/* Feature / value cards */
.value-card { padding: 28px 24px; }
.value-card .ico {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { color: var(--gray-600); font-size: .9rem; margin: 0; }
.section-head-split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.news-scroll-actions { display: flex; gap: 10px; padding-bottom: 8px; }
.news-scroll-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--steel-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.news-scroll-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.news-scroll-btn:disabled { opacity: .35; cursor: default; }
.news-scroll-btn:disabled:hover { background: var(--white); border-color: var(--steel-200); color: var(--navy-800); }
.news-slider {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-slider::-webkit-scrollbar { display: none; }
.news-slider .news-card { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.news-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.news-media { aspect-ratio: 4/3; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.news-tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.news-card h3 { font-size: 1.06rem; line-height: 1.35; margin: 0; }
.news-card p { color: var(--gray-600); font-size: .92rem; line-height: 1.6; margin: 0; }
.news-card .card-link { margin-top: auto; padding-top: 6px; }
.value-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--navy-800); line-height: 1; margin-bottom: 10px; display: block; }

/* ---------- About preview ---------- */
.about-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.about-media { position: relative; }
.about-media .main-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .main-img img { width: 100%; aspect-ratio: 4/4; object-fit: cover; border-radius: var(--radius); }
.about-badge {
  position: absolute; right: -14px; bottom: -14px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.about-badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.about-badge span { font-size: .78rem; opacity: .9; }
.about-list { margin: 22px 0 28px; }
.about-list li { display: flex; gap: 12px; padding: 5px 0; color: var(--gray-600); font-size: .95rem; }
.about-list li svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 26px 24px 24px 62px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: .9rem; margin: 0; }

/* ---------- Capability rows ---------- */
.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
}
.cap-row + .cap-row { margin-top: 22px; }
.cap-img { border-radius: var(--radius-sm); overflow: hidden; }
.cap-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.cap-body .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.cap-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cap-body p { color: var(--gray-600); font-size: .95rem; margin-bottom: 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px; }
.spec {
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Workshop gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(7,24,43,.85), transparent);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- Enhanced gallery (plastic-molds only) ---------- */
.gallery.gallery-pro { gap: 18px; }
.gallery.gallery-pro figure {
  box-shadow: 0 1px 3px rgba(7,24,43,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery.gallery-pro figure:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(7,24,43,.22); }
.gallery.gallery-pro img { display: block; transition: transform .45s ease; }
.gallery.gallery-pro figure:hover img { transform: scale(1.06); }
.gallery.gallery-pro figure::after {
  content: "\f00e";
  font-family: FontAwesome;
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.gallery.gallery-pro figure:hover::after { opacity: 1; transform: scale(1); }
.gallery.gallery-pro figcaption {
  padding: 34px 14px 10px;
  background: linear-gradient(to top, rgba(7,24,43,.88), rgba(7,24,43,.35) 60%, transparent);
  font-size: .82rem;
  letter-spacing: .02em;
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 16, 30, .92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: none; border-radius: 10px;
  color: var(--white); font-size: 1.6rem; cursor: pointer;
  line-height: 1;
}
.lightbox-cap { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #D6DFEA; font-size: .9rem; text-align: center; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-900); color: var(--white); }
.stats-band .grid { gap: 20px; }
.stat-item { text-align: center; padding: 12px 8px; }
.stat-item b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--white); }
.stat-item b em { font-style: normal; color: var(--accent); }
.stat-item span { font-size: .84rem; color: #AFC0D2; }

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 16px 26px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.industry-card:last-child { grid-column: 1 / -1; }
.industry-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.industry-icon {
  width: 88px; height: 88px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.industry-icon svg { width: 44px; height: 44px; }
.industry-card h3 { font-size: 1rem; margin: 0; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  color: var(--white);
  padding: 72px 0;
  overflow: hidden; 
}
.cta-band::after {
  content: "";
  position: absolute; left: -80px; bottom: -160px; 
  width: 420px; height: 420px;
  border-radius: 50%;
}
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-inner p { color: #C6D2E0; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-tel { color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; display: block; margin-bottom: 4px; }
.cta-mail { color: #B9C6D6; font-size: .95rem; }

/* ---------- 404 ---------- */
.section-404 { text-align: center; padding: 90px 20px 110px; }
.section-404 .error-code { font-family: var(--font-display); font-size: clamp(96px, 16vw, 160px); font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: .02em; }
.section-404 h1 { margin: 14px 0 12px; }
.section-404 p { max-width: 560px; margin: 0 auto 30px; color: #5A6B7F; font-size: 1.05rem; line-height: 1.7; }
.section-404 .error-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.section-404 .error-links { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; color: #5A6B7F; font-size: .95rem; }
.section-404 .error-links a { color: var(--navy-800); font-weight: 600; }
.section-404 .error-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #AFC0D2; }
.footer-share { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.footer-share-label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FA3B8; margin-right: 2px; }
.footer-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #B9C6D6;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.footer-share a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 60px 20px 40px;
}
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand p { font-size: .88rem; margin: 16px 0 0; max-width: 340px; color: #8FA4BA; }
.footer-col h4 { color: var(--white); font-size: .98rem; margin-bottom: 18px; letter-spacing: .03em; }
.footer-col a { display: block; padding: 6px 0; color: #AFC0D2; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: .9rem; color: #AFC0D2; }
.footer-contact svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: #D6DFEA; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: #6E8298;
}
.footer-bottom .container { display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ---------- Full-width header & footer ---------- */
.topbar-inner,
.navbar-inner {
  max-width: none;
  padding-inline: clamp(24px, 3vw, 72px);
}

.site-footer .container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(24px, 3vw, 72px);
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--gray-600); font-size: .95rem; }
.contact-card a { color: var(--navy-800); font-weight: 600; }
.contact-card a:hover { color: var(--accent); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { color: var(--gray-600); font-size: .92rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .86rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47,116,196,.18);
}
.form-note { font-size: .8rem; color: var(--gray-400); margin-top: 10px; }
.form-success {
  display: none;
  background: #E7F4EC;
  border: 1px solid #B5DCC7;
  color: #1E6B45;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--steel-100); font-size: .9rem; }
.data-table th { background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .03em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 700; color: var(--navy-800); }
.table-wrap { overflow-x: auto; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--gray-600); }
.divider { height: 1px; background: var(--steel-200); border: 0; margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive — tablet / desktop
   ============================================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-card:last-child { grid-column: auto; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .topbar { display: block; }
  .about-split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .cap-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cap-row:nth-child(even) .cap-img { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1.35fr; }
  .cta-inner { grid-template-columns: 1.4fr 1fr; }
  .hero-arrow { width: 48px; height: 48px; }
  .hero-prev { left: 24px; }
  .hero-next { right: 24px; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-search { display: inline-flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step:last-child { grid-column: auto; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-grid { grid-template-columns: repeat(7, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .section { padding: 96px 0; }
  .section-tight { padding: 64px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Quote modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(7, 24, 43, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--steel-100); color: var(--navy-800);
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.modal-close:hover { background: var(--accent); color: var(--white); }
.modal h3 { font-size: 1.5rem; margin: 0 0 8px; }
.modal-sub { color: var(--gray-600); font-size: .95rem; margin: 0 0 18px; }

/* ---------- Search modal ---------- */
.search-modal { max-width: 560px; }
.search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--steel-200);
  border-radius: var(--radius);
  font: inherit; font-size: 1rem;
  color: var(--navy-900);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 98, 44, .12); }
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.search-result {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--steel-50);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.search-result:hover, .search-result:focus { background: var(--accent); color: var(--white); }
.search-empty { color: var(--gray-600); font-size: .95rem; padding: 8px 2px; }

/* ---------- Language switch (topbar) ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #D7E0EA;
  font: inherit; font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, .2); color: var(--white); }
.lang-chev { transition: transform .2s ease; }
.lang-switch.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 138px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li + li { margin-top: 2px; }
.lang-menu .is-active,
.lang-menu button {
  display: block; width: 100%;
  padding: 8px 12px;
  text-align: left;
  border: 0; border-radius: 8px;
  background: none;
  font: inherit; font-size: .88rem; color: var(--navy-800);
  cursor: pointer;
}
.lang-menu .is-active { color: var(--accent); font-weight: 700; }
.lang-menu button:hover { background: var(--steel-50); }

/* ---------- Toast ---------- */
.site-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  max-width: 90vw;
  padding: 12px 20px;
  background: var(--navy-900); color: var(--white);
  border-radius: 10px;
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.site-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- News list & detail ---------- */
.page-hero-news::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-production-office.jpg"); }
.page-hero-news-1::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-seibu-wire-cut-machine.jpg"); }
.page-hero-news-2::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-hexagon-cmm.jpg"); }
.page-hero-news-3::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-injection-molding.jpg"); }
.page-hero-news-4::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-programming-design-dept.jpg"); }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-article { max-width: 880px; margin: 0 auto; }
.news-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 22px;
  color: var(--accent); font-weight: 700; font-size: .95rem;
  text-decoration: none;
}
.news-back:hover { color: var(--navy-800); }
.news-article-media { border-radius: var(--radius); overflow: hidden; margin: 4px 0 26px; }
.news-article-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-article .lead { font-size: 1.12rem; line-height: 1.75; color: var(--navy-800); font-weight: 500; margin-bottom: 8px; }
.news-article p { color: var(--gray-600); font-size: 1rem; line-height: 1.75; margin: 0 0 16px; }
.news-article h2 { font-size: 1.35rem; margin: 30px 0 12px; color: var(--navy-900); }
.news-article ul { margin: 0 0 16px; padding-left: 20px; }
.news-article li { color: var(--gray-600); font-size: 1rem; line-height: 1.7; margin-bottom: 8px; }
.related-news { border-top: 1px solid var(--steel-200); margin-top: 38px; padding-top: 30px; }
.related-news h3 { font-size: 1.2rem; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-item {
  display: block;
  padding: 18px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.related-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.related-item .news-tag { margin-bottom: 8px; }
.related-item h4 { font-size: 1rem; margin: 0 0 8px; color: var(--navy-900); line-height: 1.45; }
.related-item p { font-size: .88rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ===== Compliance (legal) pages ===== */
.page-hero-legal::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), url("../img/workshop-programming-design-dept.jpg"); }
.page-hero.hero-cms-banner::before { background-image: linear-gradient(110deg, rgba(7,24,43,.9), rgba(12,36,64,.78)), var(--hero-img); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; font-size: .86rem; }
.footer-legal-links a { color: #C6D2E0; text-decoration: none; }
.footer-legal-links a:hover { color: var(--accent); }

/* ===== Unified news detail (show.html) ===== */
.news-panel { display: none; }
.news-panel.is-active { display: block; }

/* ===== Expanded news list + detail page features ===== */
@media (min-width: 992px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .news-grid { grid-template-columns: repeat(4, 1fr); } }
.news-card .news-body { display: flex; flex-direction: column; }
.news-card .news-media { display: block; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #D7DEE8; background: #fff; color: var(--navy-900); border-radius: 8px; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .2s ease; }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .45; cursor: default; }
.pagination a, .pagination span:not(.page-info) { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #D7DEE8; background: #fff; color: var(--navy-900); border-radius: 8px; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .2s ease; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination span:not(.page-info) { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .86rem; color: var(--gray-600); margin: 10px 0 18px; }
.news-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 26px; font-size: .9rem; color: var(--gray-600); }
.share-link { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #D7DEE8; border-radius: 999px; color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: .85rem; transition: all .2s ease; }
.share-link:hover { border-color: var(--accent); color: var(--accent); }
.news-enquiry { max-width: 880px; margin: 0 auto; padding: 34px; border: 1px solid #E3E9F1; border-radius: 16px; background: #F6F8FB; }
.news-enquiry h2 { margin-top: 0; }
.page-info { font-size: .88rem; color: var(--gray-600); display: inline-flex; align-items: center; margin-right: 4px; }

/* ===== Responsive hardening ===== */
html, body { overflow-x: clip; }
.news-slider { min-width: 0; }
.news-slider { width: 100%; max-width: 100%; }
@media (max-width: 480px) {
  .footer-legal-links { gap: 4px 10px; }
  .pagination { margin-top: 26px; }
  .page-btn { min-width: 36px; height: 38px; padding: 0 10px; font-size: .88rem; }
}
@media (max-width: 640px) {
  .news-enquiry { padding: 24px 18px; }
  .news-share { gap: 6px; }
  .share-link { padding: 7px 11px; font-size: .82rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .about-media { margin-left: 0; }
}

/* ===== UX refinements ===== */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #D7DEE8; background: rgba(255,255,255,.94);
  color: var(--navy-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  box-shadow: 0 6px 18px rgba(8,26,48,.14);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-slider img, .hero-slide img { -webkit-user-drag: none; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--navy-900);
}

/* ===== fullPage full-screen scroll (index only) ===== */
#fullpage .section { padding: 60px 0; }
#fullpage .section.hero { padding: 0; }
#fullpage .section.hero .fp-tableCell { display: block; }
#fullpage .section .container { padding-top: 0; padding-bottom: 0; }
/* ---------- merged screens (stats+industries / cta+footer) ---------- */
#fullpage .section-merged { padding: 36px 0; }
#fullpage .section-merged .stats-band { padding: 18px 0; }
#fullpage .section-merged .section-head { margin-bottom: 26px; }
#fullpage .section-merged.cta-footer-merged { padding: 0; }

/* ---------- fullPage alignment under the fixed header (desktop full-screen only) ----------
   On the homepage the header is position:fixed (via an inline rule in index.html), so
   #fullpage starts at y=0 and fitToSection targets are exact; every section reserves
   the header height as top padding to keep content below the header. */
@media (min-width: 642px) {
  #fullpage .section { box-sizing: border-box; padding: 128px 0 64px; }
  #fullpage .section.hero { padding: 122px 0 0; }
  #fullpage .section-merged { box-sizing: border-box; padding: 132px 0 40px; }
  #fullpage .section-merged .stats-band { padding: 18px 0; }
  #fullpage .section-merged .section-head { margin-bottom: 26px; }
  #fullpage .section-merged.cta-footer-merged { padding: 122px 0 0; }
  /* Products screen: shrink paddings so the screen height equals the viewport
     (122px header + 100vh-122px cell = 100vh). A fit-able screen keeps fullPage
     snap targets exact, and its content is centered within the area below the
     fixed header. */
  /* Hero (home) screen: same treatment — makes the first screen exactly one
     viewport, which also keeps fullPage's snap model exact for every later
     screen (no cumulative drift from an over-height first screen). */
  #fullpage .section[data-anchor="home"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="home"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  #fullpage .section[data-anchor="products"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="products"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  /* About screen: same treatment so its two-column content centers vertically
     within the area below the fixed header. */
  #fullpage .section[data-anchor="about"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="about"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  /* Capabilities screen: shrink the six preview cards so the whole screen
     fits one viewport (title block + 2 rows of cards within the area below
     the fixed header). */
  #fullpage .section[data-anchor="capabilities"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="capabilities"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  #fullpage .section[data-anchor="capabilities"] .section-head { margin-bottom: 22px; }
  #fullpage .section[data-anchor="capabilities"] .section-head p { margin-bottom: 0; font-size: .92rem; }
  #fullpage .section[data-anchor="capabilities"] .grid { row-gap: 16px; }
  #fullpage .section[data-anchor="capabilities"] .card-img { aspect-ratio: auto; height: 188px; }
  #fullpage .section[data-anchor="capabilities"] .card-body { padding: 12px 16px; } 
  #fullpage .section[data-anchor="capabilities"] .card-body h3 { font-size: 1rem; margin-bottom: 4px; }
  #fullpage .section[data-anchor="capabilities"] .card-body p { font-size: .85rem; margin-bottom: 8px; line-height: 1.45; }
  #fullpage .section[data-anchor="capabilities"] .card-link { font-size: .88rem; }
  /* Workshop screen: shrink the six gallery photos so the whole screen fits
     one viewport (title + 2 rows of photos + CTA button). */ 
  #fullpage .section[data-anchor="workshop"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="workshop"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  #fullpage .section[data-anchor="workshop"] .section-head { margin-bottom: 22px; }
  #fullpage .section[data-anchor="workshop"] .section-head p { margin-bottom: 0; }
  #fullpage .section[data-anchor="workshop"] .gallery img { aspect-ratio: auto; height: 250px; }
  #fullpage .section[data-anchor="workshop"] .text-center { margin-top: 20px !important; }
  /* Why Choose Us screen: same one-viewport treatment (title + 4 value cards). */
  #fullpage .section[data-anchor="why-us"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="why-us"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  /* News screen: overlay category tags on the photos, clamp intros to two
     lines and shrink the photos so the whole screen fits one viewport. */
  #fullpage .section[data-anchor="news"] { padding: 122px 0 0; }
  #fullpage .section[data-anchor="news"] .fp-tableCell { height: calc(100vh - 122px) !important; }
  #fullpage .section[data-anchor="news"] .section-head { margin-bottom: 10px; }
  #fullpage .section[data-anchor="news"] .section-head p { margin-bottom: 0; }
  #fullpage .section[data-anchor="news"] .news-media { position: relative; aspect-ratio: auto; height: 210px; }
  #fullpage .section[data-anchor="news"] .news-media .news-tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 6px rgba(7, 24, 43, .18); }
  #fullpage .section[data-anchor="news"] .news-body { padding: 16px 20px 18px; gap: 8px; }
  #fullpage .section[data-anchor="news"] .news-card h3 { font-size: .98rem; line-height: 1.35; }
  #fullpage .section[data-anchor="news"] .news-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; font-size: .88rem; }
  #fullpage .section[data-anchor="news"] .news-card .card-link { padding-top: 2px; }
} 

/* restore footer paddings (the generic .container rule above zeroes them) */
#fullpage .site-footer .footer-grid { padding: 72px 20px 56px; }
/* CTA on the homepage only: give the band its own deep gradient background
   and generous vertical padding so it reads as a distinct section above the
   footer. */
#fullpage .cta-band {
  padding: 88px 0;
  /*! background: linear-gradient(115deg, #0B2440 0%, #123050 52%, #081C31 100%); */
}
/* merged CTA+footer screen keeps a dark background so no gap is visible */
#fullpage .section-merged.cta-footer-merged { background: var(--navy-950); }

/* On mid-size screens (1024-1280px wide) cap the page width at 1200px so the
   layout stays comfortable without the full 1400px desktop frame. */
@media (min-width: 1024px) and (max-width: 1280px) {
  :root { --container: 1200px; }
}
