/* retail-channels.css */

/* Hub Page Styling - Scoped to .retail-hub to prevent bleeding */
.retail-hub .hub-hero {
  background: var(--ink);
  color: var(--paper);
  padding: calc(clamp(20px, 5vw, 64px) * 2) 0;
  text-align: center;
}
.retail-hub .hub-hero .eyebrow { color: var(--teal-bright); }
.retail-hub .hub-hero h1 { max-width: 24ch; margin: 0 auto 24px; font-size: clamp(36px, 4vw, 56px); }
.retail-hub .hub-hero .lede { max-width: 60ch; margin: 0 auto 32px; color: rgba(255,255,255,0.8); }
.retail-hub .hub-hero .hub-hero-sub { max-width: 70ch; margin: 0 auto; color: rgba(255,255,255,0.6); font-size: 17px; }

.retail-hub .channel-grid-sec { padding: clamp(20px, 5vw, 64px) 0; background: var(--mist); }
.retail-hub .channel-grid-sec .sec-head { text-align: center; margin-bottom: 40px; }

/* Shared tile styles */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.channel-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.channel-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10,30,48,0.06);
  border-color: var(--teal);
}
.channel-tile svg { width: 32px; height: 32px; color: var(--teal); }
.channel-tile span { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

.retail-hub .educational-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; }
.retail-hub .eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.retail-hub .eval-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.retail-hub .eval-item p { font-size: 15px; color: var(--slate); margin: 0; }

.retail-hub .proof-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; background: var(--ink); color: var(--paper); }
.retail-hub .proof-sec .sec-head h2 { color: var(--paper); }
.retail-hub .proof-sec .sec-head p { color: rgba(255,255,255,0.7); }

.retail-hub .proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .retail-hub .proof-grid {
    grid-template-columns: 1fr;
  }
}

.retail-hub .ecrm-photo {
  margin: 0;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.retail-hub .ecrm-retailer-name {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  background: var(--mist);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.retail-hub .ecrm-photo-img-wrap {
  display: block;
}
.retail-hub .ecrm-photo-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.retail-hub .ecrm-photo figcaption {
  padding: 16px;
  font-size: 14px;
  color: var(--slate);
  background: var(--paper);
}
.retail-hub .ecrm-photo figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.retail-hub .differentiation-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; text-align: center; background: var(--teal); color: var(--paper); }
.retail-hub .differentiation-sec h2 { margin-bottom: 24px; }
.retail-hub .differentiation-sec p { max-width: 64ch; margin: 0 auto; font-size: 19px; line-height: 1.6; }

.retail-hub .process-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; background: var(--mist); }
.retail-hub .process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; counter-reset: process; }
.retail-hub .process-step { position: relative; padding-left: 48px; }
.retail-hub .process-step::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 0;
  top: -4px;
  width: 32px;
  height: 32px;
  background: var(--paper);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.retail-hub .process-step h3 { font-size: 17px; margin-bottom: 8px; }
.retail-hub .process-step p { font-size: 15px; color: var(--slate); margin: 0; }

.retail-hub .channels-detail-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; }
.retail-hub .channel-block {
  scroll-margin-top: 96px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.retail-hub .channel-block:first-child { border-top: none; padding-top: 0; }
@media (min-width: 900px) {
  .retail-hub .channel-block { grid-template-columns: 320px 1fr; }
}
.retail-hub .channel-meta { position: sticky; top: 120px; }
.retail-hub .channel-meta h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 32px; }
.retail-hub .channel-meta svg { width: 32px; height: 32px; color: var(--teal); flex-shrink: 0; }
.retail-hub .channel-meta p { color: var(--slate); font-size: 17px; margin-bottom: 24px; }

.retail-hub .channel-content h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.retail-hub .channel-content h3:first-child { margin-top: 0; }
.retail-hub .channel-content p { color: var(--slate); font-size: 16px; margin-bottom: 16px; }
.retail-hub .channel-content ul { padding-left: 20px; color: var(--slate); font-size: 16px; margin-bottom: 16px; }
.retail-hub .channel-content li { margin-bottom: 6px; }

.retail-hub .case-studies-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; background: var(--mist); }

.retail-hub .hub-cta-sec { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; background: var(--ink); color: var(--paper); text-align: center; }
.retail-hub .hub-cta-sec h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 40px); }
.retail-hub .hub-cta-sec .btn-wrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.retail-hub .hub-cta-sec .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--paper); }
.retail-hub .hub-cta-sec .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Homepage Specific */
.home-channels { padding: calc(clamp(20px, 5vw, 64px) * 1.5) 0; background: var(--mist); }
.home-channels .sec-head { text-align: center; margin-bottom: 40px; }
.home-channels .channel-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .home-channels .channel-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile tile adjustments */
@media (max-width: 600px) {
  .channel-tile {
    padding: 18px 12px;
    gap: 12px;
  }
  .channel-tile span {
    font-size: 15px;
    line-height: 1.2;
  }
}
