/* Hallmark · macrostructure: Route Ledger · tone: assured editorial · anchor hue: forest green */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 */
@import url("shared.css?v=page-transition-speed-v7");

.home-hero {
  --hero-route-height: 8.5rem;
  position: relative;
  min-height: max(44rem, calc(100svh - 7.25rem));
  overflow: clip;
  padding-bottom: var(--hero-route-height);
  background: var(--color-dark);
  color: var(--color-accent-ink);
}

.home-hero__media,
.home-hero__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: calc(100% - var(--hero-route-height));
}

.home-hero__media {
  object-fit: cover;
  object-position: center bottom;
  transform: none;
}

.home-hero__shade {
  background: linear-gradient(90deg, var(--color-overlay-heavy) 0%, var(--color-overlay-mid) 48%, var(--color-overlay-light) 76%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(max(44rem, 100svh - 7.25rem) - var(--hero-route-height));
  align-items: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.home-hero__copy {
  max-width: 47rem;
}

.home-hero h1 {
  max-width: 9ch;
  margin-bottom: var(--space-lg);
  color: var(--color-accent-ink);
  font-size: var(--text-display);
  line-height: 0.98;
}

.home-hero__copy > p {
  max-width: 45ch;
  margin-bottom: var(--space-xl);
  color: var(--color-accent-ink);
  font-size: var(--text-lg);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.home-hero__outline {
  border-color: var(--color-white-glass);
  background: var(--color-transparent);
  color: var(--color-accent-ink);
}

.home-hero__outline:hover {
  border-color: var(--color-paper);
  background: var(--color-white-glass);
  color: var(--color-dark);
}

.home-hero__route {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--color-accent-strong);
}

.hero-route {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  grid-template-columns: minmax(0, 2.2fr) minmax(14rem, 1fr);
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-lg);
}

.hero-route__line {
  position: absolute;
  z-index: 0;
  top: 1.55rem;
  right: calc(12.5% - 0.5rem);
  left: calc(12.5% - 0.5rem);
  height: 0.2rem;
  overflow: visible;
  border-radius: var(--radius-round);
  background: color-mix(in oklch, var(--color-dark-muted) 72%, transparent);
}

.hero-route__progress {
  display: block;
  width: var(--active-stop-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent-bright);
  box-shadow: 0 0 0.8rem color-mix(in oklch, var(--color-accent-bright) 45%, transparent);
  transition: width var(--dur-slow) var(--ease-out);
}

.hero-route__dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: var(--rule-medium) solid var(--color-accent-ink);
  border-radius: var(--radius-round);
  background: var(--color-accent-bright);
  box-shadow: 0 0.4rem 1rem var(--color-shadow);
  transform: translate(var(--active-stop-distance, 0), -50%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.hero-route__dot::after {
  position: absolute;
  inset: -0.55rem;
  border: var(--rule-thin) solid var(--color-accent-bright);
  border-radius: inherit;
  content: "";
  opacity: 0;
  animation: route-dot-pulse 2.6s var(--ease-out) infinite;
}

@keyframes route-dot-pulse {
  0% { opacity: 0.7; transform: scale(0.55); }
  75%, 100% { opacity: 0; transform: scale(1.55); }
}

.hero-route__stops {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: center;
  min-width: 0;
  min-height: 5.75rem;
}

.hero-route__stop {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 5.75rem;
  justify-items: center;
  align-content: start;
  gap: var(--space-xs);
  border: 0;
  padding: 0 0.25rem;
  background: var(--color-transparent);
  color: var(--color-dark-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.hero-route__stop-icon {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: var(--rule-thin) solid color-mix(in oklch, var(--color-dark-muted) 78%, transparent);
  border-radius: var(--radius-round);
  background: var(--color-dark);
  color: var(--color-dark-muted);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.hero-route__stop-icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.hero-route__stop-label {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1.2;
}

.hero-route__stop:hover,
.hero-route__stop.is-active {
  color: var(--color-accent-ink);
  transform: translateY(-0.125rem);
}

.hero-route__stop:hover .hero-route__stop-icon {
  border-color: var(--color-accent-ink);
  color: var(--color-accent-ink);
  transform: translateY(-0.1rem);
}

.hero-route__stop.is-active .hero-route__stop-icon {
  border-color: var(--color-accent-ink);
  background: var(--color-paper);
  color: var(--color-accent-strong);
  box-shadow: 0 0 0 0.35rem color-mix(in oklch, var(--color-accent-bright) 32%, transparent), 0 0.65rem 1.25rem var(--color-shadow);
  transform: scale(1.08);
}

.hero-route__status-panel {
  min-width: 0;
  border-left: var(--rule-thin) solid color-mix(in oklch, var(--color-dark-muted) 60%, transparent);
  padding-left: var(--space-xl);
}

.hero-route__status-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  color: var(--color-dark-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-route__status-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-round);
  background: var(--color-accent-bright);
  box-shadow: 0 0 0 0.25rem color-mix(in oklch, var(--color-accent-bright) 18%, transparent);
  animation: route-status-pulse 2.4s ease-in-out infinite;
}

@keyframes route-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-route__status {
  margin-bottom: 0;
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.home-intro__visual {
  position: relative;
  margin: 0;
}

.home-intro__visual::before {
  position: absolute;
  z-index: -1;
  top: -2rem;
  left: -2rem;
  width: 45%;
  height: 36%;
  background: var(--color-accent-soft);
  content: "";
}

.home-intro__visual img {
  width: 100%;
  max-height: 43rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: filter 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.home-intro__visual:hover img {
  filter: saturate(1.04) contrast(1.015);
  transform: scale(1.022);
}

.home-intro__visual figcaption {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  max-width: 18rem;
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-deep);
}

.home-intro__copy h2 {
  max-width: 13ch;
  margin-bottom: var(--space-xl);
  font-size: var(--text-3xl);
}

.home-intro__copy .text-link {
  margin-top: var(--space-md);
}

.services-showcase {
  padding-top: var(--space-section);
}

.services-showcase__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.45fr);
  align-items: end;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.services-showcase__head h2 {
  max-width: 16ch;
  margin-bottom: 0;
  color: var(--color-accent-ink);
  font-size: var(--text-3xl);
}

.services-showcase__head p {
  margin-bottom: 0;
  color: var(--color-dark-muted);
  font-size: var(--text-lg);
}

.service-panels {
  display: grid;
  min-height: 37rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-panel {
  position: relative;
  min-width: 0;
  overflow: clip;
}

.service-panel__image,
.service-panel__shade {
  position: absolute;
  inset: 0;
}

.service-panel__image {
  background-image: url("assets/service-modes-tojdoron-v2.webp");
  background-position-y: center;
  background-repeat: no-repeat;
  background-size: 400% auto;
  transform: scale(1.01);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}

.service-panel--road .service-panel__image { background-position-x: 0%; }
.service-panel--sea .service-panel__image { background-position-x: 33.333%; }
.service-panel--cargo .service-panel__image { background-position-x: 66.666%; }
.service-panel--air .service-panel__image { background-position-x: 100%; }

.service-panel__shade {
  background: linear-gradient(180deg, var(--color-transparent) 25%, var(--color-overlay-heavy) 100%);
  transition: background-color var(--dur-slow) var(--ease-out);
}

.service-panel__content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--color-accent-ink);
}

.service-panel__content h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-ink);
  font-size: var(--text-xl);
}

.service-panel__content p {
  max-width: 31ch;
  color: var(--color-dark-muted);
}

.service-panel__content a {
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.service-panel:hover .service-panel__image,
.service-panel:focus-within .service-panel__image {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.025);
}

.route-process__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.route-process__intro {
  position: sticky;
  top: 10rem;
  align-self: start;
}

.route-process__intro h2 {
  max-width: 13ch;
  margin-bottom: var(--space-xl);
  font-size: var(--text-3xl);
}

.route-process__intro .button {
  margin-top: var(--space-lg);
}

.route-process__steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-process__steps::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.45rem;
  width: var(--rule-medium);
  background: var(--color-rule);
  content: "";
}

.route-process__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.route-process__steps li:last-child {
  padding-bottom: 0;
}

.route-process__mark {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border: var(--rule-medium) solid var(--color-paper);
  border-radius: var(--radius-round);
  background: var(--color-accent);
  box-shadow: 0 0 0 0.25rem var(--color-accent-soft);
}

.route-process__steps h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-xl);
}

.route-process__steps p {
  margin-bottom: 0;
  color: var(--color-ink-2);
}

.home-promise {
  padding-block: var(--space-section);
}

.home-promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.home-promise__statement h2 {
  margin-bottom: 0;
  color: var(--color-accent-strong);
  font-size: var(--text-3xl);
}

.home-promise__points {
  border-top: var(--rule-thin) solid var(--color-rule-strong);
}

.home-promise__points article {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-xl);
  border-bottom: var(--rule-thin) solid var(--color-rule-strong);
  padding-block: var(--space-lg);
}

.home-promise__points h3 {
  margin-bottom: 0;
  font-size: var(--text-base);
}

.home-promise__points p {
  margin-bottom: 0;
  color: var(--color-ink-2);
}

@media (max-width: 62rem) {
  .home-intro__grid,
  .route-process__layout,
  .home-promise__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro__visual {
    max-width: 40rem;
  }

  .home-intro__visual img {
    max-height: 35rem;
  }

  .service-panels {
    min-height: 60rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-process__intro {
    position: static;
  }
}

@media (max-width: 48rem) {
  .home-hero {
    --hero-route-height: 10rem;
    min-height: 52rem;
  }

  .home-hero__content {
    min-height: calc(52rem - var(--hero-route-height));
  }

  .home-hero__media {
    object-position: 82% bottom;
  }

  .home-hero__shade {
    background: linear-gradient(90deg, var(--color-overlay-heavy), var(--color-overlay-mid));
  }

  .home-hero__content {
    align-items: flex-start;
    padding-top: 6rem;
    padding-bottom: var(--space-2xl);
  }

  .hero-route {
    min-height: 10rem;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

  .hero-route__stops {
    width: 100%;
    min-height: 5.5rem;
  }

  .hero-route__stop {
    min-height: 5.5rem;
  }

  .hero-route__status-panel {
    display: grid;
    justify-items: center;
    border-top: var(--rule-thin) solid color-mix(in oklch, var(--color-dark-muted) 60%, transparent);
    border-left: 0;
    padding-top: var(--space-sm);
    padding-left: 0;
    text-align: center;
  }

  .hero-route__status {
    max-width: 28ch;
  }

  .services-showcase__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 36rem) {
  .home-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .home-hero__actions {
    display: grid;
  }

  .home-hero__actions .button {
    width: 100%;
  }

  .hero-route__stop-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-route__stop-icon .icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  .hero-route__stop {
    font-size: 0.7rem;
  }

  .home-intro__visual figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: none;
  }

  .service-panels {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .service-panel {
    min-height: 27rem;
  }

  .home-promise__points article {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-route__dot::after,
  .hero-route__status-pulse {
    animation: none;
  }
}
