/* ============================================================
   HTG HOMEPAGE — Hero Slider v6 (ZERO GAP, NO CROPPING)
   ============================================================ */

/* Break out of container padding so slider touches screen edges */
.hero-slider {
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}
@media (min-width: 640px) {
  .hero-slider {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }
}
@media (min-width: 1024px) {
  .hero-slider {
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
  }
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Viewport: strictly 1:1 on mobile, no max-height interference */
.hero-slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: transparent;
}

/* Tablet / Desktop overrides */
@media (min-width: 768px) {
  .hero-slider__viewport {
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 1024px) {
  .hero-slider__viewport {
    aspect-ratio: 16 / 9;
  }
}
@media (min-width: 1280px) {
  .hero-slider__viewport {
    aspect-ratio: 16 / 8;
  }
}

/* Slide – absolute fill, NO padding whatsoever */
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease-out-expo), visibility 0s linear 900ms;
  padding: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms var(--ease-out-expo);
  z-index: 2;
}
.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
}

/* ---------- BACKGROUND IMAGE CONTAINER (exact fill) ---------- */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary, #F2F9F0);
  z-index: 0;
}

/* The image – uses cover because container matches aspect ratio */
.hero-slide__bg-img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  display: block;
}

/* ---------- OVERLAY (unchanged) ---------- */
.hero-slide__bg-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

:root[data-theme="light"] .hero-slide__bg-overlay {
    background: transparent;
}

/* ---------- TEXT COLOURS (unchanged) ---------- */
.hero-slide--has-bg .hero-slide__heading { color: #FFF; }
.hero-slide--has-bg .hero-slide__sub { color: rgba(255, 255, 255, 0.92); }
.hero-slide--has-bg .eyebrow { color: var(--htg-sun); }
.hero-slide--has-bg .eyebrow::before { background: var(--htg-sun); }
:root[data-theme="light"] .hero-slide--has-bg .hero-slide__heading { color: var(--text-primary); }
:root[data-theme="light"] .hero-slide--has-bg .hero-slide__sub { color: var(--text-secondary); }
:root[data-theme="light"] .hero-slide--has-bg .eyebrow { color: var(--htg-forest); }

/* ---------- ATMOSPHERE MESHES (unchanged) ---------- */
.hero-slide__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.hero-slide--has-bg .hero-slide__atmosphere { opacity: 0.3; }

.hero-slide__mesh-1,
.hero-slide__mesh-2,
.hero-slide__mesh-3 {
  position: absolute;
  border-radius: 50%;
  /* HTG_KILL: filter:blur removed */
  opacity: 0;
  transition: opacity 1200ms var(--ease-out-expo);
}
.hero-slide.is-active .hero-slide__mesh-1 { opacity: 0.55; }
.hero-slide.is-active .hero-slide__mesh-2 { opacity: 0.45; }
.hero-slide.is-active .hero-slide__mesh-3 { opacity: 0.5; }

.hero-slide__mesh-1 { top: -10%; left: -5%; width: 55%; height: 65%; /* HTG_KILL: infinite animation removed */ animation: none; }
.hero-slide__mesh-2 { top: 20%; right: -10%; width: 50%; height: 60%; /* HTG_KILL: infinite animation removed */ animation: none; }
.hero-slide__mesh-3 { bottom: -15%; left: 30%; width: 45%; height: 55%; /* HTG_KILL: infinite animation removed */ animation: none; }

/* HTG_KILL: @keyframes meshFloat1 removed */
/* HTG_KILL: @keyframes meshFloat2 removed */
/* HTG_KILL: @keyframes meshFloat3 removed */

.hero-slide--theme-green .hero-slide__mesh-1 { background: var(--htg-green); }
.hero-slide--theme-green .hero-slide__mesh-2 { background: var(--htg-sun); }
.hero-slide--theme-green .hero-slide__mesh-3 { background: var(--htg-gold); }
.hero-slide--theme-forest .hero-slide__mesh-1 { background: var(--htg-forest); }
.hero-slide--theme-forest .hero-slide__mesh-2 { background: var(--htg-green); }
.hero-slide--theme-forest .hero-slide__mesh-3 { background: var(--htg-sun); }
.hero-slide--theme-gold .hero-slide__mesh-1 { background: var(--htg-gold); }
.hero-slide--theme-gold .hero-slide__mesh-2 { background: var(--htg-sun); }
.hero-slide--theme-gold .hero-slide__mesh-3 { background: var(--htg-green); }
.hero-slide--theme-sunrise .hero-slide__mesh-1 { background: var(--htg-sun); }
.hero-slide--theme-sunrise .hero-slide__mesh-2 { background: var(--htg-gold); }
.hero-slide--theme-sunrise .hero-slide__mesh-3 { background: var(--htg-green); }

/* ---------- GRID (spacing moved here, away from slide) ---------- */
.hero-slide__grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  padding: 2rem 1.25rem 4rem;
}
@media (min-width: 768px) {
  .hero-slide__grid { padding: 3rem 2rem 5rem; }
}
@media (min-width: 1024px) {
  .hero-slide__grid { padding: 2rem 3rem 4rem; }
}

@media (max-width: 767px) {
  .hero-slide__grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-slide__visual { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-slide__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .hero-slide__grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

/* ---------- CONTENT (unchanged) ---------- */
.hero-slide__content {
  position: relative;
  z-index: 3;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-slide__content { text-align: left; }
}

.hero-slide__eyebrow {
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 0.875rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero-slide__eyebrow { justify-content: flex-start; margin-bottom: 1rem; }
}
.hero-slide.is-active .hero-slide__eyebrow {
  animation: slideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-slide__heading {
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
}
@media (min-width: 768px) {
  .hero-slide__heading { font-size: clamp(2.25rem, 5.5vw, 4.5rem); margin-bottom: 1.5rem; }
}
.hero-slide.is-active .hero-slide__heading {
  animation: slideUp 1s var(--ease-out-expo) 0.35s forwards;
}

.hero-slide__heading em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}
.hero-slide__heading em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--htg-sun);
  opacity: 0.4;
  z-index: -1;
  border-radius: 2px;
}
:root[data-theme="dark"] .hero-slide__heading em {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-slide--has-bg .hero-slide__heading em {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-slide__sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.25rem;
  opacity: 0;
  transform: translateY(20px);
}
@media (min-width: 640px) {
  .hero-slide__sub { font-size: 1rem; margin-bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-slide__sub { font-size: 1.125rem; margin: 0 0 2.5rem; line-height: 1.7; }
}
.hero-slide.is-active .hero-slide__sub {
  animation: slideUp 0.9s var(--ease-out-expo) 0.5s forwards;
}

.hero-slide__ctas {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}
@media (min-width: 1024px) {
  .hero-slide__ctas { justify-content: flex-start; gap: 1rem; }
}
.hero-slide.is-active .hero-slide__ctas {
  animation: slideUp 0.9s var(--ease-out-expo) 0.65s forwards;
}

/* ---------- VISUAL SIDE (unchanged) ---------- */
.hero-slide__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.95);
}
@media (min-width: 1024px) {
  .hero-slide__visual { max-width: 480px; }
}
.hero-slide.is-active .hero-slide__visual {
  animation: scaleIn 1.1s var(--ease-out-expo) 0.4s forwards;
}

.hero-slide__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(74, 171, 72, 0.15) 0%, transparent 70%);
}
.hero-slide__orbit-ring {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  opacity: 0.5;
}
.hero-slide__orbit-ring--1 { inset: 5%; /* HTG_KILL: infinite animation removed */ animation: none; }
.hero-slide__orbit-ring--2 { inset: 15%; /* HTG_KILL: infinite animation removed */ animation: none; border-style: dotted; }
.hero-slide__orbit-ring--3 { inset: 25%; /* HTG_KILL: infinite animation removed */ animation: none; }

.hero-slide__center-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(34, 85, 41, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-slide--theme-green .hero-slide__center-card { background: var(--grad-primary); }
.hero-slide--theme-forest .hero-slide__center-card { background: var(--grad-forest); }
.hero-slide--theme-gold .hero-slide__center-card { background: var(--grad-warm); }
.hero-slide--theme-sunrise .hero-slide__center-card { background: var(--grad-sunrise); }

.hero-slide__center-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-slide__center-inner {
  position: absolute;
  inset: 6%;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04)), rgba(0, 0, 0, 0.25);
  /* HTG_KILL: backdrop-filter removed */
  /* HTG_KILL: backdrop-filter removed */
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  justify-content: space-between;
  color: #FFF;
}
@media (min-width: 768px) {
  .hero-slide__center-inner { padding: 1.75rem; }
}

.hero-slide__tag {
  font-size: 0.625rem;
  opacity: 0.9;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--htg-sun);
  font-weight: 700;
}
@media (min-width: 768px) {
  .hero-slide__tag { font-size: 0.6875rem; }
}

.hero-slide__monogram {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #FFF;
  margin-bottom: 0.375rem;
}

.hero-slide__company {
  font-size: 0.625rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (min-width: 768px) {
  .hero-slide__company { font-size: 0.75rem; }
}

.hero-slide__motto-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.95;
  border-left: 2px solid var(--htg-sun);
  padding-left: 0.75rem;
}
@media (min-width: 768px) {
  .hero-slide__motto-block { font-size: 1rem; padding-left: 0.875rem; }
}

.hero-slide__stat-badge {
  position: absolute;
  bottom: 8%;
  left: -6%;
  background: var(--bg-elevated-solid);
  /* HTG_KILL: backdrop-filter removed */
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lift);
  z-index: 4;
  /* HTG_KILL: infinite animation removed */ animation: none;
}
@media (min-width: 768px) {
  .hero-slide__stat-badge { bottom: 12%; left: -8%; padding: 1rem 1.25rem; border-radius: 16px; }
}

.hero-slide__stat-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.125rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 768px) {
  .hero-slide__stat-value { font-size: 1.75rem; }
}
:root[data-theme="dark"] .hero-slide__stat-value {
  background: var(--grad-warm);
  -webkit-background-clip: text;
}

.hero-slide__stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
@media (min-width: 768px) {
  .hero-slide__stat-label { font-size: 0.75rem; }
}

/* ---------- ANIMATIONS (unchanged) ---------- */
/* HTG_KILL: @keyframes floatSoft removed */
/* HTG_KILL: @keyframes spin removed */
/* HTG_KILL: @keyframes slideUp removed */
/* HTG_KILL: @keyframes scaleIn removed */

/* ---------- SLIDER CONTROLS (unchanged) ---------- */
.hero-slider__controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 1rem;
}
@media (min-width: 768px) {
  .hero-slider__controls { bottom: 2rem; }
}
.hero-slider__controls > * { pointer-events: auto; }

.hero-slider__progress { display: flex; gap: 0.375rem; align-items: center; }
.hero-slider__dot {
  width: 32px;
  height: 4px;
  background: var(--border-strong);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast), opacity var(--dur-fast), border-color var(--dur-fast);
}
@media (min-width: 768px) {
  .hero-slider__dot { width: 48px; }
}
.hero-slider__dot:hover { background: var(--text-muted); }
.hero-slider__dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.3s linear;
}
:root[data-theme="dark"] .hero-slider__dot-fill { background: var(--grad-warm); }
.hero-slider__dot.is-active .hero-slider__dot-fill {
  animation: progressFill 7s linear forwards;
}

/* HTG_KILL: @keyframes progressFill removed */

.hero-slider__arrows {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-elevated-solid);
  /* HTG_KILL: backdrop-filter removed */
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  box-shadow: var(--shadow-glass);
}
.hero-slider__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tinted);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast), opacity var(--dur-fast), border-color var(--dur-fast);
}
@media (min-width: 768px) {
  .hero-slider__arrow { width: 36px; height: 36px; }
}
.hero-slider__arrow:hover {
  background: var(--grad-primary);
  color: #FFF;
}
.hero-slider__arrow svg { width: 14px; height: 14px; }
@media (min-width: 768px) {
  .hero-slider__arrow svg { width: 16px; height: 16px; }
}

.hero-slider__counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  min-width: 48px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-slider__counter { font-size: 0.8125rem; min-width: 56px; }
}
.hero-slider__counter-sep { color: var(--text-muted); margin: 0 0.25rem; }
.hero-slider__counter-total { color: var(--text-muted); }


/* ============================================================
   HERO SLIDE LOGO, replaces the "HTG" text monogram
   ============================================================ */
.hero-slide__logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.hero-slide__logo--dark { display: none; }

@media (min-width: 768px) {
  .hero-slide__logo { max-width: 320px; }
}
@media (min-width: 1100px) {
  .hero-slide__logo { max-width: 380px; }
}

/* Hero logo dark/light swap */
:root[data-theme="dark"] .hero-slide__logo--light,
:root[data-theme="dark"] .hero-slide__logo--light {
  display: none;
}
:root[data-theme="dark"] .hero-slide__logo--dark,
:root[data-theme="dark"] .hero-slide__logo--dark {
  display: block;
}

/* ============================================================
   HTG_LIGHT_MOTION — pure GPU-composited animations
   - transform/opacity only (no layout, no paint)
   - 1 GPU layer per animated element max
   - Animations pause when off-screen via content-visibility
   ============================================================ */

/* ------------ TRUST BAR — subtle floating cards ------------ */
@keyframes htgTrustFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -6px, 0); }
}
@keyframes htgTrustFloatB {
  0%, 100% { transform: translate3d(0, -3px, 0); }
  50%      { transform: translate3d(0, 3px, 0); }
}

.trust-bar {
  /* containment limits paint/layout to this section */
  contain: layout style paint;
  /* HTG_FIX: was content-visibility:auto — caused iOS blink on scroll-back */
  /* HTG_FIX: contain-intrinsic-size removed */
}

.trust-bar .trust-item {
  /* Each stat card gently floats */
  animation: htgTrustFloatA 4.5s ease-in-out infinite;
  /* GPU layer hint only during animation */
  will-change: transform;
  transform: translateZ(0);
}
/* HTG_FINAL: redundant trust-item float removed */
/* HTG_FINAL: redundant trust-item float removed */
/* HTG_FINAL: redundant trust-item float removed */

/* Stat number pulse — bigger emphasis on number itself */
@keyframes htgStatGlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}
/* HTG_FINAL: stat glow removed */

/* ------------ TESTIMONIALS — horizontal scroll carousel ------------ */
.hadey-testimonials {
  contain: layout style paint;
  /* HTG_FIX: was content-visibility:auto — caused iOS blink on scroll-back */
  /* HTG_FIX: contain-intrinsic-size removed */
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

/* The track holds duplicated cards for seamless loop */
/* HTG_FINAL: old htgTestiScroll rule removed */

/* Pause on hover for desktop readers */
@media (hover: hover) {
  .testimonials-grid.carousel-track:hover {
    animation-play-state: paused;
  }
}

/* Each card has fixed width so layout is predictable */
.hadey-testimonials .testimonial-card {
  flex: 0 0 320px;
  max-width: 320px;
  min-height: 280px;
  /* Defensive: ensure visible */
  opacity: 1 !important;
  transform: none;
  /* Subtle card pop on hover, desktop only */
  transition: transform 240ms ease;
}
@media (hover: hover) {
  .hadey-testimonials .testimonial-card:hover {
    transform: translateY(-3px);
  }
}

@keyframes htgTestiScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Mobile: slightly faster, smaller cards */
@media (max-width: 768px) {
  .hadey-testimonials .testimonial-card {
    flex: 0 0 280px;
    max-width: 280px;
    min-height: 240px;
  }
  .testimonials-grid.carousel-track {
    animation-duration: 32s;
  }
}

/* Respect users who prefer reduced motion */
/* HTG_LIGHT: reduced-motion override removed */

/* Hide carousel indicators since this is a continuous loop */
.hadey-testimonials .carousel-indicators {
  display: none !important;
}

/* ============================================================
   HTG_FINAL_MARQUEES — overrides every conflicting rule
   Pure CSS, GPU-only, no JS, works on Android.
   ============================================================ */

/* ====== TRUST BAR: horizontal marquee on the GRID ====== */
@keyframes htgTrustMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.trust-bar {
  overflow: hidden !important;
  contain: layout style paint;
  position: relative;
}

.trust-bar .trust-bar__grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  animation: htgTrustMarquee 35s linear infinite !important;
  animation-play-state: running !important;
  transform: translateZ(0);
  will-change: transform;
}

.trust-bar .trust-item {
  flex-shrink: 0 !important;
  animation: none !important;   /* items stay still — only grid moves */
  transform: none !important;
}

@media (hover: hover) {
  .trust-bar:hover .trust-bar__grid {
    animation-play-state: paused !important;
  }
}

/* Stop the legacy "is-paused" / "data-scrolling" overrides from killing us */
html[data-scrolling="1"] .trust-bar .trust-bar__grid,
.trust-bar.is-paused .trust-bar__grid {
  animation-play-state: running !important;
}

/* ====== TESTIMONIALS: horizontal marquee on the TRACK ====== */
.hadey-testimonials {
  overflow: hidden !important;
  contain: layout style paint;
}
.testimonials-carousel-wrapper {
  overflow: hidden !important;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}

@keyframes htgTestiMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.hadey-testimonials .testimonials-grid.carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: 1.5rem !important;
  animation: htgTestiMarquee 50s linear infinite !important;
  animation-play-state: running !important;
  transform: translateZ(0);
  will-change: transform;
}

.hadey-testimonials .testimonial-card {
  flex: 0 0 320px !important;
  max-width: 320px !important;
  min-height: 280px;
  opacity: 1 !important;
  animation: none !important;
}

@media (hover: hover) {
  .hadey-testimonials .testimonials-grid.carousel-track:hover {
    animation-play-state: paused !important;
  }
}

@media (max-width: 768px) {
  .hadey-testimonials .testimonial-card {
    flex: 0 0 280px !important;
    max-width: 280px !important;
  }
  .hadey-testimonials .testimonials-grid.carousel-track {
    animation-duration: 40s !important;
  }
}

/* Hide indicators since this is a continuous loop */
.hadey-testimonials .carousel-indicators { display: none !important; }

/* ============================================================
   HTG_ABSOLUTE_FINAL — defeats any flex-wrap:wrap override
   Higher specificity than any other rule.
   ============================================================ */
section.hadey-testimonials .testimonials-grid.carousel-track,
.hadey-testimonials .testimonials-grid.carousel-track,
.testimonials-grid.carousel-track[id="testimonialTrack"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  width: max-content !important;
  max-width: none !important;
  gap: 1.5rem !important;
  animation: htgTestiMarquee 50s linear infinite !important;
  justify-content: flex-start !important;
}
@media (max-width: 768px) {
  section.hadey-testimonials .testimonials-grid.carousel-track,
  .hadey-testimonials .testimonials-grid.carousel-track,
  .testimonials-grid.carousel-track[id="testimonialTrack"] {
    animation-duration: 40s !important;
  }
}
section.hadey-testimonials .testimonial-card,
.hadey-testimonials .testimonial-card {
  flex: 0 0 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  width: 320px !important;
}
@media (max-width: 768px) {
  section.hadey-testimonials .testimonial-card,
  .hadey-testimonials .testimonial-card {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    width: 280px !important;
  }
}

/* HTG_CARD_FINAL — force fixed width on testimonial cards */
section.hadey-testimonials .testimonial-card,
.hadey-testimonials .testimonial-card,
.testimonials-grid > .testimonial-card {
  flex: 0 0 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  width: 320px !important;
}
@media (max-width: 768px) {
  section.hadey-testimonials .testimonial-card,
  .hadey-testimonials .testimonial-card,
  .testimonials-grid > .testimonial-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    width: 280px !important;
  }
}

/* ============================================================
   HTG_TESTI_PERF_FINAL — kill remaining GPU-heavy card effects
   while keeping the marquee motion intact
   ============================================================ */

/* Flatten the card — no 3D context */
.hadey-testimonials .testimonial-card,
.hadey-testimonials .glass-card {
  transform-style: flat !important;
  perspective: none !important;
  isolation: auto !important;
}

/* Single light shadow instead of stacked shadows */
.hadey-testimonials .testimonial-card,
.hadey-testimonials .glass-card {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important;
}

/* No hover transform on testimonial cards (causes layer creation) */
.hadey-testimonials .testimonial-card:hover,
.hadey-testimonials .glass-card:hover {
  transform: none !important;
}

/* Kill card-shine overlay if it still renders */
.hadey-testimonials .card-shine {
  display: none !important;
}

/* Kill mask-image on the wrapper (composite cost) */
.hadey-testimonials .testimonials-carousel-wrapper {
  -webkit-mask-image: none !important;
          mask-image: none !important;
}

/* Avatar — keep look but remove the 200% overlay */
.hadey-testimonials .liquid-metal-avatar::before,
.hadey-testimonials .liquid-metal-avatar::after {
  display: none !important;
}

/* Track perspective off */
.hadey-testimonials .testimonials-grid.carousel-track {
  perspective: none !important;
  transform-style: flat !important;
}

/* Containment helps browser skip work for off-screen cards */
.hadey-testimonials .testimonial-card {
  contain: layout style paint;
}

/* ============================================================
   HTG_COUNTRIES_MARQUEE — same approach as trust bar
   ============================================================ */
@keyframes htgCountriesMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.htg-countries {
  overflow: hidden !important;
  contain: layout style paint;
}

.htg-countries .htg-countries__track-wrap {
  overflow: hidden !important;
  position: relative;
}

.htg-countries .htg-countries__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  animation: htgCountriesMarquee 45s linear infinite !important;
  animation-play-state: running !important;
  transform: translateZ(0);
  will-change: transform;
}

.htg-countries .htg-country {
  flex: 0 0 auto !important;
  animation: none !important;
}

@media (hover: hover) {
  .htg-countries .htg-countries__track:hover {
    animation-play-state: paused !important;
  }
}
@media (max-width: 768px) {
  .htg-countries .htg-countries__track {
    animation-duration: 35s !important;
  }
}


/* ============================================================
   HTG_MARQUEE_NOBLINK — final marquee CSS, no blink on iOS scroll
   Stable GPU layer + no content-visibility = smooth always
   ============================================================ */

/* ===== TRUST BAR ===== */
@keyframes htgTrustMarqueeFinal {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
section.trust-bar,
.trust-bar {
  overflow: hidden !important;
  /* Stable layer — prevents iOS recomposite */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
section.trust-bar .trust-bar__grid,
.trust-bar > .container > .trust-bar__grid,
html .trust-bar .trust-bar__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  width: max-content !important;
  max-width: none !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  animation: htgTrustMarqueeFinal 35s linear infinite !important;
  animation-play-state: running !important;
  /* GPU layer hints — keep layer alive even when off-screen */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  justify-content: flex-start !important;
}
section.trust-bar .trust-item,
html .trust-bar .trust-item {
  flex-shrink: 0 !important;
  animation: none !important;
  transform: none !important;
}
@media (hover: hover) {
  section.trust-bar:hover .trust-bar__grid {
    animation-play-state: paused !important;
  }
}

/* ===== COUNTRIES ===== */
@keyframes htgCountriesMarqueeFinal {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
section.htg-countries,
.htg-countries {
  overflow: hidden !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.htg-countries .htg-countries__track-wrap,
section.htg-countries .htg-countries__track-wrap {
  overflow: hidden !important;
  position: relative !important;
}
.htg-countries .htg-countries__track,
section.htg-countries .htg-countries__track,
html .htg-countries .htg-countries__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  padding: 0.5rem 0 !important;
  animation: htgCountriesMarqueeFinal 45s linear infinite !important;
  animation-play-state: running !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  justify-content: flex-start !important;
}
.htg-countries .htg-country,
section.htg-countries .htg-country {
  flex-shrink: 0 !important;
}
@media (hover: hover) {
  section.htg-countries:hover .htg-countries__track {
    animation-play-state: paused !important;
  }
}

/* ===== TESTIMONIALS ===== */
.hadey-testimonials,
section.hadey-testimonials {
  overflow: hidden !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hadey-testimonials .testimonials-grid.carousel-track {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Mobile durations */
@media (max-width: 768px) {
  section.trust-bar .trust-bar__grid,
  html .trust-bar .trust-bar__grid {
    animation-duration: 28s !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
  }
  section.htg-countries .htg-countries__track,
  html .htg-countries .htg-countries__track {
    animation-duration: 35s !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trust-bar__grid,
  .htg-countries__track,
  .testimonials-grid.carousel-track {
    animation: none !important;
  }
}


/* HTG_HERO_FORCE_VISIBLE — fallback so content shows even if animation fails */
.hero-slide.is-active .hero-slide__eyebrow,
.hero-slide.is-active .hero-slide__heading,
.hero-slide.is-active .hero-slide__sub,
.hero-slide.is-active .hero-slide__ctas,
.hero-slide.is-active .hero-slide__visual {
  opacity: 1 !important;
  transform: none !important;
}


/* HTG_HERO_FLUSH — slider sits flush against nav, edge-to-edge, square */
.hero-slider,
section.hero-slider {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
main, .site-main, .main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
