/* ==========================================================================
   Nellissery Traders — design system
   "The engineer's counter": porcelain ground, NT royal blue, pipe-print marks.
   Display: Barlow Condensed (DIN lineage, matches the NT wordmark)
   Body:    Hanken Grotesk · Data: IBM Plex Mono · Malayalam: Anek Malayalam
   ========================================================================== */

:root {
  /* White + NT blue, taken from the logo (#2b3f8f). One light look for everyone:
     the brand is white and blue, so the site doesn't switch to a dark theme. */
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f2f5fc;          /* faint blue tint for alternating bands */
  --surface: #ffffff;
  --ink: #14215a;           /* deep brand navy for text */
  --ink-2: #36437a;
  --ink-3: #5f6a96;
  --ink-4: #929bbe;
  --line: #dde3f2;
  --line-2: #bfc9e6;
  --blue: #2b3f8f;          /* NT logo blue */
  --blue-2: #22327a;
  --blue-ink: #ffffff;
  --blue-soft: #e9eefb;
  --blue-text: #2b3f8f;
  --signal: #4a63c9;        /* lighter brand blue for small marks (was ochre) */
  --signal-soft: #e9eefb;
  --ok: #2b3f8f;
  --err: #c0262d;
  --pipe-hi: #ffffff;       /* pipe band shading */
  --pipe-mid: #e4e9f7;
  --pipe-lo: #b3bfe3;
  --pipe-print: #2b3f8f;
  --shadow: 0 1px 2px rgba(20,33,90,.06), 0 8px 24px -12px rgba(20,33,90,.18);
  --shadow-lg: 0 24px 60px -24px rgba(20,33,90,.32);

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-ml: "Anek Malayalam", "Noto Sans Malayalam", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 8vw, 112px);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
:root[data-theme="dark"] { color-scheme: light; }

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--blue-ink); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--bg-2); }
.section--ink { background: var(--blue-2); color: #fff; }
.section--blue { background: var(--blue); color: var(--blue-ink); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------- type ---------------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; line-height: .95; text-transform: uppercase; }
.display { font-size: clamp(3.2rem, 9vw, 8.5rem); font-weight: 700; line-height: .86; letter-spacing: -.015em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; }
.h4 { font-size: 1.2rem; line-height: 1.1; letter-spacing: .01em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.xs { font-size: .78rem; }
.mono, .spec { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
.ml { font-family: var(--font-ml); font-weight: 500; letter-spacing: 0; text-transform: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .74rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text);
}
.eyebrow::before { content: ""; width: 22px; height: 0; border-top: 1.5px solid var(--signal); }
.section--ink .eyebrow, .section--blue .eyebrow { color: inherit; opacity: .85; }
.accent { color: var(--blue-text); }
.prose { max-width: 66ch; color: var(--ink-2); display: grid; gap: 1em; }
.prose strong { color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: grid; gap: 14px; max-width: 760px; }

/* Dimension callout: |—— 20 mm ——|  (engineering-drawing detail) */
.dim { display: inline-flex; align-items: center; gap: 8px; font: 500 .72rem/1 var(--font-mono); color: var(--signal); letter-spacing: .06em; text-transform: uppercase; }
.dim::before, .dim::after { content: ""; flex: 1 1 28px; min-width: 18px; height: 7px; border: 1px solid currentColor; border-block: 0; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; }

/* ---------------- buttons ---------------- */
.btn {
  --b-bg: var(--blue); --b-fg: var(--blue-ink); --b-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font: 600 .95rem/1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { --b-bg: var(--blue-2); --b-bd: var(--blue-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-2); }
.btn--ghost:hover { --b-bg: var(--surface); --b-bd: var(--ink); --b-fg: var(--ink); }
.btn--ink { --b-bg: var(--blue-2); --b-fg: #fff; --b-bd: var(--blue-2); }
.btn--ink:hover { --b-bg: var(--blue); --b-bd: var(--blue); --b-fg: var(--blue-ink); }
.btn--light { --b-bg: #fff; --b-fg: #0d1530; --b-bd: #fff; }
.btn--light:hover { --b-bg: #e2e7f6; --b-bd: #e2e7f6; }
.btn--wa { --b-bg: #25d366; --b-fg: #ffffff; --b-bd: #25d366; }  /* WhatsApp brand green */
.btn--wa:hover { --b-bg: #1ebe5b; --b-fg: #ffffff; --b-bd: #1ebe5b; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .86rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--ink); transition: background .15s; position: relative; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-text); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.link { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* tags & chips */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 2px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); }
.tag--blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-text); }
.tag--signal { background: var(--signal-soft); border-color: transparent; color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: .9rem; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip .count { font: .72rem var(--font-mono); opacity: .7; }

/* ---------------- pipe band (signature) ----------------
   A length of pipe with inkjet marking running along it, like real
   CPVC/uPVC print lines. NT.pipe(text, {tone}) builds it.            */
.pipe {
  position: relative; overflow: hidden; height: 46px;
  background: linear-gradient(180deg, var(--pipe-lo) 0%, var(--pipe-mid) 18%, var(--pipe-hi) 42%, var(--pipe-mid) 70%, var(--pipe-lo) 100%);
  border-block: 1px solid var(--line-2);
}
.pipe--cpvc { --pipe-lo: #9fb0e6; --pipe-mid: #d6def6; --pipe-hi: #ffffff; --pipe-print: #2b3f8f; }
.pipe--hdpe { --pipe-lo: #14215a; --pipe-mid: #22327a; --pipe-hi: #3d52a8; --pipe-print: #ffffff; }
.pipe--blue { --pipe-lo: #1c2b6e; --pipe-mid: #2b3f8f; --pipe-hi: #5a6fc4; --pipe-print: #ffffff; }
.pipe__track { display: flex; width: max-content; height: 100%; align-items: center; animation: pipe-run 60s linear infinite; }
.pipe__text { flex: none; padding-right: 3ch; white-space: nowrap; font: 500 .8rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--pipe-print); opacity: .88; }
.pipe::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 260px, rgba(0,0,0,.12) 260px 261px); pointer-events: none; }
@keyframes pipe-run { to { transform: translateX(-50%); } }

/* ---------------- header ---------------- */
.topbar { background: #2b3f8f; color: #ffffff; font-size: .82rem; }
.topbar__phones { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.topbar__phone svg { width: 14px; height: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__info { display: flex; gap: 20px; align-items: center; overflow: hidden; white-space: nowrap; min-width: 0; }
.topbar__info span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #ffffff; border-bottom: 1px solid var(--line); }
.header > .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brandmark { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brandmark__mark { width: 50px; height: 36px; flex: none; }
.brandmark__words { display: grid; line-height: .88; font-family: var(--font-display); text-transform: uppercase; color: var(--blue-text); }
.brandmark__words b { font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; }
.brandmark__words span { font-size: .96rem; font-weight: 600; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--radius); font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .15s, background .15s; }
.nav__link:hover { color: var(--ink); background: var(--bg-2); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--signal); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 600 .68rem/18px var(--font-mono); text-align: center; }
.badge-count[data-n="0"] { display: none; }
.menu-btn { display: none; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 32px; padding-block: 32px 36px; }
.mega__col h3 { font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.mega__col a { display: block; padding: 6px 0; font-weight: 500; color: var(--ink); }
.mega__col a:hover { color: var(--blue-text); }
.mega__feature { border-left: 1px solid var(--line); padding-left: 32px; display: grid; gap: 12px; align-content: start; }

/* mobile drawer nav */
.mnav { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1fr; pointer-events: none; }
.mnav__scrim { position: absolute; inset: 0; background: rgba(8,12,28,.5); opacity: 0; transition: opacity .25s; }
.mnav__panel { position: relative; margin-left: auto; width: min(420px, 92vw); height: 100%; background: var(--bg); transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.mnav.is-open { pointer-events: auto; }
.mnav.is-open .mnav__scrim { opacity: 1; }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mnav__group { border-top: 1px solid var(--line); padding-block: 14px; }
.mnav__group h3 { font: 600 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.mnav__group a { display: block; padding: 8px 0; font-size: 1.05rem; font-weight: 500; }
.mnav__big a { font-family: var(--font-display); text-transform: uppercase; font-size: 1.9rem; font-weight: 600; padding: 4px 0; }

/* ---------------- drawer (enquiry list) ---------------- */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8,12,28,.5); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; box-shadow: var(--shadow-lg); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 20px; align-content: start; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 10px; background: var(--surface); }
.enq-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.enq-line__logo { width: 56px; height: 40px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; }
.enq-line__logo img { max-height: 100%; object-fit: contain; }
.enq-line b { display: block; font-weight: 600; line-height: 1.3; }
.enq-line span { font-size: .84rem; color: var(--ink-3); }

/* ---------------- forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.label { font: 600 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px var(--blue-soft); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--err); }
.field__err { font-size: .82rem; color: var(--err); min-height: 0; }
.field__err:empty { display: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: .92rem; background: var(--surface); }
.radio-row input:checked + label { border-color: var(--blue-text); background: var(--blue-soft); color: var(--blue-text); }
.radio-row input:focus-visible + label { outline: 2px solid var(--blue-text); outline-offset: 2px; }

/* ---------------- shared cards ---------------- */
/* Category card: photo with a spec strip under it. NT.catCard(cat) */
.cat-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.cat-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card__media { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.cat-card__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1.55rem; line-height: 1; }
.cat-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: .74rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cat-card__brands { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }

/* Brand tile: logo on a white plate (logos are made for white). NT.brandTile(b) */
.brand-tile { display: grid; grid-template-rows: 88px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.brand-tile:hover { border-color: var(--blue-text); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-tile__plate { display: grid; place-items: center; background: #fff; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.brand-tile__plate img { max-height: 52px; max-width: 80%; object-fit: contain; }
.brand-tile__plate.is-lowres img { max-height: 58px; mix-blend-mode: multiply; }
.brand-tile__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.brand-tile__name { font-weight: 600; }
.brand-tile__cats { font-size: .8rem; color: var(--ink-3); line-height: 1.35; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: #2b3f8f; letter-spacing: .02em; }

/* logo plate used inline */
.logo-plate { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; height: 52px; min-width: 96px; }
.logo-plate img { max-height: 36px; max-width: 120px; object-fit: contain; }
.logo-plate.is-lowres img { mix-blend-mode: multiply; max-height: 40px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font: 500 .74rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-right: 16px; }

/* accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 400 1.5rem/1 var(--font-mono); color: var(--blue-text); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font: .76rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue-text); }
.breadcrumb span[aria-hidden] { color: var(--ink-4); }

.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 16px; color: var(--ink-3); }
.empty svg { width: 40px; height: 40px; color: var(--ink-4); }

/* ---------------- footer ---------------- */
.footer { background: #22327a; color: #dfe5f7; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer h3 { font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #aeb9e3; margin-bottom: 16px; }
.footer__list { display: grid; gap: 8px; font-size: .95rem; }
.footer__big { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; color: #fff; }
.footer__contact { display: grid; gap: 10px; margin-top: 20px; font-size: .95rem; }
.footer__contact > span { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact > span > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #c3cdf5; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #aeb9e3; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.socials a:hover { border-color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* floating WhatsApp (mobile) */
.fab { transition: transform .3s var(--ease), opacity .3s; }
.fab:not(.is-shown) { transform: translateY(24px); opacity: 0; pointer-events: none; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: none; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 26px; background: #25d366; color: #fff; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); }
.fab svg { width: 24px; height: 24px; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-2); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .3s var(--ease); }
.toast button { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* entrance: starts visible-ish, never stuck hidden */
.rise { animation: rise .7s var(--ease) both; }
.rise-1 { animation-delay: .06s; } .rise-2 { animation-delay: .14s; } .rise-3 { animation-delay: .22s; } .rise-4 { animation-delay: .3s; } .rise-5 { animation-delay: .38s; }
@keyframes rise { from { transform: translateY(14px); opacity: .01; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-mobile { }
.show-mobile { display: none !important; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .mega { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: revert !important; }
  .topbar__info { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar__phones { gap: 14px; font-size: .8rem; }
  .brandmark__mark { width: 42px; height: 30px; }
  .brandmark__words b { font-size: 1.2rem; }
  .brandmark__words span { font-size: .82rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .fab { display: inline-flex; }
  .spec-table th { width: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pipe__track { animation: none; }
}

.stars { display: inline-flex; gap: 2px; color: var(--signal); vertical-align: middle; }
.stars svg { width: 16px; height: 16px; }
.stars .off { opacity: .25; }

/* ---------------- product card (v2 catalogue) ---------------- */
.prod-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.prod-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-card__media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.04); }
.prod-card__media > svg { width: 40%; height: 40%; margin: 30%; color: var(--line-2); }
.prod-card__badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--blue); color: var(--blue-ink); font: 600 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.prod-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px 16px; align-content: start; }
.prod-card__cat { font: 500 .68rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prod-card__name { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.prod-card__avail { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.prod-card__n { font: 600 .74rem/1 var(--font-mono); letter-spacing: .04em; color: var(--blue-text); white-space: nowrap; }
.prod-card__logos { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.prod-card__logo { display: grid; place-items: center; width: 44px; height: 24px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 2px 4px; }
.prod-card__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.prod-card__logo b { font: 700 .5rem/1 var(--font-body); color: #2b3f8f; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.prod-card__more { font: 600 .7rem/1 var(--font-mono); color: var(--ink-3); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-card__body { padding: 10px 12px 12px; }
  .prod-card__name { font-size: .92rem; }
  .prod-card__logos { display: none; }
}

/* Original logo artwork (img/logo-nellissery.webp, trimmed from the owner's file). */
.brandmark__logo { display: block; height: 50px; width: auto; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 24px; }
.footer__logo img { display: block; height: 52px; width: auto; }
@media (max-width: 720px) { .brandmark__logo { height: 42px; } }

.footer__credit { color: #ffffff; font-weight: 600; text-decoration: none; }
.footer__credit:hover { color: #c3cdf5; }

/* Touch targets on any touch screen (phones, tablets, landscape): text links get a ≥40px hit area. */
@media (max-width: 720px), (pointer: coarse) {
  .arrow-link { min-height: 44px; }
  .topbar__phone { min-height: 36px; }
  a.tag { min-height: 36px; }
  .footer__list a, .footer__contact a, .footer__credit { display: inline-flex; align-items: center; min-height: 40px; }
  .footer__list { gap: 2px; }
  h2 > a, h3 > a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Base the claude.ai preview used to inject; the live site needs it itself. */
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
