/* ==================================================================
   TULSI ENGINEERS — design system
   No framework, no build step. Custom properties drive everything so
   the palette can be re-tuned in one place.
   ================================================================== */

/* ---------- 1. Tokens ------------------------------------------- */
:root {
  --navy-900: #0d2743;
  --navy-800: #143a63;
  --navy-700: #1a4a7d;
  --blue-600: #1d5c99;
  --blue-500: #2f8fd6;
  --blue-100: #e3eefa;
  --red-700:  #9c2c21;
  --red-600:  #b8362a;
  --red-500:  #e0553c;
  --red-100:  #fdeae6;

  --ink:      #0f1b26;
  --body:     #3f5164;
  --muted:    #6d8098;
  --line:     #dde6ef;
  --line-soft:#eaf0f6;
  --surface:  #ffffff;
  --wash:     #f4f8fc;
  --wash-2:   #eaf1f8;

  --radius:   14px;
  --radius-s: 8px;
  --shadow-1: 0 1px 2px rgba(15,27,38,.05), 0 4px 14px rgba(15,27,38,.06);
  --shadow-2: 0 8px 20px rgba(15,27,38,.10), 0 24px 48px rgba(15,27,38,.10);
  --shadow-blue: 0 10px 30px rgba(20,58,99,.22);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 92px;

  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ---------- 2. Reset & base -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-600); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
::selection { background: var(--navy-800); color: #fff; }

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

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout -------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-wash { background: var(--wash); }
.section-dark { background: var(--navy-900); color: #c9dbec; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- 4. Section headings ---------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; background: var(--red-600);
  transform-origin: left; animation: rule-in .7s var(--ease) both;
}
.section-dark .eyebrow { color: var(--blue-500); }
.section-dark .eyebrow::before { background: var(--blue-500); }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- 5. Buttons ------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-size: .93rem; font-weight: 700; letter-spacing: .02em;
  background: var(--btn-bg); color: var(--btn-fg); text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
  overflow: hidden; isolation: isolate; line-height: 1.2; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.24), rgba(255,255,255,0) 55%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); color: var(--btn-fg); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-red   { --btn-bg: var(--red-600); }
.btn-red:hover { background: var(--red-700); box-shadow: 0 10px 30px rgba(184,54,42,.32); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy-800); box-shadow: var(--shadow-1); }
.btn-wa    { --btn-bg: #21a44b; }
.btn-wa:hover { background: #1b8b3f; box-shadow: 0 10px 30px rgba(33,164,75,.3); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { --btn-fg: #fff; background: var(--navy-800); box-shadow: var(--shadow-blue); }
.section-dark .btn-ghost, .cta-band .btn-ghost, .footer-cta .btn-ghost, .hero .btn-ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.32); }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover, .footer-cta .btn-ghost:hover, .hero .btn-ghost:hover { background: #fff; --btn-fg: var(--navy-900); }
.btn-sm { padding: 10px 18px; font-size: .82rem; }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Header -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15,27,38,.09); }

.topbar {
  background: var(--navy-900); color: #a9c4de;
  font-size: .8rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #dbe8f4; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: 7px; }
.topbar-list svg { width: 14px; height: 14px; opacity: .8; flex: none; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; background: rgba(47,143,214,.18);
  color: #bcdcf6; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.header-main .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--header-h); transition: min-height .3s var(--ease);
  max-width: 1420px;
}
.header-main .wrap > * { min-width: 0; }
.site-header.is-stuck .header-main .wrap { min-height: 72px; }

.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand img { max-height: 56px; width: auto; transition: max-height .3s var(--ease); }
.site-header.is-stuck .brand img { max-height: 44px; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { line-height: 1.1; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: -.02em; color: var(--navy-900);
}
.brand-tag { display: block; font-size: .67rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Navigation ------------------------------------------------------ */
.primary-nav { min-width: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 11px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .89rem;
  color: var(--ink); white-space: nowrap;
}
.primary-nav > ul > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.is-open > a::after { transform: scaleX(1); }
.primary-nav > ul > li:hover > a { color: var(--navy-800); }
.nav-caret { width: 9px; height: 9px; transition: transform .28s var(--ease); opacity: .55; }
.primary-nav li.is-open > a .nav-caret { transform: rotate(180deg); }

/* Dropdown + mega menu -------------------------------------------- */
.primary-nav .sub-menu, .mega {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.primary-nav .sub-menu { min-width: 250px; padding: 10px; list-style: none; margin: 0; }
.primary-nav .sub-menu a { display: block; padding: 9px 14px; border-radius: 7px; font-size: .9rem; color: var(--body); }
.primary-nav .sub-menu a:hover { background: var(--wash); color: var(--navy-800); }
.primary-nav li:hover > .sub-menu,
.primary-nav li.is-open > .sub-menu,
.has-mega:hover .mega, .has-mega.is-open .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.primary-nav > ul > li.has-mega { position: static; }
.mega {
  left: var(--gutter); right: var(--gutter); width: auto;
  padding: 26px; overflow: hidden;
}
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 22px; }
.mega-col { animation: mega-in .4s var(--ease) both; }
.mega-col:nth-child(2) { animation-delay: .04s; }
.mega-col:nth-child(3) { animation-delay: .08s; }
.mega-col:nth-child(4) { animation-delay: .12s; }
.mega-col:nth-child(5) { animation-delay: .16s; }
.mega-col:nth-child(6) { animation-delay: .2s; }
@keyframes mega-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mega-cat {
  display: flex; align-items: center; gap: 11px;
  padding: 10px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .93rem; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.mega-cat:hover { background: var(--wash); color: var(--navy-800); }
.mega-cat .te-ill { width: 40px; height: 30px; flex: none; }
.mega-sub { list-style: none; margin: 0 0 14px; padding: 0 0 0 10px; }
.mega-sub a {
  display: block; padding: 5px 10px; border-radius: 6px;
  font-size: .855rem; color: var(--muted);
}
.mega-sub a:hover { color: var(--red-600); background: var(--wash); }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .87rem;
}

/* Mobile nav ------------------------------------------------------- */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw); z-index: 400;
  background: #fff; box-shadow: -20px 0 60px rgba(15,27,38,.2);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-open .mobile-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-body { padding: 12px var(--gutter) 28px; }
.drawer-body ul { list-style: none; margin: 0; padding: 0; }
.drawer-body > ul > li { border-bottom: 1px solid var(--line-soft); }
.drawer-body a { display: block; padding: 13px 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.drawer-body .sub-menu, .drawer-sub { padding-left: 14px; }
.drawer-body .sub-menu a, .drawer-sub a { font-weight: 400; font-size: .92rem; color: var(--muted); padding: 9px 0; }
.drawer-actions { display: grid; gap: 10px; margin-top: 20px; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 380; background: rgba(13,39,67,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-open .drawer-scrim { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- 7. Hero ----------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0b2540 0%, #143a63 46%, #17497e 100%);
  color: #d7e6f4;
  padding: clamp(52px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 68% at 78% 22%, rgba(47,143,214,.30), transparent 62%),
    radial-gradient(46% 56% at 12% 88%, rgba(184,54,42,.24), transparent 65%);
  animation: hero-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.07); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(72% 72% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 72% at 50% 40%, #000, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(96deg, #6cc0ff, #a8d8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #bfd6ea; max-width: 56ch; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #d9e9f7;
}
.hero-badge svg { width: 13px; height: 13px; color: #6cc0ff; }
.hero-art-wrap { position: relative; }
.hero-art-wrap::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent);
  border-radius: 50%;
}
.hero-figures {
  display: flex; gap: clamp(16px, 2.4vw, 34px); flex-wrap: wrap;
  margin-top: clamp(34px, 5vw, 54px); padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-figure { min-width: 92px; flex: 1 1 92px; }
.hero-figure b {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800; color: #fff; line-height: 1;
}
.hero-figure span { display: block; margin-top: 6px; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #9fbdd8; }

/* Page banner (non-home) ------------------------------------------ */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #0d2743, #17497e);
  color: #cfe1f1; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(100deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 72%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #b7d0e6; max-width: 62ch; margin: 0; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.page-hero .te-ill { width: 190px; opacity: .92; }

/* ---------- 8. Breadcrumbs ---------------------------------------- */
.crumbs { font-size: .82rem; color: #9fbdd8; margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 8px; opacity: .5; }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: #cfe1f1; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.crumbs-light { color: var(--muted); }
.crumbs-light a { color: var(--blue-600); }
.crumbs-light [aria-current] { color: var(--ink); }

/* ---------- 9. Trust strip ---------------------------------------- */
.trust {
  position: relative; margin-top: -34px; z-index: 5;
}
.trust-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: clamp(18px, 2.4vw, 26px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 4px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.trust-item:hover { background: var(--wash); transform: translateY(-2px); }
.trust-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--blue-100); color: var(--navy-800);
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item b { display: block; font-family: var(--font-display); font-size: .93rem; color: var(--ink); line-height: 1.25; }
.trust-item span { display: block; font-size: .78rem; color: var(--muted); }

/* ---------- 10. Cards --------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-500));
  transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(150deg, var(--wash), var(--wash-2));
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .te-ill { width: 82%; transition: transform .45s var(--ease); }
.card:hover .card-media .te-ill { transform: scale(1.05) translateY(-2px); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; background: rgba(13,39,67,.86); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card-body h3 a { color: inherit; }
.card:hover .card-body h3 a { color: var(--navy-800); }
.card-body p { font-size: .91rem; color: var(--muted); margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.card-chip {
  padding: 4px 10px; border-radius: 6px; background: var(--wash);
  font-size: .72rem; font-weight: 600; color: var(--blue-600);
}
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1 1 auto; min-width: 104px; }
.card-actions .btn-wa { flex: 0 0 46px; min-width: 46px; padding: 10px; }
.card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--navy-800);
}
.card-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Category tile ---------------------------------------------------- */
.cat-card { text-align: left; }
.cat-card .card-media { aspect-ratio: 16 / 10; }
.cat-count { font-size: .78rem; color: var(--muted); }

/* Compact list card (spares) --------------------------------------- */
.mini {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--blue-100); }
.mini-ill { width: 58px; height: 44px; flex: none; border-radius: 8px; background: var(--wash); display: grid; place-items: center; overflow: hidden; }
.mini-ill img { width: 100%; height: 100%; object-fit: cover; }
.mini b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--ink); line-height: 1.3; }
.mini span { font-size: .78rem; color: var(--muted); }

/* ---------- 11. Product detail ------------------------------------ */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(26px, 4vw, 52px); align-items: start; }
.gallery-main {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(150deg, var(--wash), var(--wash-2));
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .te-ill { width: 78%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 76px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: 9px;
  background: var(--wash); overflow: hidden; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.is-active { border-color: var(--red-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--wash); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; font-size: .95rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143a63' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.enquiry-rail { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.rail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.rail-card h3 { font-size: 1.05rem; }
.rail-card .btn { width: 100%; margin-bottom: 9px; }
.rail-contact { display: grid; gap: 12px; margin-top: 4px; font-size: .9rem; }
.rail-contact a { display: flex; align-items: center; gap: 10px; color: var(--body); }
.rail-contact a:hover { color: var(--red-600); }
.rail-contact svg { width: 17px; height: 17px; color: var(--navy-800); flex: none; }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); }
.prose ul li { margin-bottom: .4em; }

.anchor-nav {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; margin-bottom: 26px;
  background: var(--wash); border-radius: 999px; overflow-x: auto;
}
.anchor-nav a {
  padding: 9px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--body); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.anchor-nav a:hover, .anchor-nav a.is-active { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-1); }

/* ---------- 12. Industries & clients ------------------------------ */
.industry-card {
  position: relative; display: block; padding: 22px 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
}
.industry-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100%;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  transform: translateY(100%); transition: transform .38s var(--ease); z-index: 0;
}
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.industry-card:hover::after { transform: translateY(0); }
.industry-card > * { position: relative; z-index: 1; }
.industry-card b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); transition: color .28s var(--ease); }
.industry-card span { font-size: .8rem; color: var(--muted); transition: color .28s var(--ease); }
.industry-card:hover b { color: #fff; }
.industry-card:hover span { color: #9fbdd8; }
.industry-icon { width: 34px; height: 34px; margin-bottom: 12px; color: var(--blue-600); transition: color .28s var(--ease); }
.industry-card:hover .industry-icon { color: var(--blue-500); }

.logo-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; gap: 20px; width: max-content; animation: marquee 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-cell {
  flex: none; width: 176px; height: 92px; display: grid; place-items: center; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.logo-cell img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell span { font-family: var(--font-display); font-weight: 700; color: var(--muted); text-align: center; font-size: .9rem; }

/* ---------- 13. Locations ----------------------------------------- */
.location-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.location-head { padding: 20px 22px 0; }
.location-role {
  display: inline-block; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
  background: var(--red-100); color: var(--red-700);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.location-body { padding: 0 22px 20px; flex: 1; }
.location-body address { font-style: normal; font-size: .93rem; color: var(--body); white-space: pre-line; margin-bottom: 14px; }
.location-map { aspect-ratio: 16/9; background: var(--wash); border-top: 1px solid var(--line); }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-map-placeholder { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: .85rem; }
.location-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line-soft); }

/* ---------- 14. Requirement modal & forms ------------------------- */
.te-modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  padding: max(16px, 3vh) 16px;
  background: rgba(13,39,67,.62); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.te-modal.is-open { opacity: 1; visibility: visible; }
.te-modal-panel {
  position: relative; width: min(880px, 100%); max-height: 94vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2);
  transform: translateY(22px) scale(.985); transition: transform .32s var(--ease);
}
.te-modal.is-open .te-modal-panel { transform: none; }
.te-modal-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 24px 26px 18px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
}
.te-modal-head h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.te-modal-head p { margin: 0; font-size: .88rem; color: #b7d0e6; }
.te-modal-head .te-modal-close, .drawer-head .te-modal-close {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 20px; line-height: 1;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.te-modal-head .te-modal-close:hover, .drawer-head .te-modal-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.te-modal-body { padding: 24px 26px 28px; }

.steps { display: flex; gap: 10px; margin-bottom: 22px; }
.step {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; background: var(--wash); font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.step b {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--muted); font-size: .78rem; box-shadow: inset 0 0 0 1px var(--line);
}
.step.is-active { background: var(--navy-800); color: #fff; }
.step.is-active b { background: var(--red-600); color: #fff; box-shadow: none; }
.step.is-done b { background: #1f9d55; color: #fff; box-shadow: none; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .94rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,143,214,.16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field-error { font-size: .78rem; color: var(--red-600); }
.field-hint { font-size: .78rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.dropzone {
  display: grid; place-items: center; gap: 6px; padding: 26px 18px; text-align: center;
  border: 2px dashed var(--line); border-radius: 12px; background: var(--wash);
  cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--blue-500); background: var(--blue-100); }
.dropzone svg { width: 30px; height: 30px; color: var(--navy-800); }
.dropzone b { font-family: var(--font-display); color: var(--ink); }
.dropzone small { color: var(--muted); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--wash); border-radius: 8px; font-size: .85rem; }
.file-list button { margin-left: auto; border: 0; background: none; color: var(--red-600); cursor: pointer; font-size: .85rem; }

.review-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.review-table th { width: 36%; text-align: left; padding: 10px 14px; background: var(--wash); font-family: var(--font-display); font-weight: 600; color: var(--ink); border-bottom: 1px solid #fff; }
.review-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: .8rem; color: var(--muted); max-width: 44ch; }

.te-alert { padding: 14px 18px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }
.te-alert-error { background: var(--red-100); color: var(--red-700); }
.te-success { text-align: center; padding: 20px 10px 10px; }
.te-success-mark {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  background: #e6f6ec; display: grid; place-items: center;
  animation: pop .5s var(--ease) both;
}
.te-success-mark svg { width: 36px; height: 36px; color: #1f9d55; }
.te-success-mark svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s var(--ease) .18s forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.te-ref {
  display: inline-block; margin: 6px 0 18px; padding: 10px 20px; border-radius: 10px;
  background: var(--wash); font-family: var(--font-mono); font-size: 1.05rem; color: var(--navy-800); letter-spacing: .04em;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 15. Floating actions ---------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 320;
  display: flex; align-items: center; gap: 0;
}
.wa-bubble {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.42);
  transition: transform .25s var(--ease);
}
.wa-bubble:hover { transform: scale(1.07); color: #fff; }
.wa-bubble svg { width: 30px; height: 30px; }
.wa-bubble::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55); animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%,100% { transform: scale(1.7); opacity: 0; } }
.wa-label {
  position: absolute; right: 70px; white-space: nowrap;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-float:hover .wa-label { opacity: 1; transform: none; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(15,27,38,.1);
}
.sticky-bar a, .sticky-bar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; color: var(--ink);
}
.sticky-bar svg { width: 20px; height: 20px; color: var(--navy-800); }
.sticky-bar .is-red svg { color: var(--red-600); }
.sticky-bar .is-green svg { color: #21a44b; }

/* ---------- 16. Footer -------------------------------------------- */
.site-footer { background: var(--navy-900); color: #a8c3dc; padding: clamp(48px, 6vw, 76px) 0 0; }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: clamp(24px, 3.4vw, 46px); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #7fa0bf; }
.footer-about { font-size: .9rem; margin: 16px 0 20px; max-width: 40ch; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer-list a { color: #a8c3dc; }
.footer-list a:hover { color: #fff; }
.footer-contact { display: grid; gap: 13px; font-size: .9rem; }
.footer-contact a, .footer-contact div { display: flex; gap: 11px; align-items: flex-start; color: #c3d8ea; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue-500); }
.footer-locations { display: grid; gap: 16px; font-size: .85rem; }
.footer-locations b { display: block; color: #fff; font-family: var(--font-display); font-size: .88rem; margin-bottom: 3px; }
.footer-locations address { font-style: normal; white-space: pre-line; color: #93b1cc; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cfe1f1;
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.socials a:hover { background: var(--red-600); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-cta {
  margin-top: clamp(34px, 4vw, 52px); padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius); background: linear-gradient(120deg, var(--navy-700), var(--blue-600));
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.footer-cta h3 { margin-bottom: 4px; }
.footer-cta p { margin: 0; color: #d3e6f6; font-size: .93rem; }
.footer-bottom {
  margin-top: clamp(34px, 4vw, 50px); padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #7fa0bf;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 17. CTA band ------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(125deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
  color: #d7e6f4; padding: clamp(30px, 4.4vw, 54px);
}
.cta-band::after {
  content: ""; position: absolute; right: -6%; top: -40%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent);
  border-radius: 50%;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3daee; max-width: 56ch; }

/* ---------- 18. Search, pagination, 404 --------------------------- */
.search-hero-form { display: flex; gap: 10px; max-width: 620px; margin-top: 20px; }
.search-hero-form input {
  flex: 1; padding: 15px 20px; font: inherit; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.search-hero-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(47,143,214,.4); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .86rem; font-weight: 600; color: var(--body);
  transition: all .22s var(--ease);
}
.filter-chip:hover { border-color: var(--navy-800); color: var(--navy-800); transform: translateY(-2px); }
.filter-chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; color: var(--body);
  transition: all .2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--navy-800); color: var(--navy-800); }
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.notfound-code {
  font-family: var(--font-display); font-size: clamp(5rem, 16vw, 11rem); font-weight: 800;
  line-height: .85; letter-spacing: -.05em;
  background: linear-gradient(120deg, var(--navy-800), var(--blue-500) 60%, var(--red-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 19. Reveal animation ---------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-visible { transform: none; }

.count-up { font-variant-numeric: tabular-nums; }

/* ---------- 20. Responsive ---------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art-wrap { order: -1; max-width: 560px; }
  .product-layout { grid-template-columns: 1fr; }
  .enquiry-rail { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1140px) {
  .primary-nav, .header-actions .btn-desktop { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  :root { --header-h: 76px; }
}
@media (min-width: 1141px) {
  /* The drawer only exists on small screens — keep it out of the layout entirely
     so it can never widen the desktop page. */
  .mobile-drawer, .drawer-scrim { display: none; }
}
@media (max-width: 600px) {
  .btn-long { display: none; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.14rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 10px 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-list li.hide-sm { display: none; }
  .sticky-bar { display: grid; }
  body.has-sticky-bar { padding-bottom: 64px; }
  .wa-float { bottom: 78px; right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 6px; }
  .te-modal { padding: 0; }
  .te-modal-panel { max-height: 100vh; height: 100%; border-radius: 0; width: 100%; }
  .anchor-nav { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Print ------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .wa-float, .sticky-bar, .te-modal, .anchor-nav { display: none !important; }
  body { color: #000; }
}

/* ---------- 21. Late additions ------------------------------------ */
.drawer-body li { position: relative; }
.drawer-expand {
  position: absolute; right: 0; top: 4px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; cursor: pointer; color: var(--muted);
}
.drawer-expand svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.drawer-expand[aria-expanded="true"] svg { transform: rotate(180deg); }

a.rail-card { display: block; color: inherit; text-decoration: none; }
a.rail-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-2); }
a.rail-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.rail-card p { color: var(--muted); }
.rail-card h3 { margin-bottom: 10px; }

.prose > *:first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red-600);
  color: var(--ink); font-size: 1.05rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--wash); }
.prose code { background: var(--wash); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

.section-dark .card-body p, .section-dark p { color: #b7d0e6; }
.section-dark .tick-list li::before { background-color: rgba(255,255,255,.14); }

.filter-bar { overflow-x: auto; padding-bottom: 4px; }
a.filter-chip { text-decoration: none; }

/* Illustration sizing inside small containers */
.mini-ill .te-ill { width: 100%; height: auto; }
.trust-item > span:last-child { min-width: 0; }

/* Client grid cells on the clients page stretch to their column */
.grid .logo-cell { width: 100%; }

/* Grid items must never grow past their track — a long unbreakable string
   inside a card would otherwise widen the whole page on small screens. */
.grid > *, .trust-inner > *, .footer-grid > *, .product-layout > * { min-width: 0; }
.spec-table td, .spec-table th, .review-table td, .review-table th,
.location-body address, .card-body p { overflow-wrap: anywhere; }

/* The slide-in reveals move elements horizontally before they land. `clip`
   contains that movement without creating a scroll container, so the sticky
   product rail keeps working. */
main { overflow-x: clip; }
@media (max-width: 1024px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(24px); }
}


/* A two-up grid that stays two-up even inside a narrow column. */
.grid-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grid-pair { grid-template-columns: 1fr; } }

/* The drawer sits on white, so its close control needs the inverse palette. */
.drawer-head .te-modal-close { background: var(--wash); color: var(--ink); font-size: 22px; }
.drawer-head .te-modal-close:hover { background: var(--wash-2); }
