/* ============================================================
   HOME.CSS — Homepage-specific styles
   ============================================================ */

/* ── Hero — full-bleed photo, stats marquee + split heading/CTA
   + supporting copy anchored to the bottom.
   `.hero-banner` (layout.css) supplies the dark overlay + accent
   hairline shared with every subpage photo hero. ─────────────── */
.hero-photo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 60px;
}

/* Hero H1 word-split animation */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-char {
  display: inline-block;
}

.hero-accent-word { color: var(--color-accent-primary); }

.hero-stats-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  padding: 10px 0;
  border-radius: var(--radius-btn);
}

.hero-stats-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 0 20px;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stat-icon { color: rgba(255, 255, 255, 0.5); display: flex; }

.hero-photo-bottom-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
}

/* min-width:0 stops the stats marquee from blowing out the column:
   a flex item defaults to min-width:auto, so the 3,371px marquee
   track forced this column (and the marquee's own `width:100%`) to
   1,504px on a 390px screen. Clipped by body{overflow-x:hidden},
   but it made the whole document 1,528px wide. */
.hero-photo-left { flex: 1 1 480px; min-width: 0; }
.hero-photo-right { flex: 1 1 320px; }

.hero-cta-row { margin-top: 28px; }

.hero-photo-right .hero-sub {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  max-width: none;
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero-photo-right .hero-sub { text-align: left; }
}

@media (max-width: 639px) {
  .hero-photo { padding: 120px 0 40px; }
  .hero-stats-marquee { max-width: 100%; }
}

/* ── Section 2: Services Strip ───────────────────────────── */
.services-strip-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 80px;
  align-items: center;
}

.services-strip-image {
  position: relative;
}

.services-strip-image img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.services-strip-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(149,191,71,0.1), transparent 55%);
  pointer-events: none;
}

.services-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  z-index: 2;
  opacity: 0;
}

.services-floating-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--color-accent-subtle);
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.services-floating-badge.badge-top    { top: -22px; left: 24px; }
.services-floating-badge.badge-bottom { bottom: -22px; right: 24px; }

@media (max-width: 767px) {
  .services-floating-badge { display: none; }
}

/* ── Section 3: Industry Showcase ────────────────────────── */
.industry-tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 40px;
  scrollbar-width: none;
}

.industry-tabs-wrapper::-webkit-scrollbar { display: none; }

.industry-content-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 60px;
  align-items: center;
}

.industry-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.industry-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: 20px;
  transition: gap 0.2s ease;
}

.industry-cta-link:hover { gap: 10px; color: var(--color-accent-primary); }

/* Industry marquee — auto-scrolling row of portrait category cards,
   sits above the detailed tabs as a fast visual scan. */
.industry-marquee-wrap {
  overflow: hidden;
  width: 100%;
  margin-bottom: 48px;
  padding: 4px 0;
}

.industry-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.industry-marquee-card {
  position: relative;
  flex: 0 0 190px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #FFFFFF;
}

.industry-marquee-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-marquee-card .imc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px;
}

.industry-marquee-card.has-img .imc-overlay {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.82) 0%, rgba(10, 15, 30, 0.15) 55%, transparent 100%);
}

.industry-marquee-card .imc-icon { color: #FFFFFF; opacity: 0.92; }

.industry-marquee-card.has-img .imc-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.industry-marquee-card .imc-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.imc-a { background: linear-gradient(160deg, var(--color-accent-dark), var(--color-accent-primary)); }
.imc-b { background: linear-gradient(160deg, var(--color-violet-hover), var(--color-violet)); }
.imc-c { background: linear-gradient(160deg, #2D6E93, var(--color-blue)); }

@media (max-width: 639px) {
  .industry-marquee-card { flex-basis: 150px; }
}

/* ── Section 5: Mid-page CTA ──────────────────────────────── */
.cta-banner-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-violet));
  color: #FFFFFF;
  box-shadow: 0 20px 44px rgba(90, 49, 244, 0.35);
}

.cta-clip-heading {
  display: inline-block;
}

/* ── Section 6: Service card CTA links ───────────────────── */
.value-prop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-primary);
  transition: gap 0.2s ease;
}

.value-prop-link:hover { gap: 10px; color: var(--color-accent-primary); }

/* ── Section 7: Portfolio (two-row auto-scroll marquee gallery,
   opposite scroll directions, pause on hover — see home-motion.js) ── */
.portfolio-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  width: 100%;
}

.portfolio-marquee-row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.portfolio-marquee-card {
  flex: 0 0 300px;
  margin: 0;
}

.portfolio-marquee-card img { height: 200px; }

@media (max-width: 639px) {
  .portfolio-marquee-card { flex-basis: 240px; }
  .portfolio-marquee-card img { height: 160px; }
}

/* ── Section 12: Testimonials Marquee ─────────────────────── */
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 4px 0;
}

.tm-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.tm-track .testimonial-card {
  flex: 0 0 340px;
  cursor: default;
}

.testimonials-marquee-fade-l,
.testimonials-marquee-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  min-width: 60px;
  max-width: 160px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-marquee-fade-l { left: 0;  background: linear-gradient(90deg, var(--color-bg-dark), transparent); }
.testimonials-marquee-fade-r { right: 0; background: linear-gradient(270deg, var(--color-bg-dark), transparent); }

@media (max-width: 639px) {
  .testimonials-marquee-fade-l,
  .testimonials-marquee-fade-r { width: 40px; }
}

.tm-track .testimonial-text {
  font-size: var(--text-sm);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .services-strip-grid,
  .industry-content-grid { grid-template-columns: 1fr; }
}

/* ── FAQ layout ──────────────────────────────────────────────
   Was an inline `grid-template-columns: 1fr 1.4fr` with no
   breakpoint, so on a phone the question column and the answer
   column both squeezed into ~180px each. */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 1023px) {
  .faq-grid { gap: 48px; }
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}



/* Homepage-only: the services image is decorative beside the
   checklist, so it gets shorter rather than eating a whole fold. */
@media (max-width: 767px) {
  .services-strip-image img { max-height: 260px; object-fit: cover; }
}

/* ── Mobile: pricing preview becomes a swipe carousel ────────
   Stacked, the three plan cards ran 1,843px — over two full
   phone screens, and the section as a whole was 3 viewport
   heights. Side-by-side with scroll-snap it's one card tall,
   and comparing plans by swiping is closer to how the desktop
   layout reads anyway. A 12% peek of the next card is what
   tells the user to swipe. */
@media (max-width: 767px) {
  #pricing .tab-content .grid {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 12px;
    margin-inline: -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #pricing .tab-content .grid::-webkit-scrollbar { display: none; }

  #pricing .tab-content .pricing-card {
    scroll-snap-align: center;
    /* Cancel the reveal-child translate so a card mid-transition
       can't shift the scroll position under the user's thumb. */
    transform: none;
  }

  #pricing .pricing-features { max-height: 196px; }
}
