/* ==========================================================================
   DXRABULL ENERGY SOLUTIONS — PREMIUM UI OVERLAY
   --------------------------------------------------------------------------
   Hand-crafted, dependency-free stylesheet. Load AFTER dist/css/output.css.
   No build step required — this is a static asset.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --gold: #FFC107;
  --gold-deep: #F59E0B;
  --gold-soft: #FFD54F;
  --teal: #14B8A6;
  --navy: #0F172A;
  --navy-deep: #0B1220;
  --ink: #1E293B;
  --mist: #F1F5F9;
  --gold-grad: linear-gradient(135deg, #FFD54F 0%, #FFC107 45%, #F59E0B 100%);
  --brand-grad: linear-gradient(135deg, #FFC107 0%, #F59E0B 55%, #14B8A6 150%);
  --shadow-soft: 0 12px 40px -12px rgba(15, 23, 42, 0.16);
  --shadow-lift: 0 28px 64px -20px rgba(15, 23, 42, 0.26);
  --ease-premium: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Glassmorphism */
  --glass-blur: 16px;
  --glass-saturate: 165%;
  --glass-surface-light: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.22) 100%);
  --glass-surface-dark: linear-gradient(160deg, rgba(34, 47, 70, 0.62) 0%, rgba(21, 31, 51, 0.5) 50%, rgba(13, 20, 36, 0.4) 100%);
  --glass-edge-light: rgba(255, 255, 255, 0.65);
  --glass-edge-dark: rgba(255, 255, 255, 0.14);
  --glass-shadow-light: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 44px -18px rgba(15, 23, 42, 0.2);
  --glass-shadow-dark: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 24px 56px -24px rgba(2, 6, 17, 0.7);
}

/* ---------- Base polish ---------- */
::selection {
  background: rgba(255, 193, 7, 0.85);
  color: #0F172A;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #F59E0B rgba(15, 23, 42, 0.08);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.05); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFC107, #F59E0B);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
}

/* ---------- Brand logo ---------- */
.logo-mark {
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.35));
  transition: transform 0.45s var(--ease-premium);
}
a:hover .logo-mark {
  transform: rotate(-10deg) scale(1.06);
}

/* Header brand lockup — logo.svg is the white+gold wordmark for dark
   surfaces; logo-dark.svg is its navy+gold twin for light surfaces.
   Both images stack in the same grid cell; the visible one follows the
   nav state (top of page / scrolled in dark mode → light variant,
   scrolled in light mode on the white glass bar → dark variant). */
.site-nav .logo-nav-link {
  display: grid;
  place-items: center;
}
.site-nav .logo-nav-link .logo-nav {
  grid-area: 1 / 1;
  height: 3.25rem; /* 52px — ~234px wide at the SVG's 4.5:1 ratio */
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s var(--ease-premium), height 0.4s var(--ease-premium),
    filter 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium);
}
.site-nav .logo-nav--dark {
  opacity: 0;
}
.site-nav a:hover .logo-nav {
  transform: scale(1.05);
}
.site-nav.scrolled .logo-nav {
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.3));
}
.site-nav.scrolled .logo-nav--light {
  opacity: 0;
}
.site-nav.scrolled .logo-nav--dark {
  opacity: 1;
}
.dark .site-nav.scrolled .logo-nav--light {
  opacity: 1;
}
.dark .site-nav.scrolled .logo-nav--dark {
  opacity: 0;
}
/* The logo only shrinks inside the desktop floating bar; on mobile/tablet
   it keeps its size so the fixed bar never looks like it collapses. */
@media (min-width: 1024px) {
  .site-nav.scrolled .logo-nav {
    height: 2.25rem; /* 36px inside the compact pill */
  }
}
@media (max-width: 640px) {
  .site-nav .logo-nav {
    height: 2.25rem; /* 36px on small screens */
  }
}

/* ---------- Gradient text helper ---------- */
.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ----------
   Three states: transparent (top of page, over dark heroes), glass bar
   (scrolled, <1024px), and floating glass bar (scrolled, desktop). */
.site-nav {
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-premium), height 0.4s var(--ease-premium), background 0.3s ease;
}

/* Top-of-page state — heroes are dark, so type/icons are light */
.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
}
.site-nav .nav-link:hover {
  color: #fff;
}
.site-nav .dark-mode-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Scrolled state — glass surface (full-width bar below 1024px) */
.site-nav.scrolled {
  border-bottom: 1px solid rgba(255, 193, 7, 0.22);
  box-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.14);
}
.site-nav.scrolled .nav-link {
  color: #0F172A;
}
.site-nav.scrolled .nav-link:hover {
  color: #F59E0B;
}
.site-nav.scrolled .dark-mode-toggle {
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.04);
}
.dark .site-nav.scrolled .nav-link {
  color: #E2E8F0;
}
.dark .site-nav.scrolled .nav-link:hover {
  color: #FFC107;
}
.dark .site-nav.scrolled .dark-mode-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

/* Desktop: the scrolled bar morphs into a floating glass bar */
@media (min-width: 1024px) {
  .site-nav.scrolled {
    height: var(--nav-height-scrolled);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
  }
  .site-nav.scrolled .section-container {
    height: 3rem;            /* 48px → 8px of air above and below the floating card */
    margin-top: 0.5rem;      /* 8px — card floats clear of the 64px scrolled header top & bottom */
    max-width: 74rem;
    padding-inline: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.32);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
      0 18px 44px -18px rgba(15, 23, 42, 0.3),
      0 1px 0 rgba(255, 255, 255, 0.7) inset;
    transition: height 0.4s var(--ease-premium), margin-top 0.4s var(--ease-premium),
      border-radius 0.4s var(--ease-premium), background 0.3s ease,
      box-shadow 0.4s var(--ease-premium), max-width 0.4s var(--ease-premium);
  }
  .dark .site-nav.scrolled .section-container {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 193, 7, 0.28);
    box-shadow:
      0 18px 44px -18px rgba(2, 6, 17, 0.6),
      0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }
}

/* Mobile/tablet: compact full-width bar */
@media (max-width: 1023px) {
  .site-nav {
    height: 64px;
  }
  .site-nav.scrolled .section-container {
    padding-inline: 1rem;
  }
}

/* Nav links — animated gold→teal underline sweep */
.site-nav .nav-link {
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.3s ease;
}
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFC107, #14B8A6);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-premium);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
  transform: scaleX(1);
}
.site-nav .nav-link.active {
  background: linear-gradient(90deg, #FFD54F, #FFC107, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFC107;
}
.dark .site-nav .nav-link.active {
  background: linear-gradient(90deg, #FFD54F, #FFC107, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFC107;
}

/* Nav CTAs — sharp-cornered inside the bar */
.site-nav .nav-cta {
  border-radius: 4px;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Font Awesome icons in the nav */
.site-nav .nav-link i {
  font-size: 0.8rem;
}
.site-nav .dark-mode-toggle .icon-sun,
.site-nav .dark-mode-toggle .icon-moon {
  font-size: 1.05rem;
}
.site-nav .nav-cta i,
.mobile-menu-cta-pill i {
  font-size: 1rem;
}
.mobile-menu-close i {
  font-size: 1.25rem;
}

/* Mobile hamburger — two lines that dissolve when the menu opens */
.menu-toggle {
  position: relative;
  z-index: 5001;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium),
    border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
@media (max-width: 1023px) {
  .menu-toggle {
    display: flex; /* only on mobile — must not override lg:hidden on desktop */
  }
}
@media (min-width: 1024px) {
  .menu-toggle {
    display: none; /* desktop never shows the hamburger */
  }
}
.menu-toggle-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  margin: -1px 0 0 -0.625rem;
  border-radius: 4px;
  background: currentColor;
  transition: transform 0.35s var(--ease-premium), opacity 0.25s ease;
}
.menu-toggle-line:nth-child(1) {
  transform: translateY(-4.5px);
}
.menu-toggle-line:nth-child(2) {
  transform: translateY(4.5px);
}
.menu-toggle:hover {
  border-color: rgba(255, 193, 7, 0.7);
}
.site-nav.scrolled .menu-toggle {
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.04);
}
.dark .site-nav.scrolled .menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
/* Menu open → the toggle dissolves; the overlay owns the screen */
.menu-toggle.active {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero-gradient {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(900px 500px at -12% 112%, rgba(255, 193, 7, 0.13), transparent 55%),
    linear-gradient(135deg, #0B1220 0%, #0F172A 46%, #182741 100%);
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 38%, black 25%, transparent 78%);
  pointer-events: none;
}
.hero-headline {
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero auto-slider ---------- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-premium);
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Readability scrim + tech-grid texture over the photo */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.88) 0%, rgba(11, 18, 32, 0.55) 45%, rgba(11, 18, 32, 0.22) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, 0.65) 0%, transparent 45%);
}
.hero-slide-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 38%, black 25%, transparent 78%);
}

/* Content slides: crossfade + rise on activation */
.hero-slide-content {
  display: none;
}
.hero-slide-content.is-active {
  display: block;
  animation: heroContentIn 0.9s var(--ease-premium) both;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-kicker::before {
  content: '';
  width: 2.25rem;
  height: 2px;
  border-radius: 4px;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

/* Arrows (desktop) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.4s var(--ease-premium), color 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium),
    transform 0.4s var(--ease-premium);
}
.hero-arrow-prev { left: 2rem; }
.hero-arrow-next { right: 2rem; }
.hero-arrow:hover {
  background: var(--gold-grad);
  color: #0F172A;
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgba(255, 193, 7, 0.6);
  transform: translateY(-50%) scale(1.06);
}
.hero-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
@media (min-width: 768px) {
  .hero-arrow { display: flex; }
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.625rem;
}
.hero-dot {
  width: 2rem;
  height: 0.375rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.45s var(--ease-premium), background 0.45s var(--ease-premium),
    box-shadow 0.45s var(--ease-premium), opacity 0.45s var(--ease-premium);
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.is-active {
  width: 3.25rem;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gold-grad);
  color: #0F172A;
  border: none;
  box-shadow:
    0 12px 28px -10px rgba(245, 158, 11, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-premium);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FFD54F 0%, #FFC107 35%, #F59E0B 100%);
  box-shadow:
    0 18px 40px -12px rgba(245, 158, 11, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover::after {
  left: 130%;
}

.btn-secondary {
  background: rgba(255, 193, 7, 0.07);
  border: 1.5px solid rgba(255, 193, 7, 0.55);
  color: #F59E0B;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: #FFC107;
  border-color: #FFC107;
  color: #0F172A;
  box-shadow: 0 14px 32px -12px rgba(255, 193, 7, 0.55);
}

.btn-ghost {
  font-weight: 600;
}

/* ---------- Glassmorphism cards ---------- */
.glass-card,
.testimonial-card {
  position: relative;
  background: var(--glass-surface-light);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-edge-light);
  box-shadow: var(--glass-shadow-light);
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium),
    border-color 0.5s var(--ease-premium), background 0.5s var(--ease-premium);
}
.glass-card {
  border-radius: 4px;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: var(--glass-shadow-light), 0 30px 70px -24px rgba(245, 158, 11, 0.35);
}

/* Frosted top edge + hover sheen */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 42%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-premium);
}
.glass-card:hover::before {
  opacity: 1;
}

/* Keep card content above the sheen layer (but never override
   absolutely-positioned children such as pricing badges) */
.glass-card > *:not(.absolute) {
  position: relative;
  z-index: 1;
}

.dark .glass-card,
.dark .testimonial-card {
  background: var(--glass-surface-dark);
  border-color: var(--glass-edge-dark);
  box-shadow: var(--glass-shadow-dark);
}
.dark .glass-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%);
  opacity: 0.5;
}
.dark .glass-card:hover {
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: var(--glass-shadow-dark), 0 30px 70px -24px rgba(245, 158, 11, 0.28);
}

/* Graceful fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card,
  .testimonial-card {
    background: linear-gradient(165deg, #FFFFFF, #F1F5F9);
  }
  .dark .glass-card,
  .dark .testimonial-card {
    background: linear-gradient(165deg, #1E293B, #0F172A);
  }
}

.glass-card .w-14.rounded-xl {
  border-radius: 4px;
}

/* ---------- Product cards ---------- */
.product-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.6));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--glass-shadow-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium),
    border-color 0.5s var(--ease-premium);
}
.product-card .p-5 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .p-5 > div:last-child {
  margin-top: auto;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-light), 0 30px 70px -24px rgba(245, 158, 11, 0.35);
  border-color: rgba(255, 193, 7, 0.45);
}

/* Glossy sheen sweep on hover */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-premium);
  pointer-events: none;
  z-index: 2;
}
.product-card:hover::after {
  left: 130%;
}

/* Full-image product photos: portrait 4:5 mat so the whole photo is visible.
   (The old fixed-height banner with object-cover cropped ~70% of each photo.) */
.product-card .product-card-image {
  aspect-ratio: 4 / 5;
}
#productModal .modal-image {
  aspect-ratio: 4 / 5;
}
.product-card img {
  display: block;
}
.product-card h3 {
  transition: color 0.3s ease;
}
.product-card:hover h3 {
  color: #B45309;
}

.dark .product-card {
  background: linear-gradient(165deg, rgba(34, 47, 70, 0.72), rgba(17, 25, 42, 0.6));
  border-color: var(--glass-edge-dark);
  box-shadow: var(--glass-shadow-dark);
}
.dark .product-card:hover {
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: var(--glass-shadow-dark), 0 30px 70px -24px rgba(245, 158, 11, 0.25);
}
.dark .product-card::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.dark .product-card:hover h3 {
  color: #FFC107;
}

/* ---------- Dark mode toggle ---------- */
.dark-mode-toggle {
  border: 1.5px solid rgba(255, 193, 7, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dark-mode-toggle:hover {
  border-color: rgba(255, 193, 7, 0.75);
  background: rgba(255, 193, 7, 0.12);
  box-shadow: 0 8px 22px -8px rgba(255, 193, 7, 0.5);
}
.dark-mode-toggle svg {
  transition: transform 0.4s var(--ease-premium);
}
.dark-mode-toggle:hover svg {
  transform: rotate(20deg) scale(1.08);
}

/* ---------- Filter tabs ---------- */
/* Product filter container — contained card around the category tabs + search */
.filter-card {
  box-shadow:
    0 14px 34px -18px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.filter-tab {
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: all 0.3s var(--ease-premium);
}
.filter-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.18);
}
.dark .filter-tab {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---------- Trust indicator cards ----------
   Compact contained tiles for the trust strip under the hero. */
.trust-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.65));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  box-shadow:
    0 14px 34px -18px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium);
}
.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 7, 0.55);
  box-shadow:
    0 18px 40px -18px rgba(15, 23, 42, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.dark .trust-card {
  background: linear-gradient(165deg, rgba(34, 47, 70, 0.8), rgba(17, 25, 42, 0.7));
  border-color: var(--glass-edge-dark);
  box-shadow: var(--glass-shadow-dark);
}
.dark .trust-card:hover {
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow:
    0 20px 48px -20px rgba(2, 6, 17, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.09) inset;
}

/* ---------- Service blocks (services.php) ----------
   Side-by-side image + content cards. Hover uses border/shadow only
   so it never fights GSAP's inline reveal transform on the same element. */
.service-block {
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.service-block:hover {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 18px 44px -20px rgba(15, 23, 42, 0.28);
}
.dark .service-block:hover {
  box-shadow: 0 20px 48px -20px rgba(2, 6, 17, 0.7);
}

/* ---------- Mobile menu ----------
   Full-screen overlay with a circle reveal from the hamburger corner,
   numbered links, contact pills and a footer strip. */
.mobile-menu {
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1.75rem
    calc(env(safe-area-inset-bottom, 0px) + 1.75rem);
  background:
    radial-gradient(640px 420px at 88% 4%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(560px 460px at 6% 96%, rgba(255, 193, 7, 0.16), transparent 55%),
    linear-gradient(160deg, #0B1220 0%, #0F172A 55%, #132238 100%);
  transform: none; /* replace the slide-in with a clip-path circle reveal */
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 2.4rem) 2.2rem);
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.7s var(--ease-premium), visibility 0s linear 0.7s;
}
.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 2.4rem) 2.2rem);
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.7s var(--ease-premium);
}
/* Decorative glow + slow-spinning orbit behind the links */
.mobile-menu::before {
  content: '';
  position: absolute;
  right: -7rem;
  bottom: -5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.22), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.mobile-menu::after {
  content: '';
  position: absolute;
  right: -11rem;
  bottom: -9rem;
  width: 30rem;
  height: 30rem;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
  animation: mobileMenuSpin 46s linear infinite;
}
@keyframes mobileMenuSpin {
  to { transform: rotate(360deg); }
}

/* Top row: logo + close */
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-logo {
  height: 2.25rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(245, 158, 11, 0.35));
}
.mobile-menu-close {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: transform 0.3s var(--ease-premium), border-color 0.3s ease, background 0.3s ease;
}
.mobile-menu-close:hover {
  transform: rotate(90deg);
  border-color: rgba(255, 193, 7, 0.7);
  background: rgba(255, 193, 7, 0.12);
}

/* Link list */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
  padding: 2.25rem 0 1.5rem;
}
.mobile-menu .mobile-link {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.15;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-premium), transform 0.55s var(--ease-premium), color 0.25s ease;
}
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link.active {
  color: #FFC107;
}
.mobile-menu .mobile-link-index {
  font-family: Manrope, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 193, 7, 0.75);
  margin-top: 0.35rem;
}
.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered entrance — high specificity beats the prebuilt nth-child delays */
.mobile-menu.open .mobile-menu-nav > *:nth-child(1) {
  transition: opacity 0.55s var(--ease-premium) 0.16s, transform 0.55s var(--ease-premium) 0.16s, color 0.25s ease;
}
.mobile-menu.open .mobile-menu-nav > *:nth-child(2) {
  transition: opacity 0.55s var(--ease-premium) 0.22s, transform 0.55s var(--ease-premium) 0.22s, color 0.25s ease;
}
.mobile-menu.open .mobile-menu-nav > *:nth-child(3) {
  transition: opacity 0.55s var(--ease-premium) 0.28s, transform 0.55s var(--ease-premium) 0.28s, color 0.25s ease;
}
.mobile-menu.open .mobile-menu-nav > *:nth-child(4) {
  transition: opacity 0.55s var(--ease-premium) 0.34s, transform 0.55s var(--ease-premium) 0.34s, color 0.25s ease;
}
.mobile-menu.open .mobile-menu-nav > *:nth-child(5) {
  transition: opacity 0.55s var(--ease-premium) 0.42s, transform 0.55s var(--ease-premium) 0.42s, color 0.25s ease;
}

/* WhatsApp / Call pills */
.mobile-menu-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-premium) 0.5s, transform 0.55s var(--ease-premium) 0.5s;
}
.mobile-menu.open .mobile-menu-cta-row {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-cta-pill {
  font-family: Manrope, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  color: #4ADE80;
  background: rgba(37, 211, 102, 0.08);
  transition: transform 0.3s var(--ease-premium), border-color 0.3s ease, background 0.3s ease;
}
.mobile-menu-cta-pill:hover {
  transform: translateY(-2px);
  border-color: #4ADE80;
  background: rgba(37, 211, 102, 0.16);
}
.mobile-menu-cta-pill--call {
  border-color: rgba(20, 184, 166, 0.5);
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.08);
}
.mobile-menu-cta-pill--call:hover {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.16);
}

/* Footer strip */
.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-premium) 0.55s, transform 0.5s var(--ease-premium) 0.55s;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-contact {
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}
.mobile-menu-contact:hover {
  color: #FFC107;
}
.mobile-menu-address {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  max-width: 18rem;
}


/* ---------- Before / After slider ---------- */
.ba-slider {
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Letterbox area behind the contained images (matches the navy brand) */
  background: #0F172A;
  /* Both comparison photos are portrait — frame them without cropping */
  aspect-ratio: 3 / 4;
}
/* Keep both halves of the comparison at identical framing on every viewport.
   The overlay box is 50% wide, so its image must be 200% wide (= full slider).
   object-fit: contain guarantees both images stay complete (no cropping). */
.ba-slider > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ba-slider .ba-after img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}
.ba-slider .ba-handle::after {
  background: var(--gold-grad);
  border: 3px solid #0F172A;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

/* ---------- No-crop image frames ----------
   Site-wide rule: imagery renders complete — object-fit: contain inside a
   neutral frame, with no hover zooming anywhere. */
.img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(255, 193, 7, 0.06), transparent 55%),
    linear-gradient(165deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.75));
}
.dark .img-frame {
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(255, 193, 7, 0.05), transparent 55%),
    linear-gradient(165deg, rgba(17, 25, 42, 0.85), rgba(10, 16, 28, 0.9));
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Portrait source photos: 2:3 and 3:4 frames keep letterboxing minimal */
.img-frame--tall { aspect-ratio: 2 / 3; }
.img-frame--medium { aspect-ratio: 3 / 4; }
/* Full-width service blocks: image column fills the card on desktop */
@media (min-width: 768px) {
  .img-frame--fill-md {
    aspect-ratio: auto;
    height: 100%;
    min-height: 24rem;
  }
}

/* ---------- Floating quick contact ---------- */
.floating-btn {
  background: var(--gold-grad);
  color: #0F172A;
  box-shadow: 0 14px 30px -10px rgba(245, 158, 11, 0.65);
}
.floating-btn:hover {
  box-shadow: 0 20px 44px -12px rgba(245, 158, 11, 0.8);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  border-radius: 4px;
}

/* ---------- Pricing highlight ---------- */
.pricing-card-highlight {
  border: 2px solid rgba(255, 193, 7, 0.8);
  box-shadow: var(--glass-shadow-light), 0 24px 60px -18px rgba(255, 193, 7, 0.4);
}
.dark .pricing-card-highlight {
  border-color: rgba(255, 193, 7, 0.65);
  box-shadow: var(--glass-shadow-dark), 0 24px 60px -18px rgba(255, 193, 7, 0.35);
}

/* ---------- Modal ---------- */
.modal-content {
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 48px 140px -36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.dark .modal-content {
  background: linear-gradient(165deg, rgba(28, 39, 60, 0.99), rgba(15, 23, 42, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 48px 140px -36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Gallery images ---------- */
.columns > div,
div[class*="columns-"] > div {
  border-radius: 4px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.2);
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.columns > div:hover,
div[class*="columns-"] > div:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-grad);
}
footer a {
  transition: color 0.3s ease, transform 0.3s ease;
}
footer a:hover {
  color: #FFC107;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  background: linear-gradient(90deg, #FFC107, #14B8A6);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.55);
}

/* ---------- Focus rings ---------- */
*:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambient backdrop for glass surfaces ---------- */
.section-padding {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}
.section-padding:has(.glass-card)::before,
.section-padding:has(.testimonial-card)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 12% 10%, rgba(255, 193, 7, 0.09), transparent 60%),
    radial-gradient(840px 500px at 88% 24%, rgba(20, 184, 166, 0.09), transparent 62%),
    radial-gradient(680px 440px at 52% 94%, rgba(255, 193, 7, 0.06), transparent 60%);
  pointer-events: none;
}

/* ---------- Scroll & overflow safeguards ---------- */
html {
  scroll-padding-top: calc(var(--nav-height) + 12px);
}
html, body {
  overflow-x: hidden;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .glass-card:not(.accordion-item) {
    padding: 1.5rem;
  }
  .testimonial-card {
    padding: 1.5rem;
  }

  /* Clearance so hero content never collides with the slider dots */
  .hero-slide-content {
    padding-bottom: 3rem;
  }

  /* Filter tabs: horizontal scroll row on small screens (card provides the padding) */
  #productFilters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.375rem;
  }
  #productFilters::-webkit-scrollbar {
    display: none;
  }
  #productFilters .filter-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Maps: fluid 16:9 instead of fixed pixel heights */
  iframe[title^="Dxrabull"] {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 220px;
  }

  /* Product modal & cards on small screens */
  #productModal .p-6 {
    padding: 1.25rem;
  }

  /* Product modal becomes a full-width bottom sheet on phones */
  #productModal {
    align-items: flex-end;
    padding: 0;
  }
  #productModal .modal-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 4px 4px 0 0;
    max-height: 92vh;
  }
}

/* ---------- Touch devices: surface hover-only content ---------- */
@media (hover: none) {
  .group:has([data-lightbox]) .opacity-0 {
    opacity: 1 !important;
  }
  .group:has([data-lightbox]) .translate-y-4 {
    transform: none !important;
  }
  .group:has([data-lightbox]) .bg-gradient-to-t {
    opacity: 1 !important;
  }
}

/* ---------- Reveal safety net ----------
   Scroll-reveal classes start hidden in output.css. When JavaScript is
   disabled (or never executes), force everything visible so no section
   can ever be left blank on screen. */
html:not(.js-reveals) .reveal-item,
html:not(.js-reveals) .reveal-up,
html:not(.js-reveals) .reveal-scale {
  opacity: 1 !important;
  transform: none !important;
}
html:not(.js-reveals) .img-reveal {
  clip-path: inset(0% 0% 0% 0%) !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .logo-mark,
  .product-card,
  .product-card::after,
  .glass-card,
  .testimonial-card,
  .modal-content,
  .filter-tab,
  .hero-slide,
  .hero-slide-bg,
  .hero-slide-content,
  .hero-arrow,
  .hero-dot,
  .site-nav,
  .site-nav .section-container,
  .site-nav .nav-link::after,
  .site-nav .logo-nav,
  .menu-toggle,
  .menu-toggle-line,
  .mobile-menu,
  .mobile-menu .mobile-link,
  .mobile-menu-cta-row,
  .mobile-menu-cta-pill,
  .mobile-menu-footer,
  .mobile-menu-close,
  .trust-card {
    transition: none !important;
    animation: none !important;
  }
  .btn-primary:hover::after { left: -80%; }
  .product-card:hover::after { left: -80%; }
  .glass-card:hover::before { opacity: 0.7; }
  .hero-slide-bg { transform: none !important; }
  .mobile-menu::after { animation: none; }
}
