/* ============================================================
   MOMENTUM ENGINEERING (PVT) LTD — Global Design System
   ------------------------------------------------------------
   Works alongside Tailwind (utility layer). This file holds:
   01. Design tokens
   02. Base / typography
   03. Signature brand devices (tri-band, corner ticks, spec labels)
   04. Buttons
   05. Navigation states
   06. Cards & hover systems
   07. Marquee / sliders / media
   08. Motion & accessibility
   ============================================================ */

/* ---------- 01. DESIGN TOKENS ----------
   2026 "Marketplace" refresh: a disciplined single-accent palette —
   warm off-white surfaces + one brand accent + neutrals, with
   red/green reserved strictly as semantic colors (form errors / the
   WhatsApp action), not decoration. Token NAMES are unchanged from
   the original build (--blue/--orange/etc, matching every bg-blue/
   text-orange/border-blue Tailwind utility already in the templates)
   so this file and the Tailwind config in site.layouts.app are the
   only two places that ever needed to change. --orange is aliased to
   the same accent as --blue — kept only so no template had to be
   touched; don't introduce a second accent hue here. */
:root {
  --ink:    #181A1E;   /* near-black — primary TEXT color */
  --ink-2:  #F1EEE4;   /* raised warm-paper card surface */
  --navy:   #1D2545;   /* dark secondary accent */
  --blue:   #009EE0;   /* the one brand accent — buttons, links, active states */
  --red:    #C0392B;   /* semantic only: form validation errors */
  --orange: #009EE0;   /* alias of --blue — do not diverge */
  --steel:  #6E6A63;   /* muted warm-grey text on white */
  --slate:  #5B5850;   /* muted warm-grey text on paper sections */
  --paper:  #F3EFE6;   /* alternate section — warm paper tone */
  --line:   rgba(24,26,30,.12);  /* neutral hairline borders */
  --line-strong: rgba(24,26,30,.22);  /* stronger neutral border — form fields, active outlines */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --ease-out: cubic-bezier(.22,.9,.28,1);
  --shadow-soft: 0 16px 40px -20px rgba(24,26,30,.16);
  --shadow-lift: 0 24px 60px -22px rgba(24,26,30,.22);
}

/* ---------- 02. BASE / TYPOGRAPHY ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

/* Display headline treatment — condensed and confident, mixed case */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.02;
}

/* Eyebrow label */
.spec-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.spec-label::before {
  content: "";
  width: 2rem; height: 1px;
  background: currentColor;
  opacity: .5;
}

/* Focus visibility (quality floor) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blue); color: #fff;
  padding: .6rem 1.2rem; border-radius: .25rem;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- 03. SIGNATURE BRAND DEVICES ---------- */

/* Tri-band rule — blue → red → orange, drawn from the O monogram */
.tri-band {
  height: 3px; width: 100%;
  background: linear-gradient(90deg,
    var(--blue) 0 34%, transparent 34% 36%,
    var(--red) 36% 66%, transparent 66% 68%,
    var(--orange) 68% 100%);
}
.tri-band--short { width: 72px; height: 3px; }

/* Engineering-drawing corner ticks on cards */
.ticks { position: relative; }
.ticks::before, .ticks::after,
.ticks > .tick-b::before, .ticks > .tick-b::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(0,158,224,.45);
  border-style: solid;
  transition: border-color .35s var(--ease-out);
  pointer-events: none;
}
.ticks::before            { top: 10px; left: 10px;  border-width: 1px 0 0 1px; }
.ticks::after             { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.ticks > .tick-b::before  { bottom: 10px; left: 10px;  border-width: 0 0 1px 1px; }
.ticks > .tick-b::after   { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.ticks:hover::before, .ticks:hover::after,
.ticks:hover > .tick-b::before, .ticks:hover > .tick-b::after { border-color: var(--blue); }

/* Blueprint grid overlay for dark heroes */
.blueprint {
  background-image:
    linear-gradient(rgba(138,147,166,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,147,166,.07) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* Giant outline watermark type (footer / section backdrops) */
.watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(138,147,166,.16);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- 03b. LIST ROWS ---------- */
.checklist-row {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.checklist-row:first-child { padding-top: 0; }
.checklist-row:last-child { border-bottom: none; padding-bottom: 0; }

/* Small inline chip — spare-parts / product labels */
.check-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-weight: 700; font-size: .72rem;
  color: var(--blue);
}
.check-badge i { font-size: .8rem; }

/* ---------- 04. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em;
  padding: 1.05rem 2.1rem;
  border-radius: 10px;
  position: relative; overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out),
              transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  isolation: isolate;
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::before { background: #0082BE; }
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(0,158,224,.5); }

/* White-outline ghost — for use over dark photo/video hero and CTA bands */
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: #fff; }

/* Dark-outline ghost — for use on the site's default white/paper sections */
.btn-outline { border: 1px solid rgba(12,16,31,.28); color: var(--ink); background: transparent; }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: #fff; border-color: var(--ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: var(--blue); }

.btn .fa-arrow-right { transition: transform .35s var(--ease-out); }
.btn:hover .fa-arrow-right { transform: translateX(5px); }

/* ---------- 05. NAVIGATION ----------
   Header is always a light frosted bar — readable over both the
   dark photo hero and the white body sections beneath it. */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease-out), border-color .4s var(--ease-out), padding .4s var(--ease-out);
}
#site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}
#site-header .nav-inner { transition: padding .4s var(--ease-out); padding-block: .8rem; }
#site-header.scrolled .nav-inner { padding-block: .55rem; }

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem; letter-spacing: .01em;
  color: rgba(12,16,31,.68);
  padding-block: .4rem;
  position: relative;
  transition: color .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
/* Active page: blue underline under the link, not a black pill */
#site-header .nav-link {
  padding: .55rem .85rem;
  border-radius: 0;
}
#site-header .nav-link:hover {
  color: var(--navy);
  background: transparent;
}
#site-header .nav-link[aria-current="page"] {
  color: var(--navy);
  background: transparent;
}
#site-header .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .2rem;
  height: 2px;
  background: var(--blue);
}

/* Mobile menu overlay */
#mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
#mobile-menu.open { opacity: 1; visibility: visible; }
#mobile-menu .nav-link { color: var(--ink); font-size: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
#mobile-menu .nav-link[aria-current="page"] { color: var(--blue); }
#mobile-menu .nav-link[aria-current="page"]::after { display: none; }

/* ---------- 06. CARDS & HOVER SYSTEMS ---------- */
.card-hover {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .5s var(--ease-out), background .5s var(--ease-out);
}
.card-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

/* Image zoom-on-hover container */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .8s var(--ease-out); will-change: transform; }
.img-zoom:hover img { transform: scale(1.06); }

/* Project card overlay */
.overlay-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,16,31,.92) 0%, rgba(12,16,31,.25) 55%, transparent 100%);
  opacity: .85; transition: opacity .5s var(--ease-out);
}
.overlay-card:hover .overlay { opacity: 1; }

/* Hover-reveal CTA/caption on an image (quick-view buttons, photo captions).
   Hidden-until-hover only makes sense on devices that actually have hover —
   on touch it would otherwise be permanently unreachable. */
.overlay-cta { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.group:hover .overlay-cta, .group:focus-within .overlay-cta,
.overlay-card:hover .overlay-cta { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .overlay-cta { opacity: 1; transform: none; }
}

/* Play button (video thumbnails) */
.play-btn {
  width: 74px; height: 74px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: transform .4s var(--ease-out), background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.group:hover .play-btn { transform: scale(1.12); background: var(--red); border-color: var(--red); }

/* ---------- 07. SLIDERS / MEDIA ---------- */

/* Netflix-style horizontal video rail */
.rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: rgba(138,147,166,.12); }

/* Swiper theming */
.swiper-pagination-bullet { background: var(--steel); opacity: .5; }
.swiper-pagination-bullet-active { background: var(--blue); opacity: 1; }
.machinery-nav {
  width: 52px; height: 52px; border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink); background: transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
  cursor: pointer;
}
.machinery-nav:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Hero scroll indicator */
.scroll-indicator { width: 1px; height: 72px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-indicator::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--blue);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint { 60% { top: 110%; } 100% { top: 110%; } }

/* Hero headline word reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); }

/* Hero "Inspection In Progress" panel — the signature moment: the
   inspection standard shown running, not claimed in a headline */
.hero-verify {
  position: relative;
  background: #fff; border-radius: 16px;
  padding: 1.75rem; box-shadow: var(--shadow-lift);
}
.hero-verify__title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--ink); }
.hero-verify__title::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--blue); flex-shrink: 0; }
.hero-verify__list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .95rem; }
.hero-verify__item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; color: var(--steel);
}
.hero-verify__mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: var(--ink-2); color: transparent; font-size: .7rem;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.hero-verify__item.is-checked { color: var(--ink); }
.hero-verify__item.is-checked .hero-verify__mark { background: var(--blue); color: #fff; }

/* Stat numerals */
.stat-num { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; line-height: 1; }

/* ---------- 08. MOTION & ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-line > span { transform: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 09. INNER-PAGE COMPONENTS ---------- */

/* Page hero (all pages except home) */
.page-hero { position: relative; overflow: hidden; padding-block: 7rem 3rem; }
@media (min-width: 1024px) { .page-hero { padding-block: 8rem 3.5rem; } }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 120%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, rgba(12,16,31,.86) 55%, rgba(12,16,31,.7) 100%); }

/* Breadcrumb — sits on the dark photo-hero scrim, so it keeps light text */
.crumb { font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.crumb a { transition: color .3s var(--ease-out); }
.crumb a:hover { color: #fff; }

/* Filter chips (machinery / projects) */
.filter-chip {
  font-family: var(--font-body); font-weight: 600; font-size: .84rem;
  letter-spacing: .01em;
  padding: .7rem 1.3rem; border-radius: 10px;
  border: 1px solid var(--line); color: rgba(12,16,31,.65);
  background: #fff; cursor: pointer;
  transition: all .3s var(--ease-out);
}
.filter-chip:hover { color: var(--ink); border-color: rgba(12,16,31,.4); }
.filter-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Category sidebar (Products page) — wrap on phones, column on desktop */
.cat-nav {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem;
  overflow-x: visible; padding-bottom: .35rem;
}
.cat-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .cat-nav { flex-direction: column; flex-wrap: nowrap; gap: .15rem; overflow: visible; padding-bottom: 0; }
}
/* Horizontal tab-strip variant (e.g. homepage featured products) — wraps
   onto multiple lines at every width instead of the sidebar's column layout
   or a swipe-to-scroll single row (which clips labels mid-word on phones). */
.cat-nav--tabs { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
@media (min-width: 1024px) {
  .cat-nav.cat-nav--tabs { flex-direction: row; }
}
@media (max-width: 639px) {
  .cat-nav--tabs .cat-link { padding: .6rem .8rem; font-size: .78rem; }
  .cat-nav .cat-link { padding: .65rem .85rem; font-size: .8rem; }
}
.cat-link {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: rgba(12,16,31,.7);
  cursor: pointer; text-align: left; white-space: nowrap;
  transition: all .25s var(--ease-out);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .cat-link { flex: 0 0 auto; border-radius: 10px; white-space: normal; }
}
.cat-link:hover { color: var(--ink); border-color: rgba(12,16,31,.3); background: var(--ink-2); }
.cat-link.is-active { color: #fff; border-color: var(--blue); background: var(--blue); font-weight: 700; }
.cat-link__label { display: inline-flex; align-items: center; gap: .65rem; }
.cat-link__icon { width: 1em; color: inherit; opacity: .55; transition: all .25s var(--ease-out); }
.cat-link:hover .cat-link__icon, .cat-link.is-active .cat-link__icon { opacity: 1; transform: scale(1.08); }
.cat-link .cat-count { font-size: .62rem; color: var(--steel); }
.cat-link.is-active .cat-count { color: #fff; }

/* Search field */
.search-field {
  width: 100%; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .95rem 1.1rem .95rem 3rem;
  color: var(--ink); font-size: .9rem;
  transition: border-color .3s var(--ease-out);
}
.search-field::placeholder { color: var(--steel); }
.search-field:focus { border-color: var(--blue); }

/* Pagination */
.page-btn {
  min-width: 44px; height: 44px; padding-inline: .75rem;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .84rem;
  color: rgba(12,16,31,.65); background: #fff; cursor: pointer;
  transition: all .3s var(--ease-out);
}
.page-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.page-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Forms */
.field-label { font-family: var(--font-body); font-weight: 700; font-size: .68rem; color: var(--steel); display: block; margin-bottom: .45rem; }
.field {
  width: 100%; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 9px;
  padding: .65em .85em; color: var(--ink); font-size: .85rem;
  font-family: var(--font-body);
  transition: border-color .3s var(--ease-out);
}
.field::placeholder { color: rgba(91,100,114,.6); }
.field:focus { border-color: var(--blue); }
.field.is-invalid { border-color: var(--red); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-status { font-family: var(--font-body); font-weight: 600; font-size: .84rem; margin-top: 1rem; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--orange); }

/* Masonry photo grid */
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.masonry > * { grid-row: span 1; }
.masonry > .row-span-2 { grid-row: span 2; }
@media (min-width: 768px) { .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; } }
@media (min-width: 1280px) { .masonry { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }

/* Value / benefit tiles */
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 2.25rem; background: var(--ink-2); transition: all .45s var(--ease-out); }
.tile:hover { transform: translateY(-6px); border-color: rgba(12,16,31,.18); box-shadow: var(--shadow-lift); }

/* Detail spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.spec-table th { font-family: var(--font-body); font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; color: var(--steel); font-weight: 600; width: 45%; }

/* WhatsApp CTA — recognizable brand green is a deliberate, sole exception
   to the blue/red/orange accent system: it signals "this opens WhatsApp"
   at a glance, which matters more here than palette purity. */
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp::before { background: #1DA851; }
.btn-whatsapp:hover { box-shadow: 0 14px 34px -12px rgba(37,211,102,.55); }

/* ---------- 09b. INQUIRY MODAL ---------- */
.inquiry-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.inquiry-modal[hidden] { display: none; }
.inquiry-modal__backdrop { position: absolute; inset: 0; background: rgba(12,16,31,.55); backdrop-filter: blur(3px); animation: modal-fade .25s var(--ease-out); }
.inquiry-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 760px;
  max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 20px;
  padding: 1.5rem 1.65rem 1.75rem; box-shadow: var(--shadow-lift);
  animation: modal-pop .3s var(--ease-out);
}
.inquiry-modal__panel--wide { max-width: 760px; }
@media (min-width: 1024px) {
  .inquiry-modal__panel--wide { max-width: 1000px; }
}
.inquiry-modal__close {
  position: absolute; top: .75rem; right: .75rem;
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  border: none; color: var(--ink); background: var(--ink-2);
  cursor: pointer; transition: all .25s var(--ease-out);
}
.inquiry-modal__close:hover { color: #fff; background: var(--blue); }
.inquiry-more {
  border-top: 1px solid var(--line);
  padding-top: .85rem;
}
.inquiry-more__summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .84rem;
  color: var(--blue);
  list-style: none;
}
.inquiry-more__summary::-webkit-details-marker { display: none; }
.field-error {
  margin-top: .35rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
}
.inquiry-product-selected {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .65rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(0,158,224,.25);
  background: rgba(0,158,224,.06);
  border-radius: 10px;
  font-size: .9rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 1rem;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .inquiry-modal__backdrop, .inquiry-modal__panel { animation: none; }
}

/* Filter/search feedback — a quiet signal that results just changed */
.count-pulse { display: inline-block; animation: count-pulse .4s var(--ease-out); }
@keyframes count-pulse { 0% { transform: scale(1.35); color: var(--blue); } 100% { transform: scale(1); } }
.grid-refresh { animation: grid-refresh .35s var(--ease-out); }
@keyframes grid-refresh { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .count-pulse, .grid-refresh { animation: none; }
}

/* Search match highlight — shows a customer exactly why a result matched */
.search-mark { background: rgba(247,148,29,.35); color: inherit; border-radius: 2px; padding: 0 .15em; }

/* Category flag — hidden site-wide so product photos stay unobstructed */
.p-cat-flag {
  display: none !important;
}

/* ---------- 09g. COMPARISON TOOL (Products page) ---------- */
.compare-check {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 2;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: 999px; padding: .4rem .8rem;
  font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .02em;
  cursor: pointer; box-shadow: var(--shadow-soft);
}
.compare-check input { accent-color: var(--blue); }
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink); color: #fff;
  transform: translateY(100%);
  transition: transform .3s var(--ease-out);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.compare-bar.is-open { transform: translateY(0); }
#compare-table th { width: auto; white-space: nowrap; padding-right: 1.5rem; }
#compare-table td { padding-right: 1.5rem; vertical-align: top; }

/* Card tilt (JS-driven transform on .tilt-card, see main.js initCardTilt).
   .card-hover already transitions `transform` in its own rule (section 06) —
   only give overlay-card (which has no such rule) its own transform transition,
   so neither class clobbers the other's transition list. */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.overlay-card.tilt-card { transition: transform .35s var(--ease-out); }

/* Deep-linked product (products.html?product=slug) — same page, no detail template */
.product-card--selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,158,224,.18), var(--shadow-lift);
  animation: selected-pulse 1.8s var(--ease-out) 1;
}
@keyframes selected-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,158,224,.35), var(--shadow-lift); }
  100% { box-shadow: 0 0 0 3px rgba(0,158,224,.18), var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) { .product-card--selected { animation: none; } }

/* Skeleton placeholders shown until CMS content renders */
.skeleton { position: relative; overflow: hidden; background: var(--ink-2); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,158,224,.12), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; display: none; } }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
.skeleton-line { height: .8em; border-radius: 3px; }

/* ---------- 09d. SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--orange));
  transition: width .12s linear;
}

/* ---------- 09e. FLOATING ACTION BUTTONS ---------- */
.floating-stack {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  display: flex; flex-direction: column-reverse; align-items: center; gap: .75rem;
}
.floating-btn {
  width: 52px; height: 52px; border-radius: 999px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  cursor: pointer; border: none;
}
.floating-btn:hover { transform: translateY(-3px) scale(1.05); }
.floating-btn--whatsapp { width: 60px; height: 60px; background: #25D366; color: #fff; font-size: 1.6rem; animation: fab-breathe 2.8s ease-in-out infinite; }
.floating-btn--top { background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 1rem; }
@keyframes fab-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.4), var(--shadow-lift); }
  50%      { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) { .floating-btn--whatsapp { animation: none; } }
@media (max-width: 640px) {
  .floating-stack { right: .85rem; bottom: .85rem; gap: .6rem; }
  .floating-btn { width: 46px; height: 46px; }
  .floating-btn--whatsapp { width: 54px; height: 54px; }
}

/* ---------- 09f. TOAST NOTIFICATIONS ---------- */
.toast-root {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90;
  display: flex; flex-direction: column; gap: .6rem;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: .65rem;
  background: var(--ink); color: #fff;
  padding: .85rem 1.25rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast i { color: #25D366; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .01ms; } }

/* ---------- 10. ADMIN CMS ---------- */
.admin-tab {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.1rem; border-radius: 3px; text-align: left;
  color: rgba(255,255,255,.65); background: transparent; border: 1px solid transparent;
  cursor: pointer; width: 100%;
  transition: all .25s var(--ease-out);
}
.admin-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-tab.is-active { color: #fff; background: var(--ink-2); border-color: var(--line); }
.admin-tab.is-active i { color: var(--orange); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th {
  text-align: left; padding: .8rem 1rem; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: rgba(255,255,255,.85); }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

.admin-icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 3px; color: rgba(255,255,255,.7);
  background: transparent; cursor: pointer; margin-left: .35rem;
  transition: all .25s var(--ease-out);
}
.admin-icon-btn:hover { color: #fff; border-color: #fff; }
.admin-icon-btn--danger:hover { color: var(--red); border-color: var(--red); }

.admin-form { border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem; background: var(--ink-2); margin-top: 1.5rem; }
.kv-row .kv-key { max-width: 45%; }
.kv-row .kv-val { flex: 1; }

.admin-card { border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 1.75rem; }

/* ---------- 14. PUBLIC SITE POLISH (Inspection Report) ---------- */
.page-hero {
  min-height: clamp(18rem, 42vw, 26rem);
  display: flex;
  align-items: flex-end;
}
.page-hero__scrim {
  background:
    linear-gradient(105deg, rgba(12,16,31,.92) 0%, rgba(12,16,31,.55) 48%, rgba(12,16,31,.35) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 55%);
}
.page-hero .crumb {
  margin-bottom: .25rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 0.25rem;
}
.section-head .headline { max-width: 22ch; }

.product-card {
  background: #fff;
  border-color: var(--line) !important;
  min-width: 0;
  width: 100%;
}
.product-card .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.15rem;
}
@media (min-width: 640px) {
  .product-card .product-card__body {
    padding: 1.35rem 1.35rem 1.5rem;
  }
}
.product-card .check-badge {
  margin-bottom: .35rem;
}
.product-card:hover {
  border-color: rgba(0,158,224,.4) !important;
}
.product-card--selected {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Product / home grids — CSS-owned breakpoints so mobile never depends on
   Tailwind CDN alone (which caused thin multi-column card strips on phones). */
.machinery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
@media (min-width: 640px) {
  .machinery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .machinery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .machinery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card__media {
  aspect-ratio: 16 / 11;
  width: 100%;
  overflow: hidden;
  background: var(--ink-2);
}
.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-product-card {
  min-width: 0;
  width: 100%;
}

.machinery-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
@media (min-width: 640px) {
  .machinery-toolbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }
}
.machinery-toolbar #machinery-count {
  font-variant-numeric: tabular-nums;
  color: var(--steel);
  font-weight: 700;
}

.quote-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
@media (min-width: 640px) {
  .quote-panel { padding: 2.25rem; }
}

.form-status {
  margin-top: .85rem;
  font-size: .85rem;
  color: var(--steel);
}
.form-status.is-success { color: #1a7a3c; font-weight: 600; }
.form-status.is-error { color: var(--red); font-weight: 600; }

.field.is-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(226,59,46,.12);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 768px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
.masonry > a {
  background: #fff;
  border: 1px solid var(--line);
}
.masonry > a.row-span-2 { grid-row: span 2; }
.masonry .overlay-cta {
  text-shadow: 0 1px 8px rgba(12,16,31,.55);
}

.process-step {
  position: relative;
  padding-top: .25rem;
}
.process-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: .85rem;
}

/* ---------- Brands marquee (infinite scroll) ---------- */
.brands-marquee__sub {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: .55rem;
  border-top: 3px solid var(--blue);
  display: inline-block;
}
.brands-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands-marquee__track {
  display: flex;
  width: max-content;
  animation: brands-marquee 38s linear infinite;
}
.brands-marquee__viewport:hover .brands-marquee__track {
  animation-play-state: paused;
}
.brands-marquee__list {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0 .5rem;
  list-style: none;
}
.brands-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14.5rem;
  height: 5.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.brands-marquee__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
@keyframes brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-marquee__track { animation: none; }
  .brands-marquee__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

#site-header.scrolled {
  box-shadow: 0 10px 30px -18px rgba(12,16,31,.25);
}

@media (prefers-reduced-motion: reduce) {
  .card-hover:hover { transform: none; }
  .img-zoom:hover img { transform: none; }
}
