/* ==========================================================================
   Dyna-K Automotive Stampings — Design System v3
   Direction: precision-engineering / technical-drawing motif. Light, minimal,
   professional. Blue + white/grey, matching the company logo. The signature
   device is a blueprint grid + corner-bracket frame (like crop marks on a
   die drawing) — it fills wide viewports with content-appropriate detail
   instead of empty gutters, and reinforces "precision" without saying it.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color — from brand palette */
  --navy-deep:  #0A1931;   /* darkest navy — footer, deep accents */
  --navy:       #1A3D63;   /* primary brand blue — links, buttons, headings accent */
  --blue-mid:   #4A7FA7;   /* mid blue — secondary accent, muted text */
  --blue-light: #B3CFE5;   /* light blue — tints, borders */
  --ice:        #F6FAFD;   /* near-white page background */

  --ink:        var(--navy-deep);
  --steel:      #3D5F80;   /* readable secondary text, derived from mid blue */
  --line:       #DCE8F2;   /* hairline rules — light tint of blue-light */
  --blue:       var(--navy);
  --blue-dark:  var(--navy-deep);
  --blue-tint:  #EAF2FA;   /* pale tint backgrounds */
  --paper:      #FFFFFF;
  --paper-alt:  var(--ice);
  --white:      #FFFFFF;

  /* Type */
  --f-display: 'Barlow Condensed', 'Barlow', sans-serif;
  --f-body: 'Barlow', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;

  /* Layout */
  --gutter: clamp(24px, 4vw, 64px);
  --container-max: 1680px;

  /* Blueprint grid unit — used by the background pattern + bracket sizing */
  --grid-unit: 64px;
  --bracket: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 118%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size:23px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  color: var(--ink);
}
p { margin: 0 0 1em; }

/* Fluid, wide-screen-aware container. Scales with the viewport instead of
   hard-stopping at a fixed pixel width, so large monitors don't strand the
   layout in a narrow island with dead gutters on either side. */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Blueprint grid backdrop ----
   A faint technical-drawing grid, used behind sections that would otherwise
   read as empty on wide screens. Purely decorative, so it's inert to
   screen readers and never competes with content contrast. */
.blueprint-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  background-position: center top;
}

/* ---- Corner brackets ----
   Reads like crop/registration marks on a die drawing. Applied to hero,
   cards, and stat blocks as the page's one recurring signature device —
   everything else stays quiet around it. */
.tech-frame { position: relative; }
.tech-frame::before,
.tech-frame::after,
.tech-frame > .tf-tl,
.tech-frame > .tf-br {
  content: '';
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
  pointer-events: none;
  z-index: 3;
}
.tech-frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.tech-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}

/* Small mono "spec callout" label — e.g. a tolerance or coordinate note,
   used sparingly to add technical texture without inventing fake content. */
.spec-tag {
  position: absolute;
  font-family: var(--f-mono);
  font-size:15px;
  letter-spacing: .06em;
  color: var(--blue-mid);
  white-space: nowrap;
}

/* ---- Eyebrow / label ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size:16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* ---- Hero (framed top+bottom, copy left / big-image carousel right) ---- */
.hero {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
/* Blueprint grid fills the space around the copy column on wide screens,
   fading out before it reaches the carousel so it never fights the image. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  background-position: center 40px;
  -webkit-mask-image:
    linear-gradient(to right, black 0%, black 55%, transparent 78%),
    linear-gradient(to bottom, transparent 0, black 56px);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, black 0%, black 55%, transparent 78%),
    linear-gradient(to bottom, transparent 0, black 56px);
          mask-composite: intersect;
  opacity: .45;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  padding-top: 20px;
  padding-bottom: 40px;
}
.hero-copy {
  max-width: 46ch;
  margin: 0;              /* was: 0 auto */
  position: relative;
  text-align: left;       /* was: center */
  z-index: 2;
  padding-top: 8px;
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.14;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-mid);
}
.hero p.lede {
  font-family: var(--f-body);
  font-size:23px;
  color: var(--steel);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;   /* was: center */
}
/* Certification / tolerance strip — small technical detail under the CTA
   that fills the remaining copy-column space with real brand substance
   (IATF certification) rather than blank air. */
.hero-specs {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  justify-content: flex-start;   /* was: center */
}
.hero-specs .spec dt {
  font-size:15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin: 0 0 4px;
}
.hero-specs .spec dd {
  font-size:19px;
  color: var(--ink);
  margin: 0;
}

/* Big-image carousel: a tall column of large cards, continuously
   auto-scrolling upward in a seamless loop between the hero's top and
   bottom rule lines. */
.hero-carousel {
  position: relative;
  height: 660px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 56px -16px rgba(10,25,49,0.28);
  mask-image: linear-gradient(to bottom, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
}
.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: carouselUp 34s linear infinite;
  will-change: transform;
}
.carousel-card {
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10,25,49,0.16);
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes carouselUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.slide-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--f-mono);
  font-size:16px;
  letter-spacing: .04em;
  color: var(--navy);
  background: repeating-linear-gradient(45deg, var(--ice), var(--ice) 10px, #E6EFF7 10px, #E6EFF7 20px);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation-play-state: paused; }
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(10,25,49,0.04);
}
.topbar {
  background: var(--paper-alt);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size:16px;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar a { color: var(--blue); }
.topbar a:hover { color: var(--blue-dark); }
.topbar-contact { display: flex; gap: 22px; }
.topbar-brochure { color: var(--navy) !important; font-weight: 500; }
.topbar-brochure:hover { color: var(--blue-dark) !important; }

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
}
.navbar > .brand { display: flex; align-items: center; }
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 64px;
  width: auto;
  transition: height .2s;
}
.brand-logo--light { display: none; }
@media (max-width: 900px) {
  .navbar { padding: 8px var(--gutter); }
  .brand-logo { height: 46px; }
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto !important;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-main > li { position: relative; }
.nav-main > li > a {
  position: relative;
  display: block;
  padding: 12px 14px;
  white-space: nowrap;
  color: var(--ink);
  font-family: var(--f-body);
  font-size:20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color .15s;
}
.nav-main > li > a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px; /* sits exactly on top of the header's own border line below */
  height: 2px;
  background: transparent;
  transition: background .15s;
}
.nav-main > li > a:hover::after,
.nav-main > li.active > a::after {
  background: var(--blue);
}
.nav-main > li > a:hover,
.nav-main > li.active > a { color: var(--blue); }
.nav-main .dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  box-shadow: 0 8px 24px rgba(28,39,51,0.08);
  display: none;
  padding: 6px 0;
}
.nav-main > li:hover .dropdown { display: block; }
.nav-main .dropdown a {
  display: block;
  padding: 10px 18px;
  font-family: var(--f-body);
  font-size:18.5px;
  color: var(--steel);
  text-transform: none;
  letter-spacing: 0;
}
.nav-main .dropdown a:hover { color: var(--blue); background: var(--blue-tint); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size:17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid var(--blue);
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-tint); }

/* ---- Section scaffolding ---- */
section { padding: 40px 0; }
section.tight { padding: 28px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(26px, 2.2vw, 34px); margin: 0; }
.section-head p { color: var(--steel); max-width: 42ch; margin: 8px 0 0; }

/* Centered variant of section-head, used on the Products category grid */
.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}
.section-head.centered p { max-width: 56ch; }

/* ---- Cards ----
   Grid now uses auto-fit so a wide viewport adds breathing room *between*
   cards and lets a third/fourth card flow in naturally if the page ever
   grows a section — instead of two cards stretching into oversized slabs. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.frame-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 36px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.frame-card::before,
.frame-card::after {
  content: '';
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.frame-card::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.frame-card::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}
.frame-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(28,39,51,0.06);
  transform: translateY(-2px);
}
.frame-card:hover::before,
.frame-card:hover::after { opacity: 1; }
.frame-card .tag {
  font-family: var(--f-mono);
  font-size:15px;
  color: var(--blue);
  letter-spacing: .1em;
  margin-bottom: 14px;
  display: block;
}
.frame-card h3 { font-size:25.5px; margin-bottom: 10px; }
.frame-card p { color: var(--steel); font-size:21.5px; margin-bottom: 18px; }
.frame-card .go { font-family: var(--f-mono); font-size:16px; letter-spacing: .06em; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.frame-card:hover .go { color: var(--blue); }

/* ---- Overview / stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
}
.stats-row .stat {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  background: var(--white);
  position: relative;
}
.stats-row .stat:last-child { border-right: none; }
.stats-row .stat .num {
  font-family: var(--f-display);
  font-size: clamp(30px, 2.4vw, 38px);
  color: var(--ink);
}
.stats-row .stat .num span { color: var(--blue); }
.stats-row .stat .lbl {
  font-family: var(--f-mono);
  font-size:15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.overview-copy p { color: var(--steel); }

/* Small certification/badge-strip graphics (e.g. Health & Safety icons) —
   these are flat icon rows, not photos, so they get their own natural-size
   treatment instead of being forced into a photo-gallery tile. */
.initiatives-icon-strip {
  margin-top: 20px;
  padding: 20px 24px;
  display: flex;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.initiatives-icon-strip img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.overview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.media-block {
  aspect-ratio: 4/3;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size:15px;
  color: var(--steel);
  letter-spacing: .06em;
  text-align: center;
}
.media-block:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* ---- Customer logo strip (light) ----
   Auto-fit so the strip re-tiles on very wide screens instead of stretching
   a fixed 6-column grid into oversized empty cells. */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-strip .logo-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 3/2;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: var(--f-mono);
  font-size:15px;
  color: var(--steel);
  letter-spacing: .05em;
  transition: background .25s, box-shadow .25s;
}
/* Logos keep their real brand colors — no grayscale/desaturation filter.
   object-fit: contain stops tall/wide logos from being cropped, and the
   generous cell padding gives each mark room to breathe instead of the
   crammed, edge-to-edge look. A soft lift + tint on hover is what actually
   makes the strip feel "colorful" and alive rather than a flat filing grid. */
.logo-strip .logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.logo-strip .logo-cell:hover {
  background: var(--blue-tint);
  box-shadow: inset 0 0 0 1px var(--blue-light);
  z-index: 1;
  position: relative;
}
.logo-strip .logo-cell:hover img { transform: scale(1.08); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: var(--blue-light);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
/* Faint grid on the deep-navy footer echoes the hero's blueprint motif so
   the page reads as one system top to bottom, and keeps the dark band from
   feeling like a flat, empty slab on wide screens. */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(179,207,229,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179,207,229,0.06) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size:18px;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size:18.5px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { font-size:18.5px; color: var(--blue-mid); max-width: 32ch; }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 22px var(--gutter);
  font-family: var(--f-mono);
  font-size:15.5px;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blue-mid);
}
.footer-bottom a:hover { color: var(--white); }

/* ---- Interior page hero (title band) ----
   Shorter than the homepage hero — establishes the page, then gets out
   of the way. Same blueprint-grid + bracket language as the homepage. */
.page-hero {
  background: var(--paper);
  padding: 14px 0 14px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  font-family: var(--f-mono);
  font-size:15.5px;
  letter-spacing: .04em;
  color: var(--steel);
  margin-bottom: 4px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-dark); }
.page-hero h1 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 4px; }
.page-hero .lede { color: var(--steel); font-size:22px; max-width: 62ch; margin: 0; }

/* ---- Gallery grid (Facilities, Products detail) ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-grid .g-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,25,49,0.75), transparent);
  color: var(--white);
  font-family: var(--f-mono);
  font-size:15px;
  letter-spacing: .05em;
  padding: 24px 14px 10px;
}

/* ---- Spec list (Facilities / Certification detail rows) ---- */
.spec-list { border-top: 1px solid var(--line); }
.spec-list .row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list .row dt {
  font-family: var(--f-mono);
  font-size:15.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.spec-list .row dd { margin: 0; color: var(--steel); }

/* ---- Category grid (Products hub) ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Card: circular photo on top, centered content, pill CTA */
.cat-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 32px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28,39,51,0.08);
}
.cat-card .num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--f-mono);
  font-size:15px;
  color: var(--blue-mid);
  letter-spacing: .06em;
}
.cat-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue-tint);
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(28,39,51,0.1);
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { font-size:23px; margin: 0 0 8px; }
.cat-card p { font-size:19px; color: var(--steel); margin: 0 0 20px; }
.cat-card .go {
  font-family: var(--f-mono);
  font-size:15.5px;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--blue);
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.cat-card:hover .go { background: var(--blue-dark); }

/* ---- Forms (Contact / Business Enquiry) ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size:15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size:20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.info-card {
  background: var(--navy-deep);
  color: var(--blue-light);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.info-card h3 { color: var(--white); font-size:22px; margin-bottom: 18px; }
.info-card .info-row { display: flex; gap: 12px; margin-bottom: 16px; font-size:19px; }
.info-card .info-row .lbl { font-family: var(--f-mono); font-size:15px; letter-spacing: .06em; color: var(--blue-mid); text-transform: uppercase; display: block; margin-bottom: 3px; }
.info-card .info-row a:hover { color: var(--white); }

/* ---- Two-column layout helper (used by About / Facilities intros) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---- Product rotator ---- */
.prod-rotator {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.rot-copy { max-width: 42ch; }
.rot-num {
  font-family: var(--f-mono);
  font-size:16px;
  letter-spacing: .1em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.rot-copy h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 12px; }
.rot-copy p { color: var(--steel); font-size:21.5px; margin-bottom: 24px; }
.rot-nav {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rot-navlink {
  font-family: var(--f-mono);
  font-size:16px;
  letter-spacing: .04em;
  color: var(--steel);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.rot-navlink:hover { color: var(--blue); }

.rot-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.rot-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed var(--blue-light);
  transform: translateX(-50%);
}
.rot-thumbs {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Base thumb rule — THIS was missing before, which is why the thumbnails
   were stacking in normal document flow instead of overlapping in place. */
.rot-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10,25,49,0.18);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .5s, filter .5s;
  cursor: pointer;
}
.rot-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Position states, relative to the active (current) item */
.rot-thumb.pos-0 {
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 1;
  filter: none;
}
.rot-thumb.pos--1 {
  width: 150px; height: 150px;
  transform: translate(-50%, calc(-50% - 260px));
  z-index: 3;
  opacity: .55;
  filter: saturate(.7);
}
.rot-thumb.pos-1 {
  width: 150px; height: 150px;
  transform: translate(-50%, calc(-50% + 260px));
  z-index: 3;
  opacity: .55;
  filter: saturate(.7);
}
.rot-thumb.pos--2 {
  width: 80px; height: 80px;
  transform: translate(-50%, calc(-50% - 360px));
  z-index: 1;
  opacity: .25;
}
.rot-thumb.pos-2 {
  width: 80px; height: 80px;
  transform: translate(-50%, calc(-50% + 360px));
  z-index: 1;
  opacity: .25;
}
.rot-thumb.pos-hidden {
  width: 40px; height: 40px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nav-main, .topbar { display: none; }
  .nav-toggle { display: block; width: 40px; height: 40px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
  .hero-copy { max-width: none; }
  .hero-specs { flex-wrap: wrap; row-gap: 16px; }
  .hero-carousel { height: 320px; margin-top: 8px; }
  .carousel-track { animation-duration: 20s; }
  .card-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .hero::before { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .g-wide { grid-column: span 2; }
  .spec-list .row { grid-template-columns: 1fr; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .prod-rotator { grid-template-columns: 1fr; }
  .rot-stage { height: 360px; }
  .rot-thumb.pos-0 { width: 220px; height: 220px; }
  .rot-thumb.pos--1, .rot-thumb.pos-1 { width: 80px; height: 80px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
/* ---- Milestone journey (Company Profile) ----
   A slim dotted line of year labels along the top; clicking a point
   (or the prev/next arrows) swaps the detail panel below — icon, big
   year, description — instead of showing every milestone at once. */
.journey-line-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 4px 4px 16px;
}
.journey-line {
  position: relative;
  display: flex;
  min-width: max-content;
  padding: 0 10px;
}
.journey-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;
  height: 0;
  border-top: 2px dotted var(--blue);
  opacity: .45;
  z-index: 0;
}
.journey-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
  flex: 0 0 92px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.journey-point-year {
  display: block;
  font-family: var(--f-mono);
  font-size:17px;
  color: var(--steel);
  white-space: nowrap;
  margin-bottom: 9px;
  transition: color .15s, font-weight .15s;
}
.journey-point-dot {
  position: relative;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform .15s, box-shadow .15s;
}
.journey-point:hover .journey-point-year { color: var(--blue); }
.journey-point.is-active .journey-point-year {
  color: var(--blue);
  font-weight: 600;
}
.journey-point.is-active .journey-point-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.journey-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.journey-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.journey-arrow svg { width: 16px; height: 16px; }
.journey-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(28,39,51,0.06);
}
.journey-detail-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.journey-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-icon svg { width: 20px; height: 20px; }
.journey-year {
  margin: 0 0 4px;
  font-size: 27.5px;
  color: var(--blue);
}
.journey-text {
  margin: 0;
  color: var(--steel);
  font-size:19px;
  line-height: 1.5;
  max-width: 60ch;
}

@media (max-width: 768px) {
  .journey-point { width: 76px; flex: 0 0 76px; }
  .journey-detail-body { gap: 12px; }
  .journey-year { font-size:25.5px; }
  .journey-text { font-size:18.5px; }
}

/* ---- Product photo loop (half-circle motion showcase) ---- */
.loop-showcase {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3.1;
  margin: 0 auto;
}
.loop-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.loop-track polyline {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 1.2;
  stroke-dasharray: 6 6;
  vector-effect: non-scaling-stroke;
}
.loop-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-family: var(--f-mono);
  font-size:15px;
  letter-spacing: .06em;
  line-height: 1.4;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(10,25,49,0.18);
  z-index: 2;
}
.loop-item {
  position: absolute;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 6px 18px rgba(10,25,49,0.20);
  background: var(--blue-tint);
  transform: translate(-50%, -50%);
  animation-name: loop-arc;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  z-index: 1;
}
.loop-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes loop-arc {
  0% { left: 50.00%; top: 12.00%; }
  8.3333% { left: 60.87%; top: 13.29%; }
  16.6667% { left: 71.00%; top: 17.09%; }
  25% { left: 79.70%; top: 23.13%; }
  33.3333% { left: 86.37%; top: 31.00%; }
  41.6667% { left: 90.57%; top: 40.16%; }
  50% { left: 92.00%; top: 50.00%; }
  58.3333% { left: 90.57%; top: 59.84%; }
  66.6667% { left: 86.37%; top: 69.00%; }
  75% { left: 79.70%; top: 76.87%; }
  83.3333% { left: 71.00%; top: 82.91%; }
  91.6667% { left: 60.87%; top: 86.71%; }
  100% { left: 50.00%; top: 88.00%; }
}

@media (prefers-reduced-motion: reduce) {
  .loop-item { animation: none; left: 50%; top: 12%; }
}

@media (max-width: 800px) {
  .loop-showcase { max-width: 380px; }
}


/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Product/card hover zoom ---- */
.product-card img,
.rot-thumb img {
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover img,
.rot-thumb:hover img {
  transform: scale(1.06);
}

/* ---- Button micro-interaction ---- */
.btn, button, a.btn-primary, a.btn-secondary {
  transition: transform .2s ease, box-shadow .2s ease, background .15s, color .15s;
}
.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 25, 49, 0.15);
}
.go-link { font-family: var(--f-mono); font-size:16px; letter-spacing: .06em; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.go-link:hover { color: var(--blue-dark); }

/* ---- Product galleries: no empty gaps, whatever the photo count ----
   First photo is a wide feature; if the count is even, the last one goes
   wide too, so every row is full (3 -> 1+2, 5 -> 1+4, 6 -> 1+4+1). */
.gallery-grid.g-auto .g-item:first-child,
.gallery-grid.g-auto .g-item:last-child:nth-child(even) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
@media (max-width: 600px) {
  .gallery-grid.g-auto .g-item:first-child,
  .gallery-grid.g-auto .g-item:last-child:nth-child(even) { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ---- Facilities galleries: 3 across, 2 on tablet, 1 on phone ---- */
.gallery-grid.g-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.g-cols-3 .g-item { aspect-ratio: 3/2; }
@media (max-width: 900px) {
  .gallery-grid.g-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.g-cols-3 .g-item:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .gallery-grid.g-cols-3 { grid-template-columns: 1fr; }
  .gallery-grid.g-cols-3 .g-item:last-child:nth-child(odd) { grid-column: span 1; aspect-ratio: 3/2; }
}

/* ---- Product detail pages: 1st photo beside the text, rest 2 per row below ---- */
.product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-feature .pf-first { grid-template-columns: 1fr; }
.product-feature .pf-first .g-item { aspect-ratio: 4/3; }
.product-more { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
.product-more .g-item { aspect-ratio: 4/3; }
.product-more .g-item:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 900px) {
  .product-feature { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .product-more { grid-template-columns: 1fr; }
  .product-more .g-item:last-child:nth-child(odd) { grid-column: span 1; aspect-ratio: 4/3; }
}

/* Keep the 10-item nav on one line on laptop widths */
/* Desktop header: logo on top, menu on its own full-width row with room to breathe */
@media (min-width: 981px) {
  .navbar { padding-bottom: 0; }
  .nav-main {
    flex: 1 0 100%;
    justify-content: space-between;
    margin-left: 0 !important;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }
  .nav-main > li > a { font-size: 20px; padding: 15px 10px; }
  .nav-main > li > a::after { left: 10px; right: 10px; }
}
