/* ═══════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100svh;
  max-height: 1300px;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

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

.hero__bg-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1a1a1a, rgba(26, 26, 26, 0.7), transparent);
}

.hero__bg-overlay-bt {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1a1a1a, transparent, rgba(26, 26, 26, 0.3));
}

.hero__bg-darken {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  opacity: 0;
  will-change: opacity;
}

/* ── Accent Lines ── */
.hero__accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__accent-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  transform-origin: top;
}

.hero__accent-line--primary {
  left: 55%;
  background: linear-gradient(to bottom, rgba(206, 68, 5, 0.4), rgba(206, 68, 5, 0.2), transparent);
}

@media (min-width: 1024px) {
  .hero__accent-line--primary { left: 48%; }
}

.hero__accent-line--secondary {
  left: 56%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent);
  height: 60%;
  display: none;
}

@media (min-width: 1024px) {
  .hero__accent-line--secondary { left: 49%; display: block; }
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  will-change: transform;
}

@media (min-width: 1024px) {
  .hero__content { padding-top: 6rem; }
}

.hero__grid {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__grid > * { min-width: 0; }

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 0;
    padding: 0 2rem;
  }
}

/* ── Left: Typography ── */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero__eyebrow-line {
  width: 48px;
  height: 2px;
  background: var(--color-primary);
}

.hero__eyebrow-text {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #fff;
  white-space: nowrap;
}

.hero__title { margin-bottom: 2rem; }

.hero__title-line {
  display: block;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: #fff;
}

.hero__title-line--gradient {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, #CE4405, #FF8A50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__body {
  color: rgba(255, 255, 255, 0.5);
  max-width: 28rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--duration-normal);
}

.hero__contact-link:hover { color: var(--color-primary); }
.hero__contact-link svg { transition: transform var(--duration-fast); }
.hero__contact-link:hover svg { transform: translateX(4px); }

/* ── Right: Stats ── */
.hero__stats {
  display: flex;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero__stats {
    flex-direction: column;
    gap: 0;
    padding-left: 4rem;
  }
}

.hero__stat {
  flex: 1;
  position: relative;
  padding: 1.5rem 0;
}

@media (max-width: 1023px) {
  .hero__stat { padding: 0; }
}

.hero__stat-border {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

.hero__stat-border-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--duration-slow);
}

.hero__stat:hover .hero__stat-border-bg { background: var(--color-primary); }

.hero__stat-border-glow {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  filter: blur(6px);
  opacity: 0;
  transition: opacity var(--duration-slow);
}

.hero__stat:hover .hero__stat-border-glow { opacity: 0.6; }

.hero__stat-inner { padding-left: 1.5rem; }

.hero__stat-value {
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  transition: color var(--duration-normal);
}

.hero__stat:hover .hero__stat-value { color: var(--color-primary); }

.hero__stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
  transition: color var(--duration-normal);
}

.hero__stat:hover .hero__stat-label { color: rgba(255, 255, 255, 0.6); }

/* ── Partner Marquee ── */
.hero__marquee {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .hero__marquee { padding: 1.5rem 2.5rem; }
}

.hero__marquee-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1a1a1a, transparent, #1a1a1a);
  z-index: 10;
  pointer-events: none;
}

/* Travel one full set + the inter-set gap so the duplicated track loops seamlessly.
   The -2rem is half of the 4rem gap below; update it if the gap changes. */
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 2rem)); }
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: fit-content;
  animation: hero-marquee 20s linear infinite;
}

.hero__marquee-track img {
  height: 28px;
  max-width: none;
  flex-shrink: 0;
  /* White silhouette, matching the About page logo wall. */
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hero__marquee-track img:hover { opacity: 0.85; }

@media (min-width: 768px) {
  .hero__marquee-track img { height: 34px; }
}

/* ── Phone fix: stop the eyebrow + stats row overflowing/clipping ── */
@media (max-width: 640px) {
  /* Eyebrow: let it wrap with tighter spacing instead of being clipped by overflow:hidden. */
  .hero__eyebrow { overflow: visible; }
  .hero__eyebrow-text {
    white-space: normal;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
  }

  /* Stats: allow the flex items to shrink so all three fit within the viewport. */
  .hero__stats { gap: 1rem; }
  .hero__stat { min-width: 0; }
  .hero__stat-inner { padding-left: 1rem; }
  .hero__stat-value { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hero__stat-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* ── Short viewport fix (e.g. 1366×768 laptops) ── */
@media (max-height: 750px) {
  .hero { min-height: 0; }

  .hero__title-line {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 0.9;
  }

  .hero__eyebrow { margin-bottom: 0.5rem; }
  .hero__title { margin-bottom: 0.5rem; }
  .hero__body { margin-bottom: 0.75rem; font-size: 0.9rem; }

  .hero__stat { padding: 0.5rem 0; }
  .hero__stat-value { font-size: clamp(1.6rem, 3vw, 2.2rem); }
}
