/* ==========================================================================
   VASUNDHARA ENGINEERING WORKS
   pages.css — section & page-specific styles
   --------------------------------------------------------------------------
     01. Home: hero
     02. Home: intro
     03. Stats band
     04. Why choose us
     05. Services list & rows
     06. Machinery cards & filter
     07. Process timeline
     08. CTA band
     09. Page hero (inner pages)
     10. Capabilities / spec table
     11. Gallery
     12. Contact
     13. Responsive
   ========================================================================== */

/* ==========================================================================
   01. HOME: HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__inner { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero__title { margin-top: 1.75rem; }
/* Each line is masked so its inner span can slide up from below */
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: block; }
.hero__line--muted .hero__line-inner { color: var(--c-steel-400); }

.hero__lead { max-width: 34rem; margin-top: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero__visual { position: relative; }

/* Floating credential card */
.hero__badge {
  position: absolute;
  left: -1rem;
  bottom: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--c-black);
  color: var(--c-white);
  box-shadow: var(--shadow-lift);
}
.hero__badge-num { font-family: var(--f-display); font-size: 2.25rem; font-weight: 600; line-height: 1; }
.hero__badge-label {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-steel-400);
}

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--c-steel-200);
}
.hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; }
.hero__tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-steel-500);
  transition: color var(--dur-fast);
}
.hero__scroll:hover { color: var(--c-black); }
.hero__scroll svg { transition: transform var(--dur-base) var(--ease); }
.hero__scroll:hover svg { transform: translateY(4px); }

/* ==========================================================================
   02. HOME: INTRO
   ========================================================================== */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
.intro__sticky { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.intro__body p + p { margin-top: 1.25rem; }
.intro__body { margin-top: 2rem; }

.callout {
  margin-top: 2.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--c-accent);
  background: var(--c-steel-50);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--c-steel-700);
}

.intro__media { display: grid; gap: 1.25rem; }
.intro__media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.fact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-steel-200); border: 1px solid var(--c-steel-200); }
.fact-pair > div { padding: 1.5rem; background: var(--c-white); }
.fact-pair__label {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}
.fact-pair__value { margin-top: 0.5rem; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.fact-pair__value--sm { font-size: 1rem; line-height: 1.4; }

/* ==========================================================================
   03. STATS BAND
   ========================================================================== */
.stats { position: relative; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.stats__texture { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.stats__inner { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-steel-800); }
.stats__grid--5 { grid-template-columns: repeat(5, 1fr); }
.stat__sub { margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.04em; color: #9fb3d6; opacity: 0.75; }
@media (max-width: 1200px) { .stats__grid--5 .stat__num { font-size: clamp(2rem, 3.6vw, 3rem); } }
.stat { padding: 2rem 1.5rem; background: var(--c-black); }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}

.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--c-steel-800); }
.facts-row__label { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-steel-500); }
.facts-row__value { margin-top: 0.75rem; font-family: var(--f-display); font-size: 1.125rem; }

/* ==========================================================================
   04. WHY CHOOSE US
   ========================================================================== */
.why__grid { grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; }
.why__card { padding: clamp(1.75rem, 3vw, 2.5rem); transition: background var(--dur-base) var(--ease); }
.why__card:hover { background: var(--c-black); }
.why__card svg { width: 1.5rem; height: 1.5rem; color: var(--c-accent); }
.why__card h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 500; transition: color var(--dur-base) var(--ease); }
.why__card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--c-steel-600); transition: color var(--dur-base) var(--ease); text-wrap: pretty; }
.why__card:hover h3 { color: var(--c-white); }
.why__card:hover p { color: var(--c-steel-400); }

.why__quote { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--c-accent) !important; color: var(--c-white); }
.why__quote p { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.why__quote span { margin-top: 1rem; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ==========================================================================
   05. SERVICES
   ========================================================================== */
.svc-list { margin-top: 3.5rem; border-top: 1px solid var(--c-steel-200); }
.svc-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.2fr 2.5rem;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--c-steel-200);
  transition: background var(--dur-base) var(--ease);
}
.svc-row:hover { background: var(--c-steel-50); }
.svc-row__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-steel-400); }
.svc-row__title { font-size: 1.5rem; font-weight: 500; transition: transform var(--dur-base) var(--ease); }
.svc-row:hover .svc-row__title { transform: translateX(8px); }
.svc-row__desc { font-size: 0.875rem; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }
.svc-row__arrow { color: var(--c-steel-300); transition: transform var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.svc-row:hover .svc-row__arrow { transform: translate(4px, -4px); color: var(--c-accent); }

.section-head--center {
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.section-head--center .lead {
  margin-inline: auto;
  max-width: 44rem;
}

/* Alternating detail rows on the Services page */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 5vw, 4rem); }
.svc-detail + .svc-detail { margin-top: clamp(4rem, 8vw, 7rem); }
.svc-detail--flip .svc-detail__media { order: 2; }
.svc-detail__index { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-accent); }
.svc-detail__title { margin-top: 1rem; }
.svc-detail__desc { max-width: 32rem; margin-top: 1.25rem; }
.svc-detail__machine {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--c-steel-200);
}
.svc-detail__machine-label { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-steel-500); }
.svc-detail__machine-name { font-family: var(--f-display); font-size: 0.875rem; font-weight: 500; }

/* OEM job chips */
.oem-grid { grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; }
.oem-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; transition: background var(--dur-base) var(--ease); }
.oem-item:hover { background: var(--c-black-soft); }
.oem-item svg { flex: 0 0 auto; width: 1rem; height: 1rem; color: var(--c-accent-light); }
.oem-item span { font-size: 0.875rem; color: var(--c-steel-200); }

/* ==========================================================================
   06. MACHINERY
   ========================================================================== */
.machine-intro { max-width: 44rem; margin-bottom: 3rem; }
.machine-intro .lead { margin-top: 1rem; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-steel-200);
}
.filter-btn {
  position: relative;
  padding: 0.65rem 1.25rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-steel-600);
  transition: color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.filter-btn:hover { color: var(--c-black); }
.filter-btn.is-active { background: var(--c-black); color: var(--c-white); }
.filter-btn__count { margin-left: 0.5rem; font-family: var(--f-mono); font-size: 0.625rem; color: var(--c-steel-400); }

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

.machine-card { display: flex; flex-direction: column; }
/* Hidden state applied by the filter script */
.machine-card.is-hidden { display: none; }

.machine-card__media { transition: box-shadow var(--dur-slow) var(--ease); }
.machine-card:hover .machine-card__media { box-shadow: var(--shadow-lift); }

.machine-card__body { margin-top: 1.5rem; transition: transform var(--dur-slow) var(--ease); }
.machine-card:hover .machine-card__body { transform: translateY(-4px); }

.machine-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.machine-card__cat { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.machine-card__brand { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-steel-400); }
.machine-card__title { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.machine-card__desc { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }

.machine-card__spec { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--c-steel-200); }
.machine-card__spec-label { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-steel-500); }
.machine-card__spec-value { margin-top: 0.375rem; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--c-black); }

.machine-card__features { margin-top: 1rem; }
.machine-card__features li { position: relative; padding-left: 1.25rem; padding-block: 0.2rem; font-size: 0.8125rem; color: var(--c-steel-600); }
.machine-card__features li::before { content: ''; position: absolute; left: 0; top: 0.75rem; width: 0.625rem; height: 1px; background: var(--c-accent); }

.note-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 3vw, 3rem);
  border-left: 2px solid var(--c-accent);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.note-block h3 { font-size: 1.25rem; font-weight: 500; }
.note-block p { max-width: 36rem; margin-top: 0.75rem; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }

/* ==========================================================================
   07. PROCESS TIMELINE
   ========================================================================== */
.timeline { position: relative; margin-top: 3.5rem; padding-left: 2.5rem; }
.timeline__spine { position: absolute; left: 3px; top: 0.5rem; bottom: 0; width: 1px; background: var(--c-steel-200); }
.timeline__fill { position: absolute; left: 3px; top: 0.5rem; width: 1px; height: 0; background: var(--c-accent); transform-origin: top; }
.timeline__item { position: relative; padding-bottom: 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -2.5rem; top: 0.4rem; width: 9px; height: 9px; border: 2px solid var(--c-steel-300); border-radius: 50%; background: var(--c-white); transition: border-color var(--dur-base); }
.timeline__item.is-active .timeline__dot { border-color: var(--c-accent); }
.timeline__row { display: grid; grid-template-columns: 5rem 1fr; gap: 2rem; }
.timeline__step { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-accent); }
.timeline__title { font-size: 1.5rem; font-weight: 500; }
.timeline__desc { max-width: 42rem; margin-top: 0.65rem; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }

/* Process grid (Capabilities page) */
.process-grid { grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; }
.process-grid--2col { grid-template-columns: repeat(2, 1fr); }
.process-cell { padding: 2rem; }
.process-cell__step { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-accent); }
.process-cell h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 500; }
.process-cell p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }

/* ISO Certification Badges (About Us: Quality & Capabilities) */
.section-head--split-cert {
  align-items: center;
}
.section-head__content {
  max-width: 44rem;
}
.cert-badges {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 205px;
  flex: 0 0 205px;
  box-sizing: border-box;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(18, 87, 196, 0.14);
  border-radius: var(--r-md, 16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(46, 156, 226, 0.4);
}
.cert-badge__img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s var(--ease);
}
.cert-badge:hover .cert-badge__img {
  transform: scale(1.06);
}
.cert-badge__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.65rem;
}
.cert-badge__label {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cert-badge--quality .cert-badge__label {
  color: #1257c4;
}
.cert-badge--env .cert-badge__label {
  color: #10a683;
}
.cert-badge__sub {
  font-size: 0.6875rem;
  font-family: var(--f-sans, 'Inter', sans-serif);
  color: var(--c-steel-500);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cert-badges {
    margin-top: 1.5rem;
  }
}
@media (max-width: 560px) {
  .cert-badges {
    gap: 0.75rem;
  }
  .cert-badge {
    width: auto;
    padding: 0.75rem 1rem;
    flex: 1 1 calc(50% - 0.75rem);
  }
  .cert-badge__img {
    width: 72px;
    height: 72px;
  }
  .cert-badge__sub {
    white-space: normal;
  }
}

/* ==========================================================================
   08. CTA BAND
   ========================================================================== */
.cta { position: relative; padding-block: clamp(4rem, 8vw, 7rem); background: var(--c-accent); color: var(--c-white); overflow: hidden; }
.cta__texture { position: absolute; inset: 0; opacity: .4; pointer-events: none; }
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 2.5rem; }
.cta__title { max-width: 40rem; margin-top: 1.5rem; }
.cta__aside { text-align: right; }
.cta__aside p { color: rgba(255,255,255,.85); line-height: 1.7; text-wrap: pretty; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.cta .eyebrow { color: rgba(255,255,255,.75); }

/* ==========================================================================
   09. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--c-black);
  color: var(--c-white);
  overflow: hidden;
}
.page-hero__texture { position: absolute; inset: 0; opacity: .7; pointer-events: none; }
.page-hero__glow {
  position: absolute;
  top: -6rem; right: -8rem;
  width: 26rem; height: 26rem;
  background: rgba(18,87,196,.18);
  filter: blur(120px);
  pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero__title { max-width: 52rem; margin-top: 1.5rem; }
.page-hero__lead { max-width: 40rem; margin-top: 1.75rem; color: var(--c-steel-300); }

/* Breadcrumb */
.crumbs { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-steel-500); }
.crumbs a:hover { color: var(--c-white); }

/* ==========================================================================
   10. CAPABILITIES / SPEC TABLE
   ========================================================================== */
.product-grid { grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; }
.product-cell { padding: 2rem; transition: background var(--dur-base) var(--ease); }
.product-cell:hover { background: var(--c-black); }
.product-cell__num { font-family: var(--f-mono); font-size: 0.625rem; color: var(--c-steel-400); }
.product-cell h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 500; line-height: 1.35; transition: color var(--dur-base) var(--ease); }
.product-cell p { margin-top: 0.65rem; font-size: 0.875rem; color: var(--c-steel-600); transition: color var(--dur-base) var(--ease); }
.product-cell:hover h3 { color: var(--c-white); }
.product-cell:hover p { color: var(--c-steel-400); }

/* Manufactured Products Showcase Grid (matches screenshot) */
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.product-card {
  position: relative;
  background: var(--c-white);
  border-radius: 18px;
  border: 1px solid var(--c-steel-200);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-lift);
}

.product-card__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
}

.spec-table { border-top: 1px solid var(--c-steel-800); border-bottom: 1px solid var(--c-steel-800); }
.spec-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--c-steel-800); }
.spec-row:last-child { border-bottom: 0; }
.spec-row__label { font-size: 0.875rem; color: var(--c-steel-400); }
.spec-row__value { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--c-white); text-align: right; }

/* Accordion */
.accordion { border-top: 1px solid var(--c-steel-200); border-bottom: 1px solid var(--c-steel-200); }
.acc-item + .acc-item { border-top: 1px solid var(--c-steel-200); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding-block: 1.5rem;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color var(--dur-base) var(--ease);
}
.acc-trigger:hover { color: var(--c-accent); }
.acc-icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; color: var(--c-steel-400); transition: transform var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); color: var(--c-accent); }
.acc-panel { overflow: hidden; height: 0; }
.acc-panel__inner { max-width: 48rem; padding-bottom: 1.75rem; padding-right: 2rem; line-height: 1.75; color: var(--c-steel-600); text-wrap: pretty; }


/* ==========================================================================
   GALLERY GRID
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery-grid {
  grid-auto-flow: dense;
}

/* Every thumbnail is the same 4:3 cell. The per-item .media__ratio-* classes
   in the markup are neutralised below so mixed ratios can no longer leave
   ragged rows or gaps; the image just covers the cell. */
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur-slow) var(--ease);
}

.gallery-item .media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lift);
}


.gallery-item--wide {
  grid-column: span 2;
}


.gallery-item--tall {
  grid-row: span 2;
}


/* Feature tile fills a 2x2 block; its height comes from the rows beside it */
.gallery-item--big {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}


/* Image inside gallery */

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}



/* Note */

.gallery-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-steel-200);
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}




/* ==========================================================================
   LIGHTBOX
   ========================================================================== */


.lightbox {

  position: fixed;
  inset: 0;

  z-index: 200;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 2rem;

  background: rgba(11, 12, 14, .95);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;

}



.lightbox.is-open {

  display: flex;

}




/* Image container */

.lightbox__stage {

  width: min(90vw, 1000px);

  height: 80vh;

  display: flex;

  justify-content: center;

  align-items: center;

  overflow: hidden;

}



/* Main image */

.lightbox-image {

  width: auto;

  height: auto;

  max-width: 100%;

  max-height: 80vh;

  object-fit: contain;

  display: block;

}




/* Caption */

.lightbox__caption {

  margin-top: 1.25rem;

  text-align: center;

  font-family: var(--f-mono);

  font-size: .6875rem;

  letter-spacing: .14em;

  text-transform: uppercase;

  color: var(--c-steel-400);

}





/* Close and navigation buttons */


.lightbox__close,
.lightbox__nav {

  position: absolute;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 3rem;

  height: 3rem;

  border: 1px solid var(--c-steel-800);

  color: var(--c-white);

  background: transparent;

  cursor: pointer;

  transition:
    border-color var(--dur-base),
    transform var(--dur-base);

}



.lightbox__close {

  top: 1.5rem;

  right: 1.5rem;

}



.lightbox__close:hover {

  border-color: var(--c-accent);

  transform: rotate(90deg);

}




.lightbox__nav:hover {

  border-color: var(--c-accent);

}



.lightbox__nav--prev {

  left: 1.5rem;

  top: 50%;

  margin-top: -1.5rem;

}



.lightbox__nav--next {

  right: 1.5rem;

  top: 50%;

  margin-top: -1.5rem;

}





/* ==========================================================================
   RESPONSIVE
   ========================================================================== */


@media(max-width:1100px) {

  .gallery-grid {

    grid-template-columns: repeat(3, 1fr);

  }

}



@media(max-width:800px) {

  .gallery-grid {

    grid-template-columns: repeat(2, 1fr);

  }


  .lightbox {

    padding: 1rem;

  }


  .lightbox__stage {

    width: 100%;

    height: 75vh;

  }


}



@media(max-width:500px) {


  .gallery-grid {

    grid-template-columns: 1fr;

  }


  .gallery-item--wide,
  .gallery-item--big {

    grid-column: span 1;

  }


  .lightbox__stage {

    height: 70vh;

  }


  .lightbox__close,
  .lightbox__nav {

    width: 2.5rem;

    height: 2.5rem;

  }


}
/* ==========================================================================
   12. CONTACT
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact__list { margin-top: 3rem; border-top: 1px solid var(--c-steel-200); }
.contact__item { display: flex; align-items: flex-start; gap: 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--c-steel-200); }
.contact__item svg { flex: 0 0 auto; margin-top: 4px; width: 1.25rem; height: 1.25rem; color: var(--c-accent); }
.contact__item-label { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-steel-500); }
.contact__item-value { margin-top: 0.375rem; font-family: var(--f-display); font-size: 1.125rem; word-break: break-word; transition: color var(--dur-fast); }
a.contact__item:hover .contact__item-value { color: var(--c-accent); }
a.contact__item-value:hover { color: var(--c-accent); }

.hours-card { margin-top: 3rem; padding: 2rem; background: var(--c-black); color: var(--c-white); }
.hours-card__label { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-steel-500); }
.hours-card p { margin-top: 1rem; line-height: 1.75; color: var(--c-steel-300); text-wrap: pretty; }

.form-card { padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--c-steel-200); box-shadow: var(--shadow-card); }
.form-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.field { margin-bottom: 1.75rem; }
.field__label { display: block; margin-bottom: 0.25rem; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-steel-500); }
.field__input {
  width: 100%;
  padding-block: 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--c-steel-300);
  background: transparent;
  font-size: 0.9375rem;
  transition: border-color var(--dur-base) var(--ease);
}
.field__input::placeholder { color: var(--c-steel-400); }
.field__input:focus { outline: none; border-bottom-color: var(--c-accent); }
textarea.field__input { resize: vertical; min-height: 7rem; }
input[type="file"].field__input { cursor: pointer; color: var(--c-steel-500); }
input[type="file"].field__input::file-selector-button {
  margin-right: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--c-steel-300);
  background: var(--c-steel-50);
  color: var(--c-black);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
input[type="file"].field__input::file-selector-button:hover {
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}
.field__error { display: none; margin-top: 0.4rem; font-size: 0.75rem; color: #c0392b; }
.field.has-error .field__input { border-bottom-color: #c0392b; }
.field.has-error .field__error { display: block; }

.form-success { display: none; padding-block: 3rem; text-align: center; }
.form-success.is-visible { display: block; }
.form-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-accent); color: var(--c-white); }
.form-success h3 { margin-top: 1.75rem; font-size: 1.5rem; font-weight: 500; }
.form-success p { max-width: 24rem; margin: 0.75rem auto 0; line-height: 1.7; color: var(--c-steel-600); text-wrap: pretty; }

.map-slot { position: relative; overflow: hidden; background: var(--c-steel-100); aspect-ratio: 21 / 9; }
.map-slot__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center; }
.map-slot svg { width: 2rem; height: 2rem; color: var(--c-steel-400); }
.map-slot__label { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-steel-500); }
.map-slot__hint { max-width: 28rem; font-size: 0.75rem; color: var(--c-steel-500); }

/* ==========================================================================
   13. MANUFACTURING CAPABILITY CARDS
   ========================================================================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.cap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-steel-200);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-lift);
}

.cap-card__badge {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 6px 16px rgba(18, 87, 196, 0.25);
}

.cap-card__badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cap-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem;
}

.cap-card__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-black);
}

.cap-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-steel-600);
  text-wrap: pretty;
}

.cap-card__list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-steel-200);
  display: grid;
  gap: 0.55rem;
}

.cap-card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-steel-700);
}

.cap-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .machine-grid, .why__grid, .oem-grid, .product-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .product-showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 32rem; }
  .hero__badge { left: auto; right: 1rem; }
  .intro__grid, .contact__grid, .svc-detail, .cta__inner { grid-template-columns: 1fr; }
  .intro__sticky { position: static; }
  .svc-detail--flip .svc-detail__media { order: 0; }
  .cta__aside { text-align: left; }
  .cta__actions { justify-content: flex-start; }
  .stats__grid, .facts-row { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 2.5rem 1fr; gap: 1rem 1.25rem; }
  .svc-row__desc { grid-column: 2; }
  .svc-row__arrow { display: none; }
  .timeline__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 700px) {
  .machine-grid, .why__grid, .oem-grid, .product-grid, .process-grid, .cap-grid { grid-template-columns: 1fr; }
  .product-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card { padding: 1.1rem; border-radius: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--big, .gallery-item--wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .gallery-item--tall { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .intro__media-row, .fact-pair { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__badge { position: static; display: inline-block; margin-top: 1.25rem; }
}

@media (max-width: 480px) {
  .product-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
  .product-card { padding: 0.85rem; border-radius: 12px; }
}



/* ==========================================================================
   14. SHARED CARD HOVER — matches the Home page "Why Choose Us" cards
   --------------------------------------------------------------------------
   Previously .product-cell and .oem-item filled dark on hover while the Home
   page filled light blue. These rules bring them in line: same light-blue
   wash, same dark-blue line down the left edge, same transition.

   The line is drawn with ::before rather than border-left, because a real
   border would add 3px to the box and nudge the card's contents sideways on
   every hover. Nothing else — padding, size, type, spacing — is touched.
   ========================================================================== */

.product-cell,
.oem-item {
  position: relative;
}

/* Light-blue fill replaces the previous dark fill */
.product-cell:hover {
  background: var(--c-hover-wash);
}

/* --- Text has to follow the background ---------------------------------
   .product-cell previously flipped its text to white for the dark fill;
   on a light-blue card that would be invisible, so it stays dark.        */
.product-cell:hover h3 {
  color: var(--c-black);
}

.product-cell:hover p {
  color: var(--c-steel-600);
}

/* .oem-item sits inside a dark band, so text stays bright white on hover */
.oem-item:hover span {
  color: #ffffff;
}

.oem-item:hover svg {
  color: #5fd9b6;
}

.oem-item span,
.oem-item svg {
  transition: color var(--dur-base) var(--ease);
}

/* ==========================================================================
   15. RAW MATERIALS PROCESSED
   ========================================================================== */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.mat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  background: var(--c-white);
  border: 1px solid var(--c-steel-200);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

/* Row 1: 3 cards spanning 2 columns each (33.3% each) */
.mat-card:nth-child(1),
.mat-card:nth-child(2),
.mat-card:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: 2 cards spanning 3 columns each (50% each) */
.mat-card:nth-child(4),
.mat-card:nth-child(5) {
  grid-column: span 3;
}

.mat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-lift);
}

.mat-card__top {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.mat-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--c-steel-50);
  color: var(--c-accent);
  border: 1px solid var(--c-steel-200);
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}

.mat-card:hover .mat-card__icon {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}

.mat-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mat-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-black);
  line-height: 1.35;
}

.mat-card__desc {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-steel-500);
}

.mat-card__spec {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-steel-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mat-card__spec-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}

.mat-card__spec-val {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-accent);
  background: var(--c-steel-50);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--c-steel-200);
}

@media (max-width: 992px) {
  .mat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mat-card:nth-child(1),
  .mat-card:nth-child(2),
  .mat-card:nth-child(3),
  .mat-card:nth-child(4) {
    grid-column: span 1;
  }
  .mat-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .mat-grid {
    grid-template-columns: 1fr;
  }
  .mat-card:nth-child(1),
  .mat-card:nth-child(2),
  .mat-card:nth-child(3),
  .mat-card:nth-child(4),
  .mat-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* About: Growth & OEM milestones timeline (scoped from live site) */
.section--oem .timeline {
  --logo-green: #4ba900;
  --logo-teal:  #10a683;
  --logo-blue:  #2e9ce2;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-left: 0;
}

.section--oem .timeline__spine,
.section--oem .timeline__fill,
.section--oem .timeline__dot {
  display: none;
}

.section--oem .timeline__item {
  position: relative;
  display: flex;
  padding-bottom: 0;
}

.section--oem .timeline__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--c-steel-50);
  border: 1px solid var(--c-steel-200);
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.section--oem .timeline__item.is-active .timeline__row,
.section--oem .timeline__row:hover {
  background: var(--c-white);
  border-color: var(--c-steel-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.section--oem .timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 87, 196, 0.09);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-accent);
}

.section--oem .timeline__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.section--oem .timeline__desc {
  max-width: 44rem;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--c-steel-600);
}

/* About: Trusted by global OEMs highlight */
.section--oem {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(77, 148, 255, 0.28), transparent 60%),
    radial-gradient(40rem 24rem at -5% 100%, rgba(18, 87, 196, 0.35), transparent 60%),
    var(--c-black);
}

.section--oem .section-head {
  max-width: 56rem;
}

.oem-title {
  line-height: 1.05;
}

.oem-title__accent {
  background: linear-gradient(90deg, var(--c-accent-light), #7fb5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-accent-light);
}

.section--oem .lead {
  color: var(--c-steel-300);
}

.oem-formation {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 196, 255, 0.35);
  box-shadow: 0 8px 24px -8px rgba(18, 87, 196, 0.45);
  backdrop-filter: blur(8px);
}

.oem-formation__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(110deg, #1257c4 0%, #2e9ce2 55%, #10a683 100%);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.oem-formation__text {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: #e2ecff;
}

.oem-formation__text strong {
  color: #ffffff;
  font-weight: 600;
}

.section--oem .timeline__row {
  background: var(--c-white);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.section--oem .timeline__row:hover,
.section--oem .timeline__item.is-active .timeline__row {
  border-color: var(--c-accent-light);
  box-shadow: 0 0 0 1px var(--c-accent-light), 0 14px 38px rgba(0, 0, 0, 0.35);
}

.section--oem .timeline__title {
  color: var(--c-steel-900);
}

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

@media (max-width: 600px) {
  .section--oem .timeline { grid-template-columns: 1fr; }
  .section--oem .timeline__row { padding: 1.25rem; }
}
