/* ===========================================================
   services.css — Services bento grid
   =========================================================== */

.services {
  position: relative;
  padding: 120px var(--section-pad-x) 100px;
  overflow: hidden;
}

/* Vertical index marker, top-left */
.services-index {
  position: absolute;
  top: 120px; left: var(--section-pad-x);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.services-index span { color: var(--orange); }

/* Section header */
.services-head {
  max-width: var(--container-max);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-left: 40px;
}
.services-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.services-eyebrow::before {
  content: ''; display: inline-block;
  width: 30px; height: 1px; background: var(--orange);
}
.services-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--gray-deep);
  max-width: 900px;
}
.services-title .orange { color: var(--orange); }
.services-title .light { font-weight: 400; color: var(--gray); }

.services-headlink {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-deep);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-deep);
  display: inline-flex; align-items: center; gap: 10px;
  transition: gap 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.services-headlink:hover { color: var(--orange); border-color: var(--orange); gap: 14px; }
.services-headlink svg { width: 12px; height: 12px; }

/* === BENTO GRID ====================================== */
.bento {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

/* Self-routing hint for wholesale distributors (W4) */
.services-selfroute-wrap {
  max-width: var(--container-max);
  margin: 22px auto 0;
  padding-left: 40px;
}
.services-selfroute {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-deep);
  transition: gap 0.25s var(--ease-out), color 0.25s;
}
.services-selfroute svg {
  width: 14px; height: 14px;
  color: var(--orange); flex-shrink: 0;
}
.services-selfroute:hover { color: var(--orange); gap: 14px; }

.tile {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 32px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease-out), border-color 0.25s;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
}
.tile:hover { transform: translateY(-4px); border-color: var(--orange); }

/* Featured (flywheel pillar) tiles get the offset border */
.tile.featured::before {
  content: ''; position: absolute;
  top: -6px; left: -6px; right: 6px; bottom: 6px;
  border: 1px solid var(--orange);
  z-index: -1;
  transition: all 0.35s var(--ease-out);
}
.tile.featured:hover::before { top: 0; left: 0; right: 0; bottom: 0; }

/* Dark tile — used for live counters */
.tile.dark {
  background: var(--gray-deep); color: var(--paper);
  border-color: var(--gray-deep);
}
.tile.dark:hover { border-color: var(--orange); }

/* Tile content blocks */
.tile-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.tile.dark .tile-num { color: rgba(255,255,255,0.55); }

.tile-cat {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  padding: 5px 10px;
  border: 1px solid var(--orange);
}
.tile.featured .tile-cat { background: var(--orange); color: var(--paper); }

.tile-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--gray-deep);
  margin-bottom: 14px;
}
.tile.dark .tile-title { color: var(--paper); }
.tile.featured .tile-title { font-size: clamp(26px, 2.4vw, 36px); }

.tile-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 460px;
}
.tile.dark .tile-sub { color: rgba(255,255,255,0.72); }
.tile.featured .tile-sub { font-size: 15px; }

.tile-foot {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.tile-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tile-tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--bone);
}
.tile.dark .tile-tag {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.tile-arrow {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}
.tile-arrow svg { width: 14px; height: 14px; transition: transform 0.3s; }
.tile:hover .tile-arrow { background: var(--orange); border-color: var(--orange); color: var(--paper); }
.tile:hover .tile-arrow svg { transform: translate(2px, -2px); }
.tile.dark .tile-arrow { border-color: rgba(255,255,255,0.2); color: var(--paper); }

.tile-blocks {
  position: absolute; bottom: 110px; right: 28px;
  width: 64px; height: 64px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* Tile body wraps the textual content so it layers above the
   decorative blocks and the foot row stays pinned to the bottom. */
.tile-body {
  position: relative;
  z-index: 1;
}

/* "Includes" content block — fills the featured tiles */
.tile-includes {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}
.tile-includes-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.tile-includes-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 9px;
}
.tile-includes-list li {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--gray);
  padding-left: 18px;
  position: relative;
}
.tile-includes-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--orange);
}

/* Grid placement */
.tile-1 { grid-column: span 3; grid-row: span 2; }
.tile-2 { grid-column: span 3; grid-row: span 2; }
.tile-3 { grid-column: span 2; }
.tile-4 { grid-column: span 2; }
.tile-5 { grid-column: span 2; }
.tile-6 { grid-column: span 3; }
.tile-7 { grid-column: span 3; }

/* === LIVE COUNTERS TILE ============================== */
.live-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}
.live-head-left { display: flex; align-items: center; gap: 8px; }
.live-dot {
  width: 7px; height: 7px; background: var(--orange); border-radius: 50%;
  animation: hero-blink 1.6s infinite;
}
.live-label {
  font-family: var(--font-sans);
  font-weight: 400; font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.live-stat-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 6px;
}
.live-stat-num .unit {
  font-size: 0.45em; color: var(--orange); margin-left: 4px;
  font-weight: 600;
}
.live-stat-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
.live-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.18);
}
.live-foot-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.live-foot-text .ts { color: var(--orange); }

/* Responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile-1, .tile-2 { grid-column: span 4; grid-row: auto; }
  .tile-3, .tile-4, .tile-5 { grid-column: span 4; }
  .tile-6, .tile-7 { grid-column: span 4; }
}
@media (max-width: 768px) {
  .services { padding: 80px var(--section-pad-x) 70px; }
  .services-index { display: none; }
  .services-head {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 0;
    margin-bottom: 50px;
  }
  .bento { padding-left: 0; gap: 14px; }
  .services-selfroute-wrap { padding-left: 0; }
  .tile { padding: 26px; }
  .live-stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 540px) {
  .tile { padding: 22px; }
  .tile-blocks { width: 46px; height: 46px; bottom: 130px; right: 22px; }
}
