/* ==========================================================================
   KM pure water solutions — Clean Premium White Theme
   Design Rules:
   - White backgrounds (#FFFFFF, #FAFAFA, #F7F5F2)
   - Forest green accent (#0D1B2A) for buttons, badges, CTAs
   - Warm tan secondary (#0795D4) for eyebrows, focus, icons
   - 6px sharp corners EVERYWHERE (no capsules, no pill shapes)
   - Full-width sticky navigation header (not floating)
   - Premium European-inspired spacing and typography
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-3: #F2FAFE;
  --bg-green-soft: #F2FAFE;
  --bg-surface: #FFFFFF;

  /* Primary Green Palette */
  --green-primary: #0D1B2A;
  --green-hover: #070F18;
  --green-accent: #1B3A57;
  --green-soft: #EAF7FD;
  --green-border: #CDEBF8;
  --bg-dark: #0D1B2A;
  --bg-dark-hover: #070F18;
  --bg-footer: #08121D;

  /* Electric Royal Blue Accent Palette */
  --blue-accent: #00AEEF;
  --blue-hover: #0092CC;
  --blue-light: #E6F7FE;
  --blue-border: #BDE8FA;

  /* Alias Legacy Overrides (Replaces all purple/violet occurrences) */
  --purple-light: #00AEEF;
  --purple-accent: #0D1B2A;
  --purple-vivid: #00AEEF;
  --purple-mid: #1B3A57;
  --purple-dark: #0D1B2A;
  --purple-xdark: #070F18;
  --purple-soft: #EAF7FD;
  --grad-purple: linear-gradient(135deg, #0D1B2A 0%, #00AEEF 100%);
  --grad-text: linear-gradient(135deg, #0D1B2A 0%, #00AEEF 100%);
  --grad-bg: radial-gradient(ellipse at 50% 0%, rgba(13, 27, 42, 0.06) 0%, transparent 68%);

  /* Neutral Accents */
  --fg: #0D1B2A;
  --muted: #4F6275;
  --tan: #0795D4;
  --gold: #5CCBF5;
  --tan-light: #E8F6FD;

  /* Borders & Shadows */
  --border: #E4E7EB;
  --border-2: #CFDCE5;
  --shadow-sm: 0 1px 4px rgba(13, 27, 42, 0.05);
  --shadow-card: 0 4px 20px rgba(13, 27, 42, 0.05);
  --shadow-hover: 0 12px 36px rgba(13, 27, 42, 0.10);
  --shadow-deep: 0 20px 60px rgba(13, 27, 42, 0.14);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  /* Radius — strict 6px sharp */
  --radius: 6px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

[hidden] {
  display: none !important;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(0, 174, 239, 0.15);
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 2px;
}

/* ── Layout & Section Breaks ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container.narrow {
  max-width: 720px;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-green-soft);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}

.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(226, 239, 233, 0.4) 15%,
      rgba(13, 27, 42, 0.25) 35%,
      var(--green-primary) 50%,
      rgba(13, 27, 42, 0.25) 65%,
      rgba(226, 239, 233, 0.4) 85%,
      transparent 100%);
  overflow: visible;
  border: none;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 1px;
  background: var(--green-primary);
  box-shadow:
    0 0 12px 2px rgba(13, 27, 42, 0.35),
    0 0 24px 6px rgba(27, 58, 87, 0.15);
  border-radius: 999px;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow:
    0 0 8px 3px rgba(13, 27, 42, 0.4),
    0 0 16px 6px rgba(27, 58, 87, 0.2);
}

.center {
  text-align: center;
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

h4 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.font-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.grad {
  /* In white theme grad = plain dark text, no gradient fill */
  color: var(--fg);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tan);
  margin-bottom: 0.7rem;
}

.eyebrow-muted {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: center;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.83rem;
}

.strong {
  font-weight: 700;
}

/* ── Glass Card (white version) ─────────────────────────────────────────── */
.glass {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ── Generic Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
}

.card.sm {
  padding: 1.25rem;
}

.card.sm h3 {
  font-size: 1rem;
  margin-top: 0.6rem;
}

/* ── Buttons — strict 6px, no capsules ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius) !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  will-change: transform;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Primary — dark forest green */
.btn-purple,
.btn-forest {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}

.btn-purple:hover,
.btn-forest:hover {
  background: var(--bg-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.22);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--fg);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Tan */
.btn-tan {
  background: var(--tan);
  color: #FFFFFF;
  border-color: var(--tan);
}

.btn-tan:hover {
  background: var(--tan-hover);
}

/* Ghost / link */
.ghost-link {
  font-size: 0.88rem;
  color: var(--muted);
}

.ghost-link:hover {
  color: var(--fg);
}

.link-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--tan);
  font-weight: 600;
}

.link-purple:hover {
  text-decoration: underline;
}

/* ── Dot / Pulse indicators ─────────────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.pulse {
  animation: pulse-anim 2.5s ease-in-out infinite;
}

@keyframes pulse-anim {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.pulse-glow {
  animation: pulse-anim 2.5s ease-in-out infinite;
}

/* ── Icon Tile ──────────────────────────────────────────────────────────── */
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius) !important;
  background: var(--tan-light);
  color: var(--bg-dark);
  flex-shrink: 0;
}

.icon-tile.lg {
  width: 3rem;
  height: 3rem;
}

.icon-tile i,
.icon-tile svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ── Icon Btn (mini) ────────────────────────────────────────────────────── */
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-surface);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--tan);
  color: var(--tan);
}

/* ── Chip (hero pill) ───────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius) !important;
  background: var(--tan-light);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg);
}

.chip-arrow {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--muted);
}

/* ── Chip Tile (hero cards connector) ───────────────────────────────────── */
.chip-tile {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius) !important;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── 1. Announcement Bar ─────────────────────────────────────────────────── */
.announce {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0;
  font-size: 0.8rem;
}

@media (max-width: 1023px) {
  .announce {
    padding: 0.2rem 0;
    font-size: 0.62rem;
  }
}

.announce-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.announce .muted {
  color: rgba(255, 255, 255, 0.65);
}

.announce .dot {
  background: var(--gold);
}

.announce a.link-purple {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Desktop default: duplicated track content behaves as normal inline items,
   the duplicate copy stays hidden so nothing changes on desktop. */
.announce-track {
  display: contents;
}

.announce-track-dup {
  display: none;
}

/* ── Announcement bar — scrolling marquee on mobile/tablet only ─────────── */
@media (max-width: 1023px) {
  .announce {
    overflow: hidden;
  }

  .announce-inner {
    max-width: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: announce-marquee 16s linear infinite;
    will-change: transform;
  }

  .announce:hover .announce-inner {
    animation-play-state: paused;
  }

  .announce-inner .announce-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0;
    white-space: nowrap;
  }

  .announce-inner .announce-track-dup {
    display: flex;
  }
}

@keyframes announce-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .announce-inner {
    animation: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── 2. Header — Full-Width Sticky (not floating) ────────────────────────── */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
  /* Override any glass styles */
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 1rem;
  /* No glass, no rounded — full width */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: var(--radius) !important;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius) !important;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--bg-dark);
  /* Override any gradient */
  background: none !important;
  -webkit-text-fill-color: var(--bg-dark) !important;
  background-clip: initial !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
  border-radius: 0 !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--tan);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Cart Button */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius) !important;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-btn:hover {
  background: var(--bg-dark-hover);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--tan);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Menu button (mobile) */
.menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.menu-btn:hover {
  border-color: var(--tan);
  color: var(--tan);
}

.menu-btn.is-open {
  border-color: var(--tan);
  color: var(--tan);
}

/* Mobile nav panel */
.nav-mobile {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  border-radius: 0 !important;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  border-radius: 0 !important;
  transition: color 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--bg-dark);
}

.nav-mobile a.active {
  color: var(--tan);
  font-weight: 700;
  background: var(--bg-2);
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  padding-right: 0.85rem;
  margin-right: -0.85rem;
  border-left: 3px solid var(--tan);
}

.nav-mobile .btn-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
}

.nav-mobile .btn-mobile-cta:hover {
  background: var(--bg-dark-hover);
  color: #FFFFFF;
}

/* Desktop: show links, hide hamburger */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .menu-btn {
    display: none !important;
  }

  .nav-mobile {
    display: none !important;
  }

  .nav-actions .btn {
    display: inline-flex;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn:not(.cart-btn) {
    display: none;
  }

  /* Reflow header to: hamburger (left) — logo (centered) — cart (right).
     .nav-actions groups cart-btn + menu-btn in the DOM, but they need to sit
     on opposite sides of the centered logo, so unwrap it with display:contents
     so its children become direct flex items of .nav and can be reordered
     independently. */
  .nav-actions {
    display: contents;
  }

  .menu-btn {
    order: -1;
  }

  .cart-btn {
    order: 1;
  }

  .nav .logo {
    order: 0;
    flex: 1;
    justify-content: center;
  }
}


/* ── 3. Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.30) 50%, rgba(255, 255, 255, 0.16) 100%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.28) 60%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: #050D16;
  margin-top: 2rem;
  margin-bottom: 0;
}

.hero-sub {
  max-width: 580px;
  margin: 1.5rem auto 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
  color: #1B2A3A;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1B2A3A;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta i {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--tan);
}

/* Mobile/tablet: stack the checklist and left-align icons + text in one column */
@media (max-width: 767px) {
  .hero-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 0.75rem;
    text-align: left;
  }

  .hero-meta span { align-items: center; }

  .hero-meta i {
    flex: 0 0 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
  }
}

/* Hero cards (3-up grid below CTA) */
.hero-cards {
  margin-top: 4rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

/* Phone: 1 column */
@media (max-width: 639px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
}

/* Tablet (640-1023px): 2 columns, lone third card centred on its own row */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cards>.card:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.25rem) / 2);
  }
}

/* hero card visuals */
.visual {
  position: relative;
  height: 150px;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius) !important;
}

/* ── 4. Trusted By ───────────────────────────────────────────────────────── */
.trusted {
  padding: 3.5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brands-marquee {
  margin-top: 1.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 1.75rem;
}

/* Animation starts once JS has cloned enough copies of the set to fill the screen */
.brands-track.is-ready {
  animation: brands-scroll var(--brands-duration, 22s) linear infinite;
}

.brands-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: inherit;
}

.brands-track div {
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.brands-track div:hover {
  color: var(--fg);
}

.brand-dot {
  flex: 0 0 auto;
  color: rgba(15, 23, 42, 0.4);
  font-weight: 700;
  font-size: 1.1rem;
}

@keyframes brands-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--brands-shift, -50%));
  }
}

@media (max-width: 900px) {
  .brands-track {
    gap: 1.25rem;
  }
}

@media (max-width: 500px) {
  .brands-track {
    gap: 1rem;
  }

  .brands-track div {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .brands-track,
  .brands-track.is-ready {
    animation: none;
  }
}

/* ── 5. About Section ────────────────────────────────────────────────────── */
.about .lead {
  margin: 1.4rem auto 0;
  max-width: 720px;
}

.about-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-img-container {
  position: relative;
  border-radius: var(--radius) !important;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}

.about-img-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-container:hover img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 500px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-card);
}

.pillar-card h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Mission block */
.about-mission {
  margin-top: 3.5rem;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-mission .font-display {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.55;
}

.about-stats-mini {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-mini-v {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--bg-dark);
  font-weight: 400;
}

.stat-mini-l {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── 6. Services Grid ─────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Products Grid ──────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile/Tablet Carousel: Services & Products ─────────────────────────── */
.carousel-nav {
  display: none;
}

.carousel-track {
  position: relative;
}

@media (max-width: 1023px) {
  .carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 4px !important;
    background: var(--border-2);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
    padding: 0;
    border: none;
  }

  .carousel-dot.active {
    width: 22px;
    background: var(--bg-dark);
  }

  .carousel-arrows {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
  }

  .carousel-arrow {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .carousel-arrow i {
    width: 1.1rem;
    height: 1.1rem;
  }

  .carousel-arrow:hover,
  .carousel-arrow:active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: #FFFFFF;
  }

  .carousel-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--fg);
  }

  /* Turn the grids into a one-card-at-a-time swipeable track */
  .grid-3,
  .product-grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .grid-3::-webkit-scrollbar,
  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .grid-3>*,
  .product-grid>* {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Pricing, Blog & Portfolio: show all cards stacked one below another
     instead of the swipeable single-card carousel used by Services/Products. */
  #pricing .grid-3,
  #blog .grid-3,
  #portfolio .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  #pricing .grid-3>*,
  #blog .grid-3>*,
  #portfolio .grid-3>* {
    flex: none;
    scroll-snap-align: none;
  }

  /* Full-width service card button on mobile/tablet */
  .svc-btn {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Tablet (640-1023px): Services & Products as a 2-column grid instead of one
   full-width card per slide. Phones (<640px) keep the swipe carousel. */
@media (min-width: 640px) and (max-width: 1023px) {

  #servicesTrack,
  #productsTrack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  #servicesTrack>*,
  #productsTrack>* {
    flex: none;
    scroll-snap-align: none;
    min-width: 0;
  }

  /* lone third card sits centred on its own row, same width as the others */
  #servicesTrack> :nth-child(3):last-child,
  #productsTrack> :nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.25rem) / 2);
  }

  /* all cards are visible, so the dots/arrows are not needed */
  .carousel-nav {
    display: none;
  }
}


.svc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.svc-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.svc-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.svc-features {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.svc-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.svc-features li i {
  width: 1rem;
  height: 1rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.svc-btn {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius) !important;
  transition: background 0.2s, color 0.2s;
}

.svc-btn:hover {
  background: var(--bg-dark);
  color: #FFFFFF;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
}

.product-slider {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-3);
}

.product-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-slide.active {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px !important;
}

.product-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.product-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.product-dot.active {
  background: #FFFFFF;
  width: 14px;
}

.product-info {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.product-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.product-info p.muted {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.1;
}

.product-price .price-from {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}

.product-price .grad {
  color: var(--bg-dark);
  background: none !important;
  -webkit-text-fill-color: var(--bg-dark) !important;
}

.product-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius) !important;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.product-buy-btn:hover {
  background: var(--fg);
  color: #FFFFFF;
  border-color: var(--fg);
}

.product-atc-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: var(--bg-dark);
  color: #FFFFFF;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.8rem 1rem;
  border-radius: var(--radius) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-atc-btn:hover {
  background: var(--bg-dark-hover);
  transform: translateY(-1px);
}

/* Mobile/tablet: stack Buy Now below the price and style it the same as
   the Add to Cart button (full-width, filled dark) instead of the small
   outlined pill used on desktop. */
@media (max-width: 900px) {
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-buy-btn {
    width: 100%;
    justify-content: center;
    background: var(--bg-dark);
    color: #FFFFFF;
    border-color: var(--bg-dark);
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
  }

  .product-buy-btn:hover {
    background: var(--bg-dark-hover);
    border-color: var(--bg-dark-hover);
    color: #FFFFFF;
  }
}

/* ── 7. Features Grid (2-col) ───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card.sm .ico {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--tan);
}

/* ── 8. Stats Section ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius) !important;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-card);
}

.stat {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-v {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: var(--bg-dark);
  background: none !important;
  -webkit-text-fill-color: var(--bg-dark) !important;
}

.stat-l {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .stat {
    padding: 1.75rem 0.85rem;
    min-width: 0;
  }

  .stat-v {
    font-size: 1.35rem;
    word-break: break-word;
  }

  .stat-l {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.35;
  }
}

/* ── 9. Portfolio Section ─────────────────────────────────────────────────── */
.port-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.port-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.port-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-3);
}

.port-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.port-card:hover .port-img img {
  transform: scale(1.06);
}

.tag,
.gal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px !important;
}

.port-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.port-meta h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
}

.port-meta i {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
}

/* ── 10. Gallery / Bento Grid ─────────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.gal-filter {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  background: var(--bg-surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gal-filter:hover,
.gal-filter.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) !important;
  cursor: pointer;
  background: var(--bg-3);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gal-item.tall {
  grid-row: span 2;
}

.gal-item.wide {
  grid-column: span 2;
}

.gal-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius) !important;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gal-item:hover .gal-zoom {
  opacity: 1;
}

.gal-zoom i {
  width: 1rem;
  height: 1rem;
  color: var(--fg);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 27, 42, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-caption h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.gal-caption p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Lightbox — HIDDEN BY DEFAULT, shown only when .open class is added by JS */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.92);
  display: none;
  /* Hidden until JS adds .open */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  background: var(--bg-surface);
  border-radius: var(--radius) !important;
  padding: 0 0 1.5rem;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 2001;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #000000;
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: #222222;
  color: #FFFFFF;
}

#lbImg {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  background: #000;
}

.lightbox-info {
  margin-top: 1rem;
  padding: 0 1.5rem;
  text-align: center;
}

.lightbox-info h4 {
  font-size: 1.05rem;
}

.lightbox-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 2001;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--green-primary, var(--bg-dark));
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev i,
.lightbox-next i {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
  }

  .gal-item.big {
    grid-column: span 2;
  }

  .gal-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gal-item.big,
  .gal-item.tall,
  .gal-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ── 11. Process (How It Works) ───────────────────────────────────────────── */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process {
    grid-template-columns: 1fr;
  }
}

.process-line {
  display: none;
  /* hide the absolute line concept */
}

.step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s;
}

.step:hover {
  border-color: var(--tan);
  transform: translateY(-4px);
}

.step-n {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-top: 0;
}

.step p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── 12. Testimonials Marquee ───────────────────────────────────────────── */
.testimonial-marquee {
  overflow: hidden;
  padding: 2rem 0;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 50s linear infinite;
  width: max-content;
  will-change: transform;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial,
blockquote.testimonial {
  width: 360px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.stars {
  color: var(--tan);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius) !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.testimonial-user .name {
  font-weight: 700;
  font-size: 0.88rem;
}

/* ── 13. Pricing Tiers ───────────────────────────────────────────────────── */
.tier {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier.featured {
  border-color: var(--bg-dark) !important;
  box-shadow: var(--shadow-deep) !important;
  transform: translateY(-6px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px !important;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.price {
  margin: 1.2rem 0 1.5rem;
}

.price .grad {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--bg-dark) !important;
  background: none !important;
  -webkit-text-fill-color: var(--bg-dark) !important;
}

.tier ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.tier ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--muted);
}

.tier ul li i {
  width: 1rem;
  height: 1rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.tier .btn {
  margin-top: 2rem;
}

/* ── 14. Blog Cards ──────────────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.blog-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.blog-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-3);
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tan);
  background: var(--tan-light);
  padding: 0.25rem 0.65rem;
  border-radius: 4px !important;
}

.blog-read-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.blog-read-time i {
  width: 0.85rem;
  height: 0.85rem;
}

.blog-content h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius) !important;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}

.post-date {
  font-size: 0.74rem;
  color: var(--muted);
}

.blog-arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
}

.blog-card:hover .blog-arrow {
  color: var(--bg-dark);
}

/* ── 15. FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--tan);
}

.faq-item[open] {
  border-color: var(--bg-dark);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary {
  background: var(--bg-2);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── 16. Final CTA Section ──────────────────────────────────────────────── */
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--fg);
  box-shadow: var(--shadow-card);
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.03;
  pointer-events: none;
}

.cta-veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(250, 250, 250, 0.95) 100%);
  pointer-events: none;
}

.cta-card>* {
  position: relative;
  z-index: 1;
}

.cta-card .eyebrow {
  color: var(--tan);
}

.cta-card h2 {
  color: var(--fg);
  margin-top: 0.75rem;
}

.cta-card .lead {
  color: var(--muted);
  margin-top: 0.75rem;
}

.cta-actions {
  /* equal-width buttons: every column is as wide as the widest button */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* Stack on small screens, still equal width */
@media (max-width: 600px) {
  .cta-actions {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
  }
}

.cta-card .btn-outline {
  background: #FFFFFF;
  border: 1px solid var(--fg);
  color: var(--fg);
}

.cta-card .btn-outline:hover {
  background: var(--fg);
  color: #FFFFFF;
}

/* ── 17. Contact Section ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-item-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.contact-list li a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  overflow-wrap: break-word;
}

.icon-mini {
  width: 44px;
  height: 44px;
  border-radius: 14px !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-list li:hover .icon-mini {
  transform: translateY(-2px) scale(1.06);
}

.icon-mini-location {
  background: var(--green-soft);
  color: var(--green-primary);
  border-color: var(--green-border);
}

.icon-mini-email {
  background: var(--blue-light);
  color: var(--blue-accent);
  border-color: var(--blue-border);
}

.icon-mini-phone {
  background: var(--tan-light);
  color: var(--tan);
  border-color: var(--border-2);
}

.contact-list li:hover .icon-mini-location,
.contact-list li:hover .icon-mini-email,
.contact-list li:hover .icon-mini-phone {
  background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
  color: #FFFFFF;
  border-color: var(--green-primary);
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.28);
}

.map,
.map-container {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  height: 260px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.map iframe,
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

label span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  background: var(--bg-2);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--tan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  background: var(--bg-2);
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.2s;
  height: 50px;
}

.custom-select.active .custom-select-trigger {
  border-color: var(--tan);
  background: var(--bg-surface);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-hover);
  z-index: 200;
  display: none;
  overflow: hidden;
}

.custom-select.active .custom-select-options {
  display: block;
}

.custom-option {
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.custom-option:hover,
.custom-option.selected {
  background: var(--tan-light);
  color: var(--bg-dark);
  font-weight: 600;
}

.selected-text {
  color: var(--muted);
  transition: color 0.2s;
}

.selected-text.has-value {
  color: var(--fg);
}

/* ── Contact Form — bold inverted dark-green panel ─────────────────────── */
.contact-form {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: 3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius) !important;
  background: var(--tan-light);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-dark);
}

.contact-form-kicker .dot {
  background: var(--bg-dark);
}

.contact-form-title {
  color: var(--fg);
  font-size: 1.5rem;
  margin: -0.3rem 0 0.3rem;
}

.contact-form label span {
  color: var(--fg);
}

.contact-form input,
.contact-form textarea,
.contact-form .custom-select-trigger {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form .custom-select.active .custom-select-trigger {
  border-color: var(--tan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.contact-form .custom-select-options {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}

.contact-form .custom-option:hover,
.contact-form .custom-option.selected {
  background: var(--tan-light);
  color: var(--bg-dark);
}

.contact-form .btn-purple {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}

.contact-form .btn-purple:hover {
  background: var(--bg-dark-hover);
  color: #FFFFFF;
  border-color: var(--bg-dark-hover);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.22);
}

/* ── 18. Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  color: #D6D0C8;
  padding: 5rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-brand .logo,
.footer .logo {
  order: unset;
  flex: 0 0 auto;
  width: fit-content;
  max-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.footer-brand .logo-word {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-align: left;
}

.footer-brand .logo,
.footer-brand .logo-img {
  background: transparent !important;
  box-shadow: none;
}

.footer-brand .logo-img { opacity: 0.85; }

.footer-brand p {
  color: #9A9289;
  margin-top: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
  font-size: 0.85rem;
  text-align: left;
}

@media (max-width: 1024px) {
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 1.5rem;
    margin-bottom: 3.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand .logo,
  .footer .logo {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .footer-brand p {
    max-width: 480px;
    text-align: left;
  }

  .socials {
    justify-content: flex-start;
  }
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.footer ul li {
  margin-bottom: 0.65rem;
}

.footer ul li a {
  color: #9A9289;
  transition: color 0.2s;
  font-size: 0.85rem;
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6A655E;
  font-size: 0.82rem;
}

.foot-links {
  display: flex;
  gap: 1.5rem;
}

.foot-links a {
  color: #6A655E;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--gold);
}

.footer-credit-link {
  color: var(--tan) !important;
  font-weight: 600;
  text-decoration: none;
}

.footer-credit-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, 0.06);
  color: #D6D0C8;
  transition: background 0.2s, color 0.2s;
}

.socials a:hover {
  background: var(--tan);
  color: #FFFFFF;
}

/* ── 19. Cart Drawer & Overlay ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 1100;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  border-radius: 0 !important;
  box-shadow: -8px 0 40px rgba(13, 27, 42, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

/* ── 20. Reveal Animation ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility Classes ─────────────────────────────────────────────────────── */
.features-grid {}

.portfolio {}

/* ── Global Responsive Fixes ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .about-mission {
    padding: 2rem 1.5rem;
    margin-top: 2.5rem;
  }

  .about-mission .font-display {
    font-size: 1.1rem;
  }

  .about-stats-mini {
    gap: 1.25rem;
  }

  .stat-mini-v {
    font-size: 1.5rem;
  }

  .stat-mini-l {
    font-size: 0.68rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 3rem 1.5rem;
  }

  .footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.5rem;
    margin-bottom: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand .logo,
  .footer .logo {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .footer-brand p {
    max-width: 100%;
    text-align: left;
  }

  .socials {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .foot-links {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-mission {
    padding: 1.75rem 1.1rem;
  }

  .about-mission .font-display {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-stats-mini {
    gap: 0.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
  }

  .about-stats-mini>div {
    flex: 1 1 0;
    min-width: 0;
  }

  .stat-mini-v {
    font-size: 1.15rem;
  }

  .stat-mini-l {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
    margin-bottom: 2.25rem;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand .logo,
  .footer .logo {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .footer-brand p {
    text-align: left;
  }

  .socials {
    justify-content: flex-start;
  }

  .footer h4 {
    margin-bottom: 0.85rem;
    text-align: left;
  }

  .footer ul li {
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
    gap: 0.85rem;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom>div {
    text-align: left;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── Cart.css Override — Force White Theme on Cart Components ─────────────
   cart.css loads AFTER style.css, so these rules must use !important
   to override the legacy purple glassmorphism cart styles.
   ────────────────────────────────────────────────────────────────────────── */

/* Cart Nav Button — white theme square */
.cart-btn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 6px !important;
  border: 1px solid #0D1B2A !important;
  background: #0D1B2A !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  transform: none !important;
}

.cart-btn:hover {
  background: #1A241B !important;
  border-color: #1A241B !important;
  transform: none !important;
}

/* Cart Badge — white theme square */
.cart-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  background: #0795D4 !important;
  color: #FFFFFF !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: none !important;
  transform: scale(1) !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Cart Drawer — white theme */
.cart-drawer {
  background: #FFFFFF !important;
  border-left: 1px solid #E4E1DC !important;
  border-radius: 0 !important;
  box-shadow: -8px 0 40px rgba(13, 27, 42, 0.15) !important;
}

/* Cart Overlay */
.cart-overlay {
  background: rgba(13, 27, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}

/* Cart Buy Button */
.cart-buy-btn {
  background: #0D1B2A !important;
  border-radius: 6px !important;
  color: #FFFFFF !important;
}

.cart-buy-btn:hover {
  background: #1A241B !important;
}

/* ==========================================================================
   Hero cards — water-purification visuals (clean, instrument-panel style)
   Card 1: raw water flows through Sediment → Carbon → UV and comes out safe
   Card 2: TDS gauge counts down while the water in the glass turns clear
   Card 3: filter-life bars run down, a reminder fires, service restores them
   ========================================================================== */
.wp-visual {
  height: auto;
  aspect-ratio: 260 / 156;
  padding: .4rem .5rem;
  background: linear-gradient(180deg, #F6FBFE 0%, #FFFFFF 100%);
  border: 1px solid #E3EEF5;
}

.wp-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wp-svg text {
  font-family: var(--font-sans);
}

/* shared bits */
.wp-pill {
  fill: #EAF7FD;
  stroke: #BDE8FA;
  stroke-width: 1;
}

.wp-pill-txt {
  fill: #0A6C9A;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── Card 1 · Safe Water, Every Glass ───────────────────────────────────── */
.wp-src-labels text {
  fill: #4F6275;
  font-size: 9px;
  font-weight: 600;
}

.wp-src-lines path {
  fill: none;
  stroke: #B58B4C;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  animation: wp-dash 1.4s linear infinite;
}

.wp-pipe {
  fill: none;
  stroke: #E3EEF5;
  stroke-width: 10;
  stroke-linecap: round;
}

.wp-flow {
  fill: none;
  stroke: url(#wpFlow);
  stroke-width: 4;
  stroke-dasharray: 8 6;
  animation: wp-dash 1.2s linear infinite;
}

@keyframes wp-dash {
  to {
    stroke-dashoffset: -28;
  }
}

.wp-cart {
  fill: #FFFFFF;
  stroke: #BFD9E8;
  stroke-width: 1.2;
}

.wp-cap {
  fill: #0D1B2A;
}

.wp-lines {
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 1;
  fill: none;
}

.wp-media {
  animation: wp-glow 3s ease-in-out infinite;
}

.wp-media.m1 {
  fill: #C9A56B;
}

.wp-media.m2 {
  fill: #3B4B5C;
  animation-delay: .6s;
}

.wp-media.m3 {
  fill: #5CCBF5;
  animation-delay: 1.2s;
}

@keyframes wp-glow {

  0%,
  100% {
    opacity: .75;
  }

  50% {
    opacity: 1;
  }
}

.wp-stage-labels text {
  fill: #4F6275;
  font-size: 8.5px;
  font-weight: 600;
}

.wp-out {
  fill: #0D1B2A;
}

.wp-out-drop {
  fill: #5CCBF5;
}

.wp-ring {
  fill: none;
  stroke: #00AEEF;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: wp-ring 2.4s ease-out infinite;
}

@keyframes wp-ring {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.wp-safe-lbl {
  fill: #0795D4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Card 2 · Better Taste, Better Health ───────────────────────────────── */
@property --wp-n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 45;
}

.wp-gauge-track {
  fill: none;
  stroke: #E3EEF5;
  stroke-width: 10;
  stroke-linecap: round;
}

.wp-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 90;
  stroke: #00AEEF;
  animation: wp-arc 7s ease-in-out infinite;
}

@keyframes wp-arc {

  0%,
  8% {
    stroke-dashoffset: 4;
    stroke: #B58B4C;
  }

  55%,
  88% {
    stroke-dashoffset: 90;
    stroke: #00AEEF;
  }

  100% {
    stroke-dashoffset: 4;
    stroke: #B58B4C;
  }
}

.wp-tds {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1;
  color: var(--fg);
}

.wp-tds-num {
  --wp-n: 45;
  counter-reset: wpn var(--wp-n);
  font-size: 24px;
  font-weight: 800;
  animation: wp-count 7s ease-in-out infinite;
}

.wp-tds-num::after {
  content: counter(wpn);
}

.wp-tds-unit {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes wp-count {

  0%,
  8% {
    --wp-n: 480;
  }

  55%,
  88% {
    --wp-n: 45;
  }

  100% {
    --wp-n: 480;
  }
}

.wp-safe {
  opacity: 0;
  animation: wp-safe 7s ease-in-out infinite;
}

.wp-safe-check {
  fill: none;
  stroke: #0795D4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes wp-safe {

  0%,
  54% {
    opacity: 0;
  }

  62%,
  88% {
    opacity: 1;
  }

  95%,
  100% {
    opacity: 0;
  }
}

.wp-glass {
  fill: rgba(255, 255, 255, .28);
  stroke: #9DB3C3;
  stroke-width: 2;
  stroke-linejoin: round;
}

.wp-shine {
  fill: none;
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 3;
  stroke-linecap: round;
}

.wp-wave-move {
  animation: wp-wave 1.6s linear infinite;
}

@keyframes wp-wave {
  to {
    transform: translateX(-28px);
  }
}

.wp-water {
  fill: #8FD8F5;
  animation: wp-water 7s ease-in-out infinite;
}

@keyframes wp-water {

  0%,
  8% {
    fill: #C9A56B;
  }

  55%,
  88% {
    fill: #8FD8F5;
  }

  100% {
    fill: #C9A56B;
  }
}

.wp-speck {
  fill: #8A6A38;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: wp-speck 7s ease-in-out infinite;
}

@keyframes wp-speck {

  0%,
  10% {
    opacity: .85;
    transform: translate(0, 0);
  }

  45% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }

  92% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }

  100% {
    opacity: .85;
    transform: translate(0, 0);
  }
}

.wp-bubbles {
  opacity: 0;
  animation: wp-bub-on 7s ease-in-out infinite;
}

@keyframes wp-bub-on {

  0%,
  50% {
    opacity: 0;
  }

  58%,
  86% {
    opacity: 1;
  }

  94%,
  100% {
    opacity: 0;
  }
}

.wp-bubble {
  fill: rgba(255, 255, 255, .55);
  stroke: rgba(255, 255, 255, .95);
  stroke-width: 1;
  animation: wp-bubble 2.4s ease-in infinite;
}

@keyframes wp-bubble {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateY(-58px);
    opacity: 0;
  }
}

.wp-spark {
  fill: #00AEEF;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: wp-spark 7s ease-in-out infinite;
}

@keyframes wp-spark {

  0%,
  54% {
    transform: scale(0);
  }

  62% {
    transform: scale(1.1);
  }

  72%,
  100% {
    transform: scale(0);
  }
}

/* ── Card 3 · Care That Lasts ───────────────────────────────────────────── */
.wp-head {
  fill: var(--fg);
  font-size: 11px;
  font-weight: 800;
}

.wp-row-lbl {
  fill: #4F6275;
  font-size: 9.5px;
  font-weight: 600;
}

.wp-track {
  fill: #E3EEF5;
}

.wp-life {
  fill: #00AEEF;
  transform-box: fill-box;
  transform-origin: left center;
  animation: wp-life 8s ease-in-out infinite;
}

@keyframes wp-life {

  0%,
  6% {
    transform: scaleX(1);
    fill: #00AEEF;
  }

  44%,
  50% {
    transform: scaleX(.18);
    fill: #E0A030;
  }

  66%,
  100% {
    transform: scaleX(1);
    fill: #00AEEF;
  }
}

.wp-ok {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: wp-ok 8s ease-in-out infinite;
}

.wp-ok circle {
  fill: #0795D4;
}

.wp-ok path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes wp-ok {

  0%,
  64% {
    opacity: 0;
    transform: scale(.4);
  }

  72%,
  94% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(.4);
  }
}

.wp-st {
  opacity: 0;
}

.wp-st text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}

.wp-st.s1 rect {
  fill: #EAF7FD;
  stroke: #BDE8FA;
}

.wp-st.s1 text {
  fill: #0A6C9A;
}

.wp-st.s2 rect {
  fill: #FFF4E0;
  stroke: #F3D9A4;
}

.wp-st.s2 text {
  fill: #9A6200;
}

.wp-st.s3 rect {
  fill: #0795D4;
  stroke: #0795D4;
}

.wp-st.s3 text {
  fill: #fff;
}

.wp-st.s1 {
  animation: wp-s1 8s ease-in-out infinite;
}

.wp-st.s2 {
  animation: wp-s2 8s ease-in-out infinite;
}

.wp-st.s3 {
  animation: wp-s3 8s ease-in-out infinite;
}

@keyframes wp-s1 {

  0%,
  30% {
    opacity: 1;
  }

  36%,
  96% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes wp-s2 {

  0%,
  34% {
    opacity: 0;
  }

  40%,
  54% {
    opacity: 1;
  }

  60%,
  100% {
    opacity: 0;
  }
}

@keyframes wp-s3 {

  0%,
  58% {
    opacity: 0;
  }

  64%,
  92% {
    opacity: 1;
  }

  98%,
  100% {
    opacity: 0;
  }
}

.wp-chip {
  color: #0795D4;
}

.wp-chip-bg {
  fill: #EAF7FD;
  stroke: #BDE8FA;
  stroke-width: 1;
  animation: wp-chip-bg 8s ease-in-out infinite;
}

.wp-chip text {
  fill: currentColor;
  font-size: 9px;
  font-weight: 700;
}

.wp-chip {
  animation: wp-chip-fg 8s ease-in-out infinite;
}

@keyframes wp-chip-bg {

  0%,
  2% {
    fill: #EAF7FD;
  }

  6%,
  14% {
    fill: #0795D4;
  }

  20%,
  100% {
    fill: #EAF7FD;
  }
}

@keyframes wp-chip-fg {

  0%,
  2% {
    color: #0795D4;
  }

  6%,
  14% {
    color: #fff;
  }

  20%,
  100% {
    color: #0795D4;
  }
}

/* ── Reduced motion: calm, finished state ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wp-particles {
    display: none;
  }

  .wp-src-lines path,
  .wp-flow,
  .wp-media,
  .wp-ring,
  .wp-wave-move,
  .wp-bubble {
    animation: none;
  }

  .wp-arc,
  .wp-tds-num,
  .wp-water,
  .wp-speck,
  .wp-spark,
  .wp-bubbles,
  .wp-safe,
  .wp-life,
  .wp-ok,
  .wp-st,
  .wp-chip,
  .wp-chip-bg {
    animation: none;
  }

  .wp-arc {
    stroke-dashoffset: 90;
    stroke: #00AEEF;
  }

  .wp-safe {
    opacity: 1;
  }

  .wp-speck {
    opacity: 0;
  }

  .wp-spark {
    transform: scale(1);
  }

  .wp-life {
    transform: none;
  }

  .wp-ok {
    opacity: 1;
  }

  .wp-st.s3 {
    opacity: 1;
  }
}

/* ── Tablet (640–1023px): compact, centred card buttons ───────────────────
   Phones keep the full-width buttons; on tablet they were stretching across
   the whole card. */
@media (min-width: 640px) and (max-width: 1023px) {

  /* Product cards: Buy Now + Add to Cart, same size, centred */
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-buy-btn {
    width: min(100%, 14rem);
    align-self: center;
    justify-content: center;
    background: var(--bg-dark);
    color: #FFFFFF;
    border-color: var(--bg-dark);
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
  }

  .product-buy-btn:hover {
    background: var(--bg-dark-hover);
    border-color: var(--bg-dark-hover);
    color: #FFFFFF;
  }

  .product-atc-btn {
    width: min(100%, 14rem);
    margin: 0.75rem auto 0;
  }

  /* Pricing tiers */
  .tier .btn {
    align-self: center;
    min-width: 14rem;
  }

  /* Contact form */
  .contact-form .btn-block {
    display: flex;
    width: auto;
    min-width: 14rem;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Global Live Chat Widget — Site Theme (Forest Green / Tan / White)
   ========================================================================== */

.live-chat-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform .3s, box-shadow .3s, background .3s;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.live-chat-floating-btn:hover {
  transform: scale(1.1);
  background: #1ebe59;
  box-shadow: 0 0 55px rgba(37, 211, 102, 0.55);
}

.live-chat-floating-btn svg {
  width: 2rem;
  height: 2rem;
  fill: #ffffff;
}

.live-chat-badge-pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4757;
  border: 2px solid #25D366;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Drawer */
.live-chat-drawer {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  height: 480px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.15), 0 8px 24px rgba(13, 27, 42, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity .3s ease, transform .3s ease;
}

.live-chat-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Drawer Header — Forest Green */
.chat-header {
  background: var(--bg-dark);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tan);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  position: relative;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: #ffffff;
}

.chat-avatar .online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg-dark);
}

.chat-title h4 {
  font-size: .92rem;
  color: #ffffff;
  font-weight: 700;
}

.chat-title p {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.65);
}

.chat-close-btn {
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: .25rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover {
  color: #ffffff;
}

.chat-close-btn svg,
.chat-close-btn i {
  width: 1.1rem;
  height: 1.1rem;
}

/* Drawer Body — Tan-light background */
.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--tan-light);
}

.chat-msg {
  max-width: 80%;
  padding: .65rem .9rem;
  border-radius: .85rem;
  font-size: .85rem;
  line-height: 1.45;
}

.chat-msg.agent {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: .2rem;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.08);
}

.chat-msg.user {
  background: var(--bg-dark);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: .2rem;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.18);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.chat-quick-btn {
  font-size: .75rem;
  padding: .3rem .75rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--tan);
  color: var(--tan);
  cursor: pointer;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

.chat-quick-btn:hover {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* Drawer Footer */
.chat-footer {
  padding: .65rem 1rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.chat-footer input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--fg);
  outline: none;
  transition: border-color .2s;
}

/* Prevent iOS Safari auto-zoom on focus (inputs under 16px trigger it) */
@media (max-width: 768px) {
  .chat-footer input,
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

.chat-footer input:focus {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 2px rgba(13, 27, 42, 0.1);
}

.chat-footer input::placeholder {
  color: var(--muted);
}

.chat-send-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  background: var(--bg-dark-hover);
}

.chat-send-btn svg,
.chat-send-btn i {
  width: 1.05rem;
  height: 1.05rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .live-chat-floating-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .live-chat-floating-btn svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .live-chat-drawer {
    bottom: 5rem;
    right: 1rem;
    width: calc(100vw - 2rem);
    height: 420px;
  }
}

/* "View All Services" button under the services grid */
.svc-view-all {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Nav "Get Started" button — match cart button height, narrower width */
.nav-actions .btn {
  height: 44px;
  padding: 0 1.1rem;
  font-size: 0.78rem;
  gap: 0.45rem;
  line-height: 1;
  white-space: nowrap;
}

/* ── Mobile/tablet carousels: stop vertical scrolling inside the track ─────── */
@media (max-width: 1023px) {

  .grid-3,
  .product-grid {
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  /* hover lift made the card shift/scroll vertically inside the track */
  .svc-card:hover,
  .product-card:hover {
    transform: none;
  }
}

/* ── Lightbox: shrink-wrap to the image so there is no black side space ───── */
.lightbox-inner {
  width: fit-content;
  max-width: min(800px, 90vw);
  min-width: 300px;
  overflow: hidden;
}

#lbImg {
  width: auto;
  max-width: min(800px, 90vw);
  height: auto;
  max-height: 70vh;
  margin: 0 auto;
  background: transparent;
}

/* Caption wraps to the image width instead of stretching the box (no side white space) */
.lightbox-info {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}
/* ── KM Pure Water Solutions — logo & brand overrides ───────────────────── */
:root {
  --tan-hover: #0679B0;
}

.logo-img {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 0 !important;
}

.nav {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

@media (max-width: 1023px) {
  .logo-img {
    height: 44px;
  }
}

/* Footer sits on dark navy; the logo has dark lettering, so give it a white tile */
.footer .logo-img {
  height: 56px;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius) !important;
}

/* ── Products section: blue hover state for Buy Now / Add to Cart / Explore ── */
.product-card .product-buy-btn:hover,
.product-card .product-atc-btn:hover,
.btn-blue-hover:hover {
  background: #0795D4;
  border-color: #0795D4;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(7, 149, 212, 0.35);
}

.product-card .product-atc-btn:hover,
.product-card .product-buy-btn:hover {
  transform: translateY(-1px);
}

/* ── Site-wide blue hover for primary (.btn-purple) and outline (.btn-outline) buttons ── */
.btn-purple:hover,
.btn-outline:hover,
.contact-form .btn-purple:hover,
.cta-card .btn-outline:hover {
  background: #0795D4;
  border-color: #0795D4;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(7, 149, 212, 0.35);
}

/* ── Why Choose Us: 5th card ("Sectors We Serve") centred under the 2×2 grid ── */
.features-grid .sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.features-grid .sector-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--tan-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
}

.features-grid .sector-list li i,
.features-grid .sector-list li svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--tan);
}

/* desktop + tablet (2-column grid): sit centred on its own row, same width as the others */
@media (min-width: 601px) {
  .features-grid .grid-2>.feature-center {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.25rem) / 2);
  }
}

/* ── Mobile image fit (320px and up): hero + about images stay visible ─────── */
.hero-bg-media,
.hero-bg img {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 639px) {

  /* Hero: photo fills the top band and never collapses */
  .hero {
    min-height: 0;
    overflow: hidden;
  }

  .hero-bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: min(100%, 560px);
    min-height: 320px;
  }

  .hero-bg-media,
  .hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: 65% center;
    opacity: 0.8;
  }

  .hero-bg-video {
    display: none;
  }

  /* About: image scales with screen width instead of a fixed 420px height */
  .about-img-container {
    width: 100%;
    max-width: 100%;
  }

  .about-img-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 340px;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .about-badge {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 400px) {

  .hero-bg-media,
  .hero-bg img {
    object-position: 70% center;
  }

  .about-img-container img {
    aspect-ratio: 1 / 1;
    max-height: 300px;
  }
}
/* ── Lightbox fixes: visible arrows + close button outside the card ───────── */
.lightbox-inner {
  overflow: visible; /* let the close button sit outside the card */
}

#lbImg {
  border-radius: var(--radius) var(--radius) 0 0 !important; /* keep card corners rounded now that overflow isn't clipped */
}

.lightbox-close {
  top: -3.2rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lightbox-close:hover {
  background: #E5E5E5;
  color: #000000;
}

/* Arrows: solid dark circle + white icon so they show on any image */
.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lightbox-prev svg,
.lightbox-next svg,
.lightbox-prev i,
.lightbox-next i {
  width: 1.3rem;
  height: 1.3rem;
  stroke: #FFFFFF;
  color: #FFFFFF;
  opacity: 1;
}

@media (max-width: 639px) {
  .lightbox-prev,
  .lightbox-next {
    width: 2.4rem;
    height: 2.4rem;
    z-index: 2002;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .lightbox-close {
    top: -3rem;
    right: 0;
  }
}

/* ── Lightbox mobile: card hugs the image (no side white space) ───────────── */
@media (max-width: 639px) {
  .lightbox-inner {
    min-width: 0;            /* the 300px minimum was what created the white sides */
    width: fit-content;
    max-width: 90vw;
  }

  #lbImg {
    width: auto;
    max-width: 90vw;
    max-height: 60vh;        /* leaves room above the card for the close button */
  }

  .lightbox-info {
    padding: 0 1rem;
  }
}