/* ==========================================================================
   Layout — Hero, Journey, CTA, Footer, Buttons, Utilities
   ========================================================================== */

/* ---------- Hero Section ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-md) var(--space-3xl);
  background: linear-gradient(
    170deg,
    #F6F3EE 0%,
    var(--alabaster) 60%,
    #E8E1D4 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 173, 98, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--medium-gray);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Inline firm-name link in the hero subtext. Pairs with non-breaking
   spaces in the HTML so "Weinstein Legal Team" can never split across
   two lines mid-name. Styling matches the case-types CTA link pattern. */
.hero__firm-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 200ms var(--ease-smooth), border-color 200ms var(--ease-smooth);
}

.hero__firm-link:hover,
.hero__firm-link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--navy);
  outline: none;
}

/* ---------- Hero Map ---------- */

.hero__map {
  position: relative;
  width: 100%;
  margin: 0 auto var(--space-2xl);
  cursor: pointer;
  border-radius: var(--radius-md);
  isolation: isolate;
}

.hero__map-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(67, 84, 100, 0.18));
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms var(--ease-smooth);
  will-change: transform, filter;
}

@media (hover: hover) and (pointer: fine) {
  .hero__map:hover .hero__map-img {
    transform: scale(1.04);
    filter:
      drop-shadow(0 0 24px rgba(250, 173, 98, 0.55))
      drop-shadow(0 18px 40px rgba(67, 84, 100, 0.22));
  }
  .hero__map:hover {
    cursor: zoom-in;
  }
}

.hero__map:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 8px;
  box-shadow: 0 0 0 6px rgba(67, 84, 100, 0.45);
  border-radius: var(--radius-md);
}

/* ---------- Paint-on reveal + glow burst ---------- */

.hero__map--painting .hero__map-img {
  animation:
    heroMapPaint 1400ms cubic-bezier(0.65, 0, 0.35, 1) both,
    heroMapGlowBurst 900ms ease-out 1400ms;
}

@keyframes heroMapPaint {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Leading-edge orange glow band that travels with the paint front */
.hero__map--painting::before {
  content: '';
  position: absolute;
  top: -4%;
  bottom: -4%;
  width: 6%;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 173, 98, 0) 0%,
    rgba(250, 173, 98, 0.85) 50%,
    rgba(250, 173, 98, 0) 100%
  );
  filter: blur(12px);
  pointer-events: none;
  z-index: 2;
  animation: heroMapPaintEdge 1400ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes heroMapPaintEdge {
  from { left: 0;   opacity: 1; }
  90%  { opacity: 1; }
  to   { left: 100%; opacity: 0; }
}

@keyframes heroMapGlowBurst {
  0% {
    filter: drop-shadow(0 8px 22px rgba(67, 84, 100, 0.18));
  }
  40% {
    filter:
      drop-shadow(0 0 60px rgba(250, 173, 98, 0.85))
      drop-shadow(0 0 120px rgba(250, 173, 98, 0.5))
      drop-shadow(0 8px 22px rgba(67, 84, 100, 0.18));
  }
  100% {
    filter: drop-shadow(0 8px 22px rgba(67, 84, 100, 0.18));
  }
}

/* ---------- Auto-fired Map Overlay Message ---------- */
.hero__map-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 14px));
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: 1.4em 2.4em;
  background: rgba(20, 28, 38, 0.92);
  border: 1.5px solid rgba(250, 173, 98, 0.55);
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(250, 173, 98, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 500ms var(--ease-smooth),
    transform 500ms var(--ease-smooth);
  white-space: nowrap;
}

.hero__map-message--visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.hero__map-message--departing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.22);
  transition:
    opacity 700ms cubic-bezier(0.55, 0.05, 0.25, 1),
    transform 700ms cubic-bezier(0.55, 0.05, 0.25, 1);
}

.hero__map-message__text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}

.hero__map-message__text .text-orange {
  color: var(--orange);
}

.hero__map-message__arrow {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--orange);
  flex-shrink: 0;
  animation: heroMapMessageBounce 1.2s ease-in-out infinite;
}

@keyframes heroMapMessageBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

.hero__map-message__skip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  pointer-events: auto;
  transition: color 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.hero__map-message__skip:hover,
.hero__map-message__skip:focus-visible {
  color: var(--orange);
  transform: translateX(2px);
  outline: none;
}

.hero__map-message__skip svg {
  transition: transform 200ms var(--ease-smooth);
}

.hero__map-message__skip:hover svg {
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .hero__map-message {
    padding: 1.1em 1.6em;
  }
  .hero__map-message__text {
    font-size: clamp(1.05rem, 5vw, 1.4rem);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__map-message,
  .hero__map-message__arrow {
    animation: none;
    transition: opacity 300ms;
  }
  .hero__map--painting .hero__map-img,
  .hero__map--painting::before {
    animation: none;
    clip-path: none !important;
  }
}

/* ---------- Magnifier lens (desktop hover only) ---------- */
.hero__map-lens {
  --lens-w: 480px;
  --lens-h: 320px;
  --lens-zoom: 2.0;
  position: absolute;
  width: var(--lens-w);
  height: var(--lens-h);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 200ms var(--ease-smooth), transform 240ms var(--ease-smooth);
  background-repeat: no-repeat;
  background-color: var(--alabaster);
  border: 3px solid var(--orange);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 0 18px rgba(67, 84, 100, 0.16),
    0 0 0 4px rgba(67, 84, 100, 0.2),
    0 22px 42px rgba(0, 0, 0, 0.32);
  z-index: 9;
}

.hero__map-lens.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 767px), (hover: none) {
  .hero__map-lens {
    display: none;
  }
}

/* ---------- "Tap to Expand Map" button (mobile) ---------- */
.hero__map-expand {
  display: none;
  margin: var(--space-md) auto 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(250, 173, 98, 0.4);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 220ms var(--ease-smooth),
    box-shadow 220ms var(--ease-smooth);
}

.hero__map-expand:hover,
.hero__map-expand:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(250, 173, 98, 0.5);
  outline: none;
}

.hero__map-expand:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .hero__map-expand {
    display: inline-flex;
  }
}

/* ---------- Map Lightbox ---------- */
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-lightbox[hidden] {
  display: none;
}

.map-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, 0.92);
}

.map-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 200ms var(--ease-smooth);
}

.map-lightbox__close:hover,
.map-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.map-lightbox__hint {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: opacity 400ms var(--ease-smooth);
  pointer-events: none;
}

.map-lightbox__hint--hidden {
  opacity: 0;
}

.map-lightbox__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 72px 16px 24px;
}

.map-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(95vw, 1280px);
  max-height: 82vh;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (min-width: 768px) {
  .map-lightbox__img {
    max-width: min(90vw, 1280px);
    max-height: 84vh;
  }
}

/* ---------- Mini-Map Navigator ----------
   Sticky thumbnail of the journey map that activates while the user
   scrolls through the journey section. Each step has a clickable
   hotspot; the active step pulses orange. Desktop only. */

.mini-map {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 20px;
  width: 320px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateX(28px) scale(0.92);
  transition:
    opacity 380ms var(--ease-smooth),
    transform 380ms var(--ease-smooth);
}

.mini-map[hidden] {
  display: none;
}

.mini-map--visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mini-map__inner {
  position: relative;
  border-radius: 14px;
  /* Liquid glass at rest — content shows through */
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 8px rgba(67, 84, 100, 0.06),
    0 10px 24px rgba(67, 84, 100, 0.1);
  padding: 10px 12px 12px;
  overflow: hidden;
  transform-origin: top right;
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 320ms var(--ease-smooth),
    box-shadow 350ms var(--ease-smooth),
    border-color 350ms var(--ease-smooth);
}

/* Map img dimmed at rest so it reads as a glass texture */
.mini-map__img {
  filter: saturate(0.7) brightness(1.04);
  transition: filter 320ms var(--ease-smooth);
}

.mini-map:hover .mini-map__inner,
.mini-map:focus-within .mini-map__inner {
  /* Pop solid + crisp on engagement */
  background: rgba(255, 255, 255, 0.96);
  transform: scale(2.1);
  border-color: rgba(250, 173, 98, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(67, 84, 100, 0.2),
    0 40px 70px rgba(67, 84, 100, 0.32);
}

.mini-map:hover .mini-map__img,
.mini-map:focus-within .mini-map__img {
  filter: saturate(1) brightness(1);
}

/* After clicking a hotspot, force shrink so the expanded map doesn't
   cover the destination card. Cleared on next mouseleave. */
.mini-map.mini-map--just-clicked .mini-map__inner,
.mini-map.mini-map--just-clicked:hover .mini-map__inner,
.mini-map.mini-map--just-clicked:focus-within .mini-map__inner {
  transform: scale(1);
  border-color: rgba(67, 84, 100, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 12px rgba(67, 84, 100, 0.1),
    0 18px 40px rgba(67, 84, 100, 0.18);
}

.mini-map__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--medium-gray);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.mini-map__viewport {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.mini-map__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: saturate(0.92);
}

.mini-map__hotspot {
  position: absolute;
  left: var(--mm-x);
  top: var(--mm-y);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0);
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: transparent;
  transition:
    background 220ms var(--ease-smooth),
    border-color 220ms var(--ease-smooth),
    color 220ms var(--ease-smooth),
    transform 220ms var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.mini-map__hotspot span {
  display: block;
  pointer-events: none;
}

.mini-map__hotspot:hover,
.mini-map__hotspot:focus-visible {
  background: rgba(250, 173, 98, 0.28);
  border-color: var(--orange);
  color: var(--navy);
  transform: translate(-50%, -50%) scale(1.15);
  outline: none;
}

.mini-map__hotspot.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow:
    0 0 0 3px rgba(250, 173, 98, 0.3),
    0 4px 12px rgba(250, 173, 98, 0.5);
  animation: miniMapPulse 1.8s ease-in-out infinite;
}

@keyframes miniMapPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(250, 173, 98, 0.3),
      0 4px 12px rgba(250, 173, 98, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(250, 173, 98, 0),
      0 4px 12px rgba(250, 173, 98, 0.5);
  }
}

/* ---------- Minimize / Expand controls ---------- */

.mini-map__minimize {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(67, 84, 100, 0.18);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 200ms var(--ease-smooth),
    transform 200ms var(--ease-smooth),
    background 200ms var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.mini-map:hover .mini-map__minimize,
.mini-map:focus-within .mini-map__minimize {
  opacity: 1;
  transform: scale(1);
}

.mini-map__minimize:hover,
.mini-map__minimize:focus-visible {
  background: var(--orange);
  color: var(--navy);
  outline: none;
}

.mini-map__expand {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  z-index: 5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 12px rgba(67, 84, 100, 0.1),
    0 12px 28px rgba(67, 84, 100, 0.18);
  transition:
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms var(--ease-smooth),
    background 220ms var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.mini-map__expand:hover,
.mini-map__expand:focus-visible {
  background: var(--orange);
  transform: scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 16px rgba(250, 173, 98, 0.45),
    0 16px 36px rgba(67, 84, 100, 0.22);
  outline: none;
}

/* ---------- Minimized state ---------- */
.mini-map.mini-map--minimized .mini-map__inner {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
  transform-origin: top right;
}

.mini-map.mini-map--minimized .mini-map__minimize {
  display: none;
}

.mini-map.mini-map--minimized .mini-map__expand {
  display: inline-flex;
}

.mini-map__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(67, 84, 100, 0.08);
}

.mini-map__caption-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(250, 173, 98, 0.45);
  transition: opacity 200ms var(--ease-smooth);
}

.mini-map__caption-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 200ms var(--ease-smooth);
}

/* Idle state — no step is currently active and no hotspot is being
   hovered. Hide the number badge and show the caption text as a soft
   hint inviting the user to engage. */
.mini-map--caption-idle .mini-map__caption {
  justify-content: center;
}

.mini-map--caption-idle .mini-map__caption-num {
  display: none;
}

.mini-map--caption-idle .mini-map__caption-text {
  color: var(--medium-gray);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .mini-map {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-map {
    transition: opacity 200ms;
    transform: none !important;
  }
  .mini-map__hotspot.is-active {
    animation: none;
  }
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--medium-gray);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 250ms var(--ease-smooth);
}

.hero__scroll-hint:hover {
  color: var(--navy);
}

.hero__scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color 250ms var(--ease-smooth), transform 250ms var(--ease-smooth);
}

.hero__scroll-hint:hover .hero__scroll-arrow {
  color: var(--navy);
  transform: scale(1.15);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(240, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(67, 84, 100, 0.15);
  z-index: 100;
  box-shadow: 0 1px 12px rgba(67, 84, 100, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

/* Brand lockup: logo + hairline divider + "The Road to Settlement" wordmark,
   read as one firm-and-product unit instead of two competing marks. */
.header__brand {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.05rem);
  min-width: 0;
}

.header__divider {
  width: 1px;
  height: 30px;
  background: rgba(67, 84, 100, 0.20);
  flex-shrink: 0;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Wrapping anchor links the firm logo to thelawofwe.com. Inherits color
   and strips default underline so the masked logo image renders the same
   as before. Focus ring shows for keyboard users. */
.header__logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  outline-offset: 4px;
}

.header__logo-link:focus-visible {
  outline: 2px solid var(--orange);
}

.header__logo-img {
  display: inline-block;
  height: 40px;
  width: 237px;
  background-color: #435464;
  -webkit-mask: url(../WLT_Logo_White.png) left center / contain no-repeat;
          mask: url(../WLT_Logo_White.png) left center / contain no-repeat;
  transition: transform 350ms var(--ease-smooth), background-color 350ms var(--ease-smooth);
}

.header__logo:hover .header__logo-img {
  transform: scale(1.06);
  background-color: var(--navy-light);
}

.header__title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  font-weight: 800;
  color: var(--slate);
  white-space: nowrap;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
  text-decoration: none;
}
.header__title:hover { color: var(--slate); }

.header__title-accent {
  color: var(--tangerine);
}

@media (max-width: 767px) {
  .header__title {
    font-size: 0.95rem;
    padding: 5px 12px;
  }
}

.header__cta {
  flex-shrink: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(67, 84, 100, 0.05);
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid rgba(67, 84, 100, 0.18);
  border-radius: var(--radius-md);
  transition:
    background 200ms var(--ease-smooth),
    border-color 200ms var(--ease-smooth),
    color 200ms var(--ease-smooth),
    transform 200ms var(--ease-smooth);
}

.header__phone:hover,
.header__phone:focus-visible {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  transform: translateY(-1px);
  outline: none;
}

.header__phone svg {
  flex-shrink: 0;
}

.header__phone-text {
  display: none;
}

/* Header nav link ("Articles"), used on the homepage and blog. A quiet
   uppercase link with a tangerine icon so it stays evident without competing
   with the solid "Free Case Review" CTA. Underline grows on hover / active. */
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 200ms var(--ease-smooth);
}
.header__nav-link svg { color: var(--orange); flex-shrink: 0; transition: transform 200ms var(--ease-smooth); }
.header__nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-smooth);
}
.header__nav-link:hover,
.header__nav-link:focus-visible,
.header__nav-link[aria-current="page"] { color: var(--orange); outline: none; }
.header__nav-link:hover::after,
.header__nav-link:focus-visible::after,
.header__nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header__nav-link:hover svg { transform: translateY(-1px); }

/* Collapse the brand wordmark on narrower viewports; the logo carries it. */
@media (max-width: 860px) {
  .header__divider,
  .header__title { display: none; }
}

/* "Articles" becomes icon-only on phones to keep the bar lean. */
@media (max-width: 767px) {
  .header__nav-text { display: none; }
  .header__nav-link { gap: 0; padding: 8px; }
}

/* ---------- Case Types Section ---------- */

.case-types {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--alabaster);
  border-top: 1px solid rgba(67, 84, 100, 0.06);
  border-bottom: 1px solid rgba(67, 84, 100, 0.06);
}

.case-types__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.case-types__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 var(--space-sm);
}

.case-types__subtext {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--medium-gray);
  margin: 0 auto var(--space-xl);
  max-width: 540px;
}

.case-types__subtext strong {
  color: var(--navy);
}

.case-types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-bottom: var(--space-xl);
}

.case-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(0.85rem, 1.6vw, 1.2rem) 0.5rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(67, 84, 100, 0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  text-align: center;
  cursor: pointer;
  transition:
    transform 250ms var(--ease-smooth),
    box-shadow 250ms var(--ease-smooth),
    border-color 250ms var(--ease-smooth),
    background 250ms var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(67, 84, 100, 0.05);
}

.case-type:hover,
.case-type:focus-visible {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--orange);
  box-shadow:
    0 4px 8px rgba(67, 84, 100, 0.06),
    0 12px 24px rgba(67, 84, 100, 0.14);
  outline: none;
}

.case-type__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250, 173, 98, 0.16);
  color: var(--orange);
  flex-shrink: 0;
  transition: background 250ms var(--ease-smooth), color 250ms var(--ease-smooth);
}

.case-type__icon svg {
  width: 26px;
  height: 26px;
}

.case-type:hover .case-type__icon,
.case-type:focus-visible .case-type__icon {
  background: var(--orange);
  color: var(--navy);
}

.case-type__name {
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.case-types__cta {
  font-size: 0.95rem;
  color: var(--medium-gray);
  margin: 0;
}

.case-types__cta a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
  transition: color 200ms var(--ease-smooth);
}

.case-types__cta a:hover,
.case-types__cta a:focus-visible {
  color: var(--orange);
  outline: none;
}

@media (max-width: 1023px) {
  .case-types__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .case-types {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  .case-types__inner {
    padding: 0 var(--space-md);
  }
  .case-types__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .case-type {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.7rem 0.85rem;
    gap: 10px;
  }
  .case-type__icon {
    width: 36px;
    height: 36px;
  }
  .case-type__icon svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Inline CTA bands (between phases) ---------- */

.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  max-width: 640px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(165deg, #FFFFFF 0%, #FAF6EE 100%);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(67, 84, 100, 0.08),
    0 18px 36px rgba(67, 84, 100, 0.16);
  position: relative;
  z-index: 5;
}

.inline-cta--alt {
  background: linear-gradient(165deg, #FFF8E5 0%, #FFEFCC 100%);
  border-color: #D4A017;
}

.inline-cta__hook {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.inline-cta__hook strong {
  color: var(--orange);
  font-weight: 800;
}

.inline-cta--alt .inline-cta__hook strong {
  color: #B8870A;
}

.inline-cta__sub {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin: 0;
  line-height: 1.5;
}

.inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.inline-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 200ms var(--ease-smooth),
    color 200ms var(--ease-smooth),
    border-color 200ms var(--ease-smooth),
    transform 200ms var(--ease-smooth),
    box-shadow 200ms var(--ease-smooth);
  min-height: 48px;
}

.inline-cta__btn--call {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(250, 173, 98, 0.4);
}

.inline-cta__btn--call:hover,
.inline-cta__btn--call:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250, 173, 98, 0.55);
  outline: none;
}

.inline-cta__btn--review {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.inline-cta__btn--review:hover,
.inline-cta__btn--review:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  outline: none;
}

/* Quiet content link beneath the billboard buttons, routing to the guides. */
.inline-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: calc(var(--space-xs) * -1);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  transition: color 200ms var(--ease-smooth);
}
.inline-cta__link span {
  color: var(--orange);
  display: inline-block;
  transition: transform 200ms var(--ease-smooth);
}
.inline-cta__link:hover,
.inline-cta__link:focus-visible { color: var(--orange); outline: none; }
.inline-cta__link:hover span,
.inline-cta__link:focus-visible span { transform: translateX(3px); }
.inline-cta--alt .inline-cta__link span { color: #B8870A; }
.inline-cta--alt .inline-cta__link:hover,
.inline-cta--alt .inline-cta__link:focus-visible { color: #B8870A; }

@media (max-width: 767px) {
  .inline-cta {
    margin: var(--space-lg) var(--space-md);
    padding: var(--space-md) var(--space-md);
  }
  .inline-cta__actions {
    flex-direction: column;
    width: 100%;
  }
  .inline-cta__btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  padding: 10px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(67, 84, 100, 0.12);
  box-shadow: 0 -4px 16px rgba(67, 84, 100, 0.18);
  transform: translateY(100%);
  transition: transform 350ms var(--ease-smooth);
}

.mobile-cta-bar.is-visible {
  transform: translateY(0);
}

.mobile-cta-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 150ms var(--ease-smooth),
    box-shadow 150ms var(--ease-smooth);
}

.mobile-cta-bar__btn--call {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(250, 173, 98, 0.4);
}

.mobile-cta-bar__btn--call:active {
  transform: scale(0.97);
}

.mobile-cta-bar__btn--review {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.mobile-cta-bar__btn--review:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
  }
  /* Pad the bottom of the page so footer content isn't hidden behind
     the sticky bar */
  body {
    padding-bottom: 76px;
  }
}

/* ---------- Journey Section ---------- */

.journey {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--alabaster);
  overflow: hidden;
}

/* Original map as subtle watermark background */
.journey__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(0.3);
}

/* Subtle warm radial accents inspired by the original map */
.journey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 800px 600px at 10% 15%, rgba(250, 173, 98, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 800px at 90% 45%, rgba(250, 173, 98, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 20% 75%, rgba(250, 173, 98, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid pattern overlay for texture */
.journey::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(67, 84, 100, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.journey__container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  z-index: 1;
}

/* Phase Labels — styled in road.css */

/* ---------- CTA Section ---------- */

.cta-section {
  position: relative;
  padding: var(--space-4xl) var(--space-xl);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.cta-section__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-xl);
  opacity: 0.5;
}

.cta-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.cta-section__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  padding: var(--space-2xl) var(--space-xl);
}

.footer__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.footer__logo {
  height: 30px;
  width: auto;
  margin: 0 auto var(--space-lg);
  opacity: 0.55;
  transition: opacity 350ms var(--ease-smooth), transform 350ms var(--ease-smooth);
}

.footer__logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 0;
}

/* Footer link row (Roadmap / Articles / Free Case Review / phone). */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 200ms var(--ease-smooth);
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms var(--ease-smooth);
}
.footer__links a:hover,
.footer__links a:focus-visible { color: var(--orange); outline: none; }
.footer__links a:hover::after,
.footer__links a:focus-visible::after { transform: scaleX(1); }

/* ---------- Button System ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7em 1.6em;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform 220ms var(--ease-smooth),
    box-shadow 220ms var(--ease-smooth);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 700ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 130%;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  box-shadow:
    0 6px 22px rgba(250, 173, 98, 0.5),
    0 0 0 4px rgba(250, 173, 98, 0.18);
  transform: translateY(-2px) scale(1.02);
}

.btn--primary:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 8px rgba(250, 173, 98, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn--secondary:hover {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(250, 173, 98, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--large {
  padding: 1em 2.4em;
  font-size: 1.05rem;
}

/* ---------- Utility ---------- */

.text-orange {
  color: var(--orange);
}

.hero__heading .text-orange {
  text-shadow:
    0 1px 2px rgba(67, 84, 100, 0.55),
    0 0 1px rgba(67, 84, 100, 0.4);
}

/* ---------- Reduced Motion ---------- */

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

  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }
}

/* ---------- Mobile Adjustments ---------- */

@media (max-width: 767px) {
  .header__title {
    display: none;
  }

  .header__logo-icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 85vh;
    padding: var(--space-3xl) var(--space-lg);
  }

  .journey {
    padding: var(--space-2xl) 0;
  }

  .journey__container {
    padding: var(--space-xl) var(--space-lg);
  }

  .cta-section {
    padding: var(--space-3xl) var(--space-lg);
  }

  /* Phase labels handled by road.css */
}
