/* ==========================================================================
   Khair-un-Nisa Enterprises — Stylesheet
   Industrial theme: charcoal / black background + gold accents.
   Mobile-first, no frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   Light "steel" theme: white paper, #efefef bands, one #161616 dark band,
   slate-navy ink for headings and a steel-blue accent.
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-2:      #efefef;
  --surface:   #ffffff;
  --surface-2: #f7f8f9;
  --line:      rgba(22, 22, 22, 0.22);
  --line-2:    rgba(22, 22, 22, 0.34);

  /* Text */
  --text:      #161616;
  --muted:     #3f4852;
  --muted-2:   #565f69;
  --ink:       #27374d;
  --ink-2:     #1b2735;

  /* Brand accent — steel blue (kept under the old --gold* names so every
     rule written for the gold theme picks it up unchanged) */
  --gold:      #526d82;
  --gold-2:    #6f8da3;
  --gold-3:    #3c5468;
  --gold-soft: rgba(82, 109, 130, 0.10);

  /* The one dark band + dark buttons */
  --dark:      #161616;
  --on-dark:   #e8eef3;
  --on-dark-2: #9fb6c9;

  /* WhatsApp green */
  --wa:        #25d366;
  --wa-dark:   #128c4b;

  /* Shape */
  --r-sm: 7px;
  --r:    8px;
  --r-lg: 12px;

  /* Type */
  --font-display: "Onest", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion + depth */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 22px 44px -28px rgba(22, 22, 22, 0.45);
  --header-h: 72px;

  /* Layout */
  --container: 1200px;
  --sec-y: 64px;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--steel-link, #3c5468); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.05rem, 8vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 5.2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 3.2vw, 1.55rem); font-weight: 500; letter-spacing: -0.008em; }
p  { margin: 0 0 1rem; }

::selection { background: var(--ink); color: #ffffff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Small line icon (sprite) */
.icon {
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.52rem 0.9rem; font-size: 0.74rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
}
.btn-gold:hover { background: #000000; border-color: #000000; color: #ffffff; }

.btn-ghost {
  background: #ffffff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--dark); color: var(--dark); }

.btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #062514;
}
.btn-wa:hover { background: #34e57a; border-color: #34e57a; color: #062514; }

/* --------------------------------------------------------------------------
   5. Header (sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 14px 30px -26px rgba(22, 22, 22, 0.55);
  background: rgba(255, 255, 255, 0.97);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; margin-right: auto; }
/* Company logo — a white-on-transparent PNG, so it reads on the dark header and footer */
.brand-logo { display: block; height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.brand-logo--footer { height: 60px; }

/* Nav */
.nav { display: none; }
.nav-toggle {
  margin-left: auto;
  flex: 0 0 auto;              /* never let the header squeeze the button */
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.6rem;
  display: inline-grid; place-items: center;
}
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }
.header-cta { display: none; }

/* Mobile dropdown panel */
.site-header.is-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 20px 1.1rem;
  gap: 0.15rem;
}
.site-header.is-open .nav a {
  padding: 0.8rem 0.2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-header.is-open .nav a:last-child { border-bottom: 0; }
.site-header.is-open .nav a:hover,
.site-header.is-open .nav a.is-active { color: var(--ink); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 60px;
  background: #12161c;
}
/* Background image — fills the hero and sits behind the scrim */
.hero-slider { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.18) contrast(1.03) brightness(0.78);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* Centred layout — the scrim darkens the middle band where the text sits and
     opens up towards the edges so the colourful photo still reads through. */
  background:
    radial-gradient(120% 100% at 50% 42%, rgba(10, 12, 16, 0.58) 0%, rgba(10, 12, 16, 0.40) 45%, rgba(10, 12, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.18) 0%, rgba(10, 12, 16, 0.62) 100%);
}
.hero-inner { text-align: center; }
/* stacked slides - the wrapper takes the height of the tallest slide, so the
   hero never jumps when the slide changes */
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.hero h1 { color: #ffffff; }
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.hero-tags .tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
/* One line at every width: the size is tied to the container so the full
   "Khair-un-Nisa Enterprises" never wraps (measured ratio ≈ 12.07 × font-size).
   Capped at 4.5rem — the fluid term reaches it around 1040px wide and never
   exceeds it on larger screens. */
.hero h1,
.hero-title {
  margin-bottom: 0.18em;
  font-size: clamp(1.25rem, calc((100vw - 44px) * 0.0787), 4.5rem);
  color: #ffffff;
}
/* the small bracket line under the company name */
.hero-bracket {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  letter-spacing: 0.01em;
  margin: 0 auto 0.85rem;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  max-width: 58ch;
  margin: 0 auto 1.1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-badge .icon { width: 1.3rem; height: 1.3rem; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.hero-actions .btn { flex: 1 1 auto; }

/* hero background slider controls */
.hero-slider-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.55rem 0.75rem;
  max-width: 420px;
  margin: 1.35rem auto 0;
}
.hero-slider-nav[hidden] { display: none; }
.hero-dots { display: flex; align-items: center; gap: 0.55rem; }
.hero-slider-group { display: flex; align-items: center; gap: 0.55rem; grid-column: 2; justify-self: center; }
.hero-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; }
.hero-arrow:active { transform: scale(0.94); }
.hero-arrow .icon { width: 1.05rem; height: 1.05rem; }
.hero-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.45); }
.hero-dot.is-active { background: #ffffff; transform: scale(1.18); }
.hero-slider-toggle {
  grid-column: 3;
  justify-self: end;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-slider-toggle:hover { color: #ffffff; }
.hero-dot:focus-visible,
.hero-arrow:focus-visible,
.hero-slider-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--sec-y) 0; }
.section-alt { background: var(--bg-2); }
.section-line { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 2rem; }
/* the reference keeps the eyebrow as plain, normal-case navy text */
.eyebrow {
  display: block;
  color: var(--ink);
  font-size: 1rem; font-weight: 600;
  letter-spacing: normal; text-transform: none;
  margin-bottom: 0.7rem;
}
.section-title { margin-bottom: 0.35em; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 0; }

/* --------------------------------------------------------------------------
   8. Products
   -------------------------------------------------------------------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 109, 130, 0.5);
  box-shadow: 0 18px 36px -26px rgba(22, 22, 22, 0.35);
}
.product-media {
  aspect-ratio: 4 / 3;
  background: #eceef0;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 0.95rem; }
.product-body h3 { font-size: 1.12rem; letter-spacing: -0.005em; margin-bottom: 0.35rem; }
.product-body p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; margin-bottom: 0.9rem; }
.product-body .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   9. Weight chart + calculator
   -------------------------------------------------------------------------- */
.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  /* allow the panel to shrink inside grid/flex parents (the weight table
     scrolls inside .table-wrap instead of stretching the whole page) */
  min-width: 0;
}
.panel-title {
  font-size: 1rem;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.panel-title .icon { color: var(--gold); }

.chart-tools { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.9rem; }
.search {
  position: relative;
  display: flex; align-items: center;
}
.search .icon {
  position: absolute; left: 0.85rem;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.weight-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.weight-table thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.8rem 0.9rem;
  white-space: nowrap;
}
.weight-table tbody td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.weight-table tbody tr:nth-child(even) { background: rgba(22, 22, 22, 0.025); }
.weight-table tbody tr:hover { background: var(--gold-soft); }
.weight-table td:first-child { font-weight: 600; color: var(--ink); }
.weight-table td:not(:first-child) { color: var(--muted); font-variant-numeric: tabular-nums; }
.weight-table tr.is-hidden { display: none; }
.weight-empty { display: none; padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.weight-empty.show { display: block; }

.note {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.note .icon { color: var(--gold); }

/* Calculator */
.calc-field { margin-bottom: 0.9rem; }
.calc-field label {
  display: block;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.calc-field select:focus,
.calc-field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }

/* Width + length fields shown only for a custom sheet size */
.calc-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.7rem;
}
.calc-custom[hidden] { display: none; }

.calc-out {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--r);
  background: var(--gold-soft);
}
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc-out .row + .row { margin-top: 0.4rem; }
.calc-out .label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.calc-out .value { font-family: var(--font-display); color: var(--ink); font-size: 1rem; font-weight: 500; }
.calc-out .total .value { color: var(--gold); font-size: 1.5rem; }
.calc-hint { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.grid-services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.service-card {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.service-media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 1.15rem; flex: 1 1 auto; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.service-card p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. Deals in
   -------------------------------------------------------------------------- */
.deals-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.deals-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
}
.deals-media img { width: 100%; height: 100%; object-fit: cover; }
.deals-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.deals-list li {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.deals-list li:hover { border-color: var(--gold); background: var(--gold-soft); }
.deals-list .icon { color: var(--gold); width: 1.05rem; height: 1.05rem; }

/* --------------------------------------------------------------------------
   12. Why choose us
   -------------------------------------------------------------------------- */
.grid-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.why-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -26px rgba(22, 22, 22, 0.35); }
.why-card .icon { width: 1.9rem; height: 1.9rem; color: var(--gold); margin-bottom: 0.8rem; }
.why-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.why-card p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* --------------------------------------------------------------------------
   13. Gallery (photos + videos)
   -------------------------------------------------------------------------- */
/* centred heading variant (only the gallery uses it) */
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* --- stage: the big image / video ---------------------------------------- */
.media-gallery { max-width: 900px; margin-left: auto; margin-right: auto; }
.media-stage {
  position: relative;
  height: clamp(340px, 62vh, 680px);
  background: #e9ebee;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
}
/* a blurred, dimmed copy of the current media fills the empty space around it */
.media-blur {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(44px) saturate(0.35) brightness(1.10);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.media-blur.is-on { opacity: 0.4; }

.media-holder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
/* the media keeps its own aspect ratio (most clips are portrait phone video),
   so the native video controls sit under the clip instead of the whole stage */
.media-holder img,
.media-holder video {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  display: block;
}

/* --- arrows -------------------------------------------------------------- */
.media-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.media-arrow .icon { width: 1.4rem; height: 1.4rem; }
.media-arrow:hover,
.media-arrow:focus-visible { background: var(--dark); border-color: var(--dark); color: #ffffff; }
.media-arrow--prev { left: 10px; }
.media-arrow--next { right: 10px; }
.media-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.media-arrow--next:hover { transform: translateY(-50%) translateX(2px); }

/* --- "photo / video" badge ---------------------------------------------- */
.media-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.media-badge[hidden] { display: none; }

/* --- play overlay (videos load + start only when asked) ----------------- */
.media-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.04), rgba(6, 6, 8, 0.28));
  cursor: pointer;
}
.media-play > span {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.media-play .icon { width: 1.9rem; height: 1.9rem; margin-left: 3px; }
.media-play:hover > span { transform: scale(1.08); background: var(--dark); color: #ffffff; }

/* --- name + counter ------------------------------------------------------ */
.media-meta {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: center;
  gap: 0.2rem 0.85rem;
  margin-top: 1rem;
  text-align: center;
}
.media-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.media-count { margin: 0; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; }

/* --- thumbnails ---------------------------------------------------------- */
.media-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 1.1rem;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.media-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 74px; height: 74px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #e9ebee;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  scroll-snap-align: center;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb:hover { opacity: 1; border-color: var(--muted-2); }
.media-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -12px var(--gold);
}
.thumb-play {
  position: absolute; right: 4px; bottom: 4px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.82);
  color: #ffffff;
}
.thumb-play .icon { width: 0.72rem; height: 0.72rem; margin-left: 1px; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.contact-card {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem;
}
.contact-card .icon { width: 1.4rem; height: 1.4rem; color: var(--gold); margin-top: 0.15rem; }
.contact-card h3 { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 0.25rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink); font-size: 0.95rem; }
.contact-card a:hover { color: var(--gold); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.contact-actions .btn { flex: 1 1 auto; }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  min-height: 260px;
}
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.field label {
  display: block;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
  padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.footer-col h3 {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #ffffff;
  margin-bottom: 0.9rem;
}
.footer-col p { color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.55rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); }
.footer-list a { color: rgba(255, 255, 255, 0.66); }
.footer-list a:hover { color: #ffffff; }
.footer-list .icon { color: var(--on-dark-2); margin-right: 0.5rem; vertical-align: -0.18em; }
.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   16. Floating actions
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 200;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem;
  background: var(--wa);
  color: #062514;
  border-radius: 999px;
  box-shadow: 0 18px 34px -16px rgba(22, 22, 22, 0.6);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.wa-float:hover { background: #34e57a; color: #062514; transform: translateY(-3px); }
.wa-float .icon { width: 1.7rem; height: 1.7rem; }
.wa-float span { display: none; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.03em; font-size: 0.85rem; padding-right: 0.35rem; }

.to-top {
  position: fixed;
  right: 18px; bottom: 84px;
  z-index: 199;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 12px 24px -16px rgba(22,22,22,.6); }

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

/* --------------------------------------------------------------------------
   18. Breakpoints (min-width, mobile-first)
   -------------------------------------------------------------------------- */

/* Very small phones — tighten the header so brand + menu button always fit */
@media (max-width: 419px) {
  :root { --header-h: 62px; }
  .header-inner { gap: 0.6rem; }
  .brand-logo { height: 44px; }
  .brand-logo--footer { height: 52px; }
}

@media (min-width: 600px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field-full { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  :root { --sec-y: 92px; }
  .nav-toggle { display: none; }
  .header-cta { display: block; }
  .nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
  .nav a {
    position: relative;
    padding: 0.55rem 0.8rem;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    border-radius: var(--r-sm);
    transition: color 0.2s var(--ease);
  }
  .nav a:hover { color: var(--ink); }
  .nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 0.18rem;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .hero { padding: 84px 0 92px; }
  .hero-sub { font-size: 1.1rem; }

  .chart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .chart-tools { flex-direction: row; align-items: center; }
  .search { flex: 1 1 auto; max-width: 340px; }

  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deals-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .wa-float span { display: inline; }
}

@media (min-width: 1100px) {
  .grid-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

/* --------------------------------------------------------------------------
   20. Inner pages
   Page hero, breadcrumb, product detail rows, step cards, CTA band and the
   gallery-page grid. All inner-page rules live here (with their own media
   queries) so the shared breakpoints above stay untouched.
   -------------------------------------------------------------------------- */

/* --- current page in the header nav ------------------------------------- */
.nav a.is-active { color: var(--ink); }
.site-header.is-open .nav a.is-active { color: var(--ink); }

/* --- page hero ----------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 50px 0 46px;
  background:
    radial-gradient(120% 150% at 85% 18%, rgba(82, 109, 130, 0.28) 0%, rgba(82, 109, 130, 0) 58%),
    linear-gradient(135deg, #2b3a4d 0%, #1b2735 55%, #27374d 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background-position: center;
  background-size: cover;
  opacity: 0.78;
  filter: grayscale(0.12) contrast(1.05) brightness(0.95);
  transform: scale(1.04);
}
/* scrim — dark where the text sits, lighter where the photo should show */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.8) 45%, rgba(8, 10, 14, 0.55) 100%);
}
/* subtle steel texture + an edge line — visible whatever the photo is */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) calc(100% - 3px), rgba(255, 255, 255, 0.55) calc(100% - 3px)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(255, 255, 255, 0) 2px 16px);
  pointer-events: none;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em;
  color: #c7cfd7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.breadcrumb a { color: #c7cfd7; }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.4); }
.breadcrumb [aria-current] { color: #ffffff; }

.page-title {
  color: #ffffff;
  font-size: clamp(1.7rem, 6vw, 2.85rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.page-lead {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: #e4e4e9;
  font-size: 0.97rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- small "view all" link used inside section heads --------------------- */
.section-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink);
}
.section-link .icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.section-link:hover .icon { transform: translateX(3px); }

/* --- group heading inside a page (e.g. "Sheets") ------------------------- */
.group-head {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.group-head h2 { font-size: clamp(1.25rem, 3.6vw, 1.8rem); }
.group-head p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; }
.group-block + .group-block { margin-top: 56px; }

/* --- product detail rows (products.html) --------------------------------- */
.detail-row {
  display: grid;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.detail-row:first-of-type { border-top: 0; padding-top: 4px; }
.detail-row__media {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.detail-row__media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.detail-row__body h2,
.detail-row__body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.detail-row__body > p { color: var(--muted); }
.detail-row__body .btn { margin-top: 1.05rem; }

.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.22rem;
}

.use-list { list-style: none; margin: 0.95rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.use-list li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.use-list .icon { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.25rem; color: var(--gold); }
.detail-note { margin-top: 0.9rem; font-size: 0.87rem; color: var(--muted-2); }

/* --- number cards (services process) ------------------------------------- */
.steps { display: grid; gap: 14px; }
.step {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.step .step-n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* --- prose / split layouts ---------------------------------------------- */
.prose { max-width: 74ch; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 0.7rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }
.prose a:hover { color: var(--gold); }

/* Inline links inside running text must not rely on colour alone */
.prose p a,
.prose li a,
.group-head p a,
.detail-note a,
.use-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose p a:hover,
.prose li a:hover,
.group-head p a:hover,
.detail-note a:hover,
.use-list a:hover {
  text-decoration-thickness: 2px;
}

.split { display: grid; gap: 26px; }
.img-frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.img-frame img { display: block; width: 100%; height: auto; }

/* --- gallery page: filter + grid ---------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #ffffff;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.is-active { background: var(--dark); border-color: var(--dark); color: #ffffff; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-tile {
  position: relative;
  padding: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #e9ebee;
  overflow: hidden;
  cursor: pointer;
}
.gallery-tile img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile:hover { border-color: var(--gold); }
.gallery-tile[hidden] { display: none; }
.gallery-tile .thumb-play {
  top: 8px; right: 8px; bottom: auto;
  width: 26px; height: 26px;
  background: rgba(6, 6, 8, 0.8);
}
.gallery-tile .thumb-play .icon { width: 0.85rem; height: 0.85rem; }
.gallery-tile .tile-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 0.6rem 0.55rem;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0), rgba(6, 6, 8, 0.9));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem; letter-spacing: 0.04em;
  text-align: left;
  transition: color 0.2s var(--ease);
}
.gallery-tile:hover .tile-name { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* --- closing CTA band ---------------------------------------------------- */
.cta-band {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.cta-inner { display: grid; gap: 18px; }
.cta-inner h2 { font-size: clamp(1.35rem, 4.2vw, 1.95rem); }
.cta-inner p { margin-top: 0.4rem; color: var(--muted); font-size: 0.94rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- inner-page breakpoints --------------------------------------------- */
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .page-hero { padding: 76px 0 68px; }
  .page-hero-bg { opacity: 0.9; }
  /* wider viewports: keep the photo bright on the right, dark behind the text */
  .page-hero::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.86) 34%, rgba(8, 8, 10, 0.48) 66%, rgba(8, 8, 10, 0.28) 100%),
      linear-gradient(180deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.3) 60%, var(--bg) 100%);
  }
  .detail-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px 0;
  }
  .detail-row:nth-of-type(even) .detail-row__media { order: 2; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
  .cta-actions { flex-wrap: nowrap; }
}

@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ==========================================================================
   21. Design upgrade (v2)
   A craft pass on top of the theme: deeper surfaces, a split section head,
   a scrolling product ticker, a reading-progress bar and sharper hover states.
   Nothing here changes the structure of the original sections — it only
   replaces their surfaces, type and motion.
   ========================================================================== */

/* --- 21.1 Surfaces & depth ----------------------------------------------- */
.section { position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.022) 0, rgba(22, 22, 22, 0) 220px),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* --- 21.2 Section head: eyebrow + title left, lead + link right ---------- */
.section-head { margin-bottom: 2.25rem; }
.section-title { letter-spacing: -0.004em; text-wrap: balance; }

.eyebrow { margin-bottom: 0.9rem; }

.section-link {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.11em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.section-link:hover { border-bottom-color: currentColor; }
.section-link:hover .icon { transform: translateX(4px); }

@media (min-width: 900px) {
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    column-gap: 3.5rem;
    row-gap: 0.3rem;
    align-items: end;
    margin-bottom: 3.25rem;
  }
  .section-head > .eyebrow { grid-column: 1; grid-row: 1; justify-self: start; }
  .section-head > .section-title { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .section-head > .section-lead { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: 44ch; margin: 0; }
  .section-head > .section-link { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 0.85rem; }

  /* a head with no lead keeps a single, full-width column */
  .section-head:not(:has(.section-lead)) > .section-title { grid-column: 1 / -1; }

  /* the centred variant (gallery) stays centred */
  .section-head--center { display: block; text-align: center; }
  .section-head--center > .section-lead { margin-inline: auto; max-width: 62ch; }
  .section-head--center > .section-link { margin-top: 1rem; }
}

/* --- 21.3 Light gradient on the one heading that uses .gold --------------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .gold {
    background: linear-gradient(172deg, #ffffff 0%, #e6eff7 42%, #b9d0e2 78%, #9fb9cd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #dfeaf3;
  }
}

/* --- 21.4 Buttons: flat solid shapes ------------------------------------- */
.btn { border-radius: var(--r-sm); padding: 0.75rem 1.2rem; font-size: 0.78rem; }
.btn-sm { padding: 0.52rem 0.9rem; }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: #ffffff; }

/* --- 21.6 Product cards: flat white, no image scrim ---------------------- */
.grid-products { gap: 16px; }
.product-card {
  background: #ffffff;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 109, 130, 0.5);
  box-shadow: 0 18px 36px -26px rgba(22, 22, 22, 0.35), 0 12px 30px -26px rgba(82, 109, 130, 0.4);
}
.product-card:hover .product-media img { transform: scale(1.06); }

/* --- 21.7 Service cards: flat white outline ------------------------------ */
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 109, 130, 0.45);
  box-shadow: 0 18px 36px -26px rgba(22, 22, 22, 0.35);
}


/* --- 21.8 Why cards: flat outline with faint counters -------------------- */
.grid-why { counter-reset: wcard; }
.why-card {
  counter-increment: wcard;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: counter(wcard, decimal-leading-zero);
  position: absolute; top: 0.35rem; right: 0.85rem;
  font-family: var(--font-display);
  font-size: 3.3rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(82, 109, 130, 0.28);
  opacity: 0.9;
  pointer-events: none;
}
.why-card:hover { border-color: rgba(82, 109, 130, 0.45); }

/* --- 21.9 Deals list ----------------------------------------------------- */
.deals-list li {
  background: #ffffff;
  padding: 0.8rem 0.9rem;
}
.deals-list li:hover { transform: translateX(3px); }
.deals-list .icon {
  padding: 0.22rem;
  border-radius: 50%;
  background: rgba(82, 109, 130, 0.12);
  width: 1.35rem; height: 1.35rem;
}
.deals-media { box-shadow: 0 24px 50px -38px rgba(22, 22, 22, 0.4); }

/* --- 21.10 Gallery stage + thumbs --------------------------------------- */
.media-stage { box-shadow: 0 26px 55px -44px rgba(22, 22, 22, 0.35), 0 0 0 1px rgba(22, 22, 22, 0.04); }
.media-thumb { border-radius: var(--r-sm); }
.media-thumb.is-active { box-shadow: 0 10px 26px -12px rgba(82, 109, 130, 0.55), 0 0 0 1px rgba(82, 109, 130, 0.7); }

/* --- 21.11 Contact cards ------------------------------------------------- */
.contact-card {
  background: #ffffff;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(82, 109, 130, 0.45); }

/* --- 21.12 Footer ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #171717 0%, #0f0f10 100%);
}
.footer-col h3 { display: flex; align-items: center; gap: 0.6rem; }
.footer-col h3::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}
.footer-list a { transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer-list a:hover { padding-left: 3px; }

/* --- 21.13 Product ticker ----------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(82, 109, 130, 0.06), rgba(82, 109, 130, 0) 70%),
    var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span {
  padding: 0 0.95rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marquee-group .mq-dot { padding: 0; color: var(--gold); font-size: 0.62rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- 21.13b Product CTAs: monochrome button with a WhatsApp dot --------- */
.product-body .btn-wa,
.detail-row__body .btn-wa {
  background: #ffffff;
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: none;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.product-body .btn-wa::before,
.detail-row__body .btn-wa::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}
.product-body .btn-wa:hover,
.detail-row__body .btn-wa:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
}

/* --- 21.14 Reading progress -------------------------------------------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (min-width: 900px) {
  :root { --sec-y: 104px; }
  .marquee-group span { font-size: 1rem; padding: 0 1.1rem; }
}

/* small screens: keep the card CTA on one line */
@media (max-width: 599px) {
  .product-body .btn-wa {
    gap: 0.35rem;
    padding: 0.52rem 0.4rem;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }
  .product-body .btn-wa::before { width: 0.4rem; height: 0.4rem; box-shadow: none; }
}

/* --- 21.16 Contact redesign: dark "requirement" card (Still style) ------- */
/* Full-width map: one wide strip under the cards + form */
.map-wide { margin-top: 22px; }
.map-wide iframe { height: clamp(320px, 40vw, 440px); }

/* Info cards: stacked vertically as wide rows — icon chip on the left,
   small steel label + strong value on the right */
.contact-cards { grid-template-columns: minmax(0, 1fr); }
.contact-card {
  flex-direction: row;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
}
.contact-card .icon {
  width: 2.35rem; height: 2.35rem;
  padding: 0.6rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin-top: 0;
  border: 1px solid rgba(82, 109, 130, 0.25);
  border-radius: var(--r);
  background: var(--gold-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card h3 {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.contact-card p, .contact-card a { font-size: 1rem; line-height: 1.5; }
.contact-card a {
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-card:hover .icon { background: var(--ink); border-color: var(--ink); color: #ffffff; }

/* Address links open the exact Google Maps pin */
.address-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(82, 109, 130, 0.45);
  text-underline-offset: 3px;
}
.address-link:hover { color: var(--gold); text-decoration-color: currentColor; }
.contact-card a.address-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* The inquiry form sits in the one dark card, like the reference newsletter box:
   #161616 surface, hairline light border, ambient glow, white inputs. */
.panel.contact-panel {
  background: var(--dark);
  border-color: var(--bg-2);
  border-radius: var(--r);
  padding: 1.9rem 1.6rem 2rem;
  color: #ffffff;
  box-shadow: 0 26px 60px -28px rgba(22, 22, 22, 0.55), 0 0 22px rgba(22, 22, 22, 0.14);
}
.contact-panel .panel-title { color: #ffffff; font-size: 1.15rem; letter-spacing: -0.005em; }
.contact-panel .panel-title .icon { color: var(--wa); }
.contact-panel .field label { color: rgba(255, 255, 255, 0.85); }
.contact-panel input, .contact-panel select, .contact-panel textarea {
  background: #ffffff;
  border-color: #c3c2c2;
  color: var(--text);
}
.contact-panel input::placeholder, .contact-panel textarea::placeholder { color: var(--muted-2); }
.contact-panel .field input:focus, .contact-panel .field select:focus, .contact-panel .field textarea:focus { border-color: var(--gold); }
.contact-panel .calc-hint { color: rgba(255, 255, 255, 0.62); }

/* --- 21.18 Contact: centred eyebrow + bold headings ---------------------- */
/* The centred head variant now truly centres its eyebrow (it used to shrink
   to its text width and sit at the left edge of the block). */
.section-head--center > .eyebrow {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.section-head--center > .section-title { text-align: center; }

/* every heading on the site is bold now */
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.footer-col h3, .contact-card h3, .contact-card h4 { font-weight: 700; }

/* --- 21.19 Company video (home) ------------------------------------------ */
.video-section { padding-top: clamp(3rem, 6vw, 5rem); }
.video-band {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0d0d0d;
}
.video-band__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d0d0d;
}

@media (max-width: 640px) {
  .video-band { border-radius: var(--r); }
}

/* --- 21.20 FAQ (AEO / answer engines) ------------------------------------ */
.faq-section { border-block: 1px solid var(--line); }
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 1.1rem 2.6rem 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted-2);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0 0 1.15rem;
  max-width: 68ch;
  color: var(--muted);
}
.faq-item p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-item p a:hover { color: var(--accent, #27374d); }

/* --- 21.17 Motion preferences for the new pieces ------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* the global rule squashes every duration to 0.001ms, which would make an
     endless animation spin flat out — turn it off instead */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}