/* ============================================================
   customer-management.css â€” Mastery Logistics Systems
   Customer Management (Core Capability) page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .feature â€” shared feature block system with --warm,
     --reverse, --stacked variants.
   - .visual-frame â€” dark rounded frame for Sections 3 and 6.
   - .banner â€” slim banner reused pattern from other pages.
   - .partners â€” visibility partners callout reused pattern.
   - .cta-banner â€” standard closing CTA.
   - .image-placeholder â€” hero image slot.

   NEW COMPONENTS INTRODUCED HERE:
   - .config-grid / .config-tile â€” 3-tile customer config layout
     for Section 4 (STACKED). Each tile represents one customer
     with differentiated Tracking / EDI / Billing values, so the
     configurability story is visible in a single glance.
   - .tracking-card â€” light-mode combined tracking + ETA card for
     Section 5. Sits on the white section bg without a dark
     frame. Combines what used to be two separate V&T sections
     (Load Map breadcrumb + ETA clock) into one customer-facing
     block.
   - .contract-vis / .edi-vis â€” SVG-specific wrappers for the
     dark contract card (Section 3) and EDI card (Section 6).

   PAGE STRUCTURE:
   1. Hero (dark, image right)
   2. Slim banner (warm)
   3. Contract Management (white, content L / dark visual R)
   4. Custom Workflows STACKED (warm, 3 customer tiles)
   5. Real-time Tracking + ETAs (white, LIGHT card L / content R)
   6. Custom EDI (warm, content L / dark visual R)
   7. Visibility Partners (warm callout)
   8. CTA banner (dark)
============================================================ */


/* ============================================================
   IMAGE PLACEHOLDER (hero only on this page)
============================================================ */
.image-placeholder {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8ddd4, #d4c8bf);
  border: 0.5px solid rgba(178, 93, 66, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.image-placeholder--dark {
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 147, 101, 0.14), transparent 65%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  border-color: rgba(252, 147, 101, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.image-placeholder__label {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  text-align: center;
}

.image-placeholder--dark .image-placeholder__label {
  color: rgba(255, 255, 255, 0.75);
}

.image-placeholder__note {
  position: relative;
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder--dark .image-placeholder__note {
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   SECTION 1 â€” HERO
   Dark. Two-column with image right.
============================================================ */
.cm-hero .eyebrow {
  color: var(--color-copper-dark);
}

.cm-hero {
  position: relative;
  /* Light full-bleed hero: the artwork's white left half carries
     dark copy (unlike the dark carrier/fleet heroes). */
  background-color: #f5f2ee;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 38vw, 620px);
}

.cm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.cm-hero > .container {
  width: 100%;
}

/* Inline mobile hero image — hidden on desktop, shown between the
   sub text and the CTA on mobile (house mobile-hero pattern). */
.cm-hero__mobile-media {
  display: none;
}

.cm-hero__inner {
  position: relative;
  z-index: 2;
}

.cm-hero__content {
  max-width: 480px;
}

.cm-hero__headline {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.cm-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 460px;
}

.cm-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ============================================================
   SECTION 2 â€” SLIM BANNER
   Warm bg. Single-line positioning statement.
============================================================ */
.banner {
  background: #faf6f3;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.banner__text {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.35;
}

.banner__highlight {
  color: var(--color-copper);
}


/* ============================================================
   SECTIONS 3â€“6 â€” FEATURE BLOCKS
   Standard system used across capability and Who We Serve pages.
============================================================ */
.feature {
  background: var(--color-white);
}

.feature--warm {
  background: #faf6f3;
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: center;
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__media {
  order: 1;
}

/* Single-column stacked variant (Section 4) */
.feature--stacked .feature__inner {
  grid-template-columns: 1fr;
  max-width: 940px;
  margin: 0 auto;
  gap: 2.5rem;
}

.feature--stacked .feature__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.feature--stacked .feature__media {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.feature__heading {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1.25rem;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.feature__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(178, 93, 66, 0.12);
  color: var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature__paragraph {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.feature__media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   VISUAL FRAME â€” dark rounded frame for Sections 3 and 6
============================================================ */
.visual-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 147, 101, 0.14), transparent 65%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.visual-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}


/* ============================================================
   SECTION 3 â€” CONTRACT CARD VISUAL WRAPPER
============================================================ */
.contract-vis {
  position: relative;
  width: 100%;
}

.contract-vis svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SECTION 4 â€” CUSTOMER CONFIG TILES
   STACKED layout. 3 tiles side by side, each representing one
   customer with differentiated Tracking / EDI / Billing values.
   The comparison is the point â€” same platform, three different
   customer setups.
============================================================ */
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.config-tile {
  position: relative;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.config-tile-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.config-tile-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: var(--weight-extra-bold, 800);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.config-tile-name {
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5625rem 0;
  font-size: 0.71875rem;
}

.config-row + .config-row {
  border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}

.config-label {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.config-val {
  color: var(--color-text-primary);
  font-weight: var(--weight-bold);
}

.config-val--copper {
  color: var(--color-copper);
}


/* ============================================================
   SECTION 5 â€” TRACKING CARD (LIGHT MODE, NO DARK FRAME)
   Sits directly on the white section background. Combines the
   Load Map breadcrumb + ETA into a single customer-facing card.
============================================================ */
.tracking-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1.25rem;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tracking-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.tracking-card__label {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper);
  font-weight: var(--weight-bold);
}

.tracking-card__live {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(178, 93, 66, 0.85);
  font-weight: var(--weight-bold);
}

.tracking-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fc9365;
  box-shadow: 0 0 8px rgba(252, 147, 101, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

/* Route map animation: the traveled road draws from origin to the
   current position, tracking pings appear as the line passes them,
   and the live-position halo pulses. pathLength="1" normalizes the
   dash math. Timeline: draw over the first 40% of an 8s loop, hold,
   then restart. */
.tracking-card__route {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trackRouteDraw 8s ease-in-out infinite;
}

@keyframes trackRouteDraw {
  0%       { stroke-dashoffset: 1; }
  40%      { stroke-dashoffset: 0; }
  94%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 1; }
}

.tracking-card__ping {
  opacity: 0;
  animation: trackPingIn 8s ease-out infinite;
}

/* Delays place each ping's appearance at the moment the drawing
   line reaches it along the route. */
.tracking-card__ping--p1 { animation-delay: 0.35s; }
.tracking-card__ping--p2 { animation-delay: 1.05s; }
.tracking-card__ping--p3 { animation-delay: 1.75s; }
.tracking-card__ping--p4 { animation-delay: 2.45s; }

@keyframes trackPingIn {
  0%, 3%   { opacity: 0; }
  6%, 93%  { opacity: 1; }
  100%     { opacity: 0; }
}

.tracking-card__now {
  opacity: 0;
  animation: trackPingIn 8s ease-out infinite;
  animation-delay: 3.1s;
}

.tracking-card__now-halo {
  animation: pulse 2s ease-in-out infinite;
  transform-origin: 270px 35px;
}

@media (prefers-reduced-motion: reduce) {
  .tracking-card__route,
  .tracking-card__ping,
  .tracking-card__now,
  .tracking-card__now-halo {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tracking-card__map {
  position: relative;
  width: 100%;
  height: 120px;
  background: #faf6f3;
  border-radius: 6px;
  margin-bottom: 0.875rem;
  overflow: hidden;
}

.tracking-card__map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tracking-card__eta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
}

.tracking-card__eta-label {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-semibold);
}

.tracking-card__eta-time {
  font-size: 1.375rem;
  font-weight: var(--weight-extra-bold, 800);
  color: var(--color-copper);
  letter-spacing: -0.5px;
}

.tracking-card__eta-when {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-semibold);
}


/* ============================================================
   SECTION 6 â€” EDI CARD VISUAL WRAPPER
============================================================ */
.edi-vis {
  position: relative;
  width: 100%;
}

.edi-vis svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SECTION 7 â€” VISIBILITY PARTNERS CALLOUT
   Warm bg. Compact callout card with content + radar visual.
   Radar visual has NO partner name labels â€” cleaner concept.
============================================================ */
.partners {
  background: #faf6f3;
}

/* Laid out to match the compliance callout on carrier management:
   no padding on the card itself so the self-framed dark visual runs
   edge to edge, with the copy column carrying the padding instead. */
.partners__card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.partners__content {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partners__heading {
  color: var(--color-text-primary);
  font-size: var(--font-size-h4, 1.375rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.partners__content p {
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: var(--text-sm);
  color: var(--color-copper);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cta-link:hover {
  color: var(--color-copper-dark);
}

.cta-link__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.cta-link:hover .cta-link__arrow {
  transform: translateX(3px);
}

/* The partner hub SVG is self-framed (own dark rounded card and
   internal animation). Light section → standard black drop shadow
   per the house shadow rule. */
.partners__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners__image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.16));
}


/* ============================================================
   SECTION 8 â€” CTA BANNER
   Dark. Standard closing.
============================================================ */
.cta-banner {
  background: #0a0a0a;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}


/* ============================================================
   RESPONSIVE â€” MOBILE OVERRIDES
============================================================ */
@media (max-width: 768px) {

  /* The slim strip is a single line of display copy that earns its
     place on a wide screen but reads as another wall of text on a
     phone. Hidden on mobile only; desktop is unchanged. */
  .banner {
    display: none;
  }

  /* Hero */
  .cm-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 0;
  }

  .cm-hero__bg {
    display: none;
  }

  /* 16:10 right-anchored frame: crops the artwork's blank left half
     so the subject fills the slot; fixed ratio reserves space (CLS). */
  .cm-hero__mobile-media {
    display: block;
    margin: 0.25rem 0 1.75rem;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
  }

  .cm-hero__mobile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
  }

  .cm-hero__content {
    max-width: 100%;
  }

  .cm-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-hero__actions > a {
    text-align: center;
    justify-content: center;
  }

  /* Banner */
  .banner {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  /* Feature blocks â€” single column, visual above content */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature--reverse .feature__content,
  .feature--reverse .feature__media {
    order: initial;
  }

  .feature__media {
    order: 2;
  }

  .feature__content {
    order: 1;
  }

  /* Stacked variant â€” already single column, but tighter gap */
  .feature--stacked .feature__inner {
    gap: 2rem;
  }

  /* Config tiles â€” 1 column on mobile */
  .config-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  /* Tracking card â€” full width on mobile */
  .tracking-card {
    max-width: 100%;
  }

  /* Partners callout â€” single column */
  .partners__card {
    grid-template-columns: 1fr;
  }

  .partners__content {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .partners__visual {
    order: 2;
  }

  /* CTA */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}
