/* ═══════════════════════════════════════════════════
   ESCO TOOL — HOMEPAGE STYLES
   template-home.php specific
   ═══════════════════════════════════════════════════ */


/* ═══ HERO ═══ */

.hero {
  position: relative;
  min-height: 60vh;
  padding: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.35) 100%);
  z-index: 2;
}

.hero-vimeo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(177.78vh, 100vw);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.hero-vimeo-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: var(--section-pad) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(219, 0, 0, 0.14);
  border: 1px solid rgba(219, 0, 0, 0.4);
  padding: 10px 24px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--esco-red-bright);
  animation: escoFadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--esco-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
  max-width: 800px;
  animation: escoFadeUp 0.8s 0.15s ease both;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--esco-red), var(--esco-red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-weight: 400;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-top: 24px;
  animation: escoFadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: escoFadeUp 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: escoFadeUp 0.8s 0.6s ease both;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px);
  color: #fff;
  line-height: 1;
}

.hero-stat-num em { font-style: normal; color: var(--esco-red); }

.hero-stat-label {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}


/* ═══ SCROLL TICKER ═══ */

.scroll-ticker {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 4;
  background: var(--esco-red);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 40px;
  flex-shrink: 0;
}

.ticker-track span::before {
  content: '\25C6';
  margin-right: 40px;
  opacity: 0.5;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══ INTRO / VALUE PROP ═══ */

.intro {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.intro-text .section-title { margin-bottom: 24px; }
.intro-text .section-sub { margin-bottom: 32px; }

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.intro-feature {
  padding: 22px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--esco-red);
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 2px;
}

.intro-feature:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.intro-feature h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.intro-feature p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

.intro-video {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
}

.video-placeholder {
  position: relative;
  padding-top: 56.25%;
  background: var(--bg-tertiary);
}

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

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: var(--esco-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s;
  animation: escoPlayPulse 2s ease infinite;
  border: none;
}

.play-btn:hover {
  background: var(--esco-red-bright);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }

/* ═══ HOMEPAGE PRODUCT LINEUP ═══ */

.hp-products {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  position: relative;
}

.hp-products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--esco-red), transparent);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header .red-line { margin: 16px auto; }
.products-header .section-sub { margin: 0 auto; }

.hp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border-radius: 4px;
  display: block;
  color: inherit;
}

.hp-product-card:hover {
  border-color: var(--esco-red);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(219,0,0,0.1), 0 0 0 1px var(--esco-red);
}

.hp-product-card-img {
  position: relative;
  padding-top: 100%;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.hp-product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hp-product-card:hover .hp-product-card-img img { transform: scale(1.06); }

.hp-product-card-body { padding: 24px; }

.hp-product-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hp-product-card-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

.hp-product-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--esco-red);
  transition: gap 0.3s;
}

.hp-product-card:hover .hp-product-card-link { gap: 14px; }

.hp-product-card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.hp-product-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.hp-product-card-sm {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  transition: all 0.35s ease;
  cursor: pointer;
  border-radius: 4px;
  color: inherit;
}

.hp-product-card-sm:hover {
  border-color: var(--esco-red);
  background: var(--esco-red-bg);
}

.hp-product-card-sm-img {
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.hp-product-card-sm-img img { width: 100%; height: 100%; object-fit: cover; }

.hp-product-card-sm h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
}

.hp-product-card-sm p {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}

.products-cta { text-align: center; margin-top: 48px; }


/* ═══ INDUSTRIES ═══ */

.industries {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.industries-header {
  text-align: center;
  margin-bottom: 56px;
}

.industries-header .red-line { margin: 16px auto; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  position: relative;
  padding-top: 110%;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover img { transform: scale(1.08); }

.industry-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.85) 100%);
  transition: background 0.4s;
}

.industry-card:hover .industry-card-content {
  background: linear-gradient(transparent 10%, rgba(219,0,0,0.7) 100%);
}

.industry-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
}

.industry-card:hover p { max-height: 80px; opacity: 1; }


/* ═══ CATALOG / LEAD GEN ═══ */

.catalog-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.catalog-image { position: relative; }

.catalog-image img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.catalog-image::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 2px solid var(--esco-red);
  z-index: -1;
  opacity: 0.2;
  border-radius: 4px;
}

.catalog-form-wrap h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.05;
}

.catalog-form-wrap .section-sub { margin: 16px 0 32px; }


/* ═══ HOMEPAGE NEWS SECTION ═══ */

.hp-news {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.hp-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-video { order: -1; }
  .hp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-product-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-image { max-width: 360px; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hp-product-grid,
  .hp-product-grid-secondary,
  .industry-grid { grid-template-columns: 1fr; }
  .intro-features { grid-template-columns: 1fr; }
  .hp-news-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
