/* ==========================================================================
   Jaljeevan — Premium Water Treatment Website
   Design System: Blue | Corporate | Conversion-focused
   Brand: #10367D (dark) · #74B4D9 (light) · white
   ========================================================================== */

:root {
  --primary: #10367D;
  --primary-dark: #0c2a62;
  --primary-light: #74B4D9;
  /* Readable on white (light blue is for fills / on-dark only) */
  --on-light: #10367D;
  --on-light-hover: #0c2a62;
  --accent: #74B4D9;
  --green: #10367D;
  --green-dark: #0c2a62;
  --green-light: #74B4D9;
  --teal: #74B4D9;
  --navy: #10367D;
  --slate: #1a3d6e;
  --text: #1a2b36;
  --text-muted: #5a6f7c;
  --text-light: #8a9ba8;
  --bg: #ffffff;
  --bg-soft: #f2f8fc;
  --bg-muted: #e5f1f8;
  --bg-dark: #10367D;
  --border: #c5dceb;
  --border-light: #e6f0f7;
  --white: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --shadow-sm: 0 1px 3px rgba(16, 54, 125, 0.06);
  --shadow: 0 4px 20px rgba(16, 54, 125, 0.08);
  --shadow-md: 0 8px 30px rgba(16, 54, 125, 0.12);
  --shadow-lg: 0 16px 48px rgba(16, 54, 125, 0.16);
  --shadow-glow: 0 8px 32px rgba(116, 180, 217, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #10367D 0%, #1a4a9e 50%, #74B4D9 100%);
  /* Tighter dark-blue gradient for small controls (avoids light rim on pills) */
  --gradient-button: linear-gradient(135deg, #0c2a62 0%, #10367D 48%, #164a9a 100%);
  --gradient-hero: linear-gradient(135deg, rgba(12, 42, 98, 0.94) 0%, rgba(16, 54, 125, 0.88) 50%, rgba(116, 180, 217, 0.75) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(242,248,252,0.98));
  --fill-primary: var(--gradient-primary);
  --fill-hero: var(--gradient-hero);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--on-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--on-light-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 6.5rem 0; }
.bg-soft { background: var(--bg-soft); }
.bg-muted { background: var(--bg-muted); }
.bg-dark { background: var(--bg-dark); color: var(--white); }
.bg-gradient { background: var(--gradient-primary); color: var(--white); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-white p, .text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: var(--white); }
.text-white p { opacity: 0.9; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Section Headers */
.section-header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header.left {
  align-items: flex-start;
  text-align: left;
}
.section-header h2 {
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.section-header.left h2 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.clients-section .section-header {
  max-width: min(100%, 1100px);
}
.clients-section .section-header p {
  white-space: normal;
  text-align: center;
}
.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-header.left .section-label {
  justify-content: flex-start;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-header p {
  font-size: 1.0625rem;
  text-align: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.section-header.left p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.section-header.section-header-full {
  width: 100%;
  max-width: none;
  align-items: stretch;
}
.section-header.section-header-full h2,
.section-header.section-header-full p {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 769px) {
  .section-header.section-header-full h2 {
    white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  /* Solid fallback + clipped gradient — no transparent-border white ring */
  background-color: var(--primary);
  background-image: var(--gradient-button);
  background-origin: border-box;
  background-clip: border-box;
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 54, 125, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--white);
  background-color: var(--primary-dark);
  background-image: linear-gradient(135deg, #0a2458 0%, #0c2a62 45%, #10367D 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 54, 125, 0.35);
  filter: none;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 54, 125, 0.25);
}
.btn-secondary {
  background-color: var(--primary-light);
  background-image: linear-gradient(135deg, #5aa4cc 0%, #74B4D9 55%, #8ec4e0 100%);
  background-origin: border-box;
  background-clip: border-box;
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 54, 125, 0.22);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--primary);
  background-image: var(--gradient-button);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 54, 125, 0.3);
}
.btn-outline {
  background: transparent;
  background-image: none;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  background-image: none;
  color: var(--white);
  border-color: var(--primary);
}
.btn-outline-white {
  background: transparent;
  background-image: none;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  background-image: none;
  color: var(--primary);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  background-image: none;
  color: var(--primary);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.btn-white:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.0625rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.card-body { padding: 1.75rem; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-muted), var(--bg-soft));
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.card:hover .card-icon {
  background: var(--gradient-primary);
  color: var(--white);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.9375rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--on-light);
}
.card-link:hover { gap: 0.625rem; color: var(--on-light-hover); }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid.products-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.md-2 { grid-template-columns: repeat(2, 1fr); }
  /* 2-up grids on mobile to reduce page length */
  .grid-3,
  .grid-4,
  .grid-5,
  .industries-served-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ========== HEADER ========== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 0.375rem; }
.topbar a:hover { color: var(--teal); }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar a svg { display: inline-block; vertical-align: -2px; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: all var(--transition);
}
.social-links a:hover { background: var(--green); color: var(--white); }
.social-links svg { width: 14px; height: 14px; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
  width: 100%;
  max-width: 100%;
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
  width: 100%;
  max-width: var(--container);
  overflow: visible;
}
.header nav {
  /* keep nav element from expanding header width on mobile */
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  flex-shrink: 0;
  text-decoration: none;
}
.logo:hover { color: var(--navy); opacity: 0.92; }
.logo-img {
  display: block;
  height: 80px;
  width: auto;
  max-width: min(320px, 62vw);
  object-fit: contain;
}
.logo-img-white {
  height: 72px;
  max-width: min(300px, 80%);
}
.logo-footer .logo-img { height: 80px; max-width: min(320px, 92%); }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo span { color: var(--green); }
.client-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.clients-grid { align-items: stretch; }

/* ===== Clients logo auto-slider (4 desktop / 2 mobile) ===== */
.clients-section { overflow: hidden; }
.clients-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.clients-slider-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-logo-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
}
.client-logo-card {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.35rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.client-logo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.client-logo-card img {
  max-width: 100%;
  max-height: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}
@media (max-width: 768px) {
  .client-logo-card {
    height: 130px;
    padding: 0.9rem 1rem;
  }
  .client-logo-card img {
    max-height: 88px;
  }
  .clients-slider-track {
    gap: 0.875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-slider-track {
    transition: none !important;
  }
}

/* ===== Mobile auto-slider (testimonials / blog) — 1 per view on mobile only ===== */
.mobile-auto-slider {
  width: 100%;
  position: relative;
}
.mobile-auto-slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.mobile-auto-slider-slide {
  min-width: 0;
  height: 100%;
}
.mobile-auto-slider-slide > .card {
  height: 100%;
}
.mobile-auto-slider-dots {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
  max-width: 100%;
}
.mobile-auto-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.mobile-auto-slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}
@media (max-width: 1024px) {
  .mobile-auto-slider-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .mobile-auto-slider {
    overflow: hidden;
  }
  .mobile-auto-slider-track {
    display: flex;
    gap: 0;
    width: 100%;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-auto-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
  }
  .mobile-auto-slider-dots {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-auto-slider-track {
    transition: none !important;
  }
}

.nav { display: flex; align-items: center; gap: 0.125rem; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.875rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav > li > a:hover,
.nav > li > a.active { color: var(--on-light); background: var(--bg-soft); font-weight: 700; }
.nav > li > a svg { width: 12px; height: 12px; opacity: 0.6; transition: transform var(--transition); }
.nav > li:hover > a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav > li:hover > .dropdown,
.nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--on-light); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--bg-soft);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 0;
  max-height: 650px;
  height: 650px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding: 2.5rem 0;
}
.hero.hero-compact {
  max-height: 650px;
  height: 650px;
  min-height: 0;
  padding: 2.25rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: scale(1.04);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 42, 98, 0.96) 0%, rgba(16, 54, 125, 0.88) 48%, rgba(116, 180, 217, 0.55) 100%),
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(116, 180, 217, 0.22), transparent 60%);
}
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}
.hero-orb-1 {
  width: 320px; height: 320px;
  background: rgba(116, 180, 217, 0.35);
  top: -80px; right: 10%;
}
.hero-orb-2 {
  width: 240px; height: 240px;
  background: rgba(16, 54, 125, 0.4);
  bottom: 5%; left: 5%;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 2; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-layout-compact { gap: 2rem; }
.hero-content { max-width: 640px; }
.hero-compact .hero-content { max-width: 560px; }
.hero-compact h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  margin-bottom: 0.85rem;
  line-height: 1.18;
}
.hero-compact .hero-text {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-compact .hero-badge { margin-bottom: 0.85rem; }
.hero-compact .btn-group { margin-bottom: 0; }
.hero-compact .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9375rem; }
.hero-compact .hero-panel-card img { height: 280px; }
.grid.products-home-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Hero GEM portal badge */
.hero-gem {
  display: flex;
  margin-top: 1.25rem;
  justify-content: flex-start;
  width: 100%;
}
.hero-gem-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--white);
}
.hero-gem-link img {
  width: min(280px, 86vw);
  height: auto;
  max-height: 100px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.hero-gem-link span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  max-width: 280px;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-gem-link:hover span {
  color: var(--white);
}
.footer-gem {
  margin-top: 1.35rem;
  justify-content: flex-start;
}
.footer-gem .hero-gem-link {
  align-items: flex-start;
}
.footer-gem .hero-gem-link img {
  width: min(220px, 100%);
  max-height: 80px;
  box-shadow: none;
}
.footer-gem .hero-gem-link span {
  text-align: left;
  font-size: 0.8rem;
  max-width: 240px;
  color: rgba(255, 255, 255, 0.92);
}

/* Home card sliders — grid on desktop, auto-slide on mobile */
.home-card-slider {
  width: 100%;
  position: relative;
}
.home-card-slider-track {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
.products-slider .home-card-slider-track {
  grid-template-columns: repeat(3, 1fr);
}
.industries-slider .home-card-slider-track {
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}
.why-slider .home-card-slider-track {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.home-card-slider-slide {
  min-width: 0;
  height: 100%;
}
.home-card-slider-slide > .card,
.home-card-slider-slide > .why-item,
.home-card-slider-slide > .gallery-item,
.home-card-slider-slide > .process-step,
.home-card-slider-slide > .related-card {
  height: 100%;
}
.home-card-slider-dots {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
  max-width: 100%;
}
.home-card-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.home-card-slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}
/* Compact industry cards only when shown as multi-column grid (desktop/tablet) */
@media (min-width: 769px) {
  .industries-slider .industry-card {
    padding: 1.1rem 0.5rem;
  }
  .industries-slider .industry-card h3 {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .industries-slider .industry-card p {
    font-size: 0.7rem;
    line-height: 1.35;
    margin: 0;
  }
  .industries-slider .industry-card .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.65rem;
  }
  .industries-slider .industry-card .card-icon svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 1100px) {
  .industries-slider .home-card-slider-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .why-slider .home-card-slider-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-gem {
    justify-content: center;
  }
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .btn-group {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .home-card-slider {
    overflow: hidden;
  }
  .home-card-slider-track {
    display: flex !important;
    gap: 0 !important;
    width: 100%;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .home-card-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
  }
  /* 2 items per view, slide in pairs */
  [data-card-slider][data-per-view="2"] .home-card-slider-slide {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    padding: 0 0.35rem;
  }
  .products-slider .product-card .card-body {
    padding: 0.9rem;
  }
  .products-slider .product-card h3,
  .products-slider .product-card h2 {
    font-size: 0.95rem;
  }
  .gallery-slider .gallery-item {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .gallery-slider .home-card-slider-slide {
    overflow: hidden;
  }
  .process-slider .process-step {
    height: 100%;
    margin: 0;
  }
  .served-slider .industry-card,
  .serve-slider .card {
    height: 100%;
  }
  .products-slider .product-card p {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .why-slider .why-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.85rem;
    gap: 0.65rem;
  }
  .home-card-slider-dots {
    display: flex;
  }
  .faq-desktop-only {
    display: none !important;
  }
  /* Tighten CTA → footer (no white seam) */
  .cta-banner {
    padding: 2rem 0 1.5rem;
    margin-bottom: 0;
    background: var(--navy);
  }
  .cta-banner-bg { opacity: 1; }
  .cta-banner .btn-group {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  .cta-banner .btn-group .btn {
    width: 100%;
  }
  .footer {
    padding-top: 1.75rem;
    margin-top: 0;
    border-top: none;
  }
  .product-card .card-tag {
    display: none !important;
  }
  /* Footer copyright / bottom links — readable on blue */
  .footer-bottom {
    color: rgba(255, 255, 255, 0.92);
  }
  .footer-bottom p {
    color: rgba(255, 255, 255, 0.92);
  }
  .footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-card-slider-track {
    transition: none !important;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(116, 180, 217, 0.55);
  border-radius: var(--radius-full);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.15);
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  font-size: clamp(2.15rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a8d4ef, #74B4D9 55%, #9ecce8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
  line-height: 1.75;
  max-width: 36rem;
}
.hero-premium .btn-group { margin-bottom: 1.5rem; }
.hero-call-btn { white-space: nowrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.hero-trust svg {
  width: 16px; height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 2.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--teal);
  font-weight: 700;
  line-height: 1.15;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.35;
  display: block;
  margin-top: 0.2rem;
}
.hero-panel { position: relative; }
.hero-panel-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.hero-panel-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.hero-panel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(12, 42, 98, 0.92));
  color: white;
}
.hero-panel-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.2rem;
}
.hero-panel-caption span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
.hero-panel-float {
  position: absolute;
  top: 1.25rem;
  left: -1rem;
  background: white;
  color: var(--navy);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  z-index: 2;
}
.hero-panel-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}
.hero-panel-float span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQ two-column layout */
.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.75rem;
  max-width: 100%;
  margin: 0 auto;
  align-items: start;
}
.faq-columns .faq-list { max-width: none; margin: 0; }

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: var(--navy);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.65);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--teal); }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 100%;
}
@media (min-width: 769px) {
  .page-hero p {
    white-space: nowrap;
  }
}

/* ========== INTRO / ABOUT PREVIEW ========== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.intro-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.intro-images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.intro-images .img-main {
  grid-row: span 2;
  height: 400px;
}
.intro-images .img-sec { height: 192px; }
.intro-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.intro-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}
.intro-badge span { font-size: 0.8125rem; color: var(--text-muted); }
.checklist { margin: 1.5rem 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 500;
}
.checklist svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Product Cards */
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
}
.product-card .card-img-link {
  display: block;
  color: inherit;
}
.product-card .card-img {
  transition: transform 0.5s ease;
}
.product-card:hover .card-img { transform: scale(1.05); }
.product-card .card-title-link {
  color: inherit;
}
.product-card .card-title-link:hover {
  color: var(--on-light-hover);
}
.product-card .card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* Industry Cards */
.industry-card {
  text-align: center;
  padding: 2rem 1.25rem;
}
.industry-card .card-icon {
  margin-left: auto;
  margin-right: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

/* Product detail — industries in a single desktop row */
.industries-served-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1rem;
}
.industries-served-grid .industry-card {
  padding: 1.25rem 0.65rem;
  min-width: 0;
}
.industries-served-grid .industry-card h3 {
  font-size: 0.95rem;
  line-height: 1.3;
}
.industries-served-grid .industry-card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.65rem;
}
.industries-served-grid .industry-card .card-icon svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 768px) {
  .industries-served-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1.25rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(16, 54, 125, 0.25);
}
.process-step h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.process-step p { font-size: 0.875rem; }

/* Why Choose — 3 columns × 2 rows on desktop */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
/* Industry categories — single row on desktop */
.industries-home-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}
.industries-home-grid .industry-card {
  padding: 1.1rem 0.5rem;
  min-width: 0;
}
.industries-home-grid .industry-card h3 {
  font-size: 0.85rem;
  line-height: 1.3;
}
.industries-home-grid .industry-card p {
  font-size: 0.7rem;
  line-height: 1.35;
  margin: 0;
}
.industries-home-grid .industry-card .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.65rem;
}
.industries-home-grid .industry-card .card-icon svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 1100px) {
  .industries-home-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .clients-section .section-header p { white-space: normal; }
  .industries-home-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .industries-home-grid .industry-card { padding: 1.1rem 0.75rem; }
  .industries-home-grid .industry-card h3 { font-size: 0.9rem; }
  .industries-home-grid .industry-card p { font-size: 0.75rem; }
}
.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.why-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.why-item .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  color: var(--on-light);
}
.why-item .icon svg { width: 24px; height: 24px; }
.why-item h4,
.why-item h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.why-item p { font-size: 0.875rem; margin: 0; }

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial-text {
  flex: 1;
  font-size: 0.975rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.author-info strong { display: block; font-size: 0.9375rem; color: var(--navy); }
.author-info span { font-size: 0.8125rem; color: var(--text-muted); }

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.cert-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cert-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--primary);
}
.cert-icon svg { width: 32px; height: 32px; }
.cert-card h4,
.cert-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.cert-card p { font-size: 0.8125rem; margin: 0; }

/* Blog Cards */
.blog-card .card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.blog-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--on-light-hover); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.active { border-color: var(--accent); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--on-light); }
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--on-light);
  transition: transform var(--transition);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer { max-height: 800px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: 4.5rem 0;
  background: var(--navy);
  overflow: hidden;
  border-radius: 0;
}
.cta-banner.rounded {
  border-radius: var(--radius-xl);
  margin: 0 1.25rem;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.95;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 0.5rem; }
.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0 auto;
  max-width: 640px;
}
.cta-banner .btn-group {
  flex-shrink: 0;
  justify-content: center;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group label .req { color: var(--error); }
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 54, 125, 0.18);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.error { border-color: var(--error); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6f7c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}
.form-message.success {
  display: block;
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}
.form-message.error {
  display: block;
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}
.form-hint { font-size: 0.8125rem; color: var(--text-light); margin-top: 0.375rem; }
.enquiry-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.enquiry-form-card h3 { margin-bottom: 0.5rem; }
.enquiry-form-card > p { margin-bottom: 1.5rem; font-size: 0.9375rem; }

.quote-form-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.quote-form-card { padding: 1.75rem 2rem; }
.quote-form-card > p { margin-bottom: 1rem; }
.quote-form-card .form-group { margin-bottom: 0.85rem; }
.quote-form-card .form-group label { margin-bottom: 0.35rem; }
.quote-form-card .form-control { padding: 0.7rem 0.9rem; }
.quote-form-card textarea.form-control { min-height: 72px; }
.quote-form-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.quote-form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.quote-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.quote-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
}
.quote-consent input { margin-top: 3px; }
.quote-form-footer .btn { flex-shrink: 0; }
@media (max-width: 1100px) {
  .quote-form-row-4,
  .quote-form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .quote-form-row-4,
  .quote-form-row-3 { grid-template-columns: 1fr; }
  .quote-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .quote-form-footer .btn { width: 100%; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}
.contact-info-card .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-sm);
}
.contact-info-card .icon svg { width: 22px; height: 22px; }
.contact-info-card h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.contact-info-card p, .contact-info-card a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}
.contact-info-card a:hover { color: var(--on-light-hover); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Specs Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.specs-table th,
.specs-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}
.specs-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--navy);
  width: 40%;
}
.specs-table tr:last-child td,
.specs-table tr:last-child th { border-bottom: none; }
.specs-table tr:hover td { background: var(--bg-soft); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-page-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .gallery-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-page-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 54, 125, 0.3);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(16, 54, 125, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.feature-item svg {
  width: 22px; height: 22px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 { font-size: 0.975rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.875rem; margin: 0; }

/* Two column content */
.content-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* Project cards */
.project-card .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.project-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--bg-muted);
  color: var(--primary);
  border-radius: var(--radius-full);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.375rem;
}
.stat-item span { font-size: 0.9375rem; color: var(--text-muted); font-weight: 500; }
.bg-dark .stat-item strong { color: var(--teal); }
.bg-dark .stat-item span { color: rgba(255,255,255,0.75); }
.bg-gradient .stat-item strong { color: white; }
.bg-gradient .stat-item span { color: rgba(255,255,255,0.85); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-muted);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-item h4 { margin-bottom: 0.375rem; }
.timeline-item p { font-size: 0.9375rem; }

/* Related products */
.related-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  align-items: center;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.related-card img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.related-card > div { min-width: 0; }
.related-card h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; color: var(--navy); overflow-wrap: break-word; }
.related-card span { font-size: 0.8125rem; color: var(--on-light); font-weight: 500; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: white; margin-bottom: 1.25rem; }
.footer-brand .logo:hover { color: white; }
.footer-brand p { font-size: 0.9375rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.7; }
.footer-areas {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.footer h4,
.footer .footer-heading {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer h4::after,
.footer .footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--green);
}
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--teal); padding-left: 4px; }
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact svg {
  width: 18px; height: 18px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.9); }
.footer-bottom a:hover { color: var(--primary-light); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* Floating Actions */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.float-btn:hover { transform: scale(1.08); color: white; }
.float-btn svg { width: 24px; height: 24px; }
.float-whatsapp { background: #25d366; }
.float-call { background: var(--primary-light); }
.float-top {
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.float-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  gap: 0.75rem;
}
.mobile-cta .btn { flex: 1; padding: 0.75rem; min-height: 44px; }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.float-whatsapp { animation: pulse-soft 2.5s infinite; }

/* Blog article */
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.article-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.article-content p { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.8; }
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.article-content li { margin-bottom: 0.5rem; color: var(--text-muted); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.article-hero-img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* Sitemap page */
.sitemap-section { margin-bottom: 2.5rem; }
.sitemap-section h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary); }
.sitemap-section ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; }
.sitemap-section a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}
.sitemap-section a:hover { background: var(--bg-muted); color: var(--on-light); }

/* Privacy */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { font-size: 0.975rem; line-height: 1.75; }
.legal-content ul { list-style: disc; margin: 0.75rem 0 1rem 1.5rem; }

/* Tabs (optional) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.tab-btn {
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: white;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-images .img-main { height: 320px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-split { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1.25rem; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-content { max-width: 100%; }
  .hero-panel { max-width: 100%; margin: 0; width: 100%; }
  .hero-compact .hero-panel-card img,
  .hero-panel-card img { height: 240px; }
  .hero-panel-float { left: 0.75rem; top: 0.75rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .faq-columns { gap: 0.75rem 1.25rem; }
  .grid.products-home-grid { grid-template-columns: repeat(2, 1fr); }
  .hero.hero-compact,
  .hero {
    height: auto;
    max-height: 650px;
    min-height: 420px;
    padding: 2rem 0;
  }
}

@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: var(--bg-soft);
    z-index: 1101;
    position: relative;
  }
  .header-cta {
    margin-left: auto;
    gap: 0.5rem;
  }
  .header-cta .btn-sm { display: none; } /* hide Request Quote in header on mobile — sticky CTA covers it */
  .header-cta .btn-outline { display: none; }
  /* Full-screen mobile drawer — completely off-canvas when closed */
  .nav {
    position: fixed !important;
    top: var(--header-h);
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - var(--header-h));
    height: calc(100vh - var(--header-h));
    margin: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem 1.25rem calc(6.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    z-index: 1100;
    border-top: 1px solid var(--border-light);
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    display: flex;
  }
  .nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto !important;
    box-shadow: -8px 0 32px rgba(16, 54, 125, 0.12);
  }
  /*
   * Overlay MUST sit below the header stacking context.
   * Header is z-index 1000; if overlay is higher (e.g. 1090), it blocks all menu taps.
   */
  body.nav-open .header {
    z-index: 1200;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(16, 54, 125, 0.45);
    z-index: 1100; /* below header (1200), above page content */
    pointer-events: auto;
    animation: fade-overlay 0.3s ease;
  }
  @keyframes fade-overlay {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav > li {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }
  .nav > li > a {
    padding: 1rem 1.15rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    min-height: 52px;
    width: 100%;
    color: var(--navy);
    background: var(--bg-soft);
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(16, 54, 125, 0.12);
  }
  .nav > li > a:hover,
  .nav > li > a.active {
    background: var(--bg-muted);
    color: var(--primary);
  }
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    min-width: 0 !important;
    width: 100%;
    transition: max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin: 0;
  }
  .nav > li.open > .dropdown {
    max-height: 80vh;
    padding: 0.35rem 0.5rem 0.65rem !important;
    margin: 0.35rem 0 0.5rem;
    overflow-y: auto;
  }
  .dropdown a {
    padding: 0.85rem 1rem !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    font-size: 0.975rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .dropdown a:hover {
    background: var(--white);
  }
  .nav > li > a svg {
    margin-left: auto;
    width: 18px;
    height: 18px;
    opacity: 0.8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .nav > li.open > a svg { transform: rotate(180deg); }
  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
    position: relative;
  }
  .topbar { display: none; }
  :root { --header-h: 64px; }
  /*
   * backdrop-filter creates a containing block for position:fixed children.
   * That trapped the mobile drawer and caused left/right page scroll.
   */
  .header {
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }
  .header .container {
    height: var(--header-h);
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    position: relative;
  }
  /* Move fixed drawer relative to viewport (not header flex) */
  .header nav {
    position: static;
  }
  .logo { font-size: 1.2rem; max-width: calc(100% - 56px); }
  .logo-img { height: 64px; max-width: min(240px, 58vw); }
  .logo-footer .logo-img { height: 68px; }
  .logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .logo-icon svg { width: 20px; height: 20px; }
  /* Prevent any section from causing horizontal scroll */
  .section, .hero, .page-hero, .cta-banner, .footer, main {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 2.75rem 0; }
  .section-header { margin-bottom: 1.5rem; }
  .section-header h2,
  .section-header.section-header-full h2 { white-space: normal; max-width: 100%; }
  .section-header p,
  .section-header.section-header-full p { font-size: 0.95rem; max-width: 100%; }
  h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }
  img { max-width: 100%; }
  .btn { max-width: 100%; }
  [data-card-slider],
  .mobile-auto-slider {
    overflow: hidden;
    max-width: 100%;
    touch-action: pan-y;
  }
  [data-card-slider] .home-card-slider-slide,
  .mobile-auto-slider-slide {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .hero,
  .hero.hero-compact {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 2rem 0 2.25rem;
  }
  .hero-content { max-width: 100%; }
  .hero-text { font-size: 0.975rem; }
  .hero-layout,
  .hero-layout-compact { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-panel { display: none; } /* keep hero compact on mobile */
  .hero-compact .hero-text {
    -webkit-line-clamp: 4;
  }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .hero-stats {
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-stat strong { font-size: 1.35rem; }
  .faq-columns { grid-template-columns: 1fr; gap: 0.75rem; }
  .grid.products-home-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.875rem; }
  .btn-group { gap: 0.75rem; }
  .btn-group .btn { flex: 1 1 auto; min-width: min(100%, 140px); justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .why-item { padding: 1rem 0.85rem; gap: 0.65rem; }
  .why-item h4,
  .why-item h3 { font-size: 0.9rem; }
  .why-item p { font-size: 0.8rem; }
  .industries-home-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  /* Footer: brand full width, Products | Company side-by-side, Contact full width */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-grid > .footer-brand p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) {
    min-width: 0;
  }
  .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  .footer h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
  }
  .footer-links li { margin-bottom: 0.45rem; }
  .footer-links a { font-size: 0.875rem; }
  .footer {
    padding-top: 1.75rem;
    padding-bottom: 5.5rem;
    margin-top: 0;
    border-top: none;
  }
  .cta-banner {
    padding: 2rem 0 1.5rem;
    margin-bottom: 0;
    background: var(--navy);
  }
  .cta-banner-bg {
    opacity: 1;
  }
  .cta-banner .container { flex-direction: column; text-align: center; gap: 1rem; }
  .cta-banner .btn-group {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  .cta-banner .btn-group .btn { width: 100%; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { margin-bottom: 0; }
  /* Remove white gap between CTA and footer */
  main {
    padding-bottom: 0 !important;
    margin-bottom: 0;
  }
  main > .cta-banner:last-child {
    margin-bottom: 0;
  }
  /* Hide product category badges on product images */
  .product-card .card-tag {
    display: none !important;
  }
  .form-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  /* Counters: always 2 per row on mobile */
  .stats-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem 0.75rem;
    text-align: center;
  }
  .stat-item strong { font-size: 1.75rem; }
  .stat-item span { font-size: 0.8rem; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
  main { padding-bottom: 0; }
  .float-actions { bottom: 5.5rem; right: 1rem; }
  .float-btn { width: 48px; height: 48px; }
  .float-call { display: none; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  /* About preview (mobile): hide main image + 2016 badge, center copy */
  .intro-images .img-main { display: none; }
  .intro-badge { display: none; }
  .intro-images { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .intro-images .img-sec { height: 120px; }
  .intro-grid {
    text-align: center;
  }
  .intro-grid .section-label {
    justify-content: center;
  }
  .intro-grid .checklist {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  .intro-grid .checklist li {
    justify-content: flex-start;
    width: 100%;
    max-width: 22rem;
  }
  .intro-grid .btn-group {
    justify-content: center;
  }
  .card-body { padding: 1rem; }
  /* Industry cards — match product/other section text sizes on mobile */
  .industry-card,
  .industries-slider .industry-card {
    padding: 1.5rem 1.15rem;
    text-align: center;
  }
  .industry-card .card-icon,
  .industries-slider .industry-card .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }
  .industry-card .card-icon svg,
  .industries-slider .industry-card .card-icon svg {
    width: 26px;
    height: 26px;
  }
  .industry-card h3,
  .industries-slider .industry-card h3 {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  .industry-card p,
  .industries-slider .industry-card p {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
  }
  .testimonial-card { padding: 1.15rem; }
  .enquiry-form-card { padding: 1.25rem; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; width: 100%; }
  .specs-table { min-width: 340px; }
  .breadcrumb { font-size: 0.8125rem; gap: 0.35rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  .map-wrap { height: 260px; }
  .map-wrap iframe { height: 100%; }
  .faq-question { padding: 1rem 1.15rem; font-size: 0.9375rem; min-height: 48px; }
  .faq-answer-inner { padding: 0 1.15rem 1.15rem; }
  .form-control { font-size: 16px; } /* prevent iOS zoom on focus */
  input, select, textarea { font-size: 16px; }
  .process-step { padding: 1.5rem 1rem; }
  .page-hero p { font-size: 0.975rem; white-space: normal; }
  .clients-section .section-header { margin-bottom: 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .btn-lg { padding: 0.875rem 1.25rem; font-size: 0.9375rem; }
  .hero,
  .hero.hero-compact { padding: 1.75rem 0 2rem; height: auto; max-height: none; }
  .hero h1,
  .hero-compact h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .hero-call-btn { font-size: 0.875rem; }
  /* Keep 2 columns for products, industries, counters */
  .grid-3,
  .grid-4,
  .grid-5,
  .grid.products-home-grid,
  .industries-served-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  .hero-compact .btn-group .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .stats-bar {
    grid-template-columns: 1fr 1fr !important;
    text-align: center;
    gap: 0.85rem 0.65rem;
  }
  .stat-item strong { font-size: 1.55rem; }
  .header-cta .btn-sm { display: none; }
  .btn-group .btn { width: 100%; }
  .section { padding: 2rem 0; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .industry-card,
  .industries-slider .industry-card {
    padding: 1.35rem 1rem;
  }
  .industry-card h3,
  .industries-slider .industry-card h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }
  .industry-card p,
  .industries-slider .industry-card p {
    font-size: 0.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* Print */
@media print {
  .header, .topbar, .float-actions, .mobile-cta, .footer { display: none; }
  body { color: #000; }
}

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible { outline-offset: 3px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
