/* ==========================================================================
   A. METALEX INDUSTRIAL CORPORATION – Homepage Stylesheet
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens (colours, fonts, spacing)
   02. Reset & base
   03. Utilities & shared components (container, buttons, headings)
   04. Top bar
   05. Header / navbar / dropdowns / hamburger / mobile drawer
   06. Hero slider
   07. About
   08. Products + grades explorer
   09. Why choose us
   10. Industries
   11. Brand marquee
   12. Testimonials
   13. Contact CTA
   14. Footer
   15. Floating buttons & scroll progress
   16. Responsive breakpoints
   17. Reduced motion (kept last)
   18. Inner pages – page banner & breadcrumb
   19. About page
   20. Quality policy page
   21. Material grades page
   22. Pipe schedule chart page
   23. Weight chart page
   24. Standards & specifications page
   25. Product pages
   26. Contact page
   27. Landing pages & 404
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Palette extracted from the logo (navy + steel blue) with the orange from
   the company's business card as the accent colour.
   ========================================================================== */
:root {
  /* Brand colours */
  --primary:        #0E3A5F;   /* Deep navy – logo wordmark & dark gear faces */
  --primary-dark:   #082741;   /* Darker navy for backgrounds / hovers */
  --secondary:      #3F6F96;   /* Steel blue – logo light gear faces */
  --secondary-light:#DCE8F2;   /* Tint of steel blue for surfaces */
  --accent:         #F07F2E;   /* Industrial orange – from the business card */
  --accent-dark:    #D8661A;

  /* Neutrals */
  --ink:            #13233A;   /* Headings */
  --text:           #4A5A6E;   /* Body copy */
  --muted:          #7B8A9C;
  --line:           #E3E9F0;
  --light:          #F4F7FB;   /* Light section background */
  --white:          #FFFFFF;

  /* Utility colours */
  --whatsapp:       #25D366;

  /* Typography */
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --header-h:  84px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(14, 58, 95, .06);
  --shadow:    0 12px 30px rgba(14, 58, 95, .10);
  --shadow-lg: 0 24px 50px rgba(14, 58, 95, .18);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --t:         .35s var(--ease);
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Prevent sideways scrolling on mobile (incl. iOS) without breaking the
   sticky header – "clip" does not create a scroll container like "hidden". */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Lock page scroll while the mobile drawer is open */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

img  { max-width: 100%; height: auto; display: block; }   /* height:auto keeps the ratio when width/height attributes are set */
a    { color: inherit; text-decoration: none; transition: color var(--t); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Shared SVG <defs> holder – must stay rendered (not display:none) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 18px; background: var(--accent); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }


/* ==========================================================================
   03. UTILITIES & SHARED COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section        { position: relative; padding: 110px 0; }
.section--light { background: var(--light); }
.text-accent    { color: var(--accent); }

/* Small label above section titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px;
  background: var(--accent);
}
.eyebrow--light { color: #BFD4E6; }

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 18px;
}

/* Centered section header */
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head--light .section-title { color: var(--white); }
.section-head--light p { color: #BFD0E0; }
.section-head--light .eyebrow { color: #BFD4E6; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .95rem;
  overflow: hidden; isolation: isolate;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
/* Sliding shine on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); }
.btn i { transition: transform var(--t); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }

.btn--sm { padding: 11px 22px; font-size: .88rem; }

.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 22px rgba(14,58,95,.25); }
.btn--primary:hover { background: var(--secondary); box-shadow: 0 16px 30px rgba(14,58,95,.3); }

.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 10px 22px rgba(240,127,46,.35); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 16px 30px rgba(240,127,46,.45); }

.btn--ghost { border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn--outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); box-shadow: 0 14px 28px rgba(14,58,95,.25); }

/* Text link with arrow */
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--primary);
}
.link-btn i { transition: transform var(--t); }
.link-btn:hover { color: var(--accent); }
.link-btn:hover i { transform: translateX(5px); }


/* ==========================================================================
   04. TOP BAR (non-sticky)
   ========================================================================== */
.topbar {
  background: var(--primary-dark);
  color: #C9D7E4;
  font-size: .82rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px;
}
.topbar__greeting { display: flex; align-items: center; gap: 8px; }
.topbar__greeting i { color: var(--accent); }

.topbar__info { display: flex; gap: 24px; margin-left: auto; }
.topbar__info li,
.topbar__info a { display: flex; align-items: center; gap: 8px; }
.topbar__info i { color: var(--accent); }
.topbar__info a:hover { color: var(--white); }

.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  transition: background var(--t), color var(--t), transform var(--t);
}
.topbar__social a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }


/* ==========================================================================
   05. HEADER / NAVBAR
   Smart sticky: position:sticky keeps it pinned; JS toggles .is-hidden
   (slide up on scroll down) and .is-scrolled (shadow).
   NOTE: no transform/backdrop-filter in the default state so the fixed
   mobile drawer inside it is positioned relative to the viewport.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(14,58,95,.10); border-bottom-color: transparent; }
.site-header.is-hidden   { transform: translateY(-100%); }
/* While the drawer is open, lift the header (and its drawer) above the overlay */
body.nav-open .site-header { z-index: 1101; transform: none; }

.nav-wrap {
  display: flex; align-items: center; gap: 30px;
  height: var(--header-h);
}

.brand img { height: 56px; width: auto; transition: transform var(--t); }
.brand:hover img { transform: scale(1.03); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .93rem;
  color: var(--ink);
}
/* Animated underline */
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t);
}
.nav-link:hover,
.nav-link.is-active { color: var(--primary); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.has-dropdown .nav-link { padding-right: 4px; }
.has-dropdown .nav-link::after { right: 4px; }

.submenu-toggle {
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-right: 6px;
  font-size: .7rem; color: var(--secondary);
  border-radius: 6px;
  transition: transform var(--t), color var(--t), background var(--t);
}
.submenu-toggle:hover { color: var(--accent); }

/* ---------- Dropdown (desktop base) ---------- */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 250px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
/* Invisible hover bridge so the menu doesn't close in the gap */
.dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px;
}
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background var(--t), color var(--t), padding var(--t);
}
.dropdown a i { width: 18px; text-align: center; color: var(--secondary); transition: color var(--t); }
.dropdown a:hover { background: var(--light); color: var(--primary); padding-left: 20px; }
.dropdown a:hover i { color: var(--accent); }

/* Open state (hover on desktop is enabled in the min-width media query) */
.has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown.is-open > .submenu-toggle { transform: rotate(180deg); color: var(--accent); }

/* ---------- Hamburger (hidden on desktop) ---------- */
.hamburger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary);
}
.hamburger span {
  position: absolute; left: 12px;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--white);
  transition: transform .4s var(--ease), opacity .3s, width .3s var(--ease), top .4s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; width: 15px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger:hover span:nth-child(2) { width: 22px; }

/* Morph into an "X" */
.hamburger.is-active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.is-active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Drawer-only elements are hidden on desktop */
.drawer-head,
.drawer-contact { display: none; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 1099;
  background: rgba(8, 39, 65, .55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }


/* ==========================================================================
   06. HERO SLIDER – split layout on a blueprint canvas
   Text column (left) + chamfered image column (right) over a navy panel.
   Navigation = numbered tabs with autoplay progress bars (see script.js).
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--light);
  isolation: isolate;
}
/* Blueprint grid lines, fading out to the right */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(63,111,150,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,111,150,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%);
          mask-image: linear-gradient(90deg, #000 30%, transparent 85%);
}
/* Angled navy panel behind the imagery */
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
  width: 34%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px),
    var(--primary);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

/* Giant outlined wordmark */
.hero__watermark {
  position: absolute; left: -1vw; bottom: 70px; z-index: -1;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(6rem, 17vw, 16rem); line-height: 1; letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14,58,95,.07);
  pointer-events: none; user-select: none;
}
/* Pipe cross-section rings (top-left) */
.hero__rings {
  position: absolute; left: -110px; top: -110px; z-index: -1;
  width: 320px; height: 320px;
  fill: none; stroke: rgba(240,127,46,.3); stroke-width: 1.5;
  animation: spin 70s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-slide__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  min-height: clamp(520px, calc(100vh - 230px), 640px);
  padding-top: 50px; padding-bottom: 60px;
}

/* ---------- Text column ---------- */
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; margin-bottom: 22px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: .84rem; font-weight: 600;
}
.hero-tag i {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: .75rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
/* Highlighter stroke under the key phrase */
.hero-title span {
  color: var(--primary);
  background: linear-gradient(transparent 64%, rgba(240,127,46,.35) 64%, rgba(240,127,46,.35) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.hero-text { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 560px; margin-bottom: 24px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 34px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.hero-points i {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--secondary-light); color: var(--primary); font-size: .65rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Staggered entry of text (each .anim has its own --d delay) */
.hero-slide .anim {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: 0s;
}
.hero-slide.swiper-slide-active .anim {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0s);
}

/* ---------- Media column ---------- */
.hero-media { position: relative; height: clamp(360px, 56vh, 520px); margin-right: 20px; }

/* Orange offset block behind the image */
.hero-media__block {
  position: absolute; inset: 34px -20px -20px 34px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
  opacity: 0; transform: translate(-20px, -20px);
  transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s;
}

/* Image with chamfered (cut) corners – like machined plate */
.hero-media__frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); /* fallback */
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
}
.hero-media__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2);
  transition: transform 6s var(--ease);
}
/* Navy curtain that wipes away to reveal the image */
.hero-media__frame::after {
  content: ""; position: absolute; inset: 0;
  background: var(--primary);
  transform-origin: right;
  transition: transform 1s cubic-bezier(.77, 0, .18, 1) .2s;
}

/* Floating spec card */
.hero-media__card {
  position: absolute; left: -40px; bottom: 44px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease) .9s, transform .7s var(--ease) .9s;
}
.hero-media__card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary); color: var(--white); font-size: 1.1rem;
}
.hero-media__card small  { display: block; font-size: .78rem; color: var(--muted); }
.hero-media__card strong { font-family: var(--font-head); font-size: .95rem; color: var(--ink); }

/* Rotating certification seal (custom SVG) */
.hero-seal {
  position: absolute; top: -34px; right: -14px; z-index: 2;
  width: 120px; height: 120px;
  filter: drop-shadow(0 10px 20px rgba(14,58,95,.25));
  opacity: 0; transform: scale(.6);
  transition: opacity .6s var(--ease) 1s, transform .6s var(--ease) 1s;
}
.hero-seal__bg   { fill: var(--white); }
.hero-seal__core { fill: var(--accent); }
.hero-seal__text {
  font-family: var(--font-head); font-size: 8.5px; font-weight: 700;
  fill: var(--primary);
  transform-origin: 60px 60px;
  animation: spin 18s linear infinite;
}

/* Active-slide states */
.swiper-slide-active .hero-media__frame img   { transform: scale(1); }
.swiper-slide-active .hero-media__frame::after { transform: scaleX(0); }
.swiper-slide-active .hero-media__block        { opacity: 1; transform: none; }
.swiper-slide-active .hero-media__card         { opacity: 1; transform: none; }
.swiper-slide-active .hero-seal                { opacity: 1; transform: none; }

/* ---------- Tab navigation ---------- */
.hero-nav {
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(14,58,95,.05);
}
.hero-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }

.hero-tab {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px 22px 0;
  text-align: left;
}
.hero-tab + .hero-tab { padding-left: 24px; border-left: 1px solid var(--line); }

/* Progress bar (inner span width is set by JS from Swiper autoplay) */
.hero-tab__bar { position: absolute; left: 0; right: 0; top: -1px; height: 3px; overflow: hidden; }
.hero-tab__bar span { display: block; width: 0; height: 100%; background: var(--accent); }
.hero-tab.is-active .hero-tab__bar { background: var(--secondary-light); }

.hero-tab__num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1;
  color: #C5D1DD;
  transition: color var(--t);
}
.hero-tab__label strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.hero-tab__label small  { font-size: .8rem; color: var(--muted); }
.hero-tab:hover .hero-tab__num,
.hero-tab.is-active .hero-tab__num { color: var(--accent); }

.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--light); color: var(--primary);
  transition: background var(--t), color var(--t), transform var(--t);
}
.hero-arrows button:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

/* ---------- Hero responsive ---------- */
@media (max-width: 1099.98px) {
  .hero::after { width: 40%; }
  .hero-slide__grid { gap: 40px; }
  .hero-media__card { left: -20px; }
}
@media (max-width: 991.98px) {
  .hero::after { top: auto; width: 100%; height: 36%; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .hero-slide__grid { grid-template-columns: 1fr; gap: 50px; min-height: 0; padding-top: 40px; padding-bottom: 50px; }
  .hero-media { height: 360px; }
  .hero-media__card { left: 14px; bottom: 20px; }   /* keep inside the gutter when stacked */
  .hero-tab__label small { display: none; }
}
@media (max-width: 767.98px) {
  .hero__watermark { display: none; }
  .hero-media { height: 280px; margin-right: 14px; }
  .hero-media__block { inset: 24px -14px -14px 24px; }
  .hero-media__card { left: 12px; bottom: 16px; padding: 10px 14px 10px 10px; }
  .hero-media__card-icon { width: 38px; height: 38px; font-size: .95rem; }
  .hero-seal { width: 88px; height: 88px; top: -26px; right: -6px; }
  .hero-nav__inner { gap: 14px; }
  .hero-tab { justify-content: center; padding: 16px 8px; }
  .hero-tab + .hero-tab { padding-left: 8px; }
  .hero-tab__label { display: none; }
  .hero-tab__num { font-size: 1.25rem; }
  .hero-arrows button { width: 42px; height: 42px; }
}



/* ==========================================================================
   07. ABOUT
   ========================================================================== */
.about { overflow: hidden; }
.about__dots { position: absolute; top: 80px; left: -30px; color: var(--secondary-light); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Overlapping image composition */
.about__media { position: relative; padding: 0 60px 80px 0; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; background: var(--secondary-light); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about__img:hover img { transform: scale(1.06); }

.about__img--main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__img--sub {
  position: absolute; right: 0; bottom: 0;
  width: 55%; aspect-ratio: 1 / 1;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.about__frame {
  position: absolute; top: -20px; left: -20px; z-index: -1;
  width: 60%; height: 60%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}

.about__badge {
  position: absolute; left: -24px; bottom: 120px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.about__badge i { font-size: 1.9rem; color: var(--accent); margin-bottom: 8px; }
.about__badge strong { font-family: var(--font-head); font-size: 1.05rem; }
.about__badge span { font-size: .78rem; color: #BFD0E0; }
@keyframes float { 50% { transform: translateY(-10px); } }

.about__content p { margin-bottom: 16px; }
.about__content strong { color: var(--ink); }

.about__objective {
  display: flex; gap: 18px;
  margin: 26px 0;
  padding: 22px;
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about__objective-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary); color: var(--white); font-size: 1.3rem;
}
.about__objective h3 { font-size: 1.05rem; margin-bottom: 4px; }
.about__objective p { margin: 0; font-size: .95rem; }

.check-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
  margin-bottom: 34px;
}
.check-list li { display: flex; gap: 10px; font-weight: 500; color: var(--ink); font-size: .94rem; }
.check-list i { color: var(--accent); margin-top: 5px; }

.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.about__call { display: flex; align-items: center; gap: 14px; }
.about__call-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(240,127,46,.12); color: var(--accent); font-size: 1.2rem;
  transition: background var(--t), color var(--t);
}
.about__call:hover .about__call-icon { background: var(--accent); color: var(--white); }
.about__call small { display: block; font-size: .8rem; color: var(--muted); }
.about__call strong { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }

/* ---------- Stats strip – clean metric columns ----------
   Left-aligned, scannable: icon → big number → label → one-line detail.
   Thin dividers between columns; orange accent line grows on hover. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 36px 30px 34px;
  transition: background var(--t);
}
.stat + .stat { border-left: 1px solid var(--line); }

/* Accent line sitting on the top border */
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.stat:hover { background: linear-gradient(180deg, var(--light), transparent); }
.stat:hover::before { transform: scaleX(1); }

.stat__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--secondary-light); color: var(--primary);
  font-size: 1.05rem;
  transition: background var(--t), color var(--t);
}
.stat:hover .stat__icon { background: var(--primary); color: var(--white); }

.stat__value {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.3rem, 3.4vw, 3rem); line-height: 1;
  color: var(--primary);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;   /* no width jitter while counting */
}
.stat__value sup { font-size: .55em; color: var(--accent); vertical-align: super; margin-left: 2px; }

.stat__label {
  margin-top: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--ink);
}
.stat__desc { margin-top: 4px; font-size: .88rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 991.98px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 479.98px) {
  .stat { padding: 26px 16px 24px; }
  .stat__icon { width: 38px; height: 38px; margin-bottom: 14px; }
  .stat__label { font-size: .92rem; }
  .stat__desc { font-size: .82rem; }
}


/* ==========================================================================
   08. PRODUCTS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* Accent bar grows along the bottom on hover */
.product-card::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-card:hover::after { transform: scaleX(1); }

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--secondary-light);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
/* Navy wash that fades in on hover */
.product-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,58,95,.75));
  opacity: .4; transition: opacity var(--t);
}
.product-card:hover .product-card__media img { transform: scale(1.1) rotate(1deg); }
.product-card:hover .product-card__media::after { opacity: .9; }

.product-card__num {
  position: absolute; top: 16px; right: 18px; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
  color: transparent;
}

.product-card__body { position: relative; padding: 42px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.product-card__icon {
  position: absolute; top: -30px; left: 28px;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--accent); color: var(--white); font-size: 1.4rem;
  box-shadow: 0 10px 20px rgba(240,127,46,.35);
  transition: transform .5s var(--ease), background var(--t);
}
.product-card:hover .product-card__icon { transform: rotateY(180deg); background: var(--primary); }
.product-card:hover .product-card__icon i { transform: rotateY(180deg); }

.product-card h3 { font-size: 1.3rem; margin-bottom: 10px; transition: color var(--t); }
.product-card:hover h3 { color: var(--primary); }
.product-card p { font-size: .95rem; margin-bottom: 20px; flex: 1; }

/* "View Details" becomes a pill on hover */
.product-card .link-btn {
  align-self: flex-start;
  padding: 10px 20px; margin-left: -20px;
  border-radius: 50px;
  transition: background var(--t), color var(--t), margin var(--t);
}
.product-card:hover .link-btn { background: var(--primary); color: var(--white); margin-left: 0; }

/* ---------- Grades explorer ---------- */
.grades {
  margin-top: 70px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.grades__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 26px;
}
.grades__head h3 { font-size: 1.45rem; margin-bottom: 4px; }
.grades__head p { font-size: .95rem; }

.grades__tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.grades__tab {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--light);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  color: var(--ink);
  transition: background var(--t), color var(--t), transform var(--t);
}
.grades__tab:hover { transform: translateY(-2px); color: var(--primary); }
.grades__tab.is-active { background: var(--primary); color: var(--white); }

.grades__panel.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink);
  background: var(--white);
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
}
.chips li:hover { border-color: var(--accent); color: var(--accent-dark); background: #FFF6EF; transform: translateY(-2px); }


/* ==========================================================================
   09. WHY CHOOSE US
   ========================================================================== */
.why {
  background:
    radial-gradient(circle at 15% 20%, rgba(63,111,150,.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(240,127,46,.12), transparent 40%),
    var(--primary);
  padding: 150px 0;
}
/* Subtle blueprint grid */
.why::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.why .container { position: relative; }

.divider { position: absolute; left: 0; width: 100%; height: 60px; }
.divider path { fill: var(--light); }
.divider--top    { top: -1px; }
.divider--bottom { bottom: -1px; }
.divider--bottom path { fill: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transition: transform .45s var(--ease), background .45s var(--ease), border-color var(--t), box-shadow .45s var(--ease);
}
/* Circle that expands from the corner on hover */
.why-card::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(240,127,46,.14);
  transition: transform .6s var(--ease);
}
.why-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.1);
  border-color: rgba(240,127,46,.6);
  box-shadow: 0 24px 40px rgba(0,0,0,.25);
}
.why-card:hover::before { transform: scale(5); }

.why-card__icon {
  position: relative;
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 18px;
  background: var(--white); color: var(--primary);
  font-size: 1.5rem;
  transition: background var(--t), color var(--t), transform .5s var(--ease);
}
.why-card:hover .why-card__icon { background: var(--accent); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.why-card h3 { position: relative; color: var(--white); font-size: 1.12rem; margin-bottom: 10px; }
.why-card p  { position: relative; color: #BFD0E0; font-size: .92rem; }

.why-card--cta { background: var(--accent); border-color: var(--accent); }
.why-card--cta .why-card__icon { color: var(--accent); }
.why-card--cta p { color: #FFF1E6; margin-bottom: 14px; }
.why-card--cta .link-btn { position: relative; color: var(--white); }
.why-card--cta:hover { background: var(--accent-dark); }
.why-card--cta:hover .why-card__icon { background: var(--white); color: var(--accent); }
.why-card--cta::before { background: rgba(255,255,255,.12); }


/* ==========================================================================
   10. INDUSTRIES – interactive list + live preview panel
   ========================================================================== */
.industries__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 20px 60px;
  margin-bottom: 56px;
}
.industries__head .section-title { margin-bottom: 0; }
.industries__head p { padding-left: 24px; border-left: 3px solid var(--accent); }

.ind {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 40px;
}

/* ---------- Selector list ---------- */
.ind__list { border-top: 1px solid var(--line); }
.ind__item {
  position: relative;
  width: 100%;
  display: grid; grid-template-columns: 30px 44px 1fr 20px; align-items: center; gap: 14px;
  padding: 14px 16px 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background var(--t), padding var(--t);
}
/* Accent bar on the left edge of the active row */
.ind__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--t);
}
.ind__num  { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); }
.ind__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--light); color: var(--secondary);
  transition: background var(--t), color var(--t);
}
.ind__name  { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); transition: color var(--t); }
.ind__arrow { color: var(--accent); opacity: 0; transform: translateX(-10px); transition: opacity var(--t), transform var(--t); }

.ind__item:hover,
.ind__item.is-active { background: var(--light); padding-left: 24px; }
.ind__item:hover .ind__icon { color: var(--accent); }
.ind__item:hover .ind__arrow,
.ind__item.is-active .ind__arrow { opacity: 1; transform: none; }
.ind__item.is-active::before { transform: scaleY(1); }
.ind__item.is-active .ind__icon { background: var(--primary); color: var(--white); }
.ind__item.is-active .ind__name { color: var(--primary); }

/* ---------- Preview panel ---------- */
.ind__preview {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); /* fallback */
  box-shadow: var(--shadow-lg);
}
.ind__panel {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.ind__panel.is-active { opacity: 1; visibility: visible; }
.ind__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,39,65,.15), rgba(8,39,65,.55));
}
.ind__panel img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.ind__panel.is-active img { transform: scale(1); }

/* White info card that rises in */
.ind__caption {
  position: absolute; left: 28px; bottom: 28px; z-index: 1;
  max-width: 470px; margin-right: 28px;
  padding: 26px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease) .15s, transform .6s var(--ease) .15s;
}
.ind__panel.is-active .ind__caption { opacity: 1; transform: none; }
.ind__caption h3 { font-size: 1.35rem; margin-bottom: 8px; }
.ind__caption p  { font-size: .94rem; margin-bottom: 14px; }

.ind__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ind__tags li {
  padding: 4px 12px; border-radius: 50px;
  background: var(--secondary-light); color: var(--primary);
  font-size: .8rem; font-weight: 600;
}

.ind__counter {
  position: absolute; top: 22px; right: 28px; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: rgba(255,255,255,.75);
}
.ind__counter b { font-size: 2.4rem; font-weight: 800; color: var(--white); }

/* ---------- Industries responsive ---------- */
@media (max-width: 991.98px) {
  .industries__head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .ind { grid-template-columns: 1fr; gap: 24px; }

  /* List becomes a swipeable row of pills above the preview */
  .ind__list {
    display: flex; gap: 10px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    border-top: 0;
    margin-inline: -20px; padding: 0 20px 6px;
  }
  .ind__list::-webkit-scrollbar { display: none; }
  .ind__list li { flex-shrink: 0; scroll-snap-align: start; }
  .ind__item {
    grid-template-columns: auto auto; gap: 10px;
    padding: 6px 18px 6px 6px;
    border: 1px solid var(--line); border-radius: 50px;
  }
  .ind__item:hover,
  .ind__item.is-active { padding-left: 6px; }
  .ind__item::before, .ind__num, .ind__arrow { display: none; }
  .ind__icon { width: 36px; height: 36px; border-radius: 50%; }
  .ind__name { font-size: .92rem; white-space: nowrap; }
  .ind__item.is-active { background: var(--primary); border-color: var(--primary); }
  .ind__item.is-active .ind__name { color: var(--white); }
  .ind__item.is-active .ind__icon { background: var(--accent); }

  .ind__preview { min-height: 480px; }
}
@media (max-width: 575.98px) {
  .ind__preview { min-height: 460px; }
  .ind__caption { left: 14px; right: 14px; bottom: 14px; margin-right: 0; padding: 20px; }
  .ind__counter { right: 18px; }
  .ind__counter b { font-size: 1.8rem; }
}


/* ==========================================================================
   11. BRAND MARQUEE
   ========================================================================== */
.brands {
  padding: 60px 0 70px;
  border-top: 1px solid var(--line);
}
.brands__title {
  text-align: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}
.marquee {
  overflow: hidden;
  /* fade out edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 20px;
  width: max-content;
  animation: marquee 45s linear infinite;
}
/* Grade chips in the ticker */
.marquee__chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--ink); white-space: nowrap;
  transition: border-color var(--t), box-shadow var(--t), color var(--t);
}
.marquee__chip b {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: .74rem; font-weight: 800;
  transition: background var(--t);
}
.marquee__chip:hover { border-color: var(--accent); color: var(--primary); box-shadow: var(--shadow-sm); }
.marquee__chip:hover b { background: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex-shrink: 0; }
.marquee__track img {
  height: 56px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter var(--t), opacity var(--t), transform var(--t);
}
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.08); }
/* Track contains the logo set twice (JS) → shift by half + half the gap */
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }


/* ==========================================================================
   12. TESTIMONIALS
   ========================================================================== */
.testimonial-swiper { padding: 10px 6px 70px !important; }
.testimonial-swiper .swiper-slide { height: auto; }

.t-card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 38px 32px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.t-card__quote {
  position: absolute; top: 26px; right: 30px;
  font-size: 2.8rem; color: var(--secondary-light);
  transition: color var(--t);
}
.t-card:hover .t-card__quote { color: rgba(240,127,46,.25); }
.t-card__stars { color: #F5A623; font-size: .85rem; letter-spacing: 3px; margin-bottom: 16px; }
.t-card blockquote { font-size: 1rem; color: var(--text); font-style: italic; flex: 1; margin-bottom: 26px; }

.t-card figcaption {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.t-card__avatar {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: var(--font-head); font-weight: 700;
}
.t-card figcaption strong { display: block; font-family: var(--font-head); color: var(--ink); }
.t-card figcaption small { color: var(--muted); font-size: .85rem; }

.testimonial-pagination { bottom: 10px !important; }
.testimonial-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px; background: var(--secondary); opacity: .35;
  border-radius: 10px; transition: width var(--t), opacity var(--t), background var(--t);
}
.testimonial-pagination .swiper-pagination-bullet-active { width: 32px; opacity: 1; background: var(--accent); }


/* ==========================================================================
   13. DIRECT CONTACT CTA
   ========================================================================== */
.cta { overflow: hidden; }

.cta__blob { position: absolute; pointer-events: none; }
.cta__blob--1 { width: 380px; top: 20px; left: -120px; color: rgba(240,127,46,.1); animation: spin 60s linear infinite; }
.cta__blob--2 { width: 300px; right: -80px; bottom: 10px; color: var(--secondary-light); animation: spin 50s linear infinite reverse; }

.cta__box {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  padding: 60px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(240,127,46,.25), transparent 45%),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--secondary));
  color: #C9D7E4;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta__text h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.cta__text > p { margin-bottom: 26px; }

.cta__meta li { display: flex; gap: 12px; font-size: .92rem; margin-bottom: 10px; }
.cta__meta i { color: var(--accent); margin-top: 5px; }
.cta__meta a:hover { color: var(--white); }
.cta__sep { margin: 0 8px; opacity: .5; }

.cta__actions { display: flex; flex-direction: column; gap: 16px; }

.cta-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.cta-btn__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  font-size: 1.6rem; color: var(--white);
  transition: transform .5s var(--ease), background var(--t), color var(--t);
}
.cta-btn__text { flex: 1; min-width: 0; }
.cta-btn__text small { display: block; font-size: .8rem; color: var(--muted); transition: color var(--t); }
.cta__text,
.cta__actions { min-width: 0; }   /* let grid columns shrink below content width */
.cta-btn__text strong {
  display: block; font-family: var(--font-head); font-size: 1rem;
  overflow-wrap: anywhere;          /* long email wraps instead of overflowing */
}
.cta-btn--mail .cta-btn__text strong { font-size: .86rem; }   /* long address fits on one line on desktop */
.cta-btn__arrow { color: var(--muted); transition: transform var(--t), color var(--t); }

.cta-btn--wa   .cta-btn__icon { background: var(--whatsapp); }
.cta-btn--mail .cta-btn__icon { background: var(--accent); }
.cta-btn--call .cta-btn__icon { background: var(--primary); }

.cta-btn:hover { transform: translateX(8px) scale(1.02); box-shadow: 0 18px 34px rgba(0,0,0,.25); }
.cta-btn:hover .cta-btn__icon { transform: rotate(-10deg) scale(1.1); background: var(--white); }
.cta-btn:hover .cta-btn__text small,
.cta-btn:hover .cta-btn__arrow { color: rgba(255,255,255,.85); }
.cta-btn:hover .cta-btn__arrow { transform: translateX(4px); }

.cta-btn--wa:hover   { background: var(--whatsapp); color: var(--white); }
.cta-btn--wa:hover   .cta-btn__icon { color: var(--whatsapp); }
.cta-btn--mail:hover { background: var(--accent); color: var(--white); }
.cta-btn--mail:hover .cta-btn__icon { color: var(--accent); }
.cta-btn--call:hover { background: var(--primary-dark); color: var(--white); }
.cta-btn--call:hover .cta-btn__icon { color: var(--primary); }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 40px;
  background: var(--primary-dark);
  color: #A9BCCF;
  font-size: .94rem;
}
.footer-wave {
  position: absolute; left: 0; top: -79px;
  width: 100%; height: 80px;
}
.footer-wave path { fill: var(--primary-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr 1.3fr;
  gap: 50px;
  padding-top: 60px; padding-bottom: 60px;
}
.footer-logo img {
  height: 58px; width: auto; margin-bottom: 22px;
  filter: brightness(0) invert(1);     /* white version of the logo */
}
.footer-col--about p { margin-bottom: 22px; }

.footer-col h4 {
  position: relative;
  color: var(--white); font-size: 1.1rem;
  padding-bottom: 14px; margin-bottom: 22px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; border-radius: 3px; background: var(--accent);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--t), transform var(--t);
}
.footer-links a::before {
  content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: .75rem; color: var(--accent);
}
.footer-links a:hover { color: var(--white); transform: translateX(6px); }

.footer-contact li { display: flex; gap: 14px; margin-bottom: 16px; line-height: 1.6; }
.footer-contact i {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: var(--accent);
}
.footer-contact a { word-break: break-word; }
.footer-contact a:hover { color: var(--white); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  transition: background var(--t), transform var(--t);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-4px) rotate(8deg); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 22px; padding-bottom: 22px;
  font-size: .88rem;
}
.credit a { color: var(--accent); font-weight: 600; }
.credit a:hover { color: var(--white); text-decoration: underline; }


/* ==========================================================================
   15. FLOATING BUTTONS & SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1200;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.float-wa {
  position: fixed; left: 22px; bottom: 22px; z-index: 900;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform var(--t);
}
.float-wa::before {                 /* pulsing ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2s ease-out infinite;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-4px); }


/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

/* ---------- Desktop only: open dropdowns on hover ---------- */
@media (min-width: 1100px) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-dropdown:hover > .submenu-toggle { transform: rotate(180deg); color: var(--accent); }
}

/* ---------- Large tablets ---------- */
@media (max-width: 1199.98px) {
  .topbar__info .topbar__address { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile navigation (side drawer) ---------- */
@media (max-width: 1099.98px) {
  :root { --header-h: 74px; }

  .brand img { height: 48px; }
  .hamburger { display: block; }
  .nav-cta { margin-left: auto; }

  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 1100;
    width: min(360px, 88vw); height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    background: var(--white);
    box-shadow: -20px 0 40px rgba(8,39,65,.2);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .5s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }

  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }
  .drawer-head img { height: 44px; width: auto; }
  .drawer-close {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--light); color: var(--primary); font-size: 1.2rem;
    transition: background var(--t), color var(--t), transform var(--t);
  }
  .drawer-close:hover { background: var(--accent); color: var(--white); transform: rotate(90deg); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px; }
  .nav-item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    /* Staggered slide-in of links when drawer opens */
    opacity: 0; transform: translateX(30px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .main-nav.is-open .nav-item { opacity: 1; transform: none; }
  .main-nav.is-open .nav-item:nth-child(1) { transition-delay: .15s; }
  .main-nav.is-open .nav-item:nth-child(2) { transition-delay: .2s; }
  .main-nav.is-open .nav-item:nth-child(3) { transition-delay: .25s; }
  .main-nav.is-open .nav-item:nth-child(4) { transition-delay: .3s; }
  .main-nav.is-open .nav-item:nth-child(5) { transition-delay: .35s; }
  .main-nav.is-open .nav-item:nth-child(6) { transition-delay: .4s; }

  .nav-link { flex: 1; padding: 15px 0; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }

  .submenu-toggle { width: 38px; height: 38px; margin: 0; background: var(--light); font-size: .8rem; }

  /* Accordion dropdown – height animated via JS (max-height) */
  .dropdown {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .dropdown::before { display: none; }
  .dropdown li:last-child { padding-bottom: 10px; }
  .dropdown a { padding: 10px 14px; font-size: .92rem; }

  .drawer-contact {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: auto; padding: 20px;
    background: var(--light);
  }
  .drawer-contact a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 12px;
    background: var(--white);
    font-weight: 600; color: var(--primary);
    transition: background var(--t), color var(--t);
  }
  .drawer-contact a:hover { background: var(--primary); color: var(--white); }
  .drawer-contact i { color: var(--accent); }
}

/* ---------- Tablets ---------- */
@media (max-width: 991.98px) {
  .section { padding: 90px 0; }
  .topbar__info .topbar__email { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .about__badge { left: 0; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .cta__box { grid-template-columns: minmax(0, 1fr); padding: 44px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  /* Side-sliding AOS reveals push content off-screen on phones → fade up instead */
  [data-aos="fade-left"],
  [data-aos="fade-right"] { transform: translate3d(0, 30px, 0); }

  .topbar__greeting { display: none; }
  .topbar__info { margin-left: 0; }
  .topbar__inner { justify-content: space-between; }

  .nav-cta { display: none; }
  .hamburger { margin-left: auto; }

  .check-list { grid-template-columns: 1fr; }

  .product-grid { grid-template-columns: 1fr; }

  .grades { padding: 26px 20px; }
  .grades__head { flex-direction: column; align-items: flex-start; }
  .grades__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .grades__tabs::-webkit-scrollbar { display: none; }
  .grades__tab { white-space: nowrap; }

  .why { padding: 120px 0; }
  .why-grid { grid-template-columns: 1fr; }

  .cta__box { padding: 34px 22px; border-radius: 22px; }
  .cta-btn { padding: 14px 16px; gap: 14px; }
  .cta-btn__icon { width: 48px; height: 48px; font-size: 1.35rem; }
  .cta-btn__text strong { font-size: .9rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .footer-wave { height: 50px; top: -49px; }

  .float-wa { width: 50px; height: 50px; font-size: 1.6rem; left: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 479.98px) {
  .topbar__social { display: none; }
  .topbar__info { width: 100%; justify-content: center; }
  .about__media { padding: 0 30px 50px 0; }
  .about__badge { padding: 14px 16px; bottom: 70px; }
  .about__badge i { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}




/* ==========================================================================
   18. INNER PAGES – page banner & breadcrumb (shared by all inner pages)
   ========================================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 70px 0 110px;
  color: #C9D7E4;
  background:
    radial-gradient(circle at 85% 15%, rgba(240,127,46,.18), transparent 40%),
    linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #164A75);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);   /* slanted bottom edge */
}
/* Blueprint grid */
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 90%);
          mask-image: linear-gradient(90deg, #000 20%, transparent 90%);
}

.page-banner__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
}

.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .86rem; font-weight: 500;
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; opacity: .45; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--accent); font-weight: 600; }

.page-banner__title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.page-banner__title span { color: var(--accent); }
.page-banner__lead { max-width: 560px; margin: 16px 0 26px; font-size: clamp(1rem, 1.4vw, 1.12rem); }

.page-banner__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.page-banner__meta span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: .85rem; font-weight: 600; color: var(--white);
}
.page-banner__meta i { color: var(--accent); }

/* Grade tiles styled like periodic-table elements */
.element-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.element {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.element__no { position: absolute; top: 7px; left: 9px; font-size: .66rem; font-weight: 600; opacity: .6; }
.element strong {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1;
}
.element small { margin-top: 6px; padding: 0 4px; font-size: .68rem; line-height: 1.2; text-align: center; opacity: .8; }
.element:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.element--accent { background: var(--accent); border-color: var(--accent); }
.element--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

@media (max-width: 991.98px) {
  .page-banner { padding: 56px 0 90px; }
  .page-banner__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .element-grid { max-width: 520px; }
}
@media (max-width: 479.98px) {
  .element-grid { gap: 8px; }
  .element strong { font-size: 1.1rem; }
  .element small { font-size: .58rem; }
  .element__no { top: 5px; left: 6px; font-size: .58rem; }
}


/* ==========================================================================
   19. ABOUT PAGE
   ========================================================================== */

/* ---------- Who we are ---------- */
.about-intro__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: 70px;
}
.about-intro__text p { margin-bottom: 16px; }
.about-intro__text strong { color: var(--ink); }
.about-intro__lead { font-size: 1.15rem; color: var(--ink); }

.signature {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.signature__avatar {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: var(--font-head); font-weight: 700;
}
.signature strong { display: block; font-family: var(--font-head); color: var(--ink); }
.signature small  { color: var(--muted); font-size: .85rem; }
.signature .btn   { margin-left: auto; }

.about-intro__img {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--secondary-light);
}
.about-intro__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-intro__img:hover img { transform: scale(1.05); }

.factsheet {
  position: relative;
  margin: -70px 24px 0;
  padding: 26px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.factsheet__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 10px; }
.factsheet__title i { color: var(--accent); }
.factsheet__list > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem; line-height: 1.5;
}
.factsheet__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.factsheet__list dt { font-weight: 600; color: var(--muted); }
.factsheet__list dd { font-weight: 500; color: var(--ink); }

/* ---------- Principles ---------- */
.principles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1199.98px) { .principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle {
  position: relative;
  padding: 36px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.principle::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.principle:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.principle:hover::after { transform: scaleX(1); }
.principle__no {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #D5DEE8;
}
.principle__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 22px;
  border-radius: 16px;
  background: var(--primary); color: var(--white); font-size: 1.4rem;
  transition: background var(--t), transform var(--t);
}
.principle:hover .principle__icon { background: var(--accent); transform: rotate(-6deg); }
.principle h3 { font-size: 1.2rem; margin-bottom: 10px; }
.principle p  { font-size: .95rem; }

/* ---------- Materials & grades families ---------- */
.families__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 20px 60px;
  margin-bottom: 50px;
}
.families__head .section-title { margin-bottom: 0; }
.families__head p { padding-left: 24px; border-left: 3px solid var(--accent); }

.families__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.family {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.family:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }

.family__head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.family__symbol {
  position: relative; flex-shrink: 0;
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 12px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  transition: transform var(--t);
}
.family__symbol small { position: absolute; top: 5px; left: 8px; font-size: .6rem; font-weight: 600; opacity: .7; }
.family__symbol--accent { background: var(--accent); }
.family:hover .family__symbol { transform: rotate(-6deg) scale(1.05); }
.family h3 { font-size: 1.2rem; margin-bottom: 4px; }
.family__props { font-size: .85rem; font-weight: 500; color: var(--secondary); }

.family__grades {
  flex: 1;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px;
  margin-bottom: 18px;
}
.family__grades li {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--light);
  border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.family__grades li:hover { border-color: var(--accent); color: var(--accent-dark); background: #FFF6EF; }

.family__forms {
  display: flex; gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .86rem; color: var(--muted);
}
.family__forms i { color: var(--accent); margin-top: 4px; }

.grade-callout {
  display: flex; align-items: center; gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #FFF6EF, var(--light));
  border: 1px dashed rgba(240,127,46,.5);
}
.grade-callout__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 1.3rem;
}
.grade-callout__text { flex: 1; }
.grade-callout__text h3 { font-size: 1.15rem; margin-bottom: 4px; }
.grade-callout__text p  { font-size: .95rem; }
.grade-callout__text strong { color: var(--ink); }
.grade-callout__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms & shapes ---------- */
.forms__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.form-tile {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 12px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.form-tile svg {
  width: 60px; height: 60px;
  fill: var(--secondary-light);
  stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round;
  transition: fill var(--t), stroke var(--t), transform .5s var(--ease);
}
.form-tile svg .cut  { fill: var(--white); }
.form-tile svg .back { fill: none; stroke-opacity: .45; }
.form-tile span { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.form-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.form-tile:hover svg { fill: rgba(240,127,46,.18); stroke: var(--accent); transform: scale(1.08); }

/* ---------- Process timeline ---------- */
.process__steps {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
/* Dashed connector line behind the step dots */
.process__steps::before {
  content: ""; position: absolute; top: 34px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 8px, transparent 8px 16px);
  opacity: .4;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--secondary-light);
  box-shadow: 0 0 0 8px var(--white);
  color: var(--primary); font-size: 1.4rem;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.step:hover .step__dot { background: var(--primary); border-color: var(--primary); color: var(--white); transform: scale(1.06); }
.step__no {
  display: block; margin-bottom: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p  { font-size: .88rem; }

/* ---------- About page responsive ---------- */
@media (max-width: 1199.98px) {
  .forms__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991.98px) {
  .about-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .about-intro__side { max-width: 620px; }
  .principles__grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
  .families__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
  .families__grid { grid-template-columns: minmax(0, 1fr); }
  .grade-callout { flex-direction: column; align-items: flex-start; text-align: left; }

  /* Process becomes a vertical timeline */
  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 560px; margin-inline: auto; }
  .process__steps::before {
    top: 0; bottom: 0; left: 33px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--secondary) 0 8px, transparent 8px 16px);
  }
  .step { text-align: left; padding: 0 0 0 92px; min-height: 68px; }
  .step__dot { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 767.98px) {
  .forms__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .form-tile { padding: 20px 8px 16px; }
  .form-tile svg { width: 48px; height: 48px; }
  .form-tile span { font-size: .82rem; }
  .family { padding: 22px 18px; }
  .family__symbol { width: 56px; height: 56px; font-size: 1.3rem; }
  .factsheet { margin: -50px 12px 0; padding: 22px 18px; }
  .signature .btn { margin-left: 0; }
}
@media (max-width: 479.98px) {
  .forms__grid { grid-template-columns: repeat(2, 1fr); }
  .factsheet__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .grade-callout { padding: 24px 20px; }
  .grade-callout__actions .btn { flex: 1 1 100%; }
}


/* ==========================================================================
   20. QUALITY POLICY PAGE
   ========================================================================== */

/* ---------- Banner assurance tiles ---------- */
.q-seals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.q-seal {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  transition: transform var(--t), background var(--t);
}
.q-seal:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.q-seal__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.12); color: var(--accent); font-size: 1.1rem;
}
.q-seal strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.q-seal small  { margin-top: 4px; font-size: .8rem; line-height: 1.4; color: #BFD0E0; }
.q-seal--accent { background: var(--accent); border-color: var(--accent); }
.q-seal--accent .q-seal__icon { background: rgba(255,255,255,.2); color: var(--white); }
.q-seal--accent small { color: #FFF1E6; }
.q-seal--accent:hover { background: var(--accent-dark); }

/* ---------- Policy statement ---------- */
.q-policy__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}
.q-policy__intro p { margin-bottom: 16px; }
.q-policy__intro strong { color: var(--ink); }

.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.policy-card__head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 28px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 12px),
    var(--primary);
}
.policy-card__head > i {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 1.2rem;
}
.policy-card__head span {
  display: block;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #BFD4E6;
}
.policy-card__head h3 { color: var(--white); font-size: 1.15rem; }
.policy-card__lead { padding: 24px 28px 8px; color: var(--ink); font-weight: 500; }
.policy-card__list { padding: 0 28px 18px; }
.policy-card__list li {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.policy-card__list li:last-child { border-bottom: 0; }
.policy-card__list i { color: var(--accent); margin-top: 5px; }
.policy-card__sign {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--light);
  border-top: 1px solid var(--line);
}
.policy-card__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-family: var(--font-head); font-weight: 700;
}
.policy-card__sign strong { display: block; font-family: var(--font-head); color: var(--ink); }
.policy-card__sign small  { color: var(--muted); font-size: .85rem; }

/* ---------- Objectives ---------- */
.q-obj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.q-obj {
  position: relative;
  padding: 32px 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.q-obj:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-bottom-color: var(--accent); }
.q-obj__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent); font-size: 1.3rem;
  transition: background var(--t), color var(--t);
}
.q-obj:hover .q-obj__icon { background: var(--accent); color: var(--white); }
.q-obj--accent { border-top: 3px solid var(--accent); }
.q-obj--accent .q-obj__icon { background: var(--accent); color: var(--white); }
.q-obj h3 { font-size: 1.15rem; margin-bottom: 10px; }
.q-obj p  { font-size: .92rem; }

/* ---------- QA process – alternating vertical timeline ---------- */
.q-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.q-timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--secondary-light), var(--secondary), var(--secondary-light));
}
.q-stage { position: relative; width: 50%; padding: 0 56px 28px 0; }
.q-stage:nth-child(even) { margin-left: 50%; padding: 0 0 28px 56px; }
.q-stage__no {
  position: absolute; top: 14px; right: -26px; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 6px var(--white);
  font-family: var(--font-head); font-weight: 800; color: var(--primary);
  transition: background var(--t), color var(--t);
}
.q-stage:nth-child(even) .q-stage__no { right: auto; left: -26px; }
.q-stage:hover .q-stage__no { background: var(--primary); color: var(--white); }

.q-stage__card {
  position: relative;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t);
}
/* Small pointer towards the line */
.q-stage__card::after {
  content: ""; position: absolute; top: 30px; right: -8px;
  width: 14px; height: 14px;
  background: var(--white);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: rotate(45deg);
}
.q-stage:nth-child(even) .q-stage__card::after { right: auto; left: -8px; transform: rotate(-135deg); }
.q-stage:hover .q-stage__card { box-shadow: var(--shadow); border-color: transparent; }
.q-stage__card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 8px; }
.q-stage__card h3 i { color: var(--accent); }
.q-stage__card p { font-size: .92rem; }

/* ---------- Tests ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.test-card {
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.test-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.test-card__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--secondary-light); color: var(--primary); font-size: 1.2rem;
  transition: background var(--t), color var(--t);
}
.test-card:hover .test-card__icon { background: var(--primary); color: var(--white); }
.test-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.test-card p  { flex: 1; font-size: .9rem; margin-bottom: 16px; }
.test-card__std { display: flex; flex-wrap: wrap; gap: 6px; }
.test-card__std li {
  padding: 4px 10px;
  border-radius: 6px;
  background: #E8EFF6;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .02em;
  color: var(--primary);
}

.q-note {
  display: flex; gap: 12px;
  margin-top: 30px; padding: 14px 18px;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem; color: var(--muted);
}
.q-note i { color: var(--accent); margin-top: 4px; }

/* ---------- Documentation ---------- */
.q-docs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  align-items: start;
  gap: 50px;
}
.q-docs__intro { margin-bottom: 24px; }
.q-docs__intro strong { color: var(--ink); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.table-hint { display: none; margin-bottom: 10px; font-size: .82rem; color: var(--muted); }
.table-hint i { color: var(--accent); margin-right: 6px; }
@media (max-width: 639.98px) { .table-hint { display: block; } }
.spec-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.spec-table th {
  padding: 14px 16px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-align: left;
}
.spec-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.spec-table td:nth-child(2) { font-weight: 600; color: var(--ink); }
.spec-table tbody tr:nth-child(even) { background: var(--light); }
.spec-table tr.is-highlight { background: #FFF6EF; }
.type-pill {
  display: inline-block;
  min-width: 44px; padding: 4px 10px;
  border-radius: 6px;
  background: var(--secondary-light); color: var(--primary);
  font-family: var(--font-head); font-weight: 800; text-align: center;
}
.type-pill--accent { background: var(--accent); color: var(--white); }

.q-docs__side {
  padding: 30px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.q-docs__side h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 8px; }
.q-docs__side h3 i { color: var(--accent); }
.doc-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.doc-list i {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--white); color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.doc-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.q-docs__tpi {
  display: flex; gap: 12px;
  margin-top: 20px; padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink);
}
.q-docs__tpi i { color: var(--accent); margin-top: 4px; }

/* ---------- Standards ---------- */
.std-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.std-card {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.std-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.std-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 10px; }
.std-card h3 i { color: var(--accent); }
.std-card dl > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.std-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.std-card dt { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--primary); }
.std-card dd { font-size: .86rem; color: var(--muted); line-height: 1.5; }

.q-std-link { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Pipe marking illustration ---------- */
.pipe-mark { margin: 0 0 50px; }
.pipe-mark__pipe {
  position: relative;
  padding: 36px 110px 36px 36px;
  border-radius: 16px 70px 70px 16px;
  /* brushed-steel cylinder */
  background: linear-gradient(180deg, #DDE4EB 0%, #FFFFFF 16%, #C5CFD9 46%, #E9EEF3 64%, #9FACB9 100%);
  box-shadow: var(--shadow), inset 0 -6px 12px rgba(0,0,0,.08);
}
/* Pipe end showing the bore */
.pipe-mark__end {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 84px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #2A3A4B 0 38%, #8E9BA8 40%, #D5DCE3 62%, #A7B3BF 100%);
  box-shadow: -2px 0 6px rgba(0,0,0,.15);
}
.pipe-mark__text {
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px 28px;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700; font-size: clamp(.9rem, 1.6vw, 1.15rem); letter-spacing: .08em;
  color: #1B2A3A;
}
.pipe-mark__text span { position: relative; white-space: nowrap; }
/* Numbered callout above each marking segment */
.pipe-mark__text span::before {
  content: attr(data-n);
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-size: .68rem; letter-spacing: 0;
}

.pipe-mark__legend ol {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 30px;
  margin-top: 30px;
}
.pipe-mark__legend li { display: flex; align-items: flex-start; gap: 12px; font-size: .88rem; color: var(--muted); }
.pipe-mark__legend b {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-size: .78rem;
}
.pipe-mark__legend strong { display: block; font-family: var(--font-head); color: var(--ink); }

/* ---------- Packing & handling ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pack-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pack-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.pack-item > i { font-size: 1.6rem; color: var(--accent); margin-bottom: 14px; }
.pack-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pack-item p  { font-size: .88rem; }

/* ---------- Quality page responsive ---------- */
@media (max-width: 1199.98px) {
  .q-obj-grid { grid-template-columns: repeat(2, 1fr); }
  .std-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .q-seals { max-width: 520px; }
  .q-policy__grid, .q-docs__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-mark__legend ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Timeline collapses to a single left-aligned line */
  .q-timeline::before { left: 26px; transform: none; }
  .q-stage,
  .q-stage:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 22px 76px; }
  .q-stage__no,
  .q-stage:nth-child(even) .q-stage__no { left: 0; right: auto; }
  .q-stage__card::after,
  .q-stage:nth-child(even) .q-stage__card::after { right: auto; left: -8px; transform: rotate(-135deg); }
}
@media (max-width: 767.98px) {
  .q-obj-grid, .test-grid, .std-grid { grid-template-columns: minmax(0, 1fr); }
  .q-seal { padding: 18px 16px; }
  .q-seal strong { font-size: 1.25rem; }
  .policy-card__head, .policy-card__lead, .policy-card__list, .policy-card__sign { padding-left: 20px; padding-right: 20px; }
  .q-docs__side { padding: 24px 20px; }
  .pipe-mark__pipe { padding: 34px 56px 26px 20px; border-radius: 12px 40px 40px 12px; }
  .pipe-mark__end { width: 44px; }
  .pipe-mark__text { gap: 30px 18px; }
}
@media (max-width: 479.98px) {
  .pack-grid, .pipe-mark__legend ol { grid-template-columns: minmax(0, 1fr); }
  .q-stage, .q-stage:nth-child(even) { padding-left: 66px; }
  .q-stage__no { width: 44px; height: 44px; }
  .q-timeline::before { left: 22px; }
}


/* ==========================================================================
   21. MATERIAL GRADES PAGE
   ========================================================================== */

/* ---------- Grade finder (banner) ---------- */
.grade-finder {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.grade-finder__label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white);
}
.grade-finder__label i { color: var(--accent); }
.grade-finder__field { position: relative; }
.grade-finder__field input {
  width: 100%;
  padding: 16px 52px 16px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--white);
  font: 500 1rem var(--font-body);
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.grade-finder__field input::-webkit-search-cancel-button { display: none; }
.grade-finder__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,127,46,.25); }
.grade-finder__clear {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--light); color: var(--primary);
  transition: background var(--t), color var(--t);
}
.grade-finder__clear:hover { background: var(--accent); color: var(--white); }
.grade-finder__status { margin: 10px 0 14px; font-size: .85rem; color: #BFD0E0; }
.grade-finder__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-finder__quick button {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  font-size: .8rem; font-weight: 600; color: var(--white);
  transition: background var(--t), border-color var(--t);
}
.grade-finder__quick button:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Sticky family navigation ----------
   Behaviour lives in script.js (11c): scroll-spy, offset-aware jumps,
   overflow arrows, grade counts and the reading-progress bar. */
html:has(.grade-nav) { scroll-padding-top: calc(var(--header-h) + 80px); }   /* no-JS fallback */
.grade-nav {
  position: sticky; top: var(--header-h); z-index: 900;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: top .45s var(--ease), box-shadow var(--t);
}
/* When the smart header slides away, the family nav moves up to the top */
body:has(.site-header.is-hidden) .grade-nav { top: 0; }
.grade-nav.is-stuck { box-shadow: 0 10px 24px rgba(14,58,95,.10); }

.grade-nav__inner { position: relative; }
.grade-nav__list {
  display: flex; gap: 6px;
  padding: 10px 2px;
  overflow-x: auto; scrollbar-width: none;
  scroll-behavior: smooth;
  /* Edge fades appear only when there is more to scroll (JS toggles classes) */
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.grade-nav__inner.fade-left  .grade-nav__list { --fl: 56px; }
.grade-nav__inner.fade-right .grade-nav__list { --fr: 56px; }
.grade-nav__list::-webkit-scrollbar { display: none; }
.grade-nav__list li { flex-shrink: 0; }
.grade-nav__list li[hidden] { display: none; }
.grade-nav__list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 7px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.grade-nav__list b {
  display: grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 4px;
  border-radius: 50px;
  background: var(--light); color: var(--primary);
  font-size: .7rem; font-weight: 800;
  transition: background var(--t), color var(--t);
}
/* Grade count badge (added by JS, updates with search) */
.grade-nav__count {
  min-width: 22px; padding: 1px 7px;
  border-radius: 50px;
  background: var(--light);
  font-size: .7rem; font-weight: 700; text-align: center;
  color: var(--muted);
  transition: background var(--t), color var(--t);
}
.grade-nav__list a:hover { background: var(--light); border-color: var(--line); }
.grade-nav__list a:hover .grade-nav__count { background: var(--white); }
.grade-nav__list a:focus-visible { outline-offset: -2px; }
.grade-nav__list a.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.grade-nav__list a.is-active b { background: var(--accent); color: var(--white); }
.grade-nav__list a.is-active .grade-nav__count { background: rgba(255,255,255,.18); color: var(--white); }

/* Overflow arrows */
.grade-nav__arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--white); color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .8rem;
  transition: background var(--t), color var(--t);
}
.grade-nav__arrow[hidden] { display: none; }
.grade-nav__arrow--prev { left: 12px; }
.grade-nav__arrow--next { right: 12px; }
.grade-nav__arrow:hover { background: var(--primary); color: var(--white); }

/* Reading progress through the grades content */
.grade-nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.grade-nav__progress span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* Section headings receive focus after a nav jump – no heavy ring for mouse users */
.grade-family h2:focus { outline: none; }
.grade-family h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* Touch screens: swipe instead of arrows */
@media (hover: none) {
  .grade-nav__arrow { display: none !important; }
}

/* ---------- Page body ---------- */
.grades-page { padding: 60px 0 30px; }
.grades-disclaimer {
  display: flex; gap: 12px;
  margin-bottom: 40px; padding: 16px 20px;
  background: #FFF6EF;
  border: 1px dashed rgba(240,127,46,.5);
  border-radius: var(--radius);
  font-size: .9rem;
}
.grades-disclaimer i { color: var(--accent); margin-top: 4px; }
.grades-disclaimer strong { color: var(--ink); }

.grade-family { padding: 30px 0 50px; }
.grade-family[hidden] { display: none; }
.grade-family__head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 20px; }
.grade-family__intro h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.grade-family__intro p  { max-width: 920px; }
.grade-family__meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px;
  margin-bottom: 22px;
}
.grade-family__meta p {
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius-sm);
  font-size: .86rem; line-height: 1.6;
}
.grade-family__meta strong { color: var(--ink); }
.grade-family__meta i { color: var(--accent); margin-right: 4px; }
.grade-family__note { margin-top: 12px; font-size: .8rem; font-style: italic; color: var(--muted); }

/* ---------- Grade tables ---------- */
.grade-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.grade-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.grade-table thead th {
  padding: 14px 16px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-align: left;
}
.grade-table thead th:nth-child(1) { width: 17%; }
.grade-table thead th:nth-child(2) { width: 18%; }
.grade-table thead th:nth-child(3) { width: 17%; }
.grade-table thead th:nth-child(4) { width: 25%; }
.grade-table tbody th {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #FAFCFE;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink);
  text-align: left; vertical-align: top;
}
.gt-type {
  display: block; margin-top: 4px;
  font-family: var(--font-body); font-size: .7rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--secondary);
}
.grade-table tbody td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: top; line-height: 1.55;
}
.grade-table tbody td:nth-of-type(1) { font-size: .84rem; color: var(--muted); }
.grade-table tbody td:nth-of-type(2) { font-weight: 600; color: var(--primary); }
.grade-table tbody tr { transition: background var(--t); }
.grade-table tbody tr:hover,
.grade-table tbody tr:hover th { background: #F5F9FC; }
.grade-table tbody tr[hidden] { display: none; }

/* ---------- Search: "not listed" state ---------- */
.grade-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 30px;
  margin: 10px 0 50px; padding: 36px;
  background: linear-gradient(135deg, #FFF6EF, var(--white) 60%);
  border: 2px dashed rgba(240,127,46,.45);
  border-radius: var(--radius-lg);
  animation: fadeUp .4s var(--ease);
}
.grade-empty[hidden] { display: none; }
.grade-empty__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 1.3rem;
}
.grade-empty h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 10px; line-height: 1.35; }
.grade-empty__term { color: var(--accent); overflow-wrap: anywhere; }
.grade-empty p { margin-bottom: 18px; }
.grade-empty strong { color: var(--ink); }

.grade-empty__suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-bottom: 20px;
}
.grade-empty__suggest[hidden] { display: none; }
.grade-empty__suggest > span { font-weight: 600; font-size: .9rem; color: var(--ink); }
.grade-empty__suggest ul { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-empty__suggest button {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: .84rem;
  color: var(--primary);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.grade-empty__suggest button:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.grade-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.grade-empty__tips {
  align-self: start;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.grade-empty__tips h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.grade-empty__tips h4 i { color: var(--accent); }
.grade-empty__tips li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: .86rem; line-height: 1.5;
}
.grade-empty__tips li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.grade-empty__tips b { color: var(--primary); }
.grade-empty__reset { margin-top: 14px; }

/* "View results ↓" shortcut in the search status line */
.grade-finder__jump {
  margin-left: 10px; padding: 3px 12px;
  border-radius: 50px;
  background: var(--accent); color: var(--white);
  font-size: .78rem; font-weight: 700;
  transition: background var(--t);
}
.grade-finder__jump:hover { background: var(--accent-dark); }
.grade-finder__jump i { margin-left: 4px; font-size: .7rem; }

@media (max-width: 767.98px) {
  .grade-empty { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 22px; }
  .grade-empty__actions .btn { flex: 1 1 auto; }
  .grade-finder__jump { margin: 8px 0 0; display: inline-flex; align-items: center; }
  .grade-finder__status span { display: block; }
}

/* ---------- Selection guide ---------- */
.grade-selector { padding-top: 60px; }
.selector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.selector-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.selector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.selector-card > i {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 10px;
  background: #FFF1E6; color: var(--accent); font-size: 1.1rem;
}
.selector-card h3 { font-size: 1rem; margin-bottom: 6px; }
.selector-card p  { font-size: .86rem; font-weight: 600; color: var(--primary); line-height: 1.6; }


/* ---------- Equivalent grades page ---------- */
.eq-sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.eq-sys {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.eq-sys:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.eq-sys > b {
  display: inline-grid; place-items: center;
  min-width: 58px; padding: 6px 12px; margin-bottom: 14px;
  border-radius: 10px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: .8rem; line-height: 1.15; text-align: center;
}
.eq-sys:nth-child(even) > b { background: var(--accent); }
.eq-sys h3 { font-size: 1rem; margin-bottom: 8px; }
.eq-sys p  { font-size: .86rem; margin-bottom: 12px; }
.eq-sys em { font-style: normal; font-weight: 700; color: var(--primary); }
.eq-sys__eg {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--light);
  font-family: ui-monospace, "Courier New", monospace; font-size: .8rem; font-weight: 700;
  color: var(--primary);
  overflow-wrap: anywhere;
}

/* Cross-reference tables */
.eq-table { min-width: 940px; }
.eq-table thead th:nth-child(1) { width: 20%; }
.eq-table tbody td { font-weight: 600; color: var(--ink); }
.eq-table tbody td small { font-weight: 500; color: var(--muted); }
.eq-table tbody td:nth-of-type(1) { color: var(--primary); font-size: .88rem; }
.eq-guide { padding-top: 40px; }
.eq-guide__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1199.98px) { .eq-sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eq-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .eq-table tbody td:nth-of-type(1) { font-size: .9rem; } }
@media (max-width: 575.98px)  { .eq-sys-grid, .eq-guide__grid { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Material grades responsive ---------- */
@media (max-width: 1199.98px) {
  .selector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .grade-family__meta { grid-template-columns: minmax(0, 1fr); }
  .selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Tables become stacked, labelled cards (labels added by script.js) */
  .grade-table-wrap { background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
  .grade-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .grade-table, .grade-table tbody, .grade-table tr, .grade-table th, .grade-table td { display: block; width: 100%; }
  .grade-table tbody tr {
    margin-bottom: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .grade-table tbody th { border-top: 0; background: var(--primary); color: var(--white); padding: 14px 18px; }
  .grade-table tbody th .gt-type { color: #BFD4E6; }
  .grade-table tbody td {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px;
    padding: 12px 18px;
  }
  .grade-table tbody tr:first-child td { border-top: 1px solid var(--line); }
  .grade-table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-head); font-weight: 700; font-size: .72rem;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted);
  }
  .grade-table tbody tr:hover,
  .grade-table tbody tr:hover th { background: var(--white); }
  .grade-table tbody tr:hover th { background: var(--primary); }
}
@media (max-width: 767.98px) {
  .grade-finder { padding: 20px; }
  .grades-page { padding-top: 40px; }
  .grade-family__head { gap: 16px; }
  .grade-family__head .family__symbol { width: 52px; height: 52px; font-size: 1.2rem; }
}
@media (max-width: 479.98px) {
  .grade-table tbody td { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .selector-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-family__head { flex-direction: column; }
}


/* ==========================================================================
   22. PIPE SCHEDULE CHART PAGE
   ========================================================================== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Banner diagram ---------- */
.pipe-diagram { margin: 0; display: flex; align-items: center; gap: 24px; }
.pipe-diagram svg { flex: 0 0 auto; width: min(300px, 100%); height: auto; }
.pd-label { fill: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.pd-label--id { fill: #7FB3DD; }
.pipe-diagram figcaption { display: flex; flex-direction: column; gap: 12px; }
.pipe-diagram figcaption span { font-size: .88rem; color: #C9D7E4; line-height: 1.45; }
.pipe-diagram figcaption b {
  display: inline-block; min-width: 38px; margin-right: 6px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.1); color: var(--accent);
  font-family: var(--font-head); text-align: center;
}

/* ---------- Primer cards ---------- */
.ps-primer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ps-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.ps-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ps-card__icon {
  display: grid; place-items: center;
  min-width: 52px; height: 52px; padding: 0 10px; margin-bottom: 18px;
  width: max-content;
  border-radius: 12px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
}
.ps-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ps-card p { font-size: .92rem; }
.ps-card--formula { background: var(--light); }
.ps-card--formula .ps-card__icon { background: var(--accent); }
.ps-card--formula p + p { margin-top: 10px; }
.ps-card code {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: ui-monospace, "Courier New", monospace; font-size: .88rem; font-weight: 700;
  color: var(--primary);
}
.ps-card small { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* ---------- Toolbar ---------- */
.ps-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px;
  margin-bottom: 20px;
}
.ps-seg, .ps-find {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.ps-seg__label {
  padding: 0 8px 0 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.ps-seg button {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
  transition: background var(--t), color var(--t);
}
.ps-seg button:hover { background: var(--light); }
.ps-seg button.is-active { background: var(--primary); color: var(--white); }
.ps-find select {
  padding: 7px 12px;
  border: 0; border-radius: 50px;
  background: var(--light);
  font: 600 .85rem var(--font-body); color: var(--ink);
  cursor: pointer;
}

/* ---------- Chart table ---------- */
.ps-table-wrap {
  max-height: 72vh;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
.ps-table {
  width: 100%; min-width: 1080px;
  border-collapse: separate; border-spacing: 0;
  font-size: .86rem; text-align: center;
  font-variant-numeric: tabular-nums;
}
.ps-table thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 12px 8px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .84rem; line-height: 1.2;
  transition: background var(--t);
}
.ps-table thead small { font-size: .7rem; font-weight: 600; opacity: .7; }
.ps-table thead th.ps-sticky { left: 0; z-index: 3; }
.ps-table thead th.ps-od-h { background: var(--primary-dark); }

.ps-table tbody th {
  position: sticky; left: 0; z-index: 1;
  min-width: 92px; padding: 9px 14px;
  background: var(--white);
  border-right: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ps-nps { display: block; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--ink); }
.ps-dn  { display: block; font-size: .72rem; color: var(--muted); }

.ps-table tbody td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ps-table tbody td.ps-od { background: #F2F7FB; font-weight: 700; color: var(--primary); cursor: default; }
.ps-table tbody td.ps-na { color: #C5D1DD; cursor: default; }
.ps-table tbody td[data-g="both"] { background: rgba(63,111,150,.05); font-weight: 600; }
.ps-table tbody tr:nth-child(even) th,
.ps-table tbody tr:nth-child(even) td:not(.ps-od) { background-color: #FAFCFE; }

/* Crosshair */
.ps-table tbody tr.is-hover th,
.ps-table tbody tr.is-hover td,
.ps-table tbody td.is-col { background-color: #FFF3E8 !important; }   /* beats zebra stripes */
.ps-table thead th.is-col { background: var(--accent); }
.ps-table tbody td.is-cell { background-color: var(--accent) !important; color: var(--white); font-weight: 700; }

/* Jump-to flash */
.ps-table tbody tr.is-flash th,
.ps-table tbody tr.is-flash td { animation: psFlash 1.6s var(--ease); }
@keyframes psFlash { 0%, 40% { background-color: #FFD9BD; } }

/* Schedule group filter */
.ps-table[data-view="ss"] [data-g="cs"],
.ps-table[data-view="cs"] [data-g="ss"] { display: none; }
.ps-table[data-view="ss"] { min-width: 560px; }
.ps-table[data-view="cs"] { min-width: 980px; }

.ps-legend { display: grid; gap: 8px; margin-top: 20px; }
.ps-legend li { display: flex; gap: 10px; font-size: .88rem; }
.ps-legend i { color: var(--accent); margin-top: 4px; width: 16px; text-align: center; }
.ps-legend b { color: var(--ink); }
.ps-legend a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ---------- Calculator ---------- */
.ps-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 60px;
}
.ps-calc__notes { grid-template-columns: minmax(0, 1fr); margin: 20px 0 0; }
.ps-calc__card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ps-calc__inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ps-calc__inputs label > span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.ps-calc__inputs select {
  width: 100%;
  padding: 12px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--light);
  font: 600 .9rem var(--font-body); color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t);
}
.ps-calc__inputs select:focus { outline: none; border-color: var(--accent); }

.ps-calc__out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ps-calc__out > div { padding: 16px; border-radius: 12px; background: var(--light); }
.ps-calc__out dt {
  font-family: var(--font-head); font-weight: 700; font-size: .7rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.ps-calc__out dd {
  margin-top: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.2;
  color: var(--primary);
}
.ps-calc__out dd small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 600; opacity: .75; }
.ps-calc__out .is-key { background: var(--primary); }
.ps-calc__out .is-key dt { color: #BFD0E0; }
.ps-calc__out .is-key dd { color: var(--white); }
.ps-calc__foot { margin-top: 18px; font-size: .92rem; }
.ps-calc__foot a { color: var(--accent); font-weight: 700; }
.ps-calc__foot a i { transition: transform var(--t); }
.ps-calc__foot a:hover i { transform: translateX(4px); }

/* ---------- Pipe schedule responsive ---------- */
@media (max-width: 1199.98px) {
  .ps-calc__out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pipe-diagram { max-width: 560px; }
  .ps-primer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-calc__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 767.98px) {
  .pipe-diagram { flex-direction: column; align-items: flex-start; }
  .pipe-diagram svg { width: min(240px, 80%); }
  .ps-primer__grid { grid-template-columns: minmax(0, 1fr); }
  .ps-toolbar { justify-content: flex-start; }
  .ps-seg, .ps-find { max-width: 100%; }
  .ps-table-wrap { max-height: 70vh; }
  .ps-calc__card { padding: 22px 18px; }
  .ps-calc__inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
  .ps-hint { display: block; }
}
@media (max-width: 479.98px) {
  .ps-seg button { padding: 7px 10px; font-size: .8rem; }
  .ps-calc__out dd { font-size: 1rem; }
}


/* ==========================================================================
   23. WEIGHT CHART PAGE
   ========================================================================== */

/* ---------- Banner shape shortcuts ---------- */
.wt-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wt-shortcuts a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white); text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.wt-shortcuts a:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); border-color: var(--accent); }
.wt-shortcuts svg { width: 40px; height: 40px; fill: rgba(255,255,255,.12); stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.wt-shortcuts svg .cut { fill: var(--primary); }

/* ---------- Calculator ---------- */
.wt-calc__box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wt-shapes {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--light);
  border-bottom: 1px solid var(--line);
}
.wt-shapes button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 6px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background var(--t), color var(--t);
}
.wt-shapes button:last-child { border-right: 0; }
.wt-shapes button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--t);
}
.wt-shapes svg {
  width: 38px; height: 38px;
  fill: var(--secondary-light); stroke: var(--primary); stroke-width: 3; stroke-linejoin: round;
  transition: fill var(--t), stroke var(--t);
}
.wt-shapes svg .cut { fill: var(--light); }
.wt-shapes button:hover { background: var(--white); }
.wt-shapes button.is-active { background: var(--white); color: var(--primary); }
.wt-shapes button.is-active::after { transform: scaleX(1); }
.wt-shapes button.is-active svg { fill: rgba(240,127,46,.18); stroke: var(--accent); }
.wt-shapes button.is-active svg .cut { fill: var(--white); }

.wt-calc__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  padding: 30px;
}
.wt-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-content: start; }
.wt-field { display: block; }
.wt-field[hidden] { display: none; }
.wt-field--wide { grid-column: 1 / -1; }
.wt-field > span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.wt-field small { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; }
.wt-field input,
.wt-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--light);
  font: 600 .95rem var(--font-body); color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.wt-field input:focus,
.wt-field select:focus { outline: none; border-color: var(--accent); background: var(--white); }

.wt-results {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--light);
}
.wt-out { display: grid; gap: 10px; }
.wt-out > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--white);
}
.wt-out dt { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.wt-out dd { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--primary); text-align: right; }
.wt-out dd small { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); }
.wt-out .is-key { background: var(--primary); }
.wt-out .is-key dt { color: #BFD0E0; }
.wt-out .is-key dd { color: var(--white); font-size: 1.45rem; }
.wt-out .is-key dd small { color: #BFD0E0; }
.wt-formula {
  display: flex; gap: 10px;
  font-family: ui-monospace, "Courier New", monospace; font-size: .82rem; color: var(--ink);
  overflow-wrap: anywhere;
}
.wt-formula i { color: var(--accent); margin-top: 3px; }
.wt-error { padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #B42318; font-size: .88rem; font-weight: 600; }
.wt-quote { align-self: flex-start; }

/* ---------- Ready-reckoner tabs ---------- */
.wt-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 24px;
}
.wt-tabs button {
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.wt-tabs button:hover { border-color: var(--primary); }
.wt-tabs button.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.wt-panel { animation: fadeUp .4s var(--ease); }
.wt-panel__note {
  display: flex; gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem; color: var(--muted);
}
.wt-panel__note i { color: var(--accent); margin-top: 4px; }
.wt-panel__note a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.wt-scroll { max-height: 70vh; background: var(--white); }
.wt-table { min-width: 520px; font-variant-numeric: tabular-nums; }
.wt-table thead th { position: sticky; top: 0; z-index: 1; text-align: center; line-height: 1.25; }
.wt-table thead th:first-child { text-align: left; }
.wt-table thead small { font-weight: 600; opacity: .75; font-size: .72rem; }
.wt-table tbody th {
  background: var(--white);            /* override .spec-table th (navy header style) */
  padding: 11px 16px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); text-align: left;
  border-top: 1px solid var(--line);
}
.wt-table tbody tr:nth-child(even) th { background: var(--light); }
.wt-table tbody td { text-align: center; }
.wt-table tbody td:nth-child(2) { font-weight: 700; color: var(--primary); }
.wt-table tbody tr:hover th,
.wt-table tbody tr:hover td { background: #FFF6EF; }
.wt-matrix { min-width: 860px; }
.wt-matrix tbody td:nth-child(2) { font-weight: 400; color: var(--text); }
.wt-density { min-width: 0; }
.wt-density tbody th { font-family: var(--font-body); font-weight: 600; }

/* ---------- Formulas + density ---------- */
.wt-ref__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: start;
}
.formula-list { display: grid; gap: 10px; margin: 20px 0 24px; }
.formula-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--white);
}
.formula-list b { font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.formula-list code { font-family: ui-monospace, "Courier New", monospace; font-size: .84rem; font-weight: 700; color: var(--primary); }
.wt-disclaimer {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #FFF6EF;
  border: 1px dashed rgba(240,127,46,.5);
  font-size: .86rem;
}
.wt-disclaimer i { color: var(--accent); margin-top: 4px; }
.wt-disclaimer strong { color: var(--ink); }
.wt-ref__density h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.wt-ref__density h3 i { color: var(--accent); }
.wt-ref__density .wt-scroll { max-height: 640px; }

/* ---------- Weight chart responsive ---------- */
@media (max-width: 1199.98px) {
  .wt-shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wt-shapes button { border-bottom: 1px solid var(--line); }
}
@media (max-width: 991.98px) {
  .wt-shortcuts { max-width: 560px; }
  .wt-calc__body { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .wt-ref__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767.98px) {
  .wt-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .wt-shortcuts a { padding: 12px 4px 10px; font-size: .7rem; }
  .wt-shortcuts svg { width: 30px; height: 30px; }
  .wt-shapes { display: flex; overflow-x: auto; scrollbar-width: none; }
  .wt-shapes::-webkit-scrollbar { display: none; }
  .wt-shapes button { flex: 0 0 96px; border-bottom: 0; }
  .wt-calc__body { padding: 18px; gap: 20px; }
  .wt-results { padding: 16px; }
  .wt-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .wt-tabs::-webkit-scrollbar { display: none; }
  .wt-tabs button { flex-shrink: 0; }
  .formula-list li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479.98px) {
  .wt-inputs { grid-template-columns: minmax(0, 1fr); }
  .wt-out dd { font-size: 1.05rem; }
  .wt-out .is-key dd { font-size: 1.2rem; }
}


/* ==========================================================================
   24. STANDARDS & SPECIFICATIONS PAGE
   ========================================================================== */

/* ---------- Banner: standards bodies ---------- */
.std-bodies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.std-bodies li {
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform var(--t), background var(--t);
}
.std-bodies li:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.std-bodies b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--white); }
.std-bodies span { display: block; margin-top: 2px; font-size: .72rem; line-height: 1.35; color: #BFD0E0; }
.std-bodies .is-accent { background: var(--accent); border-color: var(--accent); }
.std-bodies .is-accent span { color: #FFF1E6; }

/* ---------- How to read a specification ---------- */
.spec-anatomy { margin: 0 0 40px; }
.spec-anatomy__code {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 22px;
  padding: 48px 28px 30px;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    var(--primary);
  font-family: ui-monospace, "Courier New", monospace; font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: .04em;
  color: var(--white);
}
.spec-anatomy__code span { position: relative; white-space: nowrap; }
.spec-anatomy__code span[data-n]::before {
  content: attr(data-n);
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-size: .72rem; letter-spacing: 0;
}
.spec-anatomy__code .sep { opacity: .4; }
.spec-anatomy__legend {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  margin-top: 22px;
}
.spec-anatomy__legend li { display: flex; gap: 10px; font-size: .84rem; line-height: 1.5; }
.spec-anatomy__legend b {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-size: .78rem;
}
.spec-anatomy__legend strong { display: block; font-family: var(--font-head); color: var(--ink); }

.spec-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spec-fact {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.spec-fact:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.spec-fact__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--secondary-light); color: var(--primary); font-size: 1.1rem;
}
.spec-fact h3 { font-size: 1.02rem; margin-bottom: 8px; }
.spec-fact p  { font-size: .88rem; }

/* ---------- Directory toolbar ---------- */
.std-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-bottom: 16px;
}
.std-search { position: relative; flex: 1 1 360px; max-width: 560px; }
.std-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.std-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  background: var(--white);
  font: 500 .95rem var(--font-body); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.std-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,127,46,.15); }
.std-count { font-size: .88rem; font-weight: 600; color: var(--muted); }

.std-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.std-chips button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 16px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--ink);
  transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t);
}
.std-chips button span {
  min-width: 24px; padding: 1px 7px;
  border-radius: 50px;
  background: var(--light);
  font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center;
}
.std-chips button:hover { border-color: var(--primary); }
.std-chips button.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.std-chips button.is-active span { background: rgba(255,255,255,.18); color: var(--white); }
.std-chips button.is-empty:not(.is-active) { opacity: .45; }

/* ---------- Directory groups & cards ---------- */
.std-group { margin-bottom: 40px; }
.std-group[hidden], .std-item[hidden] { display: none; }
.std-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.std-group__title i { color: var(--accent); }
.std-group__count {
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--secondary-light);
  font-size: .75rem; font-weight: 700; color: var(--primary);
}
.std-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.std-item {
  display: flex; flex-direction: column;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.std-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.std-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.std-item__code { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.std-item__body {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  background: var(--light); color: var(--primary);
}
.std-item__body--asme { background: #FFF1E6; color: var(--accent-dark); }
.std-item__body--en   { background: #E6F0FA; color: #1E5B94; }
.std-item__body--bs   { background: #EFEAF8; color: #5B3F95; }
.std-item__body--is   { background: #E7F5EC; color: #1F7A43; }
.std-item__body--jis  { background: #FBEAEA; color: #A33A3A; }
.std-item__body--mss  { background: #FFF6DB; color: #8A6300; }
.std-item__body--iso  { background: #E9F2F2; color: #2D6E6E; }
.std-item__title { flex: 1; margin-bottom: 10px; font-size: .88rem; line-height: 1.5; color: var(--ink); }
.std-item__grades {
  display: flex; gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: .8rem; line-height: 1.45; color: var(--muted);
}
.std-item__grades i { color: var(--accent); margin-top: 3px; font-size: .72rem; }

.std-empty {
  margin-bottom: 30px; padding: 40px 24px;
  text-align: center;
  background: linear-gradient(135deg, #FFF6EF, var(--white) 60%);
  border: 2px dashed rgba(240,127,46,.45);
  border-radius: var(--radius-lg);
}
.std-empty[hidden] { display: none; }
.std-empty__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 1.3rem;
}
.std-empty h3 { font-size: 1.2rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.std-empty p { max-width: 640px; margin: 0 auto 20px; }
.std-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.std-note {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border-left: 3px solid var(--accent);
  font-size: .86rem;
}
.std-note i { color: var(--accent); margin-top: 4px; }
.std-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ---------- Organisations ---------- */
.std-org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.std-org p a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.std-org {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.std-org:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.std-org__badge {
  display: inline-grid; place-items: center;
  min-width: 64px; height: 40px; padding: 0 12px; margin-bottom: 16px;
  border-radius: 10px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800;
}
.std-org__badge--accent { background: var(--accent); }
.std-org h3 { font-size: 1rem; margin-bottom: 8px; }
.std-org p  { font-size: .86rem; }

/* ---------- Standards responsive ---------- */
@media (max-width: 1199.98px) {
  .std-list, .spec-facts, .std-org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-anatomy__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .std-bodies { max-width: 560px; }
}
@media (max-width: 767.98px) {
  .std-list, .spec-facts, .std-org-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-anatomy__legend { grid-template-columns: minmax(0, 1fr); }
  .spec-anatomy__code { justify-content: flex-start; padding: 44px 20px 22px; gap: 34px 16px; }
  .std-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .std-chips::-webkit-scrollbar { display: none; }
  .std-chips button { flex-shrink: 0; }
  .std-search { flex-basis: 100%; }
}
@media (max-width: 479.98px) {
  .std-bodies { gap: 8px; }
  .std-bodies li { padding: 12px 8px; text-align: center; }
  .std-bodies b { font-size: 1.05rem; }
  .std-bodies span { display: none; }
}


/* ==========================================================================
   25. PRODUCT PAGES (pipes & tubes, and the other product pages)
   ========================================================================== */

/* ---------- Banner ---------- */
.pt-banner__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.pt-hero { position: relative; margin: 0; }
.pt-hero__frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.pt-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.pt-hero__card {
  display: grid; gap: 8px;
  margin-top: -26px; margin-left: 18px; margin-right: 26px;
  padding: 18px 20px;
  position: relative; z-index: 1;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
}
.pt-hero__card span { display: flex; gap: 10px; font-size: .84rem; color: #C9D7E4; }
.pt-hero__card b {
  flex-shrink: 0; min-width: 52px;
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Page rhythm ---------- */
.pt-page { padding: 56px 0 20px; }
.pt-section { padding: 30px 0 56px; }
.pt-section + .pt-section { border-top: 1px solid var(--line); padding-top: 56px; }
.pt-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 10px; }
.pt-h3 i { color: var(--accent); }
.pt-lead { margin-bottom: 20px; }
.pt-note {
  display: flex; gap: 10px;
  margin-top: 14px;
  font-size: .82rem; color: var(--muted);
}
.pt-note i { color: var(--accent); margin-top: 4px; }
.pt-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.pt-more { margin-top: 20px; text-align: center; }
.pt-more a { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.pt-more a:hover { color: var(--accent); }
.pt-more i { transition: transform var(--t); }
.pt-more a:hover i { transform: translateX(4px); }

/* ---------- Overview ---------- */
.pt-intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 50px; align-items: start;
  margin-bottom: 50px;
}
.pt-intro p { margin-bottom: 16px; }
.pt-intro strong { color: var(--ink); }
.pt-usp { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.pt-facts { margin: 0; }

.pt-table { min-width: 620px; }
.pt-table tbody th { background: var(--light); color: var(--ink); font-family: var(--font-head); text-align: left; padding: 14px 16px; }
.pt-table tbody td { vertical-align: top; }
.pt-grade-table { min-width: 860px; }
.pt-grade-table tbody th { width: 21%; }
.pt-grade-table tbody td:nth-of-type(1) { font-weight: 600; color: var(--primary); }
.pt-grade-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Types ---------- */
.pt-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pt-type {
  position: relative;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pt-type:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pt-type__tag {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .08em;
}
.pt-type:nth-child(even) .pt-type__tag { background: var(--accent); }
.pt-type h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pt-type p  { font-size: .9rem; margin-bottom: 14px; }
.pt-type ul { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pt-type li { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.pt-type li b { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }

/* ---------- Sizes ---------- */
.pt-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pt-spec {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.pt-spec h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 12px; }
.pt-spec h3 i { color: var(--accent); }
.pt-spec dl > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pt-spec dl > div:last-child { border-bottom: 0; }
.pt-spec dt { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pt-spec dd { margin-top: 3px; font-size: .9rem; color: var(--ink); }
.pt-chips li { font-size: .82rem; }

/* ---------- Standards ---------- */
.pt-std-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-std {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: 10px;
  transition: transform var(--t), border-left-color var(--t), box-shadow var(--t);
}
.pt-std:hover { transform: translateY(-3px); border-left-color: var(--accent); box-shadow: var(--shadow-sm); }
.pt-std b { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--primary); margin-bottom: 4px; }
.pt-std span { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------- Timeline / tests / packing reuse ---------- */
.pt-timeline { margin-top: 10px; }
.pt-test-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- How to order + FAQ ---------- */
.pt-order { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.pt-checklist { display: grid; gap: 10px; }
.pt-checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pt-checklist b {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-size: .8rem;
}
.pt-checklist strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.pt-checklist div { font-size: .85rem; color: var(--muted); line-height: 1.5; }

.faq-item {
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  list-style: none;
  transition: background var(--t), color var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f067";                       /* plus */
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem;
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--light); color: var(--primary);
  transition: background var(--t), color var(--t), transform var(--t);
}
.faq-item[open] summary { background: var(--light); color: var(--primary); }
.faq-item[open] summary::after { content: "\f068"; background: var(--accent); color: var(--white); }
.faq-item summary:hover::after { background: var(--accent); color: var(--white); }
.faq-item p { padding: 0 18px 18px; font-size: .9rem; }

/* ---------- Related products ---------- */
.pt-related { margin-top: 50px; }
.pt-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.pt-related__grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.pt-related__grid i {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--secondary-light); color: var(--primary);
  transition: background var(--t), color var(--t);
}
.pt-related__grid a:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); color: var(--primary); }
.pt-related__grid a:hover i { background: var(--accent); color: var(--white); }


/* ---------- Surface finish gallery (sheets & plates) ----------
   Swatches are drawn in CSS – no photographs needed. */
.fin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fin-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.fin-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.fin-card > div { padding: 18px 20px 20px; }
.fin-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 1.05rem; margin-bottom: 8px; }
.fin-card h3 small { font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: none; }
.fin-card p { font-size: .86rem; margin-bottom: 12px; }
.fin-use {
  display: block;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: .78rem; color: var(--secondary); font-weight: 600;
}

.fin-swatch { display: block; height: 92px; border-bottom: 1px solid var(--line); }
/* No.1 – hot rolled, annealed, pickled: dull and slightly uneven */
.fin-swatch--no1 {
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,.05) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, #B9C0C6, #9AA3AA 45%, #AEB6BC);
}
/* 2D – cold rolled, uniform matte */
.fin-swatch--2d { background: linear-gradient(160deg, #C7CDD2, #AFB7BE 50%, #C2C9CF); }
/* 2B – smooth, semi-reflective */
.fin-swatch--2b {
  background:
    linear-gradient(105deg, rgba(255,255,255,.55) 0 18%, transparent 42%),
    linear-gradient(160deg, #D7DEE4, #AFBAC4 55%, #CBD3DA);
}
/* BA – bright annealed, highly reflective */
.fin-swatch--ba {
  background:
    linear-gradient(100deg, rgba(255,255,255,.85) 0 12%, rgba(255,255,255,.15) 26%, transparent 45%),
    linear-gradient(160deg, #EDF2F6, #9FB0BF 55%, #E4EAF0);
}
/* No.4 – brushed satin, directional lines */
.fin-swatch--no4 {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, rgba(0,0,0,.05) 1px 3px),
    linear-gradient(160deg, #C9D0D6, #A7B0B8);
}
/* HL – hairline, finer and longer lines */
.fin-swatch--hl {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 1px, rgba(0,0,0,.04) 1px 6px),
    linear-gradient(160deg, #D2D9DF, #B0B9C1);
}
/* No.8 – mirror */
.fin-swatch--mirror {
  background:
    linear-gradient(115deg, rgba(255,255,255,.95) 0 10%, rgba(120,140,160,.25) 26%, rgba(255,255,255,.8) 40%, rgba(90,110,130,.35) 62%, rgba(255,255,255,.9) 84%),
    linear-gradient(160deg, #E8EEF4, #6E7F90);
}
/* Chequered – raised diamond pattern */
.fin-swatch--cheq {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 4px, transparent 4px 14px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 4px, transparent 4px 14px),
    linear-gradient(160deg, #C3CAD1, #A3ACB4);
}

/* Wide spec card (weight quick reference) */
.pt-spec--wide { grid-column: 1 / -1; }
.pt-spec--wide h3 small { font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--muted); }
.pt-spec--wide .wt-table { min-width: 420px; }

@media (max-width: 1199.98px) { .fin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .fin-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Fitting catalogue (drawn in SVG) ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fit-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.fit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.fit-fig {
  margin: 0; padding: 18px 20px 10px;
  background:
    linear-gradient(rgba(63,111,150,.07) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(63,111,150,.07) 1px, transparent 1px) 0 0 / 22px 100%,
    var(--light);
  border-bottom: 1px solid var(--line);
}
.fit-fig svg { display: block; width: 100%; height: auto; max-height: 130px; }
/* Pipe runs: thick stroke, rounded ends */
.fit-pipe { fill: none; stroke: var(--secondary); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
/* Solid bodies: reducers, caps, outlets */
.fit-body { fill: var(--secondary-light); stroke: var(--primary); stroke-width: 3.5; stroke-linejoin: round; }
/* End markers / weld bevels */
.fit-end { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.fit-card:hover .fit-pipe { stroke: var(--primary); }
.fit-card:hover .fit-body { fill: #FFF1E6; stroke: var(--accent-dark); }

.fit-card > div { padding: 16px 20px 20px; }
.fit-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.fit-card p  { font-size: .86rem; margin-bottom: 12px; }
.fit-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--light);
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  color: var(--primary);
}

/* Three-across variant of the type cards */
.pt-type-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1199.98px) { .fit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pt-type-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .fit-grid { grid-template-columns: minmax(0, 1fr); } .pt-type-grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Flange cross-section drawings ---------- */
.fl-body   { fill: var(--secondary-light); stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; }
.fl-face   { fill: var(--accent); }                                   /* gasket seating face */
.fl-hole   { fill: var(--white); stroke: var(--primary); stroke-width: 2.5; }   /* bolt hole */
.fl-bore   { fill: var(--white); stroke: var(--primary); stroke-width: 2.5; }
.fl-pipe2  { fill: #E6ECF2; stroke: var(--secondary); stroke-width: 2; }        /* mating pipe */
.fl-stub   { fill: #E6ECF2; stroke: var(--secondary); stroke-width: 2.5; stroke-linejoin: round; }
.fl-weld   { fill: var(--accent); }                                   /* fillet weld */
.fl-thread { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.fl-groove { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.fl-tap    { fill: var(--white); stroke: var(--accent); stroke-width: 2.5; }
.fl-cl     { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 10 4 2 4; }
.fl-dim    { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.fl-note   { font-family: var(--font-head); font-size: 9px; font-weight: 700; fill: var(--muted); }
.fl-grid .fit-fig svg { max-height: 150px; }
.fit-card:hover .fl-body { fill: #FFF1E6; stroke: var(--accent-dark); }

/* Face type cards */
.face-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.face-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.face-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.face-card svg {
  display: block; width: 100%; max-height: 90px; margin-bottom: 14px;
  padding: 10px;
  background: var(--light);
  border-radius: var(--radius-sm);
}
.face-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.face-card p  { font-size: .86rem; }

.fl-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }

@media (max-width: 1199.98px) { .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .face-grid, .fl-spec-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bar section drawings (rods, bar & wire) ---------- */
.fl-arrow { fill: var(--accent); }                               /* dimension arrowheads */
.fit-wire { fill: none; stroke: var(--secondary); stroke-width: 4; stroke-linecap: round; }
.fit-card:hover .fit-wire { stroke: var(--accent); }

/* ---------- Other products: mixed catalogue ---------- */
.op-grid .fit-fig svg { max-height: 120px; }
.op-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.op-chips__label { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--ink); }
.op-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
@media (max-width: 767.98px) { .op-spec-grid { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Product page responsive ---------- */
@media (max-width: 1199.98px) {
  .pt-type-grid, .pt-std-grid, .pt-test-grid, .pt-app-grid, .pt-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pt-intro, .pt-order { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pt-hero { max-width: 560px; }
  .pt-page { padding-top: 40px; }
  .pt-section { padding-bottom: 44px; }
  .pt-section + .pt-section { padding-top: 44px; }
}
@media (max-width: 767.98px) {
  .pt-type-grid, .pt-spec-grid, .pt-std-grid, .pt-test-grid, .pt-app-grid, .pt-related__grid { grid-template-columns: minmax(0, 1fr); }
  .pt-usp { grid-template-columns: minmax(0, 1fr); }
  .pt-hero__card { margin-inline: 12px; }
  .faq-item summary { font-size: .92rem; padding: 14px; }
  .faq-item p { padding: 0 14px 14px; }
}


/* ==========================================================================
   26. CONTACT PAGE
   ========================================================================== */

/* ---------- Banner quick contact ---------- */
.cu-quick { display: grid; gap: 12px; }
.cu-quick a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.cu-quick a:hover { transform: translateX(6px); background: rgba(255,255,255,.12); border-color: var(--accent); }
.cu-quick__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: var(--white); font-size: 1.2rem;
}
.cu-quick__icon--wa { background: var(--whatsapp); }
.cu-quick small { display: block; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: #BFD0E0; }
.cu-quick b { font-family: var(--font-head); font-size: 1rem; }

/* ---------- Contact cards ---------- */
.cu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cu-card {
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cu-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px;
  background: var(--secondary-light); color: var(--primary); font-size: 1.2rem;
}
.cu-card--primary { border-top: 3px solid var(--accent); }
.cu-card--primary .cu-card__icon { background: var(--accent); color: var(--white); }
.cu-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.cu-card__name { font-family: var(--font-head); font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cu-card__list { display: grid; gap: 10px; margin-bottom: 14px; }
.cu-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; overflow-wrap: anywhere; }
.cu-card__list i { color: var(--accent); margin-top: 4px; }
.cu-card__list a { color: var(--ink); font-weight: 600; }
.cu-card__list a:hover { color: var(--accent); }
.cu-card__list span { color: var(--muted); }
.cu-card__note { margin-top: auto; font-size: .82rem; color: var(--muted); }
.cu-card__address { font-style: normal; font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }

/* ---------- Enquiry builder ---------- */
.cu-builder {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cu-builder__form { padding: 30px; }
.cu-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cu-fields--you {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.cu-fields__title {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink);
}
.cu-fields__title i { color: var(--accent); }
.cu-fields__title small { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.cu-field { display: block; }
.cu-field--wide { grid-column: 1 / -1; }
.cu-field > span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.cu-field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cu-field input,
.cu-field select,
.cu-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--light);
  font: 500 .92rem var(--font-body); color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.cu-field textarea { resize: vertical; min-height: 84px; }
.cu-field input:focus,
.cu-field select:focus,
.cu-field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }

.cu-builder__preview {
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--light);
  border-left: 1px solid var(--line);
}
.cu-builder__preview h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.cu-builder__preview h3 i { color: var(--accent); }
.cu-preview {
  flex: 1;
  min-height: 190px; max-height: 320px; overflow: auto;
  margin: 0 0 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, "Courier New", monospace; font-size: .82rem; line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.cu-hint { display: flex; gap: 8px; margin-bottom: 14px; font-size: .8rem; color: var(--accent-dark); }
.cu-hint[hidden] { display: none; }
.cu-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cu-privacy { display: flex; gap: 8px; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.cu-privacy i { color: var(--secondary); margin-top: 3px; }

/* ---------- Visit / map ---------- */
.cu-visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.cu-map {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--light);
}
.cu-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.cu-visit__info { display: grid; gap: 20px; align-content: start; }
.cu-info-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cu-info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.cu-info-card h3 i { color: var(--accent); }
.cu-hours > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.cu-hours > div:last-child { border-bottom: 0; }
.cu-hours dt { color: var(--muted); }
.cu-hours dd { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.cu-hours .is-closed { color: var(--accent); }
.cu-directions { display: grid; gap: 12px; margin-bottom: 16px; }
.cu-directions li { display: flex; gap: 12px; font-size: .88rem; }
.cu-directions i { color: var(--accent); margin-top: 4px; width: 18px; text-align: center; }
.cu-directions b { font-family: var(--font-head); color: var(--ink); }

/* ---------- Next steps + FAQ ---------- */
.cu-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.cu-step {
  position: relative;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cu-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cu-step > b {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 800;
}
.cu-step:nth-child(even) > b { background: var(--accent); }
.cu-step h3 { font-size: 1rem; margin-bottom: 8px; }
.cu-step p  { font-size: .88rem; }
.cu-faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

/* ---------- Contact page responsive ---------- */
@media (max-width: 1199.98px) {
  .cu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .cu-quick { max-width: 520px; }
  .cu-builder, .cu-visit { grid-template-columns: minmax(0, 1fr); }
  .cu-builder__preview { border-left: 0; border-top: 1px solid var(--line); }
  .cu-map { min-height: 320px; }
  .cu-map iframe { min-height: 320px; }
  .cu-faq__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .cu-grid { grid-template-columns: minmax(0, 1fr); }
  .cu-steps { grid-template-columns: minmax(0, 1fr); }
  .cu-fields { grid-template-columns: minmax(0, 1fr); }
  .cu-builder__form, .cu-builder__preview { padding: 22px 18px; }
  .cu-actions .btn { flex: 1 1 100%; }
}


/* ==========================================================================
   27. LANDING PAGES (products, technical info) & 404
   ========================================================================== */
.hub-grades { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.hub-grades li {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--light);
  border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--primary);
}
.product-card .hub-grades + .link-btn { margin-top: auto; }
.hub-mat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.selector-card { display: block; }
a.selector-card h3 { transition: color var(--t); }
a.selector-card:hover h3 { color: var(--accent); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.hub-card {
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hub-card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 20px;
  border-radius: 16px;
  background: var(--primary); color: var(--white); font-size: 1.4rem;
  transition: background var(--t), transform var(--t);
}
.hub-card:hover .hub-card__icon { background: var(--accent); transform: rotate(-6deg); }
.hub-card--accent { border-top: 3px solid var(--accent); }
.hub-card--accent .hub-card__icon { background: var(--accent); }
.hub-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.hub-card > p { font-size: .92rem; margin-bottom: 16px; }
.hub-card ul { display: grid; gap: 8px; margin-bottom: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.hub-card li { display: flex; gap: 10px; font-size: .86rem; color: var(--ink); }
.hub-card li i { color: var(--accent); margin-top: 4px; font-size: .74rem; }
.hub-card .link-btn { margin-top: auto; }

/* 404 */
.nf { text-align: center; padding-bottom: 120px; }
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.nf__code {
  font-family: var(--font-head); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 16vw, 11rem);
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.25);
}
.nf .page-banner__lead { margin-inline: auto; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf__contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.nf__contact .cta-btn { border: 1px solid var(--line); }

@media (max-width: 1199.98px) { .hub-mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .hub-grid, .nf__contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479.98px)  { .hub-mat-grid { grid-template-columns: minmax(0, 1fr); } }


/* ==========================================================================
   17. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
