/* ============================================================
   carrier-management.css — Mastery Logistics Systems
   Carrier Management page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .image-placeholder — same component used on configuration-portal,
     fleet-management, driver-management, and partners pages.
     New modifier --portal added for the wider portal screenshot.
   - .feature / .feature--reverse — same alternating two-column
     feature block as fleet-management and driver-management.
   - .bridge — same dark-centered bridge with copper highlight.
   - .cta-link — small inline arrow-link CTA.
   - .cta-banner — standard closing CTA.

   PAGE STRUCTURE:
   1. Hero (dark, illustration bleeds off right edge)
   2. Bridge (dark, copper highlight)
   3. Feature: Carrier Record + CRM
   4. Lanes 3-card grid (custom visuals)
   5. MasterMind Connect (centered hero style)
   6. Feature: Carrier Scorecard (reversed)
   7. Compliance (compact callout, custom truck+lock illustration)
   8. CTA banner
============================================================ */


/* ============================================================
   SHARED — IMAGE PLACEHOLDER COMPONENT
   Branded copper-on-dark frame for any unbuilt screenshot zone.
============================================================ */
.image-placeholder {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(252, 147, 101, 0.16) 0%, transparent 62%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.image-placeholder::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: 18px 18px;
  pointer-events: none;
}

.image-placeholder__label {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(252, 147, 101, 0.9);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 1rem;
}

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

.image-placeholder--feature {
  aspect-ratio: 16 / 11;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Wider aspect for the centered portal screenshot */
.image-placeholder--portal {
  aspect-ratio: 16 / 9;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   SECTION 1 — CARRIER HERO (UNBOUNDED ILLUSTRATION)
   Dark. Content on the left, illustration on the right that
   bleeds off the edge — no rounded box, no containing border.

   The illustration is absolutely positioned so it can extend
   beyond the container right edge. On mobile, it falls back to
   a contained layout below the text.
============================================================ */
.carrier-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 38vw, 620px);
}

/* Full-bleed hero artwork. Its left half is blank (near-black),
   so the copy column reads directly over it. Anchor the crop to
   the right so the truck illustration stays in view. */
.carrier-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

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

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

.carrier-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(178, 93, 66, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.carrier-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

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

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

.carrier-hero .eyebrow {
  color: var(--color-copper-light);
}

.carrier-hero__headline {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.carrier-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 460px;
}

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



/* ============================================================
   SECTION 2 — BRIDGE
   Dark, centered. Single bold H2 with copper highlight on the
   "strongest carrier relationships" half.
============================================================ */
.bridge {
  background: #faf6f3;
  padding: 1.75rem 0;
  border-top: 0.5px solid rgba(178, 93, 66, 0.12);
  border-bottom: 0.5px solid rgba(178, 93, 66, 0.12);
  text-align: center;
}

.bridge__glow {
  display: none;
}

.bridge__content {
  max-width: 820px;
  margin: 0 auto;
}

.bridge__heading {
  color: var(--color-text-primary);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

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


/* ============================================================
   FEATURE BLOCK (Sections 3 & 6)
   White. Same component as fleet-management and driver-management.
   .feature--reverse modifier flips column order so features
   alternate down the page.
============================================================ */
.feature {
  background: var(--color-white);
}

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

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

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

.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.75rem;
}

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

.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__media {
  position: relative;
  width: 100%;
}

.feature__image {
  width: 100%;
  height: auto;
  display: block;
  /* Transparent SVG artwork: drop-shadow follows the card edge, a
     box-shadow would draw a rectangle around the whole viewBox. */
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.16));
}


/* ============================================================
   SECTION 4 — LANES (3-card grid, simple custom visuals)
   Light warm. Three cards: Contract Management, Commitment
   Management, Routing Guides. Each card has a simple custom
   visual built in HTML/CSS — not UI screenshots.
============================================================ */
.lanes {
  background: #faf6f3;
}

.lanes__head {
  margin-bottom: 2.5rem;
}

.lanes__head .eyebrow {
  color: var(--color-copper-dark);
}

.lanes__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
}

.lanes__head .text-lead {
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.lanes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}


/* ----- LANE CARD (shell) ----- */
.lane-card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lane-card__visual {
  aspect-ratio: 16 / 10;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lane-card__body {
  padding: 1.25rem 1.375rem 1.5rem;
}

.lane-card__body h4 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.lane-card__body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ============================================================
   CUSTOM VISUAL 1 — CONTRACT (lane + rate + accessorial tag)
   Simple: lane string, big copper rate, small "+ accessorials"
   pill. Communicates "contracts on the lane = automatic rates."
============================================================ */
.contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.contract__lane {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
}

.contract__rate {
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.contract__rate-unit {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
}

.contract__tag {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  margin-top: 0.375rem;
  padding: 0.2rem 0.625rem;
  background: rgba(178, 93, 66, 0.08);
  border-radius: 999px;
}


/* ============================================================
   CUSTOM VISUAL 2 — COMMITMENT (big % + label + progress bar)
   One single commitment shown — big copper percentage, simple
   single progress bar underneath. Communicates "track volume
   commitments at a glance."
============================================================ */
.commit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
}

.commit__pct {
  font-size: 2.25rem;
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.commit__label {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commit__bar {
  height: 6px;
  width: 100%;
  max-width: 160px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.commit__fill {
  height: 100%;
  background: linear-gradient(90deg, #fc9365, #b25d42);
  border-radius: 4px;
}


/* ============================================================
   CUSTOM VISUAL 3 — ROUTING (3 numbered carrier rows)
   Three priority badges with carrier names. Communicates
   "waterfall logic: first try Carrier A, then B, then C."
============================================================ */
.routing {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 180px;
}

.routing__row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.routing__rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.routing__rank--alt {
  background: rgba(178, 93, 66, 0.3);
  color: var(--color-copper-dark);
}

.routing__rank--alt2 {
  background: rgba(178, 93, 66, 0.15);
  color: var(--color-copper-dark);
}

.routing__name {
  font-size: 0.75rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}


/* ============================================================
   SECTION 5 — MASTERMIND CONNECT (centered hero style)
   White. Center-aligned layout breaks the side-by-side feature
   pattern. Heading + sub on top, large screenshot in the middle,
   "Book a Demo" button below.
============================================================ */
.portal {
  background: var(--color-white);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.portal__head {
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.portal__head .eyebrow {
  color: var(--color-copper-dark);
}

.portal__heading {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.5rem 0 0.875rem;
}

.portal__sub {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 580px;
  margin: 0 auto;
}

.portal__media {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.portal__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.portal__actions {
  margin-top: 0;
}


/* ============================================================
   SECTION 7 — COMPLIANCE (compact callout with truck+lock visual)
   Light warm background, white inner card. Different from the
   feature blocks — no bullets. Heading + brief copy + CTA on the
   left; custom illustration (truck + lock/shield) on the right.

   The illustration zone uses a dark copper-tinted background so
   the truck+lock visual reads well against it. When the AI image
   replaces the SVG, the same dark zone works as a backdrop.
============================================================ */
.comply {
  background: #faf6f3;
}

.comply__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;
}

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

.comply__heading {
  color: var(--color-text-primary);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.625rem;
}

.comply__content p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0 0 1.125rem;
}

/* The compliance shield SVG is self-framed (own dark rounded card
   and internal animation), so the visual zone no longer paints its
   own dark frame. Light section → standard black drop shadow per
   the house shadow rule. */
.comply__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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


/* ============================================================
   CTA LINK (small inline arrow-link, reused from driver page)
============================================================ */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-copper);
  font-size: var(--text-sm);
  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(4px);
}


/* ============================================================
   SECTION 8 — CTA BANNER
   Standard treatment matching fleet, driver, and other pages.
============================================================ */
.cta-banner {
  background: #111111;
  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.1) 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. */
  .bridge {
    display: none;
  }

  /* Hero — text over a dimmed artwork so the blank-left
     composition still reads at narrow widths */
  .carrier-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 0;
  }

  .carrier-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). */
  .carrier-hero__mobile-media {
    display: block;
    margin: 0.25rem 0 1.75rem;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
  }

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

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

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

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

  /* Feature blocks — single column */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature__media {
    order: 2;
  }

  .feature__content {
    order: 1;
  }

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

  /* Lanes grid — stack to single column */
  .lanes__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Portal — tighter padding */
  .portal__head {
    margin-bottom: 1.75rem;
  }

  .portal__media {
    margin-bottom: 1.5rem;
  }

  /* Compliance — stack to single column, illustration below text */
  .comply__card {
    grid-template-columns: 1fr;
  }

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

  .comply__visual {
    min-height: 180px;
    order: 2;
  }

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

}


@media (max-width: 480px) {

  /* Lane card visuals shrink */
  .contract__rate {
    font-size: 1.75rem;
  }

  .commit__pct {
    font-size: 2rem;
  }

}
