/* ============================================ */
/* SERVICE SALES PAGE - shared template styles   */
/* Reused across every /services-mills-*.html    */
/* page. Depends on tokens.css + sections.css    */
/* (section, section__eyebrow, btn-primary,      */
/* contact-split*, animate-in) already loaded.   */
/* ============================================ */

.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
}

.service-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.service-breadcrumb a:hover {
  color: var(--color-white);
}

.service-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 var(--space-3xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Optional looping video background - a dedicated clip per template
   (not the homepage's hero video), autoplaying/looping with no
   scroll-scrub (kept deliberately simple after everything we learned
   getting the homepage hero right). Falls back to the section's
   background-image if the <video> is omitted. */
.service-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17,19,28,0.55) 0%, rgba(17,19,28,0.35) 35%, rgba(17,19,28,0.92) 100%);
}

.service-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.service-hero__eyebrow {
  margin-bottom: 12px;
}

.service-hero__eyebrow::before {
  background: var(--color-accent);
}

.service-hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 16px;
}

.service-hero__subtitle {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: var(--space-xl);
}

.service-hero__audience {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  line-height: 1.6;
  margin-top: -8px;
  margin-bottom: var(--space-xl);
}

/* Overview / positioning - reuses .services-intro from sections.css */

/* Core support - numbered feature grid */
.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}

@media (max-width: 768px) {
  .service-feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.service-feature {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  transition: transform 0.35s ease;
}

.service-feature:hover {
  transform: translateX(6px);
}

.service-feature__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 10px;
  transition: opacity 0.3s ease;
}

.service-feature:hover .service-feature__index {
  opacity: 0.6;
}

.service-feature__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.service-feature__text {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Legal/disclosure note - used for regulated claims (e.g. insurance %) */
.service-legal-note {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
  background: var(--color-card-bg-alt);
  border-left: 2px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--space-xl);
}

/* "Who This Is For" hover backdrop - hovering a list item crossfades the
   section's background to an image relevant to that item, under a dark
   navy tint for contrast. Two stacked layers so the swap can crossfade
   instead of hard-cutting; animations.js toggles which one is visible. */
.audience-hero {
  position: relative;
  overflow: hidden;
}

.audience-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.audience-hero__bg.is-active {
  opacity: 1;
}

.audience-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(17,19,28,0.82) 0%, rgba(24,26,38,0.6) 100%);
}

.audience-hero > .container {
  position: relative;
  z-index: 2;
}

/* Audience / checklist - reused for both "Who this is for" and
   "Why clients choose The Mills" (icon differs per instance, markup same) */
.audience-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px var(--space-xl);
  margin-top: var(--space-lg);
}

@media (max-width: 640px) {
  .audience-list {
    grid-template-columns: 1fr;
  }
}

.audience-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--color-text-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.3s ease;
}

.audience-list__item:hover {
  padding-left: 8px;
}

.audience-list__icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.3s ease;
}

.audience-list__item:hover .audience-list__icon {
  transform: translateX(3px);
}

/* Process timeline - "How Mills executes the engagement".
   A vertical line runs behind a column of numbered circles; as the
   section scrolls through the viewport, an orange fill grows down the
   line (animations.js measures scroll position, sets --fill height) and
   each circle lights up once the fill reaches it. Each step also carries
   an image card so the section reads visually instead of as plain text. */
.process-timeline {
  position: relative;
  margin-top: var(--space-2xl);
}

.process-timeline__track {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: var(--color-border);
}

.process-timeline__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--color-accent);
  transition: height 0.05s linear;
}

.process-timeline__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.process-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 220px;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 860px) {
  .process-timeline__step {
    grid-template-columns: 56px 1fr;
  }
  .process-timeline__image {
    grid-column: 2 / 3;
    margin-top: var(--space-sm);
  }
}

.process-timeline__circle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.section--paper .process-timeline__circle {
  background: var(--color-bg-light);
}

.process-timeline__circle.is-filled {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.08);
}

.process-timeline__body {
  padding-top: 14px;
}

.process-timeline__text {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text-light);
}

.process-timeline__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 14px 30px var(--color-card-shadow);
}

.process-timeline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ accordion */
.faq-list {
  max-width: 820px;
  margin: var(--space-xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding-bottom 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 640px;
  opacity: 1;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* Book a Call - sits at the bottom of every funnel page, above the footer.
   The embed container is left empty on purpose: paste a scheduling embed
   (Cal.com or similar) into #book-call-embed and it will inherit this
   section's max-width/centering automatically. */
.book-call {
  text-align: center;
}

.book-call__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 27px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.45;
  max-width: 780px;
  margin: 0 auto var(--space-xl);
  text-wrap: balance;
}

/* Landscape screens: exactly two lines (the <br> in the markup), never an
   extra wrapped line. The font scales with the viewport so the longer first
   line always fits inside the container. */
@media (min-width: 769px) {
  .book-call__heading {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(14px, calc((100vw - 64px) / 39), 30px);
  }
}

.book-call__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.book-call__embed {
  max-width: 960px;
  margin: 0 auto;
}

.book-call__embed-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Industry pages - cargo grid (title only, denser layout) and service pills */
.industry-cargo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.industry-cargo-grid .service-feature__title {
  margin-top: var(--space-xs);
}

@media (max-width: 900px) {
  .industry-cargo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .industry-cargo-grid {
    grid-template-columns: 1fr;
  }
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.industry-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.section--dark .industry-pill {
  color: var(--color-text-light);
  border-color: var(--color-border-dark);
}

/* Service pill hover preview - small card that follows the cursor near
   the hovered pill (not a centered modal). Populated via data-preview-*
   attributes and shown/positioned by animations.js. */
.pill-preview {
  position: fixed;
  width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px var(--color-card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 3000;
  pointer-events: none;
}

.pill-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pill-preview__img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.pill-preview__body {
  padding: 12px 14px 14px;
}

.pill-preview__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.pill-preview__desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (hover: none) {
  .pill-preview {
    display: none;
  }
}

/* Industries hub - card grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--color-card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--color-card-shadow-hover);
}

.industry-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.industry-card:hover .industry-card__bg {
  transform: scale(1.06);
}

.industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,19,28,0.15) 0%, rgba(17,19,28,0.92) 100%);
}

.industry-card__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.industry-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.industry-card__text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

/* Typical cargo: image cards, text over a dark gradient at the bottom */
.cargo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (max-width: 1100px) {
  .cargo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cargo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

.cargo-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-dark);
  box-shadow: 0 14px 34px var(--color-card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cargo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px var(--color-card-shadow-hover);
}

.cargo-card__img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border-width: 0;
  transition: transform 0.6s ease;
}

.cargo-card:hover .cargo-card__img {
  transform: scale(1.05);
}

.cargo-card__img .img-slot__label {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  max-width: none;
}

.cargo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(33, 36, 49, 0.95) 0%, rgba(33, 36, 49, 0.55) 38%, rgba(33, 36, 49, 0) 62%);
  pointer-events: none;
}

.cargo-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-lg);
}

.cargo-card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #EA5C1F;
  margin-bottom: 6px;
}

.cargo-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  color: #F5F5F5;
}

@media (max-width: 768px) {
  .cargo-card__body {
    padding: var(--space-md);
  }

  .cargo-card__title {
    font-size: 16px;
  }
}

/* Core Support pointer: glides to the active numbered item on scroll */
.service-feature-grid {
  position: relative;
}

.service-feature {
  transition: transform 0.35s ease, border-color 0.4s ease;
}

.service-feature.is-active {
  border-top-color: var(--color-accent);
}

.feature-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 44px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.feature-pointer.is-visible {
  opacity: 1;
}

.feature-pointer__bob {
  filter: drop-shadow(0 8px 10px rgba(33, 36, 49, 0.3));
  animation: pointer-sway 3.2s ease-in-out infinite;
}

@keyframes pointer-sway {
  0%, 100% { transform: translateX(0) rotate(-4deg); }
  50% { transform: translateX(-9px) rotate(3deg); }
}

.feature-pointer.is-static .feature-pointer__bob {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .feature-pointer__bob {
    animation: none;
  }
}

/* Hero call-to-action pair: Call Now (primary) + Book a Consultation (secondary) */
.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.service-hero .btn-secondary {
  border-color: rgba(245, 245, 245, 0.55);
  color: #F5F5F5;
}

.service-hero .btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 560px) {
  .service-hero__actions .btn-primary,
  .service-hero__actions .btn-secondary {
    width: 100%;
  }
}

#book-call {
  scroll-margin-top: 80px;
}

/* Repeated call-to-action pair placed at the end of sections */
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (max-width: 560px) {
  .cta-pair .btn-primary,
  .cta-pair .btn-secondary {
    width: 100%;
  }
}

/* Sales-funnel copy blocks: situations, deliverables, audiences, steps */
.insight-block {
  margin-top: var(--space-3xl);
}

.insight-block--compact {
  margin-top: var(--space-xl);
}

.insight-block__label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.insight-block__title {
  margin-bottom: var(--space-lg);
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-light);
}

.stuck-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.stuck-list li {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  background: var(--color-card-bg-alt);
}

.stuck-list strong {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-light);
}

.stuck-list span {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); }
.info-grid--5 { grid-template-columns: repeat(6, 1fr); }
.info-grid--5 .info-card { grid-column: span 2; }
.info-grid--5 .info-card:nth-child(n+4) { grid-column: span 3; }

.info-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-card-bg-alt);
}

.section--paper .info-card {
  background: #FFFFFF;
}

.section--img-bg .info-card {
  background: rgba(245, 245, 245, 0.07);
  border-color: rgba(245, 245, 245, 0.16);
}

.info-card__title {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-light);
}

.info-card__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 1000px) {
  .info-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .info-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .info-grid--5 .info-card,
  .info-grid--5 .info-card:nth-child(n+4) { grid-column: auto; }
  .info-grid--5 .info-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .info-grid--3,
  .info-grid--4,
  .info-grid--5 { grid-template-columns: 1fr; }
}

/* "How we help" band: same navy-weighted gradient as the download strip */
.section--slate {
  background: linear-gradient(90deg, #3B475C 0%, #2A2F41 30%, #212431 58%, #212431 100%);
  color: #F5F5F5;
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: var(--space-2xl) 0 0;
  padding: 0;
}

.how-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #EA5C1F;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.how-steps__title {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  color: #F5F5F5;
}

.how-steps__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #D6D7D7;
}

@media (max-width: 900px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
}
