/* =====================================================================
   SHOWQ SHIP CHANDLERS L.L.C.
   Front-end stylesheet
   ---------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Buttons & forms
   5.  Top bar / Header / Navigation
   6.  Hero slider
   7.  Category strip
   8.  Section headings
   9.  Product cards & grids
   10. Why-us feature cards
   11. Since-1993 statistics band
   12. Inner page furniture (breadcrumbs, page hero, filters)
   13. Product detail
   14. Forms / quote basket
   15. Footer
   16. Utilities, motion & accessibility
   ===================================================================== */

/* ── 1. Design tokens ───────────────────────────────────────────── */
:root {
  /* Brand */
  --navy-950: #06203f;
  --navy-900: #082b57;
  --navy-800: #0b3266;
  --navy-700: #0e3a76;
  --navy-600: #12468c;
  --brand:    #1657a8;
  --brand-ink:#0d3b7a;
  --brand-soft:#eaf1fb;

  --red:      #d8232a;
  --red-dark: #b4191f;
  --red-soft: #fdeced;

  /* Neutrals */
  --ink:      #16233a;
  --ink-soft: #3d4f6b;
  --muted:    #6b7f9c;
  --line:     #e2e8f2;
  --line-soft:#eef2f8;
  --bg:       #ffffff;
  --bg-soft:  #f6f9fd;
  --white:    #ffffff;

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Metrics */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 10px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 35, 70, .06);
  --shadow-md: 0 4px 16px rgba(10, 35, 70, .09);
  --shadow-lg: 0 14px 40px rgba(10, 35, 70, .14);

  /* Motion — critically damped, response ≈ .32s (see apple-design §4) */
  --spring:  cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms;
  --t-base: 260ms;
  --t-slow: 420ms;
}

/* ── 2. Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  /* The off-canvas drawer sits past the right edge while closed; clip at the
     root so it can never contribute a horizontal scrollbar. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  color: var(--brand-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.01em; }
h3 { font-size: clamp(17px, 1.5vw, 20px); }
h4 { font-size: 15px; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

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

::selection { background: var(--brand); color: #fff; }

/* ── 3. Layout primitives ───────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(38px, 4.4vw, 58px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(26px, 3vw, 38px); }

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 999;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--navy-800); color: #fff; font-weight: 600;
}
.skip-link:focus {
  width: auto; height: auto;
  padding: 12px 20px; margin: 0;
  overflow: visible;
  clip-path: none;
  color: #fff;
}

/* ── 4. Buttons & forms ─────────────────────────────────────────── */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.btn:hover  { color: var(--btn-fg); box-shadow: var(--shadow-md); }
/* Feedback lives on the press, and it is instant (apple-design §1) */
.btn:active { transform: scale(.975); box-shadow: none; }

.btn svg { flex: none; }

.btn--red     { --btn-bg: var(--red); }
.btn--red:hover { --btn-bg: var(--red-dark); }
.btn--navy    { --btn-bg: var(--navy-700); }
.btn--navy:hover { --btn-bg: var(--navy-800); }
.btn--brand:hover { --btn-bg: var(--navy-700); }

/* WhatsApp — brand green, kept distinct from the navy/red system buttons */
.btn--wa { --btn-bg: #25d366; --btn-fg: #ffffff; }
.btn--wa:hover { --btn-bg: #1eb655; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.14); border-color: #fff; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand-ink);
  border-color: var(--line);
}
.btn--outline:hover { --btn-bg: var(--brand-soft); border-color: var(--brand); }

.btn--sm   { height: 36px; padding: 0 16px; font-size: 11.5px; }
.btn--lg   { height: 52px; padding: 0 30px; font-size: 14px; }
.btn--full { width: 100%; }

/* Fields */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.field .req { color: var(--red); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 87, 168, .13);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7f9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}
.field-error { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--red); }

/* Alerts */
.alert {
  padding: 13px 16px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert--ok   { background: #e9f7ef; border-color: #b8e3c9; color: #15693c; }
.alert--err  { background: var(--red-soft); border-color: #f4bcbf; color: #9c1319; }
.alert--info { background: var(--brand-soft); border-color: #c3d9f5; color: var(--navy-800); }

/* ── 5. Top bar / Header / Navigation ───────────────────────────── */
.topbar {
  background: var(--navy-700);
  color: #cfe0f5;
  font-size: 12.5px;
  line-height: 1;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar a, .topbar span.ti { display: inline-flex; align-items: center; gap: 7px; color: #cfe0f5; }
.topbar a:hover { color: #fff; }
.topbar svg { opacity: .85; flex: none; }
.topbar__tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.topbar__locale {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18);
  font-weight: 600; color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}
.header.is-stuck { box-shadow: 0 4px 18px rgba(10, 35, 70, .10); background: rgba(255,255,255,.94); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 22px);
  min-height: 86px;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base) var(--spring);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__item.is-active > .nav__link { color: var(--red); font-weight: 600; }
.nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link .caret { transition: transform var(--t-base) var(--spring); }
.nav__item:hover .caret, .nav__item:focus-within .caret { transform: rotate(180deg); }

/* Dropdowns — anchored to their trigger (apple-design §7) */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 262px;
  padding: 8px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px) scale(.97);
  transform-origin: top center;
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--spring),
              visibility var(--t-base);
  z-index: 70;
}
.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.dropdown a svg { color: var(--brand); flex: none; }
.dropdown__count { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dropdown__sep { height: 1px; background: var(--line-soft); margin: 6px 4px; }

/* ── Header catalogue search ────────────────────────────────────── */
.hsearch { position: relative; flex: 1 1 260px; max-width: 340px; min-width: 0; }
.hsearch__form { position: relative; display: flex; align-items: center; }
.hsearch__icon {
  position: absolute; left: 12px; display: grid; place-items: center;
  color: var(--muted); pointer-events: none;
}
.hsearch__input {
  width: 100%; height: 42px;
  padding: 0 74px 0 38px;
  font-family: inherit; font-size: 13.8px; color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 21px;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.hsearch__input::placeholder { color: var(--muted); }
.hsearch__input::-webkit-search-cancel-button { display: none; }
.hsearch__input:focus {
  outline: none; background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 87, 168, .13);
}
.hsearch__go {
  position: absolute; right: 4px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--brand); color: #fff; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.hsearch__go:hover { background: var(--navy-700); }
.hsearch__go:active { transform: scale(.92); }
.hsearch__clear {
  position: absolute; right: 42px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
}
.hsearch__clear:hover { color: var(--red); background: var(--line-soft); }

/* Suggestions */
.hsearch__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  z-index: 80;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.hsearch__panel[hidden] { display: none; }
.sg {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 6px;
  color: var(--ink); text-align: left; width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.sg:hover, .sg.is-active { background: var(--brand-soft); color: var(--brand-ink); }
.sg img {
  width: 40px; height: 40px; flex: none;
  object-fit: contain; padding: 3px; background: #fff;
  border: 1px solid var(--line); border-radius: 5px;
}
.sg__t { min-width: 0; flex: 1; }
.sg__n {
  display: block; font-size: 13.4px; font-weight: 600; line-height: 1.32;
  color: var(--brand-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sg__m {
  display: block; font-size: 11.4px; color: var(--muted); margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.sg__m mark { background: #fff2ad; color: inherit; padding: 0 1px; border-radius: 2px; }
.sg__n mark { background: #fff2ad; color: inherit; padding: 0 1px; border-radius: 2px; }
.hsearch__all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px; padding: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.8px; font-weight: 600; color: var(--brand);
}
.hsearch__all:hover { color: var(--red); }
.hsearch__empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13.4px; }
.hsearch__empty b { display: block; color: var(--ink-soft); margin-bottom: 3px; font-size: 14px; }

.search-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--brand-ink); cursor: pointer;
}

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.basket-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--brand-ink);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.basket-pill:hover { border-color: var(--brand); background: var(--brand-soft); }
.basket-pill__n {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Mobile-only controls — hidden on desktop */
.nav__close { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--brand-ink); cursor: pointer;
}

/* ── 6. Hero slider ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
.hero__viewport { position: relative; min-height: clamp(400px, 40vw, 560px); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease-out), visibility var(--t-slow);
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
              rgba(4, 22, 46, .90) 0%,
              rgba(4, 22, 46, .74) 34%,
              rgba(4, 22, 46, .34) 62%,
              rgba(4, 22, 46, .22) 100%);
}
.hero__body {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: clamp(400px, 40vw, 560px);
  padding-block: 54px;
}
/* A non-first slide keeps <h1> semantics for the first slide only */
p.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
}
.hero__content { max-width: 700px; color: #fff; }
.hero__title {
  color: #fff;
  font-size: clamp(29px, 3.3vw, 46px);
  line-height: 1.05;
  letter-spacing: -.022em;
  margin: 0 0 18px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hero__text {
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.62;
  color: rgba(255,255,255,.9);
  max-width: 500px;
  margin: 0 0 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Slider controls */
.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy-800);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-base) var(--spring);
}
.hero__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.hero__arrow:active { transform: translateY(-50%) scale(.94); }
.hero__arrow--prev { left: clamp(10px, 2.2vw, 30px); }
.hero__arrow--next { right: clamp(10px, 2.2vw, 30px); }
.hero__arrow--prev svg { transform: rotate(180deg); }

.hero__dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.hero__dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 10px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: width var(--t-base) var(--spring), background var(--t-base) var(--ease-out);
}
.hero__dot.is-active { width: 26px; background: var(--red); }

/* ── 7. Category strip ──────────────────────────────────────────── */
.catstrip { padding: clamp(18px, 2.4vw, 30px) 0 clamp(6px, 1vw, 12px); }
.catstrip__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}
.catcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 108px;
  padding: 16px 8px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-ink);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--spring);
}
.catcard:hover {
  color: var(--brand-ink);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.catcard:active { transform: translateY(-1px) scale(.985); }
.catcard__icon { color: var(--brand); transition: transform var(--t-base) var(--spring); }
.catcard:hover .catcard__icon { transform: scale(1.09); }
.catcard__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .005em;
}

/* ── 8. Section headings ────────────────────────────────────────── */
.shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.shead__title {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.shead__title::after {
  content: '';
  display: block;
  width: 46px; height: 3px;
  margin-top: 11px;
  background: var(--red);
  border-radius: 2px;
}
.shead__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  white-space: nowrap;
}
.shead__link svg { transition: transform var(--t-base) var(--spring); }
.shead__link:hover svg { transform: translateX(3px); }

.shead--center { flex-direction: column; align-items: center; text-align: center; }
.shead--center .shead__title::after { margin-inline: auto; }
.shead__sub { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; max-width: 640px; text-wrap: pretty; }
.shead--center .shead__sub { text-align: center; }

/* ── 9. Product cards & grids ───────────────────────────────────── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.pgrid--wide { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.pcard {
  /* Lets the action row adapt to the card, not the viewport — the featured
     row is much narrower than the catalogue grid. */
  container-type: inline-size;
  container-name: pcard;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--spring);
}
.pcard:hover { border-color: #c9d8ee; box-shadow: var(--shadow-md); transform: translateY(-3px); }

.pcard__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 14px;
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }

.pcard__body { padding: 0 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pcard__name {
  font-family: var(--font-display);
  font-size: 12.8px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--brand-ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.64em;
}
.pcard__name a { color: inherit; }
.pcard__name a:hover { color: var(--red); }
.pcard__meta { font-size: 10.8px; line-height: 1.55; color: var(--muted); margin: 0 0 3px; }
.pcard__meta b { color: var(--ink-soft); font-weight: 600; }
.pcard__meta--impa { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pcard__btn { margin-top: 11px; display: flex; gap: 6px; }
.pcard__btn .btn { height: 33px; font-size: 10.5px; letter-spacing: .05em; padding: 0 8px; gap: 6px; flex: 1 1 auto; min-width: 0; }
.pcard__btn .btn svg { width: 13px; height: 13px; flex: none; }
.pcard__btn .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__btn .btn--wa { flex: 0 0 34px; padding: 0; }

/* Short label by default so nothing ever truncates; the full wording
   appears once the card is wide enough to hold it. */
.pcard__btn .t-full { display: none; }
@container pcard (min-width: 196px) {
  .pcard__btn .t-short { display: none; }
  .pcard__btn .t-full  { display: inline; }
}

.pcard.is-added .pcard__btn .btn { --btn-bg: #15693c; }

/* Empty state */
.empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--muted);
}
.empty svg { color: #b9c9e0; margin: 0 auto 14px; }
.empty h3 { color: var(--ink-soft); margin-bottom: 6px; }

/* ── 10. Why-us feature cards ───────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--spring);
}
.why__card:hover { border-color: #c9d8ee; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why__icon { flex: none; color: var(--navy-700); }
.why__icon--red { color: var(--red); }
.why__title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 2px 0 7px;
}
.why__text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ── 11. Since-1993 statistics band ─────────────────────────────── */
.since {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--navy-800);
  color: #fff;
}
.since__media { position: relative; min-height: 320px; }
.since__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.since__panel {
  padding: clamp(30px, 3.6vw, 52px) clamp(24px, 4vw, 62px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: calc(var(--container) / 2 + 60px);
}
.since__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #ff6b70;
  margin: 0 0 6px;
}
.since__year {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 16px;
}
.since__text {
  font-size: 13.8px;
  line-height: 1.72;
  color: #bed2ec;
  margin: 0 0 26px;
  max-width: 620px;
}
.since__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.since__stat {
  display: flex; align-items: flex-start; gap: 11px;
  padding-inline: 18px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.since__stat:first-child { padding-left: 0; border-left: none; }
.since__stat svg { flex: none; color: #9dc0ec; margin-top: 2px; }
.since__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; line-height: 1.2; color: #fff;
  letter-spacing: -.01em;
}
.since__stat span { display: block; font-size: 11.5px; line-height: 1.35; color: #a9c3e2; margin-top: 2px; }

/* ── 12. Inner page furniture ───────────────────────────────────── */
.phero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.phero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--phero-img, none);
  background-size: cover; background-position: center;
  opacity: .32;
  z-index: -2;
}
.phero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,32,63,.92), rgba(6,32,63,.62));
  z-index: -1;
}
.phero__inner { padding-block: clamp(38px, 4.6vw, 66px); }
.phero h1 { color: #fff; margin: 0 0 10px; }
.phero p { margin: 0; color: rgba(255,255,255,.86); max-width: 720px; font-size: 15.5px; }

.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  list-style: none; margin: 0; padding: 11px 0;
  font-size: 12.5px; color: var(--muted);
}
.crumbs li + li::before { content: '/'; margin-right: 7px; color: #b9c9e0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li[aria-current] { color: var(--ink-soft); font-weight: 600; }

/* Catalogue layout */
.catalogue { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 30px; align-items: start; }

.sidebar {
  position: sticky; top: 106px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.sidebar__block + .sidebar__block { border-top: 1px solid var(--line-soft); }
.sidebar__head {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.sidebar__body { padding: 8px; }
.sidebar__body--pad { padding: 14px 16px; }

.filterlist { list-style: none; margin: 0; padding: 0; }
.filterlist a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 5px;
  font-size: 13.2px; font-weight: 500; color: var(--ink);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.filterlist a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.filterlist .is-on > a { background: var(--brand); color: #fff; font-weight: 600; }
.filterlist .is-on > a .n { color: rgba(255,255,255,.8); }
.filterlist .n { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filterlist ul { list-style: none; margin: 2px 0 6px; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.filterlist ul a { font-size: 12.5px; padding: 6px 10px; color: var(--ink-soft); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar__count { font-size: 13.5px; color: var(--muted); }
.toolbar__count b { color: var(--ink); font-weight: 700; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar .select { height: 38px; padding-block: 0; font-size: 13px; }

.searchbox { position: relative; display: flex; }
.searchbox .input { padding-right: 42px; height: 42px; }
.searchbox button {
  position: absolute; right: 4px; top: 4px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; border-radius: 4px;
  background: var(--brand); color: #fff; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.searchbox button:hover { background: var(--navy-700); }
.searchbox button:active { transform: scale(.94); }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.pager a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.pager .is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-off { color: #b9c9e0; }

/* ── 13. Product detail ─────────────────────────────────────────── */
.pdetail { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(24px, 3.4vw, 48px); }
.pgallery__main {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 26px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; overflow: hidden;
}
.pgallery__main img { max-height: 100%; object-fit: contain; }
.pgallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pgallery__thumb {
  width: 72px; height: 72px; padding: 6px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out);
}
.pgallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pgallery__thumb.is-on, .pgallery__thumb:hover { border-color: var(--brand); }

.pinfo h1 { font-size: clamp(23px, 2.4vw, 32px); margin-bottom: 12px; }
.pinfo__sub { font-size: 15.5px; color: var(--muted); margin: 0 0 22px; }
.spec {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 24px; font-size: 14px;
}
.spec th, .spec td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.spec th { width: 40%; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft); }
.spec td { color: var(--ink); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  background: var(--brand-soft);
  border: 1px solid #d3e2f7;
  border-radius: 20px;
  font-size: 12.5px; font-weight: 500; color: var(--navy-700);
}
.pinfo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pnote {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.2px; line-height: 1.62; color: var(--ink-soft);
}
.pnote svg { flex: none; color: var(--brand); margin-top: 2px; }
.prose { font-size: 14.6px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

/* ── 14. Forms / quote basket ───────────────────────────────────── */
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.formgrid .field--full { grid-column: 1 / -1; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 30px);
}
.card--soft { background: var(--bg-soft); }

.basket { width: 100%; border-collapse: collapse; }
.basket th {
  text-align: left; padding: 10px 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.basket td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.basket__item { display: flex; align-items: center; gap: 12px; }
.basket__item img {
  width: 54px; height: 54px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px; background: #fff; flex: none;
}
.basket__name { font-weight: 600; font-size: 13.5px; color: var(--brand-ink); line-height: 1.35; }
.basket__impa { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.basket .qty { width: 74px; text-align: center; padding: 8px; }
.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: var(--muted); cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.iconbtn:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.iconbtn:active { transform: scale(.93); }

/* Send-the-whole-list prompt on the quote page */
.wa-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px 18px;
  background: #f0fbf4;
  border: 1px solid #bfe6cd;
  border-radius: var(--radius);
}
.wa-cta b {
  display: block; font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: #14683d; margin-bottom: 3px;
}
.wa-cta span { font-size: 13.4px; color: #3f6b52; line-height: 1.55; }
.wa-cta .btn { flex: none; }
.flexrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.infolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.infolist li { display: flex; gap: 13px; align-items: flex-start; }
.infolist svg { flex: none; color: var(--brand); margin-top: 3px; }
.infolist b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em;
              text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.infolist a, .infolist span { color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.infolist a:hover { color: var(--red); }
.map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 340px; border: 0; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.96);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast svg { color: #6ee7a4; flex: none; }

/* ── 15. Footer ─────────────────────────────────────────────────── */
.footer { background: var(--navy-800); color: #b9cde8; font-size: 13.4px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.15fr 1.35fr 1.15fr;
  gap: clamp(20px, 2.4vw, 38px);
  /* padding-block only — the `padding` shorthand would wipe out the
     horizontal padding that .wrap supplies, pinning content to the edge. */
  padding-block: clamp(34px, 3.8vw, 52px) clamp(28px, 3vw, 42px);
}
.footer__logo img { height: 54px; width: auto; margin-bottom: 16px; }
.footer__about { margin: 0 0 20px; line-height: 1.68; color: #a8c0de; max-width: 260px; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: #b9cde8; }
.footer a:hover { color: #fff; }
.footer__links a { display: inline-block; transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.footer__links a:hover { transform: translateX(3px); }

.footer__contact li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.62; }
.footer__contact svg { flex: none; color: #7ea8de; margin-top: 3px; }
.footer__col--divide { border-left: 1px solid rgba(255,255,255,.12); padding-left: clamp(18px, 2vw, 32px); }

.footer__hours li { display: flex; gap: 11px; align-items: flex-start; }
.footer__hours svg { flex: none; color: #7ea8de; margin-top: 3px; }
.footer__hours b { display: block; color: #fff; font-weight: 600; font-size: 13px; }
.footer__hours span { color: #a8c0de; }

.social { display: flex; gap: 9px; }
.social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: #cfe0f5;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-base) var(--spring);
}
.social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.social a:active { transform: translateY(0) scale(.93); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--navy-900);
}
.footer__bottom .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-block: 15px;
  font-size: 12.5px; color: #90aacd;
}
.footer__legal { display: flex; gap: 14px; align-items: center; }
.footer__legal span { color: rgba(255,255,255,.24); }

/* ── Multi-item enquiry bar ─────────────────────────────────────── */
.enqbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: rgba(11, 50, 102, .97);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 -8px 32px rgba(6, 32, 63, .28);
  color: #fff;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform var(--t-base) var(--spring), visibility var(--t-base);
}
.enqbar.is-on { transform: translateY(0); visibility: visible; }

.enqbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding-block: 11px;
}
.enqbar__count {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: #cfe0f5;
}
.enqbar__count svg { color: #9dc0ec; flex: none; }
.enqbar__count b {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
}
.enqbar__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.enqbar__clear {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent; color: #9dc0ec;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px; cursor: pointer;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.enqbar__clear:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.enqbar__clear:active { transform: scale(.93); }

/* The bar carries its own WhatsApp action, so the floating button would
   only duplicate it — hide it rather than stack two green circles. */
.enqbar.is-on ~ .wafab {
  opacity: 0;
  visibility: hidden;
  transform: scale(.85);
}

/* Floating WhatsApp */
.wafab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base) var(--spring), background var(--t-fast) var(--ease-out);
}
.wafab {
  transition: transform var(--t-base) var(--spring),
              background var(--t-fast) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              visibility var(--t-base);
}
.wafab:hover { color: #fff; transform: scale(1.07); }
.wafab:active { transform: scale(.94); }

/* ── 16. Utilities, motion & accessibility ──────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Honeypot: occupies no layout box at all, so it cannot widen the page */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 18px; } .mb-3 { margin-bottom: 18px; }
.mt-4 { margin-top: 26px; } .mb-4 { margin-bottom: 26px; }
.stack > * + * { margin-top: 16px; }

/* Scroll reveal — opacity + small rise, honours reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--spring);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .catstrip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__col--divide { border-left: none; padding-left: 0; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__about { max-width: 520px; }
}

/* Below this the header cannot hold logo + nav + search at once, so the
   search collapses into a toggle that drops a full-width bar underneath. */
@media (max-width: 1180px) {
  .hsearch {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-width: none;
    padding: 0 var(--gutter) 14px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(10, 35, 70, .10);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-base) var(--ease-out),
                transform var(--t-base) var(--spring),
                visibility var(--t-base);
  }
  .hsearch.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .hsearch__panel { position: static; margin-top: 8px; box-shadow: none; max-height: 56vh; }
  .search-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  .nav, .header__cta .btn span { display: none; }
  .nav-toggle { display: inline-flex; }

  /* A backdrop-filter would make the header a containing block for its
     position:fixed children, clipping the slide-in drawer and its scrim.
     The header goes solid on small screens so the drawer covers the viewport. */
  .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header.is-stuck { background: #fff; }
  .since { grid-template-columns: 1fr; }
  .since__media { min-height: 230px; }
  .since__panel { max-width: none; }
  .catalogue { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .pdetail { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .header__cta .btn { padding-inline: 16px; }

  /* Slide-in mobile navigation — exits along the path it entered (§7) */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 20px 30px;
    background: #fff;
    box-shadow: -12px 0 44px rgba(6, 32, 63, .22);
    transform: translateX(100%);
    transition: transform var(--t-base) var(--spring);
    overflow-y: auto;
    z-index: 100;
  }
  .nav.is-open { display: flex; transform: translateX(0); }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link { padding: 14px 4px; font-size: 15.5px; width: 100%; justify-content: space-between; }
  .nav__link::after { display: none; }
  /* The desktop rules below are (0,3,0) specific, so the plain `.dropdown`
     reset cannot beat them — the accordion must match that specificity or
     the panel keeps its translate(-50%) and slides out of the drawer. */
  .dropdown,
  .nav__item:hover > .dropdown,
  .nav__item:focus-within > .dropdown,
  .nav__item.is-open > .dropdown {
    position: static;
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 0 10px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base) var(--ease-out);
  }
  .dropdown::before { content: none; }
  .nav__item.is-open > .dropdown { max-height: 62vh; overflow-y: auto; }
  .dropdown a { white-space: normal; }
  .dropdown__count { margin-left: auto; }
  .nav__item.is-open .caret { transform: rotate(180deg); }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(6, 32, 63, .45);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), visibility var(--t-base);
  }
  .nav-scrim.is-on { opacity: 1; visibility: visible; }
  .nav__close {
    display: grid;
    position: absolute; top: 20px; right: 18px;
    width: 40px; height: 40px; place-items: center;
    border: 1px solid var(--line); border-radius: 4px;
    background: #fff; color: var(--brand-ink); cursor: pointer;
  }
}

@media (max-width: 860px) {
  .topbar__group--left { gap: 16px; }
  .topbar__tag { display: none; }
  .since__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .since__stat:nth-child(3) { padding-left: 0; border-left: none; }
  .formgrid { grid-template-columns: 1fr; }

  /* Two columns of links keeps the footer compact instead of one long list */
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .footer__col--brand   { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__col--hours   { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }

  /* Top bar: keep it to a single tidy row */
  .topbar { font-size: 11.5px; }
  .topbar__inner { justify-content: center; gap: 10px 16px; padding-block: 7px; min-height: 0; }
  .topbar__group--left { gap: 14px; justify-content: center; }
  .topbar__locale { padding-left: 0; border-left: none; }

  /* Dots and swipe are enough on a phone — arrows would sit over the copy.
     The slides are absolutely positioned, so the viewport keeps an explicit
     height tall enough for a three-line headline and stacked buttons. */
  .hero__arrow { display: none; }
  .hero__viewport, .hero__body { min-height: 530px; }
  .hero__body { padding-block: 40px 58px; }
  .hero__text { margin-bottom: 22px; }
  .catstrip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero__arrow { width: 38px; height: 38px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .shead { flex-direction: column; align-items: flex-start; }
  /* Still two columns on a phone — the link lists are short enough */
  .footer { font-size: 13px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer h4 { margin-bottom: 12px; font-size: 11.5px; }
  .footer ul { gap: 8px; }
  .footer__logo img { height: 46px; margin-bottom: 12px; }
  .footer__about { margin-bottom: 16px; max-width: none; }
  /* Clear the floating WhatsApp button so it never sits on top of a link */
  .footer__bottom .wrap { flex-direction: column; text-align: center; gap: 8px; }
  .wafab { right: 16px; bottom: 16px; }
  .enqbar__inner { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 12px; }
  .enqbar__count { justify-content: center; }
  .enqbar__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .enqbar__actions .btn--wa { grid-column: 1 / -1; }
  .basket thead { display: none; }
  .basket td { display: block; border: none; padding: 6px 0; }
  .basket tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__right { flex-wrap: wrap; }
}

/* The header carries logo + search + cart + quote + menu. Below this the
   row has to give ground, so the controls shrink before anything wraps. */
@media (max-width: 430px) {
  .logo img { height: 36px; }
  .header__inner { min-height: 64px; gap: 8px; }
  .header__cta { gap: 6px; }
  .basket-pill, .nav-toggle, .search-toggle { width: 36px; height: 36px; }
  .header__cta .btn { height: 36px; padding-inline: 10px; }
  .topbar { font-size: 11px; }
  .topbar__inner { gap: 8px 12px; }
}

@media (max-width: 370px) {
  /* Smallest phones: the red Request Quote button steps aside. The action
     stays reachable from the menu, the enquiry bar and the cart. */
  .header__cta .btn--red { display: none; }
  .logo img { height: 34px; }
  .catstrip__grid { gap: 8px; }
  .pgrid { gap: 10px; }
}

/* Motion & transparency preferences (apple-design §14) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none; }
  .catcard:hover, .pcard:hover, .why__card:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .header { background: #fff; backdrop-filter: none; }
  .dropdown { background: #fff; backdrop-filter: none; }
  .btn--ghost { backdrop-filter: none; background: rgba(0,0,0,.35); }
}

@media (prefers-contrast: more) {
  .pcard, .catcard, .why__card, .card { border-color: var(--ink-soft); }
  .pcard__meta, .why__text, .toolbar__count { color: var(--ink-soft); }
}

/* Print */
@media print {
  .topbar, .header, .footer, .hero, .wafab, .pcard__btn, .pager { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
