/* AIDEV-NOTE: v4 section spacing and container widths */

.v4-section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .v4-section {
    padding: 6rem 0;
  }
}

.v4-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .v4-container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .v4-container {
    padding: 0 2rem;
  }
}

/* AIDEV-NOTE: No padding-top on v4-main — hero sections extend behind the fixed nav (matching ww2).
   Non-hero pages that need top clearance should add their own padding. */
.v4-main {
  padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   AIDEV-NOTE: v4 utility classes — extracted from human-validated about-us page.
   These map to ww2's Tailwind patterns. Use these instead of inline styles.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero sections ── */
/* Full-bleed hero that extends behind the fixed nav */
.v4-hero {
  position: relative;
  overflow: hidden;
}
.v4-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  top: -22%;
}
.v4-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
/* Lighter gradient overlay for heroes with vibrant images (e.g. commercial) */
.v4-hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.v4-hero-content {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 9rem;
  text-align: center;
}
/* Bottom-left aligned hero content (e.g. commercial wraps) */
.v4-hero-content-bl {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 3rem;
}

/* ── Typography ── */
.v4-h1 {
  color: #fff;
  max-width: 56rem;
  margin: 0 auto;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
}
.v4-h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.v4-h2-white {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}
.v4-text-lead {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}
.v4-text-lead-white {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
}
.v4-text-sm {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ── Utility patterns ── */
/* AIDEV-NOTE: Button row — flex with gap and wrap, used for CTA pairs */
.v4-btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.v4-btn-row-center {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
/* Feature row — icon circle + text, used in "Why business owners" and AI promo */
.v4-feature-row {
  display: flex;
  gap: 1rem;
  align-items: start;
}
/* Gray icon circle (2.5rem) for feature rows */
.v4-icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Full-cover background image (absolute, inset:0, z-index:0) */
.v4-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Full-width rounded image */
.v4-img-rounded {
  width: 100%;
  border-radius: 1rem;
}
/* Larger h2 variant for hero-style section headings (48px at desktop) */
.v4-h2-hero {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* ── Section headers (badge + heading + lead centered) ── */
.v4-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.v4-section-header .v4-badge {
  margin-bottom: 1.5rem;
}
.v4-section-header .v4-text-lead {
  max-width: 40rem;
  margin: 0 auto;
}
/* Left-aligned section header variant */
.v4-section-header-left {
  margin-bottom: 3rem;
}
.v4-section-header-left .v4-badge {
  margin-bottom: 1.5rem;
}

/* ── Grids ── */
.v4-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.v4-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Split layout: narrow left, wide right (e.g. CTA sections) */
.v4-grid-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  align-items: center;
}
/* Two-column with left text, right content (e.g. technology section) */
.v4-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── Icon badges ── */
/* Large icon badge (4rem) — used in Wrapmate Standard, Who We Serve */
.v4-icon-badge-lg {
  width: 4rem;
  height: 4rem;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
/* Medium icon badge (3.5rem) — used in Who We Serve cards */
.v4-icon-badge-md {
  width: 3.5rem;
  height: 3.5rem;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
/* Small icon badge (3rem) — used in Problem cards, How We Deliver */
.v4-icon-badge-sm {
  width: 3rem;
  height: 3rem;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
/* Numbered step badge — 01-04 style */
.v4-step-badge {
  width: 3rem;
  height: 3rem;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── Cards ── */
/* Muted background card (rounded-2xl) */
.v4-card-muted {
  background: var(--muted);
  border-radius: 1rem;
  padding: 1.5rem;
}
/* Bordered card (used in Wrapmate Standard) */
.v4-card-bordered {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
/* White card with border (used in Who We Serve) */
.v4-card-white {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
}
/* Dark transparent card (technology section) */
.v4-card-glass {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.25rem;
}
/* Pill-style label inside glass cards */
.v4-card-glass-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* ── Dark sections ── */
.v4-section-dark {
  position: relative;
  overflow: hidden;
  background: #000;
}
.v4-section-dark-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

/* ── Badge variants for dark sections ── */
.v4-badge-dark {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Stat numbers (By the Numbers style) ── */
.v4-stat-value {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.v4-stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Checkmark list (Who We Serve style) ── */
.v4-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.v4-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.v4-check-list svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--foreground);
}

/* ── Light section backgrounds ── */
.v4-bg-gray-50 {
  background: #f9fafb;
}

/* ── Drag-scroll carousel ── */
/* AIDEV-NOTE: Used by process-steps-carousel, customer-story-videos */
.v4-drag-carousel {
  width: 100%;
  overflow: hidden;
}
.v4-drag-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  padding: 0 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.v4-drag-carousel-track::-webkit-scrollbar {
  display: none;
}
.v4-drag-carousel-item {
  flex: 0 0 auto;
  width: 330px;
  height: 220px;
  object-fit: cover;
  border-radius: 0.75rem;
  scroll-snap-align: start;
  user-select: none;
}

/* ── Brand logos marquee ── */
/* AIDEV-NOTE: Used by brand-logos-static.njk — CSS-only infinite scroll */
.v4-logo-marquee {
  position: relative;
  overflow: hidden;
}
.v4-logo-marquee::before,
.v4-logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 1;
  pointer-events: none;
}
.v4-logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, #f9fafb, transparent);
}
.v4-logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, #f9fafb, transparent);
}
.v4-logo-marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: v4-marquee 40s linear infinite;
}
.v4-logo-marquee-track img {
  height: 2.75rem;
  width: 7rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}
.v4-logo-marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes v4-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Mini gallery bento grid ── */
/* AIDEV-NOTE: 6-photo bento grid used on how-it-works, locations */
.v4-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  height: 500px;
}
.v4-bento-grid-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}
.v4-bento-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v4-bento-grid-item:nth-child(1),
.v4-bento-grid-item:nth-child(6) {
  grid-column: span 2;
}
.v4-bento-grid-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
}
@media (max-width: 767px) {
  .v4-bento-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    height: 280px;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .v4-bento-grid::-webkit-scrollbar {
    display: none;
  }
  .v4-bento-grid-item {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
}
