/*
 * Empire Homepage Sections — specialty CTA, trade/pro program, brand marquee.
 * Used by setup-homepage.sh generated content.
 */

/* ── Prevent horizontal overflow from full-bleed blocks ─────────────────── */
html, body { overflow-x: hidden; }

/* ── Desktop: reduce block padding + heading/eyebrow spacing ────────────── */
@media (min-width: 768px) {
  .entry-content .wp-block-group.has-background {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .entry-content .wp-block-group:has(.empire-brands-marquee) {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .entry-content .wp-block-group.has-background:last-child {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  /* Eyebrow → H2 gap */
  .entry-content .wp-block-group p { margin-bottom: 6px !important; }
  .entry-content .wp-block-group h2 { margin-bottom: 10px !important; margin-top: 0 !important; }
  /* Subtitle after H2 gets more room */
  .entry-content .wp-block-group h2 + p { margin-bottom: 32px !important; }
}

/* ── Hero Full-Bleed (breaks out of .entry-content 1170px constraint) ────── */
.wp-block-group.empire-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: 0;
  box-sizing: border-box;
}

/* ── Brand Marquee ───────────────────────────────────────────────────────── */
.empire-brands-marquee {
  overflow: hidden;
  position: relative;
}
.empire-brands-track {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: empireMarquee 30s linear infinite;
}
.empire-brands-marquee:hover .empire-brands-track {
  animation-play-state: paused;
}
.empire-brand-item {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(28, 26, 23, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 0;
}
.empire-brands-marquee::before,
.empire-brands-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.empire-brands-marquee::before { left: 0;  background: linear-gradient(90deg, #fff, transparent); }
.empire-brands-marquee::after  { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

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

@media (max-width: 767px) {
  .empire-brand-item { font-size: 11px; }
  .empire-brands-track { gap: 32px; animation-duration: 20s; }
}

/* ── Specialty CTA (gym design, kitchen design, etc.) ───────────────────── */
.empire-specialty-cta {
  background: linear-gradient(135deg, #1C1A17 0%, #2A2724 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.empire-specialty-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(var(--empire-accent-rgb, 204, 41, 54), 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.empire-specialty-cta .ekd-eyebrow {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--empire-accent, #CC2936);
  margin-bottom: 16px;
}
.empire-specialty-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.1;
  position: relative;
}
.empire-specialty-cta p {
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #9CA3AF;
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
}
.empire-specialty-cta .ekd-cta {
  display: inline-block;
  background: var(--empire-accent, #CC2936);
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 40px;
  border-radius: 6px;
  margin-bottom: 32px;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}
.empire-specialty-cta .ekd-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.empire-specialty-cta .ekd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}
.empire-specialty-cta .ekd-badge {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #D1D5DB;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 16px;
}

@media (max-width: 767px) {
  .empire-specialty-cta { padding: 60px 20px; }
  .empire-specialty-cta p { font-size: 15px; }
}

/* ── Trade / Pro Program ─────────────────────────────────────────────────── */
.empire-pro-trade {
  background: var(--empire-accent, #CC2936);
  padding: 80px 40px;
}
.ept-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.empire-pro-trade .ept-eyebrow {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.empire-pro-trade h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.15;
}
.empire-pro-trade .ept-desc {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
}
.empire-pro-trade .ept-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--empire-accent, #CC2936);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.empire-pro-trade .ept-cta:hover { opacity: 0.9; }
.ept-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ept-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ept-feature-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.ept-feature-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.ept-feature-desc {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .empire-pro-trade { padding: 60px 20px; }
  .ept-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ept-features { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ── Mobile overrides — see mobile-fixes.css for class-based rules ──────── */
@media (max-width: 767px) {
  /* Featured product columns: stack on mobile */
  .wp-block-group .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-group .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}
