/* ==========================================================================
   POTENCE CONTROLS — GLOBAL STYLESHEET
   Design System v1.0
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Brand Colors — sampled from PCPL logo (royal blue + cyan) */
  --pc-navy: #134E9B;        /* brand royal blue (primary) */
  --pc-navy-dark: #0A2C5E;   /* deep navy for dark sections / footer */
  --pc-navy-light: #2A6BC0;  /* lighter royal blue */
  --pc-cyan: #00A5DE;        /* brand cyan accent */
  --pc-cyan-dark: #0086BC;
  --pc-cyan-light: #4FC3F0;

  /* Brand-tinted background gradients (white-forward, clean) */
  --grad-light: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  --grad-light-soft: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  --grad-brand: linear-gradient(135deg, var(--pc-navy-dark) 0%, var(--pc-navy) 55%, var(--pc-navy-light) 100%);

  /* Neutrals */
  --pc-white: #ffffff;
  --pc-off-white: #f3f7fc;
  --pc-gray-50: #f4f7fb;
  --pc-gray-100: #e4ebf4;
  --pc-gray-200: #d0dae8;
  --pc-gray-300: #a6b4c8;
  --pc-gray-500: #66748a;
  --pc-gray-700: #3c465a;
  --pc-gray-900: #18202f;

  /* Accents */
  --pc-success: #0fa67a;
  --pc-warning: #f59e0b;

  /* Typography */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-16: 120px;

  /* Borders / Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 42, 94, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 42, 94, 0.10);
  --shadow-lg: 0 12px 40px rgba(10, 42, 94, 0.14);
  --shadow-xl: 0 24px 64px rgba(10, 42, 94, 0.18);

  /* Container */
  --container-max: 1280px;
  --container-pad: 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pc-gray-700);
  background: var(--pc-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--pc-cyan-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pc-navy); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--pc-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pc-cyan-dark);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--pc-cyan);
  color: var(--pc-white);
}
.btn-primary:hover {
  background: var(--pc-navy);
  color: var(--pc-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--pc-navy);
  color: var(--pc-white);
}
.btn-secondary:hover {
  background: var(--pc-cyan);
  color: var(--pc-white);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--pc-navy);
  color: var(--pc-navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--pc-navy);
  color: var(--pc-white);
}
.btn-ghost {
  color: var(--pc-cyan-dark);
  padding: 8px 0;
}
.btn-ghost:hover {
  color: var(--pc-navy);
  gap: 12px;
}
.btn-large { padding: 18px 36px; font-size: 1rem; }
.btn-arrow::after { content: "→"; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* --- Top Bar --- */
.topbar {
  background: var(--pc-navy-dark);
  color: var(--pc-gray-100);
  font-size: 0.8125rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: var(--pc-cyan-light); font-weight: 500; }
.topbar-links a:hover { color: var(--pc-white); }
@media (max-width: 768px) {
  .topbar-info { font-size: 0.75rem; gap: 12px; }
  .topbar-links { display: none; }
}

/* --- Header / Navigation --- */
.header {
  background: var(--pc-white);
  border-bottom: 1px solid var(--pc-gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  gap: 20px;
}
.header-logo img { height: 48px; width: auto; }
/* Right-side action group: Become a Distributor + Request Quote */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (max-width: 1024px) { .header-actions { display: none; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pc-navy);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { background: var(--pc-gray-50); color: var(--pc-cyan-dark); }
.nav-link .caret { font-size: 0.7em; opacity: 0.6; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--pc-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  border: 1px solid var(--pc-gray-100);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--pc-gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-dropdown a:hover {
  background: var(--pc-cyan);
  color: var(--pc-white);
}

.mobile-toggle { display: none; padding: 8px; background: none; margin-left: auto; }
.mobile-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--pc-navy); margin: 5px 0; border-radius: 2px;
  transition: all 0.25s ease;
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .header-cta { display: none; }
}

/* --- Hero --- */
.hero {
  /* Placeholder stock image behind a brand-tinted gradient overlay.
     Swap assets/images/hero-bg.jpg for a real industrial/plant photo. */
  background:
    linear-gradient(135deg, rgba(10,44,94,0.86) 0%, rgba(19,78,155,0.78) 50%, rgba(42,107,192,0.70) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--pc-white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0, 174, 239, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { color: var(--pc-white); margin-bottom: 24px; }
.hero h1 .accent { color: var(--pc-cyan-light); }
.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero .eyebrow { color: var(--pc-cyan-light); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-trust-item .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--pc-cyan-light);
  line-height: 1;
}
.hero-trust-item .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero visual card */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.hero-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc-cyan-light);
}
.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4ade80;
}
.hero-card-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-card-readings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-reading {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 2px solid var(--pc-cyan);
}
.hero-reading .label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.hero-reading .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--pc-white);
  font-weight: 600;
}
.hero-reading .unit { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-left: 4px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 72px; }
}

/* --- Section base --- */
section { padding: var(--space-12) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-8); }
.section-header.left { text-align: left; margin-left: 0; }
.section-header p {
  font-size: 1.0625rem;
  color: var(--pc-gray-500);
  margin-top: 12px;
}

/* --- Clients strip --- */
.clients-strip {
  background: var(--grad-light-soft);
  padding: 56px 0;
  border-top: 1px solid var(--pc-gray-100);
  border-bottom: 1px solid var(--pc-gray-100);
}
.clients-strip h4 {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pc-gray-500);
  margin-bottom: 32px;
  font-weight: 500;
}
.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pc-gray-300);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  filter: grayscale(1);
  opacity: 0.7;
}
.client-logo:hover { color: var(--pc-navy); opacity: 1; }

/* --- Client logo auto-scroll marquee --- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 70s linear infinite;
}
.logo-track img {
  height: 58px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  margin-right: 72px;
  flex: none;
}
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 600px) { .logo-track img { height: 34px; margin-right: 44px; } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

/* --- Products grid --- */
.products-grid {
  display: grid;
  /* auto-fill (not auto-fit) keeps empty column tracks, so cards stay the SAME
     width whether a parameter has 2 products or 11 — matching the pH/ORP cards. */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  grid-auto-rows: 1fr;   /* every row equal height → all cards the same size */
}
.product-card {
  height: 100%;          /* fill the equal-height grid cell */
  background: var(--pc-white);
  border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pc-cyan);
}
.product-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--pc-gray-50), var(--pc-gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Product artwork sits centred and fully visible inside its box, with 5px breathing room */
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  display: block;
}
.product-card-image .placeholder-svg { opacity: 0.5; transition: transform 0.4s ease; }
.product-card:hover .placeholder-svg { transform: scale(1.08); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pc-cyan);
  color: var(--pc-white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { margin-bottom: 8px; font-size: 1.0625rem; }
.product-card-desc { font-size: 0.875rem; color: var(--pc-gray-500); margin-bottom: 16px; flex: 1; }
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--pc-gray-50);
  border-radius: var(--radius-sm);
}
.product-spec { font-size: 0.75rem; }
.product-spec .label { color: var(--pc-gray-500); display: block; }
.product-spec .value {
  font-family: var(--font-mono);
  color: var(--pc-navy);
  font-weight: 600;
}
/* Principal (brand / OEM) line on the card */
.product-principal {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-cyan-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
/* First-two-highlights list on the card */
.product-highlights { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.product-highlights li {
  display: flex; gap: 8px;
  font-size: 0.8125rem; color: var(--pc-gray-700);
  padding: 3px 0;
}
.product-highlights li::before { content: '✓'; color: var(--pc-cyan); font-weight: 700; flex-shrink: 0; }
.product-highlights li.hl-more::before { content: ''; }
.product-highlights li.hl-more { padding-top: 2px; }
.product-highlights li.hl-more a { color: var(--pc-cyan-dark); font-weight: 600; font-size: 0.8125rem; }
.product-highlights li.hl-more a:hover { color: var(--pc-navy); }

.product-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
  margin-top: auto;   /* pin footer to the bottom of every card */
  border-top: 1px solid var(--pc-gray-100);
}
/* Identical Details / Get Quote buttons */
.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--pc-navy);
  color: var(--pc-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.product-cta:hover { background: var(--pc-cyan); color: var(--pc-white); }
.product-link {
  color: var(--pc-cyan-dark);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-link:hover { color: var(--pc-navy); gap: 8px; }
.product-quote-btn {
  background: var(--pc-navy);
  color: var(--pc-white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.product-quote-btn:hover { background: var(--pc-cyan); color: var(--pc-white); }

/* Whole-card click target (keeps the Get Quote button independently clickable) */
.product-card { position: relative; }
.product-card .stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card .product-quote-btn { position: relative; z-index: 2; }

/* --- Industries grid --- */
/* Tightened gap between the portfolio CTA and the "Sectors We Serve" header */
.portfolio-section { padding-bottom: var(--space-8); }
.industries-section { background: var(--grad-light); padding-top: var(--space-8); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industries-grid { grid-template-columns: 1fr; } }

/* Home 'Our Portfolio' — 2 rows of 2, whole card clickable */
.portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { color: inherit; text-decoration: none; }
.portfolio-card:hover { color: inherit; }
.portfolio-card .product-card-image { height: 180px; }
/* Portfolio cards carry photographs, not product cut-outs: fill the card edge
   to edge rather than letterboxing inside 5px of padding.
   Absolutely positioned so that while the photo is still lazy-loading it does
   not sit beside the fallback illustration and squash it — it simply covers
   the illustration once it arrives. */
.portfolio-card .product-card-image { position: relative; }
.portfolio-card .product-card-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  padding: 0;
}
.portfolio-card .portfolio-cta {
  display: inline-block; margin-top: auto; padding-top: 8px;
  color: var(--pc-cyan-dark); font-family: var(--font-display);
  font-weight: 700; font-size: 0.9375rem;
}
.portfolio-card:hover .portfolio-cta { color: var(--pc-navy); }
.portfolio-card:hover h4 { color: var(--pc-cyan-dark); }
.industry-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.industry-card:hover {
  background: var(--pc-navy);
  color: var(--pc-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.industry-card:hover h4 { color: var(--pc-white); }
.industry-card:hover .industry-icon { color: var(--pc-cyan-light); }
.industry-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--pc-cyan);
  transition: color 0.3s ease;
}
.industry-card h4 { margin-bottom: 4px; font-size: 1rem; transition: color 0.3s ease; }
.industry-card p { font-size: 0.8125rem; margin: 0; opacity: 0.7; }

/* --- Why Us section --- */
.why-us {
  background: linear-gradient(135deg, var(--pc-navy) 0%, var(--pc-navy-dark) 100%);
  color: var(--pc-white);
}
.why-us h2 { color: var(--pc-white); }
.why-us .section-header p { color: rgba(255,255,255,0.7); }
.why-us .eyebrow { color: var(--pc-cyan-light); }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 900px) { .why-us-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-us-grid { grid-template-columns: 1fr; } }
.why-card {
  position: relative;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.why-card:hover {
  background: rgba(0, 174, 239, 0.08);
  border-color: var(--pc-cyan);
  transform: translateY(-4px);
}
.why-card-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pc-cyan-light);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.why-card h4 { color: var(--pc-white); margin-bottom: 0; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.9375rem; margin: 0; }

/* Strengths: show only the title by default; reveal body text on hover.
   Fixed min-height keeps the grid from shifting when text appears. */
.why-us .why-card { min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.why-us .why-card p {
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .why-us .why-card:hover p { opacity: 1; max-height: 240px; margin-top: 14px; }
}
.why-us .why-card[aria-expanded="true"] p { opacity: 1; max-height: 240px; margin-top: 14px; }
.why-us .why-card { cursor: pointer; }
.why-us .why-card:focus-visible { outline: 2px solid var(--pc-cyan); outline-offset: 3px; }
@media (max-width: 768px) {
  /* Mobile: title only until tapped. The copy stays in the DOM (readable by
     search engines and screen readers) and expands on tap. */
  .why-us .why-card { min-height: 0; padding-right: 52px; }
  .why-us .why-card p { opacity: 0; max-height: 0; }
  .why-us .why-card[aria-expanded="true"] p { opacity: 1; max-height: 400px; margin-top: 14px; }
  /* chevron affordance so the card reads as tappable */
  .why-us .why-card::after {
    content: ""; position: absolute; right: 24px; top: 34px;
    width: 10px; height: 10px; border-right: 2px solid var(--pc-cyan-light);
    border-bottom: 2px solid var(--pc-cyan-light);
    transform: rotate(45deg); transition: transform 0.3s ease;
  }
  .why-us .why-card[aria-expanded="true"]::after { transform: rotate(-135deg); }
}

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--pc-cyan-dark), var(--pc-cyan));
  color: var(--pc-white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 { color: var(--pc-white); margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.0625rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--pc-navy); }
.cta-banner .btn-primary:hover { background: var(--pc-white); color: var(--pc-navy); }
.cta-banner .btn-outline { border-color: var(--pc-white); color: var(--pc-white); }
.cta-banner .btn-outline:hover { background: var(--pc-white); color: var(--pc-cyan-dark); }

@media (max-width: 768px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-buttons { justify-content: center; }
}

/* --- Testimonial / Quote --- */
.testimonial-section { background: var(--grad-light); }
.testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--pc-white);
  padding: 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 24px; left: 32px;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--pc-cyan);
  opacity: 0.15;
  font-weight: 700;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pc-navy);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-navy), var(--pc-cyan));
  display: flex; align-items: center; justify-content: center;
  color: var(--pc-white);
  font-weight: 700;
  font-family: var(--font-display);
}
.testimonial-author-info .name { font-weight: 700; color: var(--pc-navy); font-family: var(--font-display); }
.testimonial-author-info .role { font-size: 0.875rem; color: var(--pc-gray-500); }
@media (max-width: 600px) {
  .testimonial-card { padding: 32px 24px; }
  .testimonial-quote { font-size: 1.125rem; }
}

/* --- Footer --- */
.footer {
  background: var(--pc-navy-dark);
  color: var(--pc-gray-200);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo { display: inline-block; background: var(--pc-white); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.footer-logo img { height: 48px; width: auto; display: block; }
.footer-about p { font-size: 0.9375rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--pc-white);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--pc-cyan); transform: translateY(-2px); }
.footer h5 {
  color: var(--pc-white);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  transition: all 0.15s ease;
}
.footer-links a:hover { color: var(--pc-cyan-light); padding-left: 4px; }
.footer-contact { font-size: 0.9375rem; color: rgba(255,255,255,0.65); }
.footer-contact p { margin-bottom: 12px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--pc-cyan-light); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Floating WhatsApp / Quote button --- */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-cta a {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pc-success);
  color: var(--pc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 166, 122, 0.4);
  transition: all 0.25s ease;
}
.floating-cta a:hover { transform: scale(1.1); }
.floating-cta a.quote { background: var(--pc-navy); box-shadow: 0 8px 24px rgba(10, 42, 94, 0.35); }

/* --- Page hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--pc-navy-dark), var(--pc-navy));
  color: var(--pc-white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 30%, transparent);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { color: var(--pc-white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.125rem; }
.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--pc-cyan-light); }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pc-navy);
  margin-bottom: 6px;
}
.form-label .req { color: #e11d48; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--pc-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--pc-gray-900);
  background: var(--pc-white);
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--pc-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s ease both; }
.animate-in-1 { animation-delay: 0.1s; }
.animate-in-2 { animation-delay: 0.2s; }
.animate-in-3 { animation-delay: 0.3s; }

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--pc-navy);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  color: var(--pc-white);
  font-size: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.mobile-menu a {
  display: block;
  color: var(--pc-white);
  padding: 14px 0;
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .submenu a {
  padding-left: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

/* ==========================================================================
   ADDITIONS — distributor nav, ratings, team, products layout, product page
   ========================================================================== */

/* --- Distributor nav button — styled identically to the .btn-primary CTA --- */
.nav-link.nav-distributor {
  background: var(--pc-cyan);
  color: var(--pc-white);
  margin-left: 6px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: none;
}
.nav-link.nav-distributor:hover {
  background: var(--pc-navy);
  color: var(--pc-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Star rating --- */
.rating-stars { display: inline-flex; gap: 3px; color: #f5a623; line-height: 1; }
.rating-stars svg { width: 20px; height: 20px; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rating-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--pc-navy);
  font-size: 1.125rem;
}
.rating-count { font-size: 0.875rem; color: var(--pc-gray-500); }

/* --- Meet the Team grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.team-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--pc-cyan); }
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pc-navy), var(--pc-cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
}
.team-card-body { padding: 22px 18px; }
.team-card-body h4 { margin-bottom: 2px; font-size: 1.0625rem; }
.team-role { color: var(--pc-cyan-dark); font-weight: 600; font-size: 0.875rem; font-family: var(--font-display); margin-bottom: 10px; }
.team-bio { font-size: 0.875rem; color: var(--pc-gray-500); margin: 0; }
.team-social { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.team-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pc-gray-50); color: var(--pc-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; transition: all 0.2s ease;
}
.team-social a:hover { background: var(--pc-cyan); color: #fff; }

/* --- Products: sticky parameter column + featured panel --- */
.products-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.param-sidebar {
  position: sticky;
  top: 96px;
  background: var(--pc-white);
  border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.param-sidebar-head {
  padding: 18px 20px;
  background: var(--grad-brand);
  color: #fff;
}
.param-sidebar-head .eyebrow { color: var(--pc-cyan-light); margin: 0 0 4px; }
.param-sidebar-head h3 { color: #fff; font-size: 1.125rem; margin: 0; }
.param-group-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pc-gray-500);
  padding: 16px 20px 6px;
}
.param-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pc-navy);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.param-nav-item:hover { background: var(--pc-gray-50); color: var(--pc-cyan-dark); }
.param-nav-item.active {
  background: linear-gradient(90deg, rgba(0,165,222,0.10), transparent);
  border-left-color: var(--pc-cyan);
  color: var(--pc-cyan-dark);
}
.param-nav-item .count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pc-gray-500);
  background: var(--pc-gray-50);
  padding: 2px 8px;
  border-radius: 100px;
}
.param-nav-item.active .count { background: var(--pc-cyan); color: #fff; }

.products-panel { min-height: 400px; }
.param-panel { display: none; animation: fadeUp 0.4s ease both; }
.param-panel.active { display: block; }
.param-panel-head { margin-bottom: 24px; }
.param-panel-head h2 { margin-bottom: 6px; }
.param-panel-head p { color: var(--pc-gray-500); margin: 0; max-width: 640px; }

.mobile-param-select { display: none; width: 100%; margin-bottom: 24px; }

@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; gap: 24px; }
  .param-sidebar { display: none; }
  .mobile-param-select { display: block; }
}

/* --- Downloadable resource cards (used on About > Resources) --- */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.resource-card { background: var(--pc-white); padding: 24px; border-radius: var(--radius-lg); border: 1.5px solid var(--pc-gray-100); transition: all 0.3s; display: flex; gap: 16px; align-items: flex-start; }
.resource-card:hover { border-color: var(--pc-cyan); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-icon { width: 48px; height: 60px; background: linear-gradient(135deg, var(--pc-navy), var(--pc-cyan)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 0.625rem; flex-shrink: 0; letter-spacing: 0.05em; }
.resource-body { flex: 1; }
.resource-body h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.resource-meta { font-size: 0.75rem; color: var(--pc-gray-500); margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: 0.05em; }
.resource-card .btn { padding: 8px 14px; font-size: 0.8125rem; }

/* --- OEM / brand partner tiles with real logos --- */
.partner-tile img {
  height: 46px; width: auto; max-width: 100%;
  object-fit: contain; display: block; margin: 0 auto 12px;
}
.partner-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }

/* --- Product Detail Page (PDP) --- */
.pdp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .pdp-top { grid-template-columns: 1fr; gap: 32px; } }
.pdp-gallery-main {
  background: var(--grad-light);
  border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pdp-gallery-main .product-tag { top: 16px; left: 16px; }
.pdp-gallery-main img, .pdp-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  display: block;
}
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumb {
  width: 76px; height: 76px;
  background: var(--grad-light);
  border: 1.5px solid var(--pc-gray-100);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
}
.pdp-thumb:hover, .pdp-thumb.active { border-color: var(--pc-cyan); }

.pdp-cat { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pc-cyan-dark); font-weight: 600; }
.pdp-title { margin: 8px 0 12px; }
.pdp-sku { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--pc-gray-500); margin-bottom: 16px; }
.pdp-lead { font-size: 1.0625rem; color: var(--pc-gray-700); margin-bottom: 24px; }
.pdp-highlights { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.pdp-highlights li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--pc-gray-700); }
.pdp-highlights li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--pc-cyan); margin-top: 2px; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pdp-meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--pc-gray-100); }
.pdp-meta-item .label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc-gray-500); font-family: var(--font-mono); }
.pdp-meta-item .value { font-family: var(--font-display); font-weight: 700; color: var(--pc-navy); }

/* PDP tabs */
.pdp-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--pc-gray-100); margin-bottom: 32px; flex-wrap: wrap; }
.pdp-tab { padding: 14px 24px; font-family: var(--font-display); font-weight: 600; color: var(--pc-gray-500); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all 0.2s ease; }
.pdp-tab.active, .pdp-tab:hover { color: var(--pc-navy); border-bottom-color: var(--pc-cyan); }
.pdp-tab-panel { display: none; animation: fadeUp 0.4s ease both; }
.pdp-tab-panel.active { display: block; }
.pdp-tab-panel p { color: var(--pc-gray-700); max-width: 760px; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--pc-gray-100); font-size: 0.9375rem; }
.spec-table th { width: 38%; color: var(--pc-navy); font-family: var(--font-display); font-weight: 700; background: var(--pc-gray-50); }
.spec-table td { color: var(--pc-gray-700); font-family: var(--font-mono); }
.spec-table tr:hover td { background: var(--pc-gray-50); }

/* Feature list */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--pc-cyan); margin-top: 2px; }

/* Downloads */
.download-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--pc-gray-100); border-radius: var(--radius-md); margin-bottom: 12px; max-width: 560px; transition: all 0.2s ease; }
.download-row:hover { border-color: var(--pc-cyan); box-shadow: var(--shadow-sm); }
.download-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--pc-gray-50); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--pc-cyan-dark); }
.download-row .meta { flex: 1; }
.download-row .meta strong { display: block; color: var(--pc-navy); font-family: var(--font-display); font-size: 0.9375rem; }
.download-row .meta span { font-size: 0.75rem; color: var(--pc-gray-500); }

/* Enquiry box on PDP */
.pdp-enquiry {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.pdp-enquiry h3 { color: #fff; margin-bottom: 8px; }
.pdp-enquiry p { color: rgba(255,255,255,0.8); }
.pdp-enquiry .form-input, .pdp-enquiry .form-textarea {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.pdp-enquiry .form-input::placeholder, .pdp-enquiry .form-textarea::placeholder { color: rgba(255,255,255,0.55); }
.pdp-enquiry .form-input:focus, .pdp-enquiry .form-textarea:focus { background: rgba(255,255,255,0.16); border-color: var(--pc-cyan-light); box-shadow: none; }

/* ==========================================================================
   ABOUT PAGE — v3 layout (Who We Are + infra, V/M + Values, horizontal journey)
   ========================================================================== */

/* Two stacked images beside Who We Are */
.about-image-stack { display: flex; flex-direction: column; gap: 20px; }
.about-image-stack .about-image-block { aspect-ratio: 16/10; }

/* Vision/Mission + Core Values side by side */
.vm-values { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
@media (max-width: 900px) { .vm-values { grid-template-columns: 1fr; gap: 40px; } }
/* Both columns stretch to equal height; cards/tiles flex to fill so the
   total height of the Vision/Mission column matches the Core Values column. */
.vm-col, .values-col { display: flex; flex-direction: column; }
.vm-col .vm-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.values-col .values-tiles { flex: 1; grid-auto-rows: 1fr; }
.vm-card { background: var(--pc-white); border: 1px solid var(--pc-gray-100); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-top: 20px; }
.vm-card h3 { color: var(--pc-cyan-dark); font-size: 1.25rem; margin-bottom: 12px; }
.vm-card p { margin: 0; font-size: 1.0625rem; color: var(--pc-navy); font-family: var(--font-display); font-weight: 500; }

/* Core value tiles — icon + title only */
.values-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 420px) { .values-tiles { grid-template-columns: 1fr; } }
.value-tile { text-align: center; padding: 26px 14px; border: 1.5px solid var(--pc-gray-100); border-radius: var(--radius-lg); background: var(--pc-white); transition: border-color 0.25s ease, transform 0.25s ease; }
.value-tile:hover { border-color: var(--pc-cyan); transform: translateY(-3px); }
.value-tile .value-icon { width: 40px; height: 40px; color: var(--pc-cyan); margin: 0 auto 12px; }
.value-tile h4 { margin: 0; font-size: 1rem; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Horizontal journey timeline */
.htimeline { position: relative; margin-top: 40px; }
.htimeline-track { display: flex; justify-content: space-between; align-items: flex-start; position: relative; gap: 8px; }
.htimeline-track::before { content: ''; position: absolute; top: 7px; left: 6%; right: 6%; height: 2px; background: var(--pc-gray-200); z-index: 0; }
.htimeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.htimeline-item { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; }
.htimeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--pc-cyan); border: 3px solid var(--pc-white); box-shadow: 0 0 0 2px var(--pc-cyan); cursor: pointer; transition: transform 0.2s ease; }
.htimeline-item:hover .htimeline-dot { transform: scale(1.45); }
.htimeline-year { margin-top: 14px; font-family: var(--font-mono); font-weight: 700; color: var(--pc-navy); font-size: 0.95rem; }
.htimeline-pop {
  position: absolute; top: 46px; left: 50%; transform: translate(-50%, 8px);
  width: 210px; background: var(--pc-white); border: 1px solid var(--pc-gray-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 16px 18px;
  text-align: center; opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 5;
}
.htimeline-pop h4 { font-size: 0.95rem; margin-bottom: 6px; }
.htimeline-pop p { font-size: 0.8125rem; color: var(--pc-gray-500); margin: 0; }
.htimeline-item:hover .htimeline-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 768px) {
  .htimeline { overflow-x: auto; padding-bottom: 12px; }
  .htimeline-track { min-width: 680px; }
}

/* Team group photo */
.team-group-photo {
  aspect-ratio: 16/9; max-width: 1000px; margin: 0 auto;
  background: linear-gradient(135deg, var(--pc-navy), var(--pc-navy-light));
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem;
}

/* OEM logos — no container, centred */
.oem-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 56px 96px; }
.oem-logos img { height: 54px; width: auto; max-width: 180px; object-fit: contain; }
@media (max-width: 600px) { .oem-logos { gap: 36px 48px; } .oem-logos img { height: 42px; } }

/* ==========================================================================
   BLOG — article pages + card thumbnails with real banners
   ========================================================================== */
/* Banner thumbs match the 960x460 source ratio so the full banner shows, uncropped */
.blog-thumb.has-img { padding: 0; aspect-ratio: 960 / 460; background: var(--pc-gray-50); }
.blog-thumb.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; }
.blog-thumb.has-img::before { display: none; }
.blog-thumb.has-img .blog-cat { z-index: 2; }

/* Article page */
.article { max-width: 780px; margin: 0 auto; }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-md); }
.article-hero img { width: 100%; height: auto; display: block; }
.article p { color: var(--pc-gray-700); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 20px; }
.article h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.article h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article ul { list-style: none; padding: 0; margin: 0 0 20px; }
.article ul li { position: relative; padding: 8px 0 8px 28px; color: var(--pc-gray-700); border-bottom: 1px solid var(--pc-gray-100); }
.article ul li::before { content: '✓'; position: absolute; left: 0; color: var(--pc-cyan); font-weight: 700; }
.article strong { color: var(--pc-navy); }
.article-cta { margin: 44px 0 24px; padding: 32px; background: var(--grad-light); border: 1px solid var(--pc-gray-100); border-radius: var(--radius-lg); text-align: center; }
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { margin-bottom: 20px; }
.article-back { display: inline-block; margin-top: 8px; font-family: var(--font-display); font-weight: 600; color: var(--pc-cyan-dark); }
.article-back:hover { color: var(--pc-navy); }

/* ==========================================================================
   SKIP LINK — keyboard users jump past the header/nav to page content
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--pc-navy, #0A2C5E);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--pc-cyan, #00A5DE);
  outline-offset: 2px;
}
#main-content { scroll-margin-top: 90px; }
#main-content:focus { outline: none; }

/* ==========================================================================
   HERO CARD — demo state
   The readings are a designed illustration, not a live feed. The neutral
   status pill and the caption below keep that clear to visitors.
   ========================================================================== */
.hero-card-status.is-demo { color: rgba(255, 255, 255, 0.66); }
.hero-card-status.is-demo::before {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  animation: none;
}
.hero-card-note {
  margin: 16px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
}

/* Strengths cards: reveal the body copy on keyboard focus too, not just hover. */
/* Strengths cards: the card itself is focusable (role="button") and toggles
   aria-expanded, so keyboard users reveal the copy with Enter/Space.
   The old :focus-within rule was removed — nothing inside the card was ever
   focusable, so it never fired, and once the card became focusable it held the
   copy open after a tap and made the card impossible to collapse. */

/* ==========================================================================
   MOBILE & TOUCH
   Everything below assumes a phone or a touch screen. Three jobs:
     1. nothing overflows the viewport horizontally
     2. nothing is reachable only by hovering
     3. every control is big enough to hit with a thumb
   Keep this block last so it wins without !important.
   ========================================================================== */

/* --- 1 · Overflow safety -------------------------------------------------
   A `1fr` grid track never shrinks below its content's min-content width, so a
   padded card inside a one-column grid pushes the page wider than the screen.
   `min-width: 0` on grid/flex children lets them actually shrink. */
[class$="-grid"] > *,
[class*="-grid "] > *,
.form-row > *,
.pdp-top > *,
.contact-grid > *,
.products-layout > *,
.cta-inner > *,
.hero-inner > * { min-width: 0; }

img, video, iframe, svg { max-width: 100%; }

/* Anything genuinely wider than a phone scrolls inside its own box,
   never by dragging the whole page. */
.spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table tbody { display: table; width: 100%; min-width: 420px; }
.pdp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pdp-tabs::-webkit-scrollbar { display: none; }

/* --- 2 · Hover is not available on touch --------------------------------
   Decorative lift/scale effects are fine to lose, but anything that REVEALS
   CONTENT on hover is unreachable with a finger. Those get a tap path. */

/* Products dropdown: open on hover (mouse), on focus (keyboard), or when
   main.js adds .open (tap). */
.nav-item.open > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* About-page history timeline: the year's detail was hover-only. */
.htimeline-item.open .htimeline-pop,
.htimeline-item:focus-within .htimeline-pop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.htimeline-item.open .htimeline-dot { transform: scale(1.45); }
.htimeline-dot { min-width: 16px; min-height: 16px; }

/* On a phone the popover was clipped by the track's own horizontal scroll box,
   so the timeline goes vertical and every year's detail is simply shown. No
   hover, no tap, nothing hidden — which is the right call on a small screen. */
@media (max-width: 900px) {
  .htimeline { overflow-x: visible; padding-bottom: 0; }
  .htimeline-track { min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .htimeline-track::before {
    top: 8px; bottom: 8px; left: 19px; right: auto; width: 2px; height: auto;
  }
  .htimeline-item {
    flex-direction: row; align-items: flex-start; gap: 16px;
    width: 100%; padding: 0 0 26px 0;
  }
  .htimeline-item > .htimeline-hit { flex: 0 0 auto; padding: 12px; margin: -12px 0 0 0; }
  .htimeline-year { margin: 0; flex: 0 0 52px; padding-top: 1px; }
  .htimeline-pop {
    position: static; transform: none; width: auto; flex: 1;
    opacity: 1; visibility: visible; text-align: left;
    box-shadow: none; border: 0; padding: 0; background: none;
  }
  .htimeline-item.open .htimeline-dot,
  .htimeline-item:hover .htimeline-dot { transform: none; }
}
/* Bigger invisible hit area around the 16px dot. */
.htimeline-item > button.htimeline-hit {
  background: none; border: 0; padding: 12px; margin: -12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

@media (hover: none) {
  /* Kill sticky hover states: on touch these latch on after a tap and stay. */
  .product-card:hover, .job-card:hover, .industry-card:hover,
  .blog-card:hover, .perk-card:hover, .err-link:hover,
  .why-card:hover, .resource-card:hover {
    transform: none;
  }
  .floating-cta a:hover { transform: none; }
}

/* --- 3 · Touch target sizes ---------------------------------------------- */
@media (max-width: 900px) {
  /* Footer and utility links were 18px tall — about a third of a fingertip. */
  .footer-links li { padding: 0; }
  .footer-links a,
  .footer-bottom-links a,
  .topbar-links a,
  .sitemap-col a {
    display: inline-block;
    padding: 11px 0;
    line-height: 1.2;
  }
  .footer-social a, .footer-social a:link {
    width: 44px; height: 44px;
  }
  /* Privacy / Terms / Sitemap sat at 38px — just under a comfortable tap. */
  .footer-bottom-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .footer-bottom-links a { padding: 13px 0; }
  .breadcrumb a { padding: 6px 0; display: inline-block; }
}

/* --- 4 · Forms ----------------------------------------------------------
   iOS Safari zooms the whole page when a focused input's font-size is below
   16px, and never zooms back out. 16px is the fix, not a preference. */
@media (max-width: 768px) {
  .form-input, .form-select, .form-textarea,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="url"], input[type="number"], input[type="search"],
  select, textarea {
    font-size: 16px;
    min-height: 48px;
  }
  textarea, .form-textarea { min-height: 120px; }
  .form-label { font-size: 0.875rem; }
  /* 40px of padding on a 375px screen leaves almost nothing for the fields. */
  .quote-form, .contact-info-card, .email-strip { padding: 24px 20px; }
}

/* --- 5 · Floating CTA ---------------------------------------------------
   It sits above everything, so on a narrow screen it lands on top of real
   controls. Shrink it and keep the page's last section clear of it. */
@media (max-width: 768px) {
  .floating-cta { bottom: 16px; right: 16px; gap: 10px; }
  .floating-cta a { width: 48px; height: 48px; }
  /* Reserve the corner so nothing important ends up underneath. */
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  .products-layout .pc-sidebar,
  .products-layout > aside { padding-bottom: 8px; }
  /* The parameter picker sat directly under the CTA stack. */
  .mobile-param-select, select.mobile-param-select { margin-right: 72px; }
}

/* --- 6 · Typography and rhythm on small screens ------------------------- */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .page-hero { padding: 48px 0 56px; }
  .section-header { margin-bottom: 32px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .container { padding: 0 18px; }
  /* Long unbroken tokens (SKUs, part numbers, URLs) must not widen the page. */
  h1, h2, h3, h4, p, li, dd, td, th, a { overflow-wrap: anywhere; }
}

/* Several pages set `grid-template-columns` inline, so no stylesheet media
   query can collapse them — an inline two-column grid stayed two columns on a
   320px phone and pushed the page 300px wide. This is the one place !important
   is the correct tool: it is scoped to small screens and to inline grids only. */
@media (max-width: 768px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Same story for inline card padding: 40px a side leaves 240px of usable width
   on a 320px phone, so the card's own content pushes the page wider. */
@media (max-width: 600px) {
  [style*="padding: 40px"] { padding: 24px 20px !important; }
  [style*="padding: 48px"] { padding: 28px 20px !important; }
}

/* Buttons: long labels plus 36px of side padding overflowed narrow screens.
   Let them wrap and never exceed their container. */
@media (max-width: 480px) {
  .btn, .btn-large {
    max-width: 100%;
    white-space: normal;
    padding-left: 20px; padding-right: 20px;
  }
  .btn-large { padding-top: 14px; padding-bottom: 14px; }
  .cta-buttons, .err-actions, .job-actions, .pdp-actions {
    flex-direction: column; align-items: stretch;
  }
  .cta-buttons .btn, .err-actions .btn, .job-actions .btn, .pdp-actions .btn {
    justify-content: center;
  }
}

/* --- 7 · Respect the notch on modern phones ----------------------------- */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .container {
      padding-left: max(18px, env(safe-area-inset-left));
      padding-right: max(18px, env(safe-area-inset-right));
    }
    .floating-cta { right: max(16px, env(safe-area-inset-right)); }
  }
}
