/* ===================================================================
   CHAMPAK INDUSTRIES — alloysteelplates.com
   Type: Poppins only (tabular figures for grades, specs and numbers)
   One accent (molten orange) on a cool steel neutral scale.
   =================================================================== */

:root {
  --ink: #0e1621;
  --ink-2: #172231;
  --paper: #f3f5f7;
  --line: #dde2e8;
  --muted: #5b6675;
  --accent: #d9541e;
  --accent-hover: #bf4512;
  --accent-soft: #fbede6;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 40;
  --z-float: 45;
  --z-modal: 60;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.mono {
  font-family: 'Poppins', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(217, 84, 30, 0.7);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-2);
}
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover {
  border-color: #b9c2cd;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow i {
  transition: transform 0.2s ease;
}
.link-arrow:hover i {
  transform: translateX(3px);
}

/* ---------- Section eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  z-index: var(--z-header);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(14, 22, 33, 0.35);
}
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: #344051;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* ---------- Nav dropdowns ---------- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-caret {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  color: #6b7686;
  transition: transform 0.25s var(--ease), color 0.2s ease, background-color 0.2s ease;
}
.nav-caret:hover {
  color: var(--ink);
  background: var(--paper);
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  padding-top: 1.1rem; /* hover bridge between the link and the panel */
  width: 360px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav-menu-wide {
  width: 760px;
}
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
}
@media (hover: hover) {
  .nav-item:not(.is-suppressed):hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
  }
  .nav-item:not(.is-suppressed):hover .nav-caret {
    transform: rotate(180deg);
    color: var(--ink);
  }
}
.nav-item.is-open .nav-caret {
  transform: rotate(180deg);
  color: var(--ink);
}
.nav-menu-panel {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(14, 22, 33, 0.35), 0 2px 6px rgba(14, 22, 33, 0.05);
  overflow: hidden;
}
.nav-menu-head {
  padding: 1rem 1.25rem 0.25rem;
}
.nav-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.75rem;
}
.nav-products a,
.nav-services a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
.nav-products a:hover,
.nav-products a:focus-visible,
.nav-services a:hover,
.nav-services a:focus-visible {
  background: var(--paper);
}
.nav-products img {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  object-fit: cover;
}
.nav-products span,
.nav-services span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.nav-products b,
.nav-services b {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.nav-products small,
.nav-services small {
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-products a:hover b,
.nav-services a:hover b {
  color: var(--accent);
}
.nav-services {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem;
}
.nav-services a {
  align-items: flex-start;
}
.nav-services i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--accent);
  background: var(--accent-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-services a:hover i {
  background: var(--accent);
  color: #fff;
}
.nav-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* Mobile menu sub-lists */
.m-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.m-toggle[aria-expanded='true'] {
  transform: rotate(180deg);
  background: var(--paper);
}
.m-sub {
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0 0.25rem 0.9rem;
  border-left: 2px solid var(--accent-soft);
  display: grid;
  gap: 0.1rem;
}
.m-sub a {
  display: block;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #344051;
}
.m-sub a:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  --slide-time: 7s;
  background-color: var(--ink);
  isolation: isolate;
}

/* Background slides: crossfade + slow zoom-out */
.hero-slides,
.hero-shade,
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity, transform;
}
.hero-slide:first-child {
  background-image: url('../img/slide-1.jpg');
}
.hero-slide.is-active,
.hero-slide.is-leaving {
  animation: heroZoom calc(var(--slide-time) + 1.6s) cubic-bezier(0.25, 0.6, 0.3, 1) both;
}
.hero-slide.is-active {
  opacity: 1;
}
@keyframes heroZoom {
  from { transform: scale(1.14) translate3d(1%, 0.5%, 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 16, 24, 0.86) 0%, rgba(10, 16, 24, 0.55) 48%, rgba(10, 16, 24, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.8) 0%, transparent 30%);
}

/* Slow-drifting molten glow low in the frame */
.hero-glow {
  z-index: 1;
  inset: auto -10% -30% -10%;
  height: 70%;
  background: radial-gradient(ellipse 45% 55% at 30% 100%, rgba(217, 84, 30, 0.28), transparent 70%);
  filter: blur(20px);
  animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translateX(-6%); opacity: 0.6; }
  to { transform: translateX(14%); opacity: 1; }
}

/* Entrance: fade up, staggered with --d */
.hero-in {
  animation: heroUp 0.9s var(--ease) var(--d, 0s) both;
}
.hero-in-right {
  animation-name: heroLeft;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroLeft {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}

/* Headline: each line slides up from behind a mask */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* keep descenders inside the mask */
  margin-bottom: -0.08em;
}
.hero-line > span {
  display: inline-block;
  animation: heroLine 1s var(--ease) var(--d, 0s) both;
}
@keyframes heroLine {
  from { transform: translateY(105%); }
  to { transform: none; }
}

/* Facts strip staggers in after the headline */
.hero-facts > div {
  animation: heroUp 0.8s var(--ease) both;
}
.hero-facts > div:nth-child(1) { animation-delay: 0.9s; }
.hero-facts > div:nth-child(2) { animation-delay: 1s; }
.hero-facts > div:nth-child(3) { animation-delay: 1.1s; }
.hero-facts > div:nth-child(4) { animation-delay: 1.2s; }

/* Primary CTA: a light sweep every few seconds */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 4.5s ease-in-out 2s infinite;
}
@keyframes btnShine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Slide controls */
.hero-dot {
  display: grid;
  gap: 0.6rem;
  padding: 0.4rem 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}
.hero-dot:hover,
.hero-dot.is-active {
  color: #fff;
}
.hero-dot-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.hero-dot-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-done .hero-dot-fill {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.45);
}
.hero-dot.is-active .hero-dot-fill {
  animation: heroProgress var(--slide-time) linear both;
}
.hero.is-paused .hero-dot.is-active .hero-dot-fill {
  animation-play-state: paused;
}
@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-dot-label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero-dot-label .mono {
  margin-right: 0.3rem;
  color: var(--accent);
}
@media (max-width: 639px) {
  .hero-dot-label {
    font-size: 0.8125rem;
  }
  .hero-dot-label .mono {
    display: none;
  }
}
.hero-caption {
  transition: opacity 0.35s ease;
}
.hero-caption.is-swapping {
  opacity: 0;
}

.hero::after {
  /* fine grain so the dark photo doesn't band */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Stock ticket — the hero's right-hand panel */
.stock-ticket {
  background: rgba(14, 22, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ticket-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.ticket-row + .ticket-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.ticket-row .mono {
  color: #cbd5e1;
  transition: color 0.5s ease;
}
.ticket-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}
.ticket-row.is-hot {
  background: rgba(255, 255, 255, 0.06);
  border-top-color: transparent;
}
.ticket-row.is-hot + .ticket-row {
  border-top-color: transparent;
}
.ticket-row.is-hot::before {
  transform: scaleY(1);
}
.ticket-row.is-hot .mono {
  color: #fdba74;
}

.live-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #34d399;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #34d399;
  animation: livePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes livePing {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Client marquee ---------- */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee 50s linear infinite;
}
.marquee-track.is-reverse {
  animation-direction: reverse;
  animation-duration: 56s;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 200px;
  height: 104px;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.logo-tile img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply; /* drop the white JPEG backgrounds */
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-tile img.is-small {
  /* these logos sit small inside their source images */
  transform: scale(1.45);
}
.logo-tile-count {
  background: var(--paper);
  text-align: center;
}
/* Muted logos that light up on hover — only where hover exists */
@media (hover: hover) {
  .logo-tile img {
    filter: grayscale(1) contrast(1.15);
    opacity: 0.8;
  }
  .logo-tile:hover {
    border-color: #c9d1db;
    box-shadow: 0 16px 30px -20px rgba(14, 22, 33, 0.35);
    transform: translateY(-3px);
  }
  .logo-tile:hover img {
    filter: none;
    opacity: 1;
  }
}

.industry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  transition: background-color 0.25s ease;
}
.industry > i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  font-size: 1.35rem;
  color: var(--accent);
  background: var(--accent-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.industry:hover {
  background: var(--paper);
}
.industry:hover > i {
  background: var(--accent);
  color: #fff;
}

/* ---------- About ---------- */
.about-inset {
  border: 6px solid var(--paper);
  box-shadow: 0 30px 50px -30px rgba(14, 22, 33, 0.6);
}
.about-seal {
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(14, 22, 33, 0.7);
}
.about-seal-ring {
  animation: sealSpin 22s linear infinite;
}
.about-seal-ring text {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: #fdba74;
}
@keyframes sealSpin {
  to { transform: rotate(360deg); }
}

/* How we work: steps joined by a line that draws in */
.process-step {
  position: relative;
}
.process-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  font-size: 1.5rem;
  color: #fff;
  background: var(--ink);
}
@media (min-width: 1024px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.625rem;
    left: 4.25rem;
    right: 0.5rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, #c4ccd6 0 6px, transparent 6px 12px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease) 0.3s;
  }
  .process-step.is-visible::after {
    transform: scaleX(1);
  }
}

/* ---------- Product cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #c9d1db;
  box-shadow: 0 24px 40px -24px rgba(14, 22, 33, 0.35);
}
.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .product-card-media img,
.product-featured:hover .product-featured-media img {
  transform: scale(1.05);
}
.product-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  background: rgba(14, 22, 33, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}
.card-title-link {
  transition: color 0.2s ease;
}
.card-title-link:hover {
  color: var(--accent);
}
.stock-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #fff;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
}
.stock-badge > span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #10b981;
}
.stock-badge.is-tested {
  color: #1d4ed8;
}
.stock-badge.is-tested > span {
  background: #3b82f6;
}
.product-grade {
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.product-specs {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.product-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.product-specs dt {
  color: var(--muted);
  white-space: nowrap;
}
.product-specs dd {
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.product-specs.is-stacked {
  gap: 0;
  padding-top: 0;
  border-top: 0;
}
.product-specs.is-stacked > div {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.product-specs.is-stacked > div:first-child {
  padding-top: 0;
}
.product-specs.is-stacked dd {
  margin-top: 0.15rem;
  text-align: left;
}
.wa-square {
  display: grid;
  place-items: center;
  width: 2.75rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: #178f47;
  font-size: 1.35rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wa-square:hover {
  background: #1fa855;
  border-color: #1fa855;
  color: #fff;
}

/* Featured product (spans 2 columns × 2 rows on desktop) */
.product-featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(14, 22, 33, 0.45);
}
.product-featured-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
  background: var(--ink);
}
.product-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-featured-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 22, 33, 0.45), transparent 45%);
}
.product-featured-media .product-tag,
.product-featured-media .stock-badge {
  z-index: 1;
}
/* Desktop: photo left, details right, one row tall */
@media (min-width: 1024px) {
  .product-featured {
    flex-direction: row;
  }
  .product-featured-media {
    flex: 0 0 46%;
    min-height: 400px;
  }
  .product-featured-body {
    flex: 1 1 auto;
  }
}

.product-ask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--ink);
}

.supply-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.supply-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}
.supply-item > i {
  font-size: 1.25rem;
  color: #fdba74;
}

/* ---------- Quality ---------- */
.check-row {
  display: flex;
  gap: 0.75rem;
  line-height: 1.5;
}
.check-row > i {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.mtc-wrap {
  position: relative;
  padding: 1.5rem 0.5rem;
}
.mtc-wrap::before {
  /* a second sheet peeking out behind */
  content: '';
  position: absolute;
  inset: 2.5rem 1.5rem 0.5rem 2rem;
  border-radius: 14px;
  background: #e7ebf0;
  transform: rotate(3deg);
}
.mtc {
  position: relative;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(14, 22, 33, 0.5);
  transform: rotate(-1.5deg);
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}
.mtc:hover {
  transform: rotate(0deg) translateY(-4px);
}
.mtc-watermark {
  position: absolute;
  right: -1rem;
  top: 45%;
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(217, 84, 30, 0.07);
  transform: rotate(-18deg);
  pointer-events: none;
}
.mtc-type {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.mtc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}
.mtc-meta dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.mtc-meta dd {
  font-weight: 600;
}
.mtc-table {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8rem;
  text-align: center;
}
.mtc-table.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mtc-table > span {
  padding: 0.45rem 0.25rem;
  white-space: nowrap;
}
.mtc-table > span:nth-child(-n + 7) {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
}
.mtc-table.is-4 > span:nth-child(-n + 7) {
  background: none;
  color: inherit;
  font-weight: 400;
}
.mtc-table.is-4 > span:nth-child(-n + 4) {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
}
.mtc-stamp {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  border: 2px dashed var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.test-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.test-card:hover {
  border-color: #c9d1db;
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(14, 22, 33, 0.4);
}
.test-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--accent-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.test-card:hover .test-icon {
  background: var(--accent);
  color: #fff;
}
.agency {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Weight calculator ---------- */
.mat-chip {
  position: relative;
  cursor: pointer;
}
.mat-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mat-chip > span {
  display: grid;
  gap: 0.1rem;
  height: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #cdd4dc;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.mat-chip b {
  font-size: 0.875rem;
  font-weight: 600;
}
.mat-chip small {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mat-chip:hover > span {
  border-color: #9aa5b3;
}
.mat-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.mat-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.preset {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #cdd4dc;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.preset:hover {
  border-color: #9aa5b3;
}
.preset.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.plate-viz {
  padding: 0.5rem 0 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.plate-viz svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  margin-bottom: 0.75rem;
}
.plate-viz polygon {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: all 0.45s var(--ease);
}
.plate-top {
  fill: #3a4656;
}
.plate-side {
  fill: #232e3c;
}
.plate-front {
  fill: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq-num {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}
.faq summary > i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: transform 0.3s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq[open] summary > i {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.faq-body {
  padding: 0 3rem 1.5rem 3.25rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq[open] .faq-body {
  animation: faqOpen 0.35s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq-body a {
  color: var(--accent);
  font-weight: 600;
}
.faq-body a:hover {
  text-decoration: underline;
}
@media (max-width: 639px) {
  .faq summary {
    grid-template-columns: 2rem 1fr auto;
    font-size: 1rem;
  }
  .faq-body {
    padding: 0 0.25rem 1.25rem 2.75rem;
  }
}
.faq-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq-contact:hover {
  border-color: #c9d1db;
  background: var(--paper);
}
.faq-contact > i {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  font-size: 1.35rem;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Contact ---------- */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 85% 0%, rgba(217, 84, 30, 0.18), transparent 70%);
}
.contact-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 1.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease);
}
.contact-tile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(253, 186, 116, 0.5);
  transform: translateY(-3px);
}
.contact-tile > i {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  font-size: 1.35rem;
  color: #fff;
  background: var(--accent);
}
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  font-weight: 500;
}
.open-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
}
.open-status.is-open .open-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}
.open-status.is-closed .open-dot {
  background: #f87171;
}

/* ---------- Footer ---------- */
.site-footer a {
  transition: color 0.2s ease;
}
.site-footer nav a:hover,
.site-footer li a:hover {
  color: #fff;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.footer-badge > i {
  color: #fdba74;
}
.to-top {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Services list ---------- */
.service-row {
  border-top: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.service-row:last-child {
  border-bottom: 1px solid var(--line);
}
.service-row:hover {
  background: #fff;
}

/* ---------- Tables ---------- */
.spec-table th,
.spec-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}
.spec-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

/* ---------- Forms ---------- */
.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #263241;
}
.field {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cdd4dc;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder {
  color: #8b95a3;
}
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 84, 30, 0.18);
}
.field[aria-invalid='true'] {
  border-color: #c2261b;
}
.field-error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #b42318;
}

/* Calculator unit toggle */
.unit-toggle button {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.unit-toggle button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

/* ---------- Modal ---------- */
.modal {
  z-index: var(--z-modal);
}
.modal[hidden] {
  display: none;
}
.modal-panel {
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  z-index: var(--z-float);
  box-shadow: 0 14px 30px -12px rgba(18, 140, 70, 0.7);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* No scrolling logos: show them all in a wrapped grid */
  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0 1rem;
  }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}
