/**
 * WC Homepage — section-specific styles
 *
 * Scoped to .page-home (via wc_content_page_wrapper).
 * All colors via CSS custom properties from wc-custom-styles.css.
 * No hardcoded hex values — see wc-custom-styles.css :root for definitions.
 *
 * Sections (HTML prototype order):
 *   1. Hero  2. Stats  3. Services  4. Industries  5. Why Us
 *   5b. Trust Bar  6. Testimonials  7. Locations  8. FAQ  9. Bottom CTA
 */

/* ==========================================================================
   0. GLOBAL SECTION SPACING — from HTML prototype line 126
   Matches: section { padding-block: clamp(48px, 8vw, 128px); }
   ========================================================================== */

.page-home section:not(.wc-hero--home) {
  padding-block: clamp(48px, 6vw, 96px);
}

/* 2026-04-15 background rhythm (cool-tone 3-color system) */
.page-home .wc-services { background: var(--color-bg-canvas-soft); }      /* #F8FAFC */
.page-home .wc-industries { background: var(--color-bg-canvas); }          /* #FFFFFF */
.page-home .wc-stats { background: var(--color-bg-canvas-soft); }          /* #F8FAFC */

/* ==========================================================================
   1. HERO — Mistral-style full-bleed + left-aligned
   ========================================================================== */

.wc-hero--home {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-surface-dark);
}

.wc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wc-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/*
 * Hero overlay — multi-layer gradient for white text readability.
 *
 * Research basis:
 *   - Motorhome project: radial + linear, bottom 0.7 opacity
 *   - WCAG AA: white text needs ~4.5:1 contrast against bg
 *   - This image is bright (office + glass walls), needs stronger overlay on left
 *
 * Layer 1 (left→right): text zone darkened, photo zone preserved
 *   Left: 0.58 opacity — enough for AA contrast on white H1
 *   Right: 0.12 — team photo visible
 *
 * Layer 2 (bottom→top): meta line + contact link readability
 *   Bottom: 0.35 → transparent at 50%
 *
 * Color: var(--color-surface-dark) = #0A1420, not pure black (brand-tinted)
 * Pure black overlays look flat; dark navy preserves photo warmth.
 */
.wc-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Layer 1: left→right — text zone darkened, photo zone preserved */
    linear-gradient(
      to right,
      rgba(var(--color-surface-dark-rgb), 0.58) 0%,
      rgba(var(--color-surface-dark-rgb), 0.40) 35%,
      rgba(var(--color-surface-dark-rgb), 0.18) 65%,
      rgba(var(--color-surface-dark-rgb), 0.12) 100%
    ),
    /* Layer 2: top→bottom — darken nav area heavily so nav blends seamlessly with hero.
       The hero image has a bright ceiling/windows at top — without this layer,
       the nav area is visibly lighter than the hero body, breaking the "one piece" effect. */
    linear-gradient(
      to bottom,
      rgba(var(--color-surface-dark-rgb), 0.55) 0%,
      rgba(var(--color-surface-dark-rgb), 0.35) 8%,
      rgba(var(--color-surface-dark-rgb), 0.15) 18%,
      transparent 30%
    ),
    /* Layer 3: bottom→top — meta line + contact link readability */
    linear-gradient(
      to top,
      rgba(var(--color-surface-dark-rgb), 0.35) 0%,
      rgba(var(--color-surface-dark-rgb), 0.10) 40%,
      transparent 60%
    );
  pointer-events: none;
}

.wc-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-13);
  padding-top: 120px;
  padding-bottom: var(--space-14);
  width: 100%;
}

.wc-hero__badge,
.wc-hero__title,
.wc-hero__subtitle,
.wc-hero__cta,
.wc-hero__meta,
.wc-hero__escape {
  grid-column: 1;
}

.wc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: var(--space-11);
  width: fit-content;
}

.wc-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.wc-hero__badge-text {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.wc-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  line-height: 1.04;
  letter-spacing: -0.8px;
  color: var(--color-bg-canvas);
  margin: 0 0 var(--space-11) 0;
  max-width: 18ch;
}

.wc-hero__title .wc-emphasis {
  color: var(--color-primary);
}

.wc-hero__subtitle {
  font-size: var(--fs-body-lead);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: var(--space-12);
}

.wc-hero__cta {
  margin-bottom: var(--space-12);
  justify-self: start; /* Prevent grid cell from stretching button full-width */
}

.wc-hero__meta {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: var(--space-11);
  margin-top: var(--space-13);
  margin-bottom: var(--space-9);
}

.wc-hero__meta-sep {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.25);
}

.wc-hero__meta-city--secondary {
  color: rgba(255, 255, 255, 0.75);
}

.wc-hero__escape {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.65);
}

.wc-hero__escape a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.wc-hero__escape a:hover {
  color: var(--color-bg-canvas);
}

@media (max-width: 767px) {
  .wc-hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-top: 88px;
    padding-bottom: var(--space-12);
  }
  .wc-hero__img { object-position: 75% center; }
  .wc-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    margin-bottom: var(--space-9);
  }
  .wc-hero__badge  { margin-bottom: var(--space-9); }
  .wc-hero__subtitle { margin-bottom: var(--space-10); }
  .wc-hero__cta    { margin-bottom: var(--space-9); }
}

/* ==========================================================================
   2. STATS — 3-column with border dividers
   ========================================================================== */

.wc-stats {
  background: var(--color-bg-canvas);
  border-bottom: 1px solid var(--color-border-default);
}

/* Stats is an info strip, not a content section.
   Override the global section padding (clamp 48-128px) with a tighter scale
   — premium B2B sites (Stripe, Vercel, Webflow) use 48-72px for stats strips.
   Specificity: matches .page-home section:not(.wc-hero--home) + adds a class
   so this rule wins the cascade. */
.page-home section.wc-stats {
  padding-block: clamp(40px, 4vw, 64px);
}

.wc-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.wc-stats__item {
  padding: var(--space-11) var(--space-12);
  border-left: 1px solid var(--color-border-default);
}

.wc-stats__item:first-child {
  border-left: none;
  padding-left: 0;
}

.wc-stats__number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -2px;
  margin-bottom: var(--space-10);
}

.wc-stats__label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-link-muted);
}

.wc-stats__micro {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-caption);
  margin-top: var(--space-7);
}

@media (max-width: 767px) {
  .wc-stats__grid { grid-template-columns: 1fr; }
  .wc-stats__item { border-left: none; border-top: 1px solid var(--color-border-default); padding-left: 0; }
  .wc-stats__item:first-child { border-top: none; }
}

/* ==========================================================================
   3. SERVICES — 3-card vertical grid (image top, text bottom)
   ========================================================================== */

.wc-services__header {
  text-align: left;
  margin-bottom: var(--space-13);
}

.wc-services__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-10);
}

.wc-services__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  color: var(--color-text-primary);
}

.wc-services__supporting {
  color: var(--color-text-tertiary);
  max-width: 56ch;
  margin-top: var(--space-10);
  font-size: var(--fs-body-lead);
}

.wc-services__grid {
  display: grid;
  /* Auto-fit adapts to any service count (1-6): fills row with min 280px cards */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-11);
}

.wc-svc-card { display: flex; flex-direction: column; }

.wc-svc-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  user-select: none;
}

.wc-svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0, 0, 1);
}

.wc-svc-card:hover .wc-svc-img img { transform: scale(1.03); }

.wc-svc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.06) 70%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.wc-svc-content { padding: var(--space-11) var(--space-9) var(--space-9) var(--space-9); display: flex; flex-direction: column; flex: 1; }
.wc-svc-content h3 { margin: 0 0 var(--space-9) 0; font-size: var(--fs-h3); font-weight: 600; color: var(--color-text-primary); }
.wc-svc-content p { margin: 0 0 var(--space-11) 0; color: var(--color-text-tertiary); font-size: var(--fs-caption); line-height: 1.6; }

.wc-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Push link to the bottom of the content box so all cards' links align
     regardless of description length (1-3 lines). */
  margin-top: auto;
  align-self: flex-start;
  color: var(--color-primary-text);
  font-weight: 500;
  font-size: var(--fs-caption);
  text-decoration: none;
}

.wc-svc-link::after { content: "→"; font-family: var(--font-mono); transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
.wc-svc-link:hover::after { transform: translateX(4px); }

.wc-services__exit {
  text-align: center;
  margin-top: var(--space-12);
  color: var(--color-text-tertiary);
}

@media (max-width: 991px) { .wc-services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .wc-services__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   4. INDUSTRIES — photo background cards with gradient overlay
   ========================================================================== */

.wc-industries__header {
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: var(--space-13);
  align-items: end;
  margin-bottom: var(--space-13);
}

.wc-industries__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-10);
}

.wc-industries__title { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 600; line-height: 1.04; color: var(--color-text-primary); }
.wc-industries__supporting { color: var(--color-text-tertiary); max-width: 48ch; font-size: var(--fs-body-lead); }
/* Phase 11g: 2-col landscape 16:9. Deliberate contrast vs Why Us 3-col info cards —
   creates rhythm (light small cards → heavy large photos) and avoids triple 3-col repetition. */
.wc-industries__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-11); }

.wc-ind-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-12);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border-default);
  transition: border-color 200ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);
}

.wc-ind-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,23,42,0.08) 0%,
    rgba(15,23,42,0.16) 38%,
    rgba(15,23,42,0.72) 100%);
  border-radius: 4px;
  transition: background 200ms cubic-bezier(0.2, 0, 0, 1);
}

.wc-ind-card:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-elevation-card); }
.wc-ind-card:hover::after {
  background: linear-gradient(180deg,
    rgba(15,23,42,0.12) 0%,
    rgba(15,23,42,0.24) 38%,
    rgba(15,23,42,0.80) 100%);
}

.wc-ind-card h3 { margin: 0; position: relative; z-index: 1; color: var(--color-bg-canvas); font-size: var(--fs-h3); font-weight: 500; }
.wc-ind-card p { margin: 0; position: relative; z-index: 1; color: rgba(255, 255, 255, 0.88); font-size: var(--fs-caption); }

/* No-image fallback: neutral surface + dark text + icon. Renders when an industry row
   has no `image` set; uses `icon_class` ACF field as visual anchor. */
.wc-ind-card--no-image { background: var(--color-bg-canvas-soft); justify-content: space-between; }
.wc-ind-card--no-image::after { background: none; }
.wc-ind-card--no-image h3 { color: var(--color-text-primary); }
.wc-ind-card--no-image p  { color: var(--color-text-secondary); }
.wc-ind-card__icon { position: relative; z-index: 1; color: var(--color-primary-text); }
.wc-ind-card__icon svg { width: 48px; height: 48px; }

@media (max-width: 767px) {
  .wc-industries__header { grid-template-columns: 1fr; }
  .wc-industries__grid { grid-template-columns: 1fr; }
  .wc-ind-card { aspect-ratio: 16 / 9; padding: var(--space-11); }
}

/* ==========================================================================
   5. WHY US — off-white bg + icon containers + 2x2 asymmetric grid
   ========================================================================== */

.wc-why-us { background: var(--color-bg-canvas); }  /* 2026-04-15: moved to white, Bento cards carry weight */
.wc-why-us__header { margin-bottom: var(--space-13); }
.wc-why-us__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: var(--space-10); }
.wc-why-us__title { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 600; line-height: 1.04; color: var(--color-text-primary); }

/* 2026-04-15 Bento 3×2 non-symmetric grid (6 pillars).
   Columns 1.3fr 1fr 0.9fr avoid 3-equal-column AI-tell (design.md §5.3 Variance=6).
   Source order ①→⑥ matches DOM (no `order:` property — screen reader safety). */
.wc-why-us__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-11);
}

.wc-why-us__pillar {
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-elevation-card);
  transition: border-color 200ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
              transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.wc-why-us__pillar:hover { border-color: var(--color-border-hover); transform: translateY(-2px); }

.wc-why-us__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(var(--color-primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-11);
  color: var(--color-primary-text);
}

.wc-why-us__icon svg { width: 24px; height: 24px; }
.wc-why-us__pillar h3 { margin: 0 0 var(--space-10) 0; font-size: clamp(1.125rem, 1.2vw + 0.9rem, 1.375rem); font-weight: 600; line-height: 1.25; color: var(--color-text-primary); }
.wc-why-us__pillar p { margin: 0; color: var(--color-text-tertiary); line-height: 1.6; font-size: var(--fs-caption); }
.wc-why-us__link { display: inline-block; margin-top: var(--space-10); color: var(--color-primary-text); text-decoration: underline; font-weight: 500; }
.wc-why-us__link:hover { color: var(--color-primary-hover); }
.wc-why-us__exits { display: flex; flex-direction: column; gap: var(--space-9); margin-top: var(--space-12); }
.wc-why-us__exits a { color: var(--color-primary-text); text-decoration: underline; font-weight: 500; }

/* Responsive breakpoints — source order preserved at every breakpoint */
@media (max-width: 1199px) {
  .wc-why-us__grid { grid-template-columns: 1.2fr 1fr 0.9fr; grid-auto-rows: minmax(200px, auto); }
}
@media (max-width: 991px) {
  /* 2×3: pair the two shortest (② 22w Deloitte + ⑥ 28w One-Partner) on same rows for balance */
  .wc-why-us__grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); grid-auto-rows: auto; }
}
@media (max-width: 767px) {
  .wc-why-us__grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

/* ==========================================================================
   5b. TRUST BAR — client name strip
   ========================================================================== */

.wc-trust-bar {
  padding: var(--space-13) 0;
  border-top: 1px solid var(--color-border-default);
  border-bottom: 1px solid var(--color-border-default);
  text-align: center;
}

.wc-trust-bar__label { font-size: var(--fs-caption); font-weight: 400; color: var(--color-text-muted); margin-bottom: var(--space-11); display: block; }

.wc-trust-bar__names { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--space-13); }

.wc-trust-bar__name {
  font-size: var(--fs-body-lead);
  font-weight: 600;
  color: var(--color-text-primary);
  opacity: 0.35;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==========================================================================
   6. TESTIMONIALS — 2026-04-15 3-slide carousel + 6-logo wall
   ========================================================================== */

.wc-testimonials { background: var(--color-bg-canvas-accent); }  /* #F4FAFE */
.wc-testimonials__header { margin-bottom: var(--space-13); }
.wc-testimonials__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: var(--space-10); }
.wc-testimonials__header h2 { color: var(--color-text-primary); }

/* Carousel container */
.wc-testimonials__carousel {
  position: relative;
  margin-bottom: var(--space-13);
}

.wc-testimonials__track {
  position: relative;
  min-height: 320px;
}

.wc-testimonials__slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  padding: clamp(28px, 3vw, 48px);
  box-shadow: var(--shadow-elevation-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms cubic-bezier(0.2, 0, 0, 1), visibility 0s 600ms;
}
.wc-testimonials__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.wc-testimonials__slide.has-photo {
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}
@media (max-width: 767px) {
  .wc-testimonials__slide.has-photo { grid-template-columns: 1fr; }
}

.wc-testimonials__quote-mark {
  width: 36px; height: 36px;
  color: var(--color-primary-text);
  opacity: 0.25;
  margin-bottom: var(--space-10);
}
.wc-testimonials__quote {
  margin: 0 0 var(--space-12) 0;
  font-size: clamp(1.125rem, 1.6vw + 0.5rem, 1.375rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-primary);
  max-width: 56ch;
  font-style: normal;
  quotes: none;
}
.wc-testimonials__meta {
  display: flex; align-items: center; gap: var(--space-11);
  padding-top: var(--space-11);
  border-top: 1px solid var(--color-border-default);
  flex-wrap: wrap;
}
.wc-testimonials__logo { max-width: 120px; max-height: 48px; object-fit: contain; }
.wc-testimonials__wordmark {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.wc-testimonials__attribution { display: flex; flex-direction: column; gap: 2px; }
.wc-testimonials__author { margin: 0; font-size: var(--fs-caption); font-weight: 600; color: var(--color-text-primary); }
.wc-testimonials__role   { margin: 0; font-size: 0.8125rem; color: var(--color-text-tertiary); }
.wc-testimonials__since  { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--color-primary-text); }

.wc-testimonials__slide-photo {
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-canvas-soft);
  aspect-ratio: 4/3;
}
.wc-testimonials__slide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Controls */
.wc-testimonials__controls {
  display: flex; justify-content: center; align-items: center; gap: var(--space-11);
  margin-top: var(--space-11);
}
.wc-testimonials__btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: 50%;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 200ms, color 200ms, transform 200ms;
}
.wc-testimonials__btn:hover { border-color: var(--color-border-hover); color: var(--color-primary-text); }
.wc-testimonials__btn:focus-visible { outline: 2px solid var(--color-primary-text); outline-offset: 2px; }
.wc-testimonials__btn svg { width: 18px; height: 18px; }

.wc-testimonials__dots { display: flex; gap: 8px; align-items: center; }
.wc-testimonials__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-border-default);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 200ms, transform 200ms;
}
.wc-testimonials__dot.is-active { background: var(--color-primary-text); transform: scale(1.2); }
.wc-testimonials__dot:focus-visible { outline: 2px solid var(--color-primary-text); outline-offset: 3px; }

/* Logo wall */
.wc-testimonials__logowall { margin-top: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--color-border-default); }
.wc-testimonials__logowall-label {
  text-align: center;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--color-text-muted);
  margin: 0 0 var(--space-11) 0;
}
.wc-testimonials__logos {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-11);
  align-items: center;
}
.wc-testimonials__logo-item {
  display: flex; justify-content: center; align-items: center;
  min-height: 48px;
}
.wc-testimonials__logo-item img {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(10%);
  transition: opacity 200ms, filter 200ms;
}
.wc-testimonials__logo-item img:hover { opacity: 1; filter: none; }
.wc-testimonials__logo-wordmark {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  opacity: 0.75;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 991px) {
  .wc-testimonials__logos { grid-template-columns: repeat(3, 1fr); gap: var(--space-11); }
}
@media (max-width: 479px) {
  .wc-testimonials__logos { grid-template-columns: repeat(2, 1fr); }
}

.wc-testimonials__link { margin-top: var(--space-12); text-align: center; }
.wc-testimonials__link a { font-weight: 500; color: var(--color-primary-text); text-decoration: underline; }

/* Reduced motion: pause auto-rotate + instant slide transitions */
@media (prefers-reduced-motion: reduce) {
  .wc-testimonials__slide { transition: none; }
}

/* ==========================================================================
   7. LOCATIONS — Leaflet map + city cards
   ========================================================================== */

/* Locations section — subtle secondary bg for rhythm (Codex recommendation) */
.wc-locations { background: var(--color-bg-section); }

.wc-locations__header { margin-bottom: var(--space-13); }
.wc-locations__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: var(--space-10); }

.wc-locations__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-13); align-items: center; }
.wc-locations__leaflet { width: 100%; height: 420px; border-radius: 8px; border: 1px solid var(--color-border-default); overflow: hidden; }

/* Leaflet custom markers */
.wc-marker { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wc-marker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); border: 0; box-shadow: 0 0 0 1.5px var(--color-bg-canvas); flex-shrink: 0; }
.wc-marker-label { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--color-text-secondary); text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9); }
.wc-marker-sub { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--color-text-link-muted); display: block; }

.wc-locations__cards { display: flex; flex-direction: column; gap: var(--space-11); }

/* Base .wc-city-card component moved to wc-custom-styles.css (global, shared
   by F1 home / F2 service / F5 locations). Homepage-specific "full-bleed
   photo" override lives below under `.page-home .wc-city-card`. */

@media (max-width: 767px) {
  .wc-locations__layout { grid-template-columns: 1fr; }
  .wc-locations__leaflet { display: none; }
}

/* ==========================================================================
   8. FAQ — split layout with sticky header + numbered accordion
   ========================================================================== */

.wc-faq__layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.wc-faq__header { margin-bottom: 0; position: sticky; top: 120px; }
.wc-faq__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: var(--space-10); }
.wc-faq__header h2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 600; line-height: 1.04; color: var(--color-text-primary); }
.wc-faq__header p { color: var(--color-text-tertiary); line-height: 1.6; margin-top: var(--space-10); }
.wc-faq__list { max-width: none; }
.wc-faq__item { border-bottom: 1px solid var(--color-border-default); }

.wc-faq__question {
  display: flex; align-items: center; gap: var(--space-10);
  padding: var(--space-11) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-body-lead); font-weight: 500;
  color: var(--color-text-primary); min-height: 44px;
}

.wc-faq__question::-webkit-details-marker { display: none; }
.wc-faq__question::marker { display: none; content: ""; }

.wc-faq__num { font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 500; color: var(--color-text-muted); flex-shrink: 0; min-width: 24px; }
.wc-faq__question-text { flex: 1; }

/* Chevron uses CSS mask so the color comes from var() not a hardcoded hex in a data URI */
.wc-faq__chevron {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
  background-color: var(--color-primary-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wc-faq__item[open] .wc-faq__chevron { transform: rotate(90deg); }
.wc-faq__item[open] summary { color: var(--color-primary-text); }
.wc-faq__item[open] .wc-faq__num { color: var(--color-primary-text); }

.wc-faq__answer {
  padding: 0 0 var(--space-11) 0;
  color: var(--color-text-tertiary);
  line-height: 1.6;
  max-width: 680px;
  margin-left: calc(24px + var(--space-10));
}

.wc-faq__answer p { margin: 0; }

@media (max-width: 767px) {
  .wc-faq__layout { grid-template-columns: 1fr; gap: var(--space-12); }
  .wc-faq__header { position: static; }
}

/* Bottom CTA base (phone bridge only — premium styling in the appended block below) */
.wc-bottom-cta__phone { text-align: center; padding-bottom: var(--space-13); }


/* ==========================================================================
   LOWER-HALF UNIFICATION — Sections 5-10
   Source: Codex xhigh final review (MASTER.md compliant)
   Patterns: bg rhythm, shared card hover, fadeSlideUp stagger,
             dark CTA bookend, asymmetric grids
   ========================================================================== */

.page-home .wc-why-us,
.page-home .wc-trust-bar,
.page-home .wc-testimonials,
.page-home .wc-locations,
.page-home .wc-faq,
.page-home .wc-bottom-cta {
  position: relative;
}

.page-home .wc-why-us,
.page-home .wc-testimonials,
.page-home .wc-locations,
.page-home .wc-faq,
.page-home .wc-bottom-cta {
  padding-block: clamp(72px, 8vw, 128px);
}

.page-home .wc-trust-bar {
  padding-block: clamp(28px, 4vw, 40px);
}

.page-home .wc-why-us > .wc-container,
.page-home .wc-trust-bar > .wc-container,
.page-home .wc-testimonials > .wc-container,
.page-home .wc-locations > .wc-container,
.page-home .wc-faq > .wc-container,
.page-home .wc-bottom-cta__inner {
  position: relative;
  z-index: 1;
}

.page-home .wc-why-us__header,
.page-home .wc-testimonials__header,
.page-home .wc-locations__header {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.page-home .wc-faq__header {
  max-width: 32ch;
}

.page-home .wc-why-us__label,
.page-home .wc-testimonials__label,
.page-home .wc-locations__label,
.page-home .wc-faq__label {
  color: var(--color-text-muted);
}

.page-home .wc-why-us__title,
.page-home .wc-testimonials__header h2,
.page-home .wc-locations__header h2,
.page-home .wc-faq__header h2,
.page-home .wc-bottom-cta__heading {
  letter-spacing: normal;
}

.page-home .wc-why-us__link,
.page-home .wc-why-us__exits a,
.page-home .wc-testimonials__link a,
.page-home .wc-bottom-cta__secondary a,
.page-home .wc-bottom-cta__phone a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Pattern 1: background rhythm (2026-04-15 refactor: 3-color cool-tone system)
   White (#FFFFFF) → Hero, Industries, Why Us, Locations
   Cool off-white (#F8FAFC) → Services, Stats, FAQ
   Pale blue (#F4FAFE) → Testimonials (only)
   Dark (#081829) → Bottom CTA (only strong accent per page) */
.page-home .wc-why-us { background: var(--color-bg-canvas); }
.page-home .wc-testimonials { background: var(--color-bg-canvas-accent); }
.page-home .wc-locations { background: var(--color-bg-canvas); }
.page-home .wc-faq { background: var(--color-bg-canvas-soft); }
.page-home .wc-bottom-cta { background: var(--color-bg-canvas-dark); }
/* Trust bar 已从 shortcode 渲染流程移除（Phase 3b），样式保留供 Phase 6 前兼容 */
.page-home .wc-trust-bar { background: var(--color-bg-canvas); border-top: 1px solid var(--color-border-default); border-bottom: 1px solid var(--color-border-default); }

/* Pattern 2: shared card surface + hover */
.page-home .wc-why-us__pillar,
.page-home .wc-test-featured,
.page-home .wc-test-card,
.page-home .wc-city-card,
.page-home .wc-faq__list {
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
}

.page-home .wc-why-us__pillar,
.page-home .wc-test-featured,
.page-home .wc-test-card,
.page-home .wc-city-card {
  transition:
    border-color var(--motion-default) var(--motion-easing),
    box-shadow var(--motion-default) var(--motion-easing),
    transform var(--motion-default) var(--motion-easing);
}

.page-home .wc-why-us__pillar:hover,
.page-home .wc-test-featured:hover,
.page-home .wc-test-card:hover,
.page-home .wc-city-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-elevation-card);
  transform: translateY(-2px);
}

/* Reset stagger offsets from old premium pass */
.page-home .wc-test-card:nth-child(2),
.page-home .wc-test-card:nth-child(3) { transform: none; }
.page-home .wc-test-card:hover:nth-child(2),
.page-home .wc-test-card:hover:nth-child(3) { transform: translateY(-2px); }
.page-home .wc-city-card:nth-child(2),
.page-home .wc-city-card:nth-child(3) { margin-left: 0; }

/* Pattern 5: asymmetric grids — Why Us bento removed in Phase 11d (count now flexible). */

.page-home .wc-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

/* Why Us */
.page-home .wc-why-us__pillar { padding: clamp(32px, 4vw, 48px); }
.page-home .wc-why-us__icon {
  width: 56px; height: 56px; border: none;
  border-radius: var(--radius-lg);
  background: rgba(var(--color-primary-rgb), 0.10);
  box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-11); color: var(--color-primary-text);
}
.page-home .wc-why-us__icon svg { width: 26px; height: 26px; }
.page-home .wc-why-us__pillar h3 { margin: 0 0 var(--space-10) 0; max-width: 15ch; font-size: clamp(1.5rem, 2vw + 1rem, 2rem); font-weight: 600; line-height: 1.30; }
.page-home .wc-why-us__pillar p { margin: 0; max-width: 38ch; color: var(--color-text-tertiary); line-height: 1.7; }
.page-home .wc-why-us__exits { margin-top: clamp(24px, 4vw, 40px); padding-top: 0; border-top: 0; }

/* Trust Bar */
.page-home .wc-trust-bar__label { display: block; margin-bottom: var(--space-10); color: var(--color-text-muted); }
.page-home .wc-trust-bar__names { gap: clamp(16px, 2vw, 32px); }
.page-home .wc-trust-bar__name {
  padding: 0; background: none; border: 0; border-radius: 0;
  font-size: clamp(1rem, 0.85rem + 0.45vw, 1.25rem);
  font-weight: 600; color: var(--color-text-primary); opacity: 0.35;
  letter-spacing: 0.02em; white-space: nowrap;
}

/* Testimonials */
.page-home .wc-test-featured { margin-bottom: clamp(24px, 4vw, 48px); padding: clamp(32px, 4vw, 48px); }
.page-home .wc-test-featured blockquote { margin: 0 0 var(--space-12) 0; max-width: 52ch; font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; line-height: 1.5; color: var(--color-text-primary); font-style: normal; }
.page-home .wc-test-avatar { width: 40px; height: 40px; background: var(--color-primary); box-shadow: none; font-size: 1rem; }
.page-home .wc-test-avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.page-home .wc-test-quote { margin: 0 0 var(--space-11) 0; max-width: 34ch; color: var(--color-text-secondary); font-size: var(--fs-caption); line-height: 1.7; font-style: normal; }
.page-home .wc-test-card { min-height: 100%; padding: var(--space-12); display: flex; flex-direction: column; justify-content: space-between; }
.page-home .wc-test-card .wc-test-author { margin-top: auto; padding-top: var(--space-11); border-top: 1px solid var(--color-border-default); }
.page-home .wc-test-badge { display: inline-block; align-self: flex-start; margin-bottom: var(--space-10); padding: 3px 10px; border: 1px solid rgba(var(--color-primary-rgb), 0.16); border-radius: var(--radius-md); background: rgba(var(--color-primary-rgb), 0.08); color: var(--color-primary-text); font-size: 11px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.page-home .wc-test-since { margin-top: 2px; letter-spacing: normal; text-transform: none; }
.page-home .wc-testimonials__link { margin-top: clamp(24px, 4vw, 40px); }

/* Locations */
.page-home .wc-locations__layout { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.page-home .wc-locations__leaflet { min-height: 420px; height: 100%; background: var(--color-bg-canvas); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); box-shadow: none; }
.page-home .wc-locations__cards { gap: clamp(16px, 2vw, 24px); justify-content: flex-start; }
.page-home .wc-city-card { min-height: 132px; padding: 28px 32px; }
.page-home .wc-city-card__arrow { float: right; position: static; width: auto; height: auto; display: inline; border: 0; border-radius: 0; background: none; color: var(--color-primary-text); font-size: 1.125rem; }
.page-home .wc-city-card:hover .wc-city-card__arrow { transform: none; background: none; border: 0; }
.page-home .wc-city-card__name { margin: 0 0 4px 0; font-size: var(--fs-h3); font-weight: 500; color: var(--color-text-primary); }
.page-home .wc-city-card__detail { max-width: 30ch; padding-right: 0; color: var(--color-text-tertiary); }

/* FAQ */
.page-home .wc-faq__layout { grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-home .wc-faq__header { position: sticky; top: 120px; margin-bottom: 0; }
.page-home .wc-faq__header p { max-width: 34ch; color: var(--color-text-tertiary); }
.page-home .wc-faq__list { padding: clamp(20px, 3vw, 32px); background: var(--color-bg-canvas); }
.page-home .wc-faq__item { padding-inline: 0; border: 0; border-bottom: 1px solid var(--color-border-default); border-radius: 0; transition: none; }
.page-home .wc-faq__item + .wc-faq__item { margin-top: 0; }
.page-home .wc-faq__item:last-child { border-bottom: 0; }
.page-home .wc-faq__item[open] { background: transparent; border-color: transparent; box-shadow: none; }
.page-home .wc-faq__question { padding: 22px 0; color: var(--color-text-primary); }
.page-home .wc-faq__question:hover .wc-faq__question-text,
.page-home .wc-faq__item[open] .wc-faq__question-text,
.page-home .wc-faq__item[open] .wc-faq__num { color: var(--color-primary-text); }
.page-home .wc-faq__num { min-width: 24px; color: var(--color-text-muted); letter-spacing: 0.08em; }
.page-home .wc-faq__answer { max-width: 60ch; margin-left: calc(24px + var(--space-10)); padding: 0 0 22px 0; color: var(--color-text-tertiary); }

/* Pattern 4: dark CTA bookend */
.page-home .wc-bottom-cta { padding-block: clamp(96px, 10vw, 144px); text-align: center; }
.page-home .wc-bottom-cta__inner {
  display: grid; gap: var(--space-11); justify-items: center;
  max-width: 720px; margin: 0 auto; position: relative; z-index: 1;
}
.page-home .wc-bottom-cta__heading { margin: 0 auto; max-width: 14ch; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.04; color: var(--color-bg-canvas); }
.page-home .wc-bottom-cta__subtitle,
.page-home .wc-bottom-cta__secondary { max-width: 46ch; margin: 0 auto; color: rgba(255, 255, 255, 0.72); }
.page-home .wc-bottom-cta__subtitle { font-size: clamp(1rem, 1vw + 0.9rem, 1.25rem); }
.page-home .wc-bottom-cta__secondary a { color: rgba(255, 255, 255, 0.92); }
.page-home .wc-bottom-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-10); margin: 0; }
.page-home .wc-bottom-cta .wc-btn-primary,
.page-home .wc-bottom-cta .wc-btn-primary:hover { box-shadow: none; }
.page-home .wc-bottom-cta .wc-btn-ghost { color: var(--color-bg-canvas); border-color: rgba(255, 255, 255, 0.28); }
.page-home .wc-bottom-cta .wc-btn-ghost:hover { color: var(--color-bg-canvas); border-color: rgba(255, 255, 255, 0.52); }
.page-home .wc-bottom-cta__phone { margin-top: 0; padding-top: var(--space-11); padding-bottom: clamp(40px, 6vw, 64px); text-align: center; }
.page-home .wc-bottom-cta__phone p { display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; color: rgba(255, 255, 255, 0.55); }
.page-home .wc-bottom-cta__phone a { color: rgba(255, 255, 255, 0.85); }

/* === Responsive === */
@media (max-width: 991px) {
  .page-home .wc-locations__layout,
  .page-home .wc-faq__layout { grid-template-columns: 1fr; }
  .page-home .wc-faq__header { position: static; max-width: 760px; }
}

@media (max-width: 767px) {
  .page-home .wc-why-us,
  .page-home .wc-testimonials,
  .page-home .wc-locations,
  .page-home .wc-faq,
  .page-home .wc-bottom-cta { padding-block: clamp(56px, 12vw, 88px); }
  .page-home .wc-trust-bar { padding-block: clamp(24px, 5vw, 32px); }
  .page-home .wc-why-us__grid,
  .page-home .wc-test-grid { grid-template-columns: 1fr; }
  .page-home .wc-why-us__pillar:nth-child(n) { grid-column: auto; grid-row: auto; }
  .page-home .wc-test-featured,
  .page-home .wc-test-card,
  .page-home .wc-city-card,
  .page-home .wc-faq__list { padding: 24px; }
  .page-home .wc-locations__leaflet { display: none; }
  .page-home .wc-city-card { min-height: auto; }
  .page-home .wc-faq__answer { margin-left: 0; padding-left: calc(24px + var(--space-10)); }
  .page-home .wc-bottom-cta__inner { gap: var(--space-10); }
  .page-home .wc-bottom-cta__heading { max-width: 10ch; }
  .page-home .wc-bottom-cta__actions { flex-direction: column; align-items: center; }
  .page-home .wc-bottom-cta .wc-btn-primary,
  .page-home .wc-bottom-cta .wc-btn-ghost { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 479px) {
  .page-home .wc-why-us__pillar,
  .page-home .wc-test-featured,
  .page-home .wc-test-card,
  .page-home .wc-city-card,
  .page-home .wc-faq__list { padding: 20px; }
  .page-home .wc-trust-bar__names { gap: 12px; }
  .page-home .wc-trust-bar__name { font-size: 1rem; }
  .page-home .wc-faq__question { font-size: var(--fs-body); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .wc-why-us__pillar,
  .page-home .wc-test-featured,
  .page-home .wc-test-card,
  .page-home .wc-city-card,
  .page-home .wc-faq__question-text,
  .page-home .wc-faq__chevron { transition: none !important; }
  .page-home .wc-why-us__pillar:hover,
  .page-home .wc-test-featured:hover,
  .page-home .wc-test-card:hover,
  .page-home .wc-city-card:hover { transform: none !important; box-shadow: none !important; }
}

/* ==========================================================================
   2026-04-15 refinements (Phase 11b)
   Why Us → compact B2B 3×2 grid (was bento)
   Logo wall → infinite marquee (was static grid)
   City cards → horizontal thumbnail image card (was 48px icon)
   ========================================================================== */

/* --- Why Us: compact B2B 3×2 symmetric grid --- */
.page-home .wc-why-us { padding-block: clamp(56px, 6vw, 96px); }
.page-home .wc-why-us__header { margin-bottom: clamp(32px, 4vw, 56px); }
/* Section h2 unification — match Industries We Serve heading across Why Us / Testimonials / Locations */
.page-home .wc-why-us__title,
.page-home .wc-testimonials__header h2,
.page-home .wc-locations__header h2 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
}

/* Why Us 3×2 card grid (restored from Phase 11d after Phase 11f stripe rejected by user 2026-04-15).
   Topology differentiation will be revisited per follow-up research. */
.page-home .wc-why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  align-items: stretch;
}
.page-home .wc-why-us__pillar:nth-child(n) { grid-column: auto; grid-row: auto; }

.page-home .wc-why-us__pillar {
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--radius-md);
}
.page-home .wc-why-us__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-10);
}
.page-home .wc-why-us__icon svg { width: 20px; height: 20px; }
.page-home .wc-why-us__pillar h3 {
  margin: 0 0 6px 0;
  max-width: none;
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
}
.page-home .wc-why-us__pillar p {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.page-home .wc-why-us__link { margin-top: var(--space-10); font-size: 0.875rem; }
.page-home .wc-why-us__exits { margin-top: clamp(20px, 2.5vw, 32px); flex-direction: row; flex-wrap: wrap; gap: var(--space-12); }
.page-home .wc-why-us__exits a { font-size: 0.9375rem; }

@media (max-width: 991px) {
  .page-home .wc-why-us__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .page-home .wc-why-us__grid { grid-template-columns: 1fr; }
}

/* --- Logo wall: infinite horizontal marquee --- */
.wc-testimonials__logowall { overflow: hidden; }

.wc-testimonials__logos.is-marquee {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  grid-template-columns: none;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  animation: wc-logo-marquee 36s linear infinite;
  will-change: transform;
}
.wc-testimonials__logos.is-marquee .wc-testimonials__logo-item {
  flex: 0 0 auto;
  min-width: 140px;
}
.wc-testimonials__logowall:hover .wc-testimonials__logos.is-marquee,
.wc-testimonials__logowall:focus-within .wc-testimonials__logos.is-marquee {
  animation-play-state: paused;
}
@keyframes wc-logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wc-testimonials__logos.is-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* --- Locations: full-bleed photo city card with gradient overlay --- */
.page-home .wc-city-card {
  position: relative;
  min-height: 132px;
  padding: 24px 28px;
  gap: 0;
  align-items: flex-end;
  overflow: hidden;
  background: #0b1f2b;          /* fallback if image missing */
  border-color: transparent;
  color: #fff;
  isolation: isolate;            /* keep ::after above thumb img, below text */
}
/* Photo fills the entire card */
.page-home .wc-city-card__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  z-index: 0;
  flex: initial;
}
.page-home .wc-city-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms var(--motion-easing);
}
.page-home .wc-city-card:hover .wc-city-card__thumb img { transform: scale(1.06); }
.page-home .wc-city-card__thumb svg { width: 32px; height: 32px; margin: auto; color: rgba(255,255,255,0.6); }

/* Legibility overlay — strong bottom-left gradient to carry white text */
.page-home .wc-city-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--motion-default) var(--motion-easing);
}
.page-home .wc-city-card:hover::after { opacity: 0.92; }

/* Lift text + arrow above overlay with white color */
.page-home .wc-city-card__text,
.page-home .wc-city-card__arrow { position: relative; z-index: 2; }
.page-home .wc-city-card__name {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: clamp(1.375rem, 1.2vw + 0.9rem, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.page-home .wc-city-card__detail {
  max-width: 32ch;
  color: rgba(255,255,255,0.88);
  font-size: 0.9375rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.page-home .wc-city-card__arrow { display: none; }
.page-home .wc-city-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.35);
}

@media (max-width: 559px) {
  .page-home .wc-city-card { min-height: 120px; padding: 20px 22px; }
}

/* ==========================================================================
   2026-04-15 Phase 11e — Service & Industry card interaction polish
   • Service cards become whole-card clickable (stretched-link pattern)
   • Industry cards get image zoom + overlay deepen + title slide + desc fade
   ========================================================================== */

/* --- Service cards: whole-card clickable via stretched-link pattern --- */
/* Card is the positioning context; link's ::after fills the card so the entire
   card surface routes clicks to the same URL while keeping a single <a> in DOM
   (Bootstrap-style stretched-link, accessible + SEO-clean). */
.wc-svc-card {
  position: relative;
  transition: transform 350ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 350ms cubic-bezier(0.2, 0, 0, 1);
}
.wc-svc-card--clickable { cursor: pointer; }
.wc-svc-card .wc-stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wc-svc-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -20px rgba(0,0,0,0.18);
}
.wc-svc-card--clickable:hover .wc-svc-img img { transform: scale(1.05); }
.wc-svc-content h3 { transition: color 250ms ease; }
.wc-svc-card--clickable:hover .wc-svc-content h3 { color: var(--color-primary-text); }
.wc-svc-card--clickable:focus-within {
  outline: 2px solid var(--color-primary-text);
  outline-offset: 4px;
  border-radius: 10px;
}

/* --- Industry cards: image zoom via ::before pseudo, gradient deepen, title slide, desc fade --- */
.wc-ind-card { background-image: none; isolation: isolate; }
.wc-ind-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wc-ind-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.92) contrast(1.02);
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.2, 0, 0, 1);
  z-index: 0;
  border-radius: inherit;
}
.wc-ind-card::after { z-index: 1; }
.wc-ind-card h3,
.wc-ind-card p {
  z-index: 2;
}
.wc-ind-card p { opacity: 1; }
.wc-ind-card:hover::before { transform: scale(1.03); }
.wc-ind-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.45);
}

@media (prefers-reduced-motion: reduce) {
  .wc-svc-card--clickable,
  .wc-svc-card--clickable:hover,
  .wc-svc-card--clickable .wc-svc-img img,
  .wc-ind-card,
  .wc-ind-card::before,
  .wc-ind-card h3,
  .wc-ind-card p { transition: none !important; transform: none !important; }
  .wc-ind-card:hover::before { transform: none !important; }
}

/* ==========================================================================
   2026-04-15 Testimonials refinement (Phase 11c)
   - Fix slide content overflow: grid-stack slides so track auto-heights
   - Slideshow mode: hide prev/next, keep minimal dots with progress fill
   - Softer crossfade with small rise-in
   - Logo transparency via mix-blend-mode (card + wall)
   ========================================================================== */

/* Replicates motorhomerentals.nz hero slideshow timings/animations:
   • 1.2s ease-in-out opacity crossfade
   • 3s opening reveal (scale + blur + saturate) on first slide
   • 12s alternating Ken Burns "breathing" zoom while slide is active
   • 7s interval (driven by JS) */
.wc-testimonials__track {
  display: grid;
  min-height: 0;
}
.wc-testimonials__slide {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-out, visibility 0s 1.2s;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}
.wc-testimonials__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  pointer-events: auto;
}

/* Ken Burns breathing — 3 alternating motions (slow, continuous, GPU-friendly) */
.wc-testimonials__slide.is-active[data-slide-index="0"] { animation: wc-kb-0 12s ease-in-out infinite alternate; }
.wc-testimonials__slide.is-active[data-slide-index="1"] { animation: wc-kb-1 12s ease-in-out infinite alternate; }
.wc-testimonials__slide.is-active[data-slide-index="2"] { animation: wc-kb-2 12s ease-in-out infinite alternate; }
/* All keyframes start at identity so slide activation never "jumps".
   Different destination directions give visual variety without chaos. */
@keyframes wc-kb-0 { from { transform: none; } to { transform: scale(1.08) translate(-1.2%,-0.8%); } }
@keyframes wc-kb-1 { from { transform: none; } to { transform: scale(1.08) translate(1.2%,-0.8%);  } }
@keyframes wc-kb-2 { from { transform: none; } to { transform: scale(1.06) translate(0%, 1.4%);    } }

/* Opening reveal — runs once on first active slide */
.wc-testimonials__slide.is-opening {
  animation: wc-slide-open 3s ease-in-out forwards !important;
}
@keyframes wc-slide-open {
  0%   { opacity: 0; transform: scale(1.05); filter: blur(4px) saturate(0.4); }
  40%  { opacity: 1; transform: scale(1.02); filter: blur(0.6px) saturate(0.8); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0)    saturate(1);   }
}

/* Slideshow mode: remove prev/next arrows, center minimal dots */
.wc-testimonials__btn { display: none; }
.wc-testimonials__controls {
  margin-top: clamp(20px, 2.5vw, 28px);
  gap: 10px;
}
.wc-testimonials__dots { gap: 10px; }
.wc-testimonials__dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.15);
  transition: background 250ms ease, width 450ms cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}
.wc-testimonials__dot.is-active {
  width: 48px;
  background: rgba(15, 23, 42, 0.18);
  transform: none;
}
/* Progress fill on active dot — 5s countdown matching JS AUTO_MS */
.wc-testimonials__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--color-primary-text);
  border-radius: inherit;
  animation: wc-dot-progress 5s linear forwards;
}
.wc-testimonials__carousel:hover .wc-testimonials__dot.is-active::after,
.wc-testimonials__carousel:focus-within .wc-testimonials__dot.is-active::after {
  animation-play-state: paused;
}
@keyframes wc-dot-progress {
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-testimonials__slide { transform: none; transition: opacity 200ms; }
  .wc-testimonials__dot.is-active::after { animation: none; width: 100%; }
}

/* Logo transparency — blend into any section bg (white card or pale blue wall) */
.wc-testimonials__logo,
.wc-testimonials__logo-item img {
  mix-blend-mode: multiply;
}

/* ==========================================================================
   CONTACT PAGE — Section 1: contact info + Section 2: locations inheritance
   Loaded via wc_home_enqueue_assets() when is_page('contact') is true.
   ========================================================================== */

/* ── Section 1: Contact Info layout ── */
.page-contact .wc-contact-info-section {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--color-bg-canvas);
  position: relative;
}

.page-contact .wc-contact-info-section > .wc-container { position: relative; z-index: 1; }

.page-contact .wc-contact-info-section .wc-section-label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.page-contact .wc-contact-info-section .wc-section-heading {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: normal;
  margin: 0 0 var(--space-10);
  color: var(--color-text-primary);
}

.page-contact .wc-contact-info-section .wc-intro-body {
  margin: 0 0 clamp(32px, 4vw, 48px);
  max-width: 60ch;
  color: var(--color-text-tertiary);
  line-height: 1.75;
}

.page-contact .wc-contact-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.page-contact .wc-contact-info__card,
.page-contact .wc-contact-info__hours {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  background: var(--color-bg-canvas);
}

/* Contact info rows: icon + label/value stacked */
.page-contact .wc-contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-11);
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-border-default);
  cursor: default;
}

.page-contact .wc-contact-info__row:last-child { border-bottom: 0; }

.page-contact .wc-contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(var(--color-primary-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-text);
  margin-top: 2px;
}

.page-contact .wc-contact-info__icon svg { width: 20px; height: 20px; }

.page-contact .wc-contact-info__label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.page-contact .wc-contact-info__value {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.page-contact .wc-contact-info__value a {
  color: var(--color-primary-text);
  text-decoration: none;
  transition: color var(--motion-default) var(--motion-easing);
}

.page-contact .wc-contact-info__value a:hover { color: var(--color-primary-hover); text-decoration: underline; }

/* Hours card */
.page-contact .wc-contact-info__hours h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-12);
  line-height: 1.3;
}

.page-contact .wc-contact-info__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-10);
  padding-block: 12px;
  border-bottom: 1px solid var(--color-border-default);
  font-size: var(--fs-body);
}

.page-contact .wc-contact-info__hours-row:last-of-type { border-bottom: 0; }

.page-contact .wc-contact-info__hours-day { font-weight: 500; color: var(--color-text-primary); }
.page-contact .wc-contact-info__hours-time { color: var(--color-text-tertiary); }

.page-contact .wc-contact-info__hours-note {
  margin-top: var(--space-11);
  color: var(--color-text-muted);
  font-size: var(--fs-caption);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .page-contact .wc-contact-info__grid { grid-template-columns: 1fr; }
}


/* ── Section 2: Locations — inherit homepage locations/city-card styles ── */

.page-contact .wc-locations {
  background: var(--color-bg-canvas-soft);
  position: relative;
  padding-block: clamp(72px, 8vw, 128px);
}

.page-contact .wc-locations > .wc-container { position: relative; z-index: 1; }

.page-contact .wc-locations__header {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.page-contact .wc-locations__label { color: var(--color-text-muted); }

.page-contact .wc-locations__header h2 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: normal;
}

.page-contact .wc-locations__layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-contact .wc-locations__leaflet {
  min-height: 420px;
  height: 100%;
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.page-contact .wc-locations__cards {
  gap: clamp(16px, 2vw, 24px);
  justify-content: flex-start;
}

/* City cards: full-bleed photo card with gradient overlay (mirrors .page-home) */
.page-contact .wc-city-card {
  position: relative;
  min-height: 132px;
  padding: 24px 28px;
  gap: 0;
  align-items: flex-end;
  overflow: hidden;
  background: #0b1f2b;
  border-color: transparent;
  color: #fff;
  isolation: isolate;
  transition:
    border-color var(--motion-default) var(--motion-easing),
    box-shadow var(--motion-default) var(--motion-easing),
    transform var(--motion-default) var(--motion-easing);
}

.page-contact .wc-city-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.35);
}

.page-contact .wc-city-card:nth-child(2),
.page-contact .wc-city-card:nth-child(3) { margin-left: 0; }

/* Full-bleed thumbnail image */
.page-contact .wc-city-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  z-index: 0;
  flex: initial;
}

.page-contact .wc-city-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms var(--motion-easing);
}

.page-contact .wc-city-card:hover .wc-city-card__thumb img { transform: scale(1.06); }
.page-contact .wc-city-card__thumb svg { width: 32px; height: 32px; margin: auto; color: rgba(255,255,255,0.6); }

/* Gradient overlay for legibility */
.page-contact .wc-city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--motion-default) var(--motion-easing);
}

.page-contact .wc-city-card:hover::after { opacity: 0.92; }

.page-contact .wc-city-card__text,
.page-contact .wc-city-card__arrow { position: relative; z-index: 2; }

.page-contact .wc-city-card__name {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: clamp(1.375rem, 1.2vw + 0.9rem, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.page-contact .wc-city-card__detail {
  max-width: 32ch;
  color: rgba(255,255,255,0.88);
  font-size: 0.9375rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.page-contact .wc-city-card__arrow { display: none; }

/* Responsive */
@media (max-width: 991px) {
  .page-contact .wc-locations__layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .page-contact .wc-locations { padding-block: clamp(56px, 12vw, 88px); }
  .page-contact .wc-city-card { padding: 24px; min-height: auto; }
  .page-contact .wc-locations__leaflet { display: none; }
}

@media (max-width: 559px) {
  .page-contact .wc-city-card { min-height: 120px; padding: 20px 22px; }
}

@media (max-width: 479px) {
  .page-contact .wc-city-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .wc-city-card,
  .page-contact .wc-city-card__thumb img { transition: none !important; }
  .page-contact .wc-city-card:hover { transform: none !important; box-shadow: none !important; }
  .page-contact .wc-city-card:hover .wc-city-card__thumb img { transform: none !important; }
}
