/* Services page: hero. Copy on the start side; on the other side two phones showing the app
   (placeholder screens until the real screenshots arrive) over a soft H10-yellow glow, with three
   glass chips floating around them, one per service. The phones and chips lean toward the mouse
   (js/services-hero.js); the chips also bob gently on their own.

   Layers per chip: .svc-chip (position) > .svc-chip__float (idle bob, CSS) > .svc-chip__card
   (mouse parallax, JS), so the two motions never fight over one transform. */

.svc-hero {
  --gutter: clamp(24px, 5vw, 96px);
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(112px, 14vh, 150px) var(--gutter) clamp(56px, 8vh, 96px);
  background:
    radial-gradient(60% 70% at 25% 55%, rgba(242, 183, 5, 0.10), transparent 70%),
    var(--surface-dark);
  color: var(--text-on-dark);
}
.svc-hero:dir(ltr) { background: radial-gradient(60% 70% at 75% 55%, rgba(242, 183, 5, 0.10), transparent 70%), var(--surface-dark); }
.svc-hero__inner {
  width: 100%; max-width: 1760px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(32px, 5vw, 96px);
}

/* ---------- copy ---------- */
.svc-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 620px; }
.svc-hero__copy .section-eyebrow { margin: 0; }
.svc-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 84px); line-height: 1.2; font-weight: 700;
  text-wrap: balance;
}
.svc-hero h1 span { color: var(--h10-yellow); }             /* dark ground: yellow may be text */
.svc-hero__lead { margin: 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.85; color: var(--muted-on-dark); }
.svc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.svc-hero__or { font-size: 15px; font-weight: 600; color: var(--dim-on-dark); }

/* ---------- visual: glow, phones, chips ---------- */
.svc-hero__visual {
  --vis-h: clamp(460px, 78vh, 740px);
  position: relative;
  height: var(--vis-h);
  perspective: 1400px;
}
.svc-hero__glow {
  position: absolute; left: 50%; top: 52%;
  width: min(100%, calc(var(--vis-h) * 1.1)); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.75) 0%, rgba(242, 183, 5, 0.32) 34%, rgba(242, 183, 5, 0.08) 56%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.svc-phones {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-phone {
  --w: min(clamp(190px, 17vw, 290px), calc(var(--vis-h) * 0.42));   /* phone height stays inside the visual */
  position: absolute; top: 50%; left: 50%;
  width: var(--w); aspect-ratio: 9 / 19.5;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #2A2D33, #0B0C0E 55%, #1B1D21);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 5px #070809,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.svc-phone--back { transform: translate(-88%, -54%) rotate(-7deg); filter: brightness(0.82); }
.svc-phone--front { transform: translate(-22%, -46%) rotate(4deg); }
.svc-phone__screen {
  position: relative; overflow: hidden;
  height: 100%;
  border-radius: calc(var(--w) * 0.14);
  background: #F3F4F5; color: var(--h10-ink);
  font-size: calc(var(--w) * 0.046);
  display: flex; flex-direction: column;
}
.svc-phone__island {
  position: absolute; z-index: 2; top: 2.4%; left: 50%; translate: -50% 0;
  width: 32%; height: 3.6%; border-radius: 999px; background: #070809;
}
/* rendered mockup with real screenshots: one picture instead of the two drawn phones */
.svc-phones--img img {
  position: absolute; left: 50%; top: 50%;
  height: calc(var(--vis-h) * 0.94); width: auto; max-width: none;
  translate: -50% -50%;
  pointer-events: none; user-select: none;
}

/* placeholder app screens: replace .svc-phone__screen's contents with an <img> of the real app */
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 17% 7% 4%; }
.app-top .h10-wordmark { height: 1.1em; width: auto; color: var(--h10-ink); }
.app-top__avatar { width: 2em; height: 2em; border-radius: 50%; background: var(--h10-yellow); }
.app-hello { padding: 0 7%; }
.app-hello b { display: block; font-size: 1.45em; line-height: 1.35; }
.app-hello small { color: var(--ink-muted); font-size: 0.9em; }
.app-tiles { display: grid; gap: 0.7em; padding: 6% 7%; }
.app-tile {
  display: flex; align-items: center; gap: 0.8em;
  padding: 0.8em; border-radius: 0.9em;
  background: #FFFFFF; font-weight: 600;
  box-shadow: 0 1px 0 rgba(22, 24, 28, 0.06);
}
.app-tile i {
  display: grid; place-items: center; flex: none;
  width: 2.3em; height: 2.3em; border-radius: 0.7em;
  background: var(--h10-yellow);
}
.app-tile i svg { width: 60%; height: 60%; fill: none; stroke: var(--h10-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-cta { margin: auto 7% 9%; padding: 0.9em; border-radius: 999px; background: var(--h10-ink); color: #FFFFFF; text-align: center; font-weight: 600; }

.app-map {
  flex: 1; position: relative;
  background:
    linear-gradient(rgba(22, 24, 28, 0.06) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    linear-gradient(90deg, rgba(22, 24, 28, 0.06) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    #E9EBEE;
}
.app-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-map path { vector-effect: non-scaling-stroke; }
.app-sheet { padding: 6% 7% 9%; background: #FFFFFF; border-radius: 1.2em 1.2em 0 0; display: grid; gap: 0.35em; box-shadow: 0 -8px 24px -12px rgba(22, 24, 28, 0.25); }
.app-sheet small { color: var(--ink-muted); }
.app-sheet b { font-size: 1.2em; }
.app-sheet__bar { height: 0.45em; border-radius: 999px; background: #E4E6E9; overflow: hidden; margin-top: 0.4em; }
.app-sheet__bar i { display: block; width: 62%; height: 100%; background: var(--h10-yellow); }

/* chips: glass cards with the service's icon and name */
.svc-chip { position: absolute; z-index: 3; }
.svc-chip--tow  { top: 16%; inset-inline-end: 6%; }
.svc-chip--care { top: 46%; inset-inline-start: 2%; }
.svc-chip--move { bottom: 10%; inset-inline-end: 14%; }
.svc-chip__float { animation: chip-bob 6s ease-in-out infinite; }
.svc-chip--care .svc-chip__float { animation-delay: -2s; }
.svc-chip--move .svc-chip__float { animation-delay: -4s; }
@keyframes chip-bob { 50% { transform: translateY(-8px); } }
.svc-chip__card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 128px; padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 20px 40px -18px rgba(0, 0, 0, 0.6);
  color: #FFFFFF; text-align: center;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  will-change: transform;
}
.svc-chip__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--h10-yellow);
  color: var(--h10-yellow);
}
.svc-chip__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- phones and tablets: copy on top, visual below ---------- */
@media (max-width: 900px) {
  .svc-hero { --gutter: 16px; padding-top: 104px; min-height: 0; }
  .svc-hero__inner { grid-template-columns: none; gap: 24px; }
  .svc-hero__visual { --vis-h: min(118vw, 560px); }
  .svc-phone { --w: min(44vw, calc(var(--vis-h) * 0.42)); }
  .svc-chip__card { min-width: 0; padding: 12px 12px 10px; gap: 8px; font-size: 12px; border-radius: 16px; }
  .svc-chip__icon { width: 38px; height: 38px; border-radius: 11px; }
  .svc-chip__icon svg { width: 21px; height: 21px; }
  .svc-chip--care { inset-inline-start: 0; }
  .svc-chip--tow { inset-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-chip__float { animation: none; }
}
