/* ==========================================================================
   THINKER RK — HOME HERO (scoped to .trk-home-hero only)
   Reproduces: 4-slide crossfade stack, per-line text reveal, image scale,
   progress bar, prev/next/dots, touch swipe, reduced-motion.
   ========================================================================== */

.trk-home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #EDEDED;
}
.trk-hero-inner { position: relative; max-width: 1440px; margin: 0 auto; }

/* Stack all 4 slides in the same grid cell — crossfade, not a physical carousel.
   IMPORTANT: Elementor Containers apply layout to the INNER .e-con-inner wrapper,
   not the outer .e-con element the css_classes setting targets — so these rules
   must target the inner wrapper explicitly, matching the header gap fix. */
.trk-hero-stack.e-con > .e-con-inner { display: grid !important; }
.trk-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .7s ease;
}
.trk-hero-slide.trk-hero-slide-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.trk-hero-grid.e-con > .e-con-inner {
  display: grid !important;
  /* Explicit, deterministic 2-column grid instead of repeat(auto-fit, minmax(...)).
     The source HTML's auto-fit/minmax(min(100%,340px),1fr) is designed to produce
     exactly 2 equal columns above ~680px (2×340px) and stack to 1 column below it.
     Inside Elementor's extra .e-con-inner nesting layer, auto-fit's browser-computed
     track count becomes unreliable and can silently create more tracks than there
     are items — leaving the populated columns far narrower than intended. This
     reproduces the exact same end-state behavior via an explicit, deterministic
     definition instead. */
  grid-template-columns: 1fr 1fr;
  align-items: center !important;
}
@media (max-width: 680px) {
  .trk-hero-grid.e-con > .e-con-inner {
    grid-template-columns: 1fr !important;
  }
}
.trk-hero-text.e-con,
.trk-hero-media.e-con {
  min-width: 0 !important;
}

/* Eyebrow */
.trk-hero-eyebrow { margin-bottom: 20px; }
.trk-hero-eyebrow-dash { background: #F1AD1D; flex: 0 0 auto; }

/* Heading: per-line reveal, matches the HTML's translateY+blur+opacity mask */
.trk-hero-heading-line { overflow: hidden; padding-bottom: .06em; }
.trk-hero-heading-line .trk-hero-line-part .elementor-heading-title,
.trk-hero-heading-line .trk-hero-line-part.elementor-widget-text-editor {
  display: block;
  transform: translateY(112%);
  opacity: 0;
  filter: blur(5px);
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .8s ease, filter .8s ease;
}
.trk-hero-slide-active .trk-hero-heading-line:nth-child(1) .trk-hero-line-part .elementor-heading-title,
.trk-hero-slide-active .trk-hero-heading-line:nth-child(1) .trk-hero-line-part.elementor-widget-text-editor { transition-delay: .1s; }
.trk-hero-slide-active .trk-hero-heading-line:nth-child(2) .trk-hero-line-part .elementor-heading-title,
.trk-hero-slide-active .trk-hero-heading-line:nth-child(2) .trk-hero-line-part.elementor-widget-text-editor { transition-delay: .22s; }
.trk-hero-slide-active .trk-hero-heading-line:nth-child(3) .trk-hero-line-part .elementor-heading-title,
.trk-hero-slide-active .trk-hero-heading-line:nth-child(3) .trk-hero-line-part.elementor-widget-text-editor { transition-delay: .3s; }
.trk-hero-slide-active .trk-hero-heading-line .trk-hero-line-part .elementor-heading-title,
.trk-hero-slide-active .trk-hero-heading-line .trk-hero-line-part.elementor-widget-text-editor {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Paragraph + buttons: fade/slide in, matches HTML delays */
.trk-hero-paragraph, .trk-hero-buttons {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.trk-hero-slide-active .trk-hero-paragraph { transition-delay: .34s; opacity: 1; transform: translateY(0); }
.trk-hero-slide-active .trk-hero-buttons { transition-delay: .46s; opacity: 1; transform: translateY(0); }

/* Image: scale on inactive->active, matches HTML's 1.6s cinematic scale */
.trk-hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 5/4;
}
.trk-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}
.trk-hero-slide-active .trk-hero-media img { transform: scale(1); }
.trk-hero-media-label {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 6px;
  background: rgba(255,255,255,.9);
}

/* Buttons */
.trk-hero-btn .elementor-button { min-height: 54px; display: inline-flex; align-items: center; }

/* Controls: prev/next/dots */
.trk-hero-prev .elementor-button, .trk-hero-next .elementor-button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #E5E5E5; background: #fff; color: #0B0B0B; padding: 0;
  transition: background .18s ease, color .18s ease;
}
.trk-hero-prev .elementor-button:hover, .trk-hero-next .elementor-button:hover { background: #0B0B0B; color: #fff; }
.trk-hero-dot .elementor-button {
  min-width: 44px; min-height: 44px; border: 0; background: none; color: #6a6a6a;
  font-weight: 600; letter-spacing: .1em; padding: 0; transition: color .2s ease;
}
.trk-hero-dot-active .elementor-button { color: #F1AD1D; }
.trk-hero-dot:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 14px; height: 1px; background: #E5E5E5;
  margin-left: 6px; vertical-align: middle;
}

/* Progress row */
.trk-hero-progress-row { flex: 1 1 220px; min-width: 170px; }
.trk-hero-progress-track { flex: 1; height: 2px; background: #EDEDED; border-radius: 2px; overflow: hidden; }
.trk-hero-progress-bar { height: 100%; width: 0%; background: #F1AD1D; }

@media (prefers-reduced-motion: reduce) {
  .trk-home-hero, .trk-home-hero * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
/* Neutralize Phlox's default page-wrapper top padding (4.375em) on the front page
   only — scoped via WordPress's automatic body.home class, so it never affects any
   other page. This was the remaining source of the gap above the Hero after removing
   the page title bar. */
body.home .aux-primary,
body.home .content {
  padding-top: 0 !important;
}
/* Belt-and-suspenders: guarantee gap/flex on the control rows explicitly, same
   lesson as the header — don't rely solely on Elementor's own --gap cascade
   into .e-con-inner for rows where exact visual spacing matters. */
.trk-hero-nav-cluster.e-con > .e-con-inner,
.trk-hero-dots.e-con > .e-con-inner,
.trk-hero-controls.e-con > .e-con-inner,
.trk-hero-buttons.e-con > .e-con-inner,
.trk-hero-eyebrow.e-con > .e-con-inner,
.trk-hero-progress-row.e-con > .e-con-inner {
  display: flex !important;
  align-items: center !important;
}
.trk-hero-nav-cluster.e-con > .e-con-inner { gap: 14px !important; flex-wrap: wrap !important; }
.trk-hero-dots.e-con > .e-con-inner { gap: 6px !important; }
.trk-hero-controls.e-con > .e-con-inner { justify-content: space-between !important; flex-wrap: wrap !important; gap: 18px !important; }
.trk-hero-buttons.e-con > .e-con-inner { flex-wrap: wrap !important; gap: 14px !important; }
.trk-hero-eyebrow.e-con > .e-con-inner { gap: 10px !important; }
.trk-hero-progress-row.e-con > .e-con-inner { gap: 16px !important; width: 100%; }
/* ==========================================================================
   PRECISE HTML-MATCH CORRECTIONS (Step 1 re-audit against actual source)
   Elementor's per-breakpoint controls only allow 3 fixed snap sizes; the real
   HTML uses true fluid clamp() sizing throughout. Overriding with the exact
   clamp() expressions from the source so scaling is continuous, not stepped.
   ========================================================================== */

/* 1. Decorative radial-gradient blob — was missing entirely */
.trk-home-hero { position: relative; }
.trk-home-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -120px;
  width: min(52vw, 600px);
  height: min(52vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(241,173,29,.18), rgba(241,173,29,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.trk-hero-inner { position: relative; z-index: 1; }

/* 2. Hero inner container padding — true fluid clamp(), matches source exactly */
.trk-hero-inner.e-con > .e-con-inner {
  padding: clamp(30px,4.6vw,68px) clamp(20px,4vw,56px) clamp(26px,3.6vw,52px) !important;
}

/* 3. H1 heading — true fluid clamp(), not Elementor's 3-step responsive snap */
.trk-hero-heading-line .trk-hero-line-part .elementor-heading-title,
.trk-hero-heading-line .trk-hero-line-part.elementor-widget-text-editor {
  font-size: clamp(33px, 5.2vw, 72px) !important;
}

/* 4. Paragraph — true fluid clamp() + explicit max-width (56ch, matches source) */
.trk-hero-paragraph {
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 18px) !important;
}

/* 5. Grid gap between text/media columns — true fluid clamp() */
.trk-hero-grid.e-con > .e-con-inner {
  gap: clamp(26px, 4vw, 64px) !important;
}

/* 6. Margin above the controls row — matches source's clamp(22px,3vw,42px) */
.trk-hero-controls { margin-top: clamp(22px, 3vw, 42px); }

/* 7. Dot button typography — was missing weight/letter-spacing */
.trk-hero-dot .elementor-button {
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: .1em !important;
}