/* ==========================================================================
   ShiftEase — Landing page
   Design reference: 1920px artboard (container 1620px, 150px gutters).
   Everything scales fluidly below that with clamp() / vw.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour (sampled from the design) */
  --blue: #2d6efe;
  --blue-600: #1d5cea;
  --blue-050: #e3ecff;
  --ink: #2e2e2e;
  --text: #404040;
  --stat-num: #515357;
  --stat-label: #5f6165;
  --muted: #a0a0a0;
  --bg: #f8f9ff;
  --surface: #ffffff;
  --soft: #eef0f9;
  --soft-2: #e4e7f5;
  --watermark: #eff2fd;
  --star-hero: #fcd53f;
  --star: #e5c852;
  --line: rgba(64, 64, 64, 0.16);
  --line-strong: rgba(64, 64, 64, 0.2);
  --danger: #d93b3b;
  --success: #19a974;

  /* Type */
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.5rem, 5.8334vw, 7rem);          /* 112px @1920 */
  --fs-h2: clamp(2rem, 3.75vw, 4.5rem);            /* 72px  */
  --fs-display: clamp(1.875rem, 2.9167vw, 3.5rem); /* 56px  */
  --fs-stat: clamp(2rem, 2.5vw, 3rem);             /* 48px  */
  --fs-eyebrow: clamp(1rem, 1.6667vw, 2rem);       /* 32px  */
  --fs-title: clamp(1.1875rem, 1.6667vw, 2rem);    /* 32px  */
  --fs-lg: clamp(1.125rem, 1.25vw, 1.5rem);        /* 24px  */
  --fs-lead: clamp(1.0625rem, 1.1459vw, 1.375rem); /* 22px  */
  --fs-body: clamp(1rem, 1.0417vw, 1.25rem);       /* 20px  */
  --fs-sm: clamp(0.9375rem, 0.9375vw, 1.125rem);   /* 18px  */

  /* Layout */
  --gutter: clamp(20px, 7.8125vw, 150px);
  --bleed: clamp(12px, 2.6042vw, 50px);
  --container: 1620px;
  --section-gap: clamp(88px, 15.625vw, 300px);
  --header-h: clamp(68px, 4.5834vw, 88px);
  --r-sm: clamp(12px, 0.8334vw, 16px);
  --r-lg: clamp(20px, 2.0834vw, 40px);
  --pill: 999px;

  /* Elevation */
  --shadow-card: 0 30px 60px -28px rgba(33, 56, 120, 0.16);
  --shadow-float: 0 24px 48px -16px rgba(33, 56, 120, 0.2);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

/* Sections receive focus after scrolling (for keyboard users) — hide the ring */
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid rgba(45, 110, 254, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.bleed {
  width: min(1820px, 100% - var(--bleed) * 2);
  margin-inline: auto;
}

.section { padding-top: var(--section-gap); }

.section-head--center { text-align: center; }

/* ---------- 4. Typography components ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.22;
  color: var(--blue);
  text-transform: uppercase;
}

.eyebrow--dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow--dot::before {
  content: "";
  width: 0.375em;
  height: 0.375em;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow--sm { font-size: 0.9375rem; letter-spacing: 0.02em; }

.section-title {
  margin-top: 0.1em;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.167;
  color: var(--ink);
}

.line { display: block; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-h: clamp(46px, 2.9167vw, 56px);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--btn-h);
  padding: 0 1.9em;
  border-radius: var(--pill);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.btn--lg {
  --btn-h: clamp(52px, 3.4375vw, 66px);
  min-width: clamp(180px, 13.0209vw, 250px);
  font-size: var(--fs-body);
}

.btn--block { width: 100%; }

/* soft light sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(45, 110, 254, 0.65);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  min-width: clamp(130px, 7.8125vw, 150px);
}
.btn--outline::after { display: none; }
.btn--outline:hover { background: var(--blue); color: #fff; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white::after { background: linear-gradient(110deg, transparent 30%, rgba(45, 110, 254, 0.12) 50%, transparent 70%); }
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(8, 30, 90, 0.55);
}

.round-btn {
  --size: clamp(56px, 5.2084vw, 100px);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.round-btn svg {
  width: 26%;
  height: 26%;
  transition: transform 0.45s var(--ease);
}
.round-btn--muted { background: var(--soft); color: var(--text); }
.round-btn--muted:hover { background: var(--soft-2); }
.round-btn--muted:hover svg { transform: translateX(-4px); }
.round-btn--light { background: #fff; color: var(--blue); box-shadow: var(--shadow-card); }
.round-btn--light:hover { background: var(--blue); color: #fff; box-shadow: 0 18px 36px -14px rgba(45, 110, 254, 0.6); }
.round-btn--light:hover svg { transform: translateX(4px); }
.round-btn:active { transform: scale(0.94); }

.text-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.text-link:hover { color: var(--blue); background-size: 100% 1px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 249, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(64, 64, 64, 0.07);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: min(1720px, 100% - clamp(20px, 5.2084vw, 100px) * 2);
  margin-inline: auto;
}

.brand { justify-self: start; }
.brand img { width: clamp(118px, 8.0209vw, 154px); }

.main-nav__list {
  display: flex;
  gap: clamp(24px, 2.0834vw, 40px);
}
.main-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.main-nav__link:hover,
.main-nav__link.is-current { color: var(--blue); }
.main-nav__link:hover::after,
.main-nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { justify-self: end; }
.main-nav__cta--mobile,
.nav-toggle { display: none; }

@media (max-width: 1023.98px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__cta { display: none; }

  .nav-toggle {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px -10px rgba(33, 56, 120, 0.35);
    z-index: 2;
  }
  .nav-toggle__bar {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(33, 56, 120, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s;
  }
  .main-nav__list { flex-direction: column; gap: 4px; }
  .main-nav__link { display: block; padding: 10px 4px; font-size: 1.125rem; }
  .main-nav__link::after { display: none; }
  .main-nav__cta--mobile { display: inline-flex; width: 100%; }
}

/* ---------- 7. Hero ---------- */
.hero {
  container-type: inline-size;
  position: relative;
  padding-top: var(--header-h);
  overflow: clip;
}

.hero__inner {
  /* width of the 1620px design container, usable in calc() below */
  --cw: min(1620px, 100cqw - var(--gutter) * 2);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: clamp(28px, 6vw, 72px);
}

.hero__watermark {
  position: absolute;
  z-index: -1;
  top: -4%;
  right: -30%;
  width: 115%;
  aspect-ratio: 418.4 / 396;
  color: var(--watermark);
  pointer-events: none;
  animation: watermark-in 2.2s var(--ease) 0.1s both;
}

.hero__head { position: relative; z-index: 2; }

.hero__title {
  margin-top: 0.08em;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.107;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.hero__foot {
  position: relative;
  z-index: 2;
  order: 2;
  margin-top: 24px;
}

.hero__lead {
  max-width: 32ch;
  font-size: var(--fs-lead);
  line-height: 1.364;
  color: var(--text);
}
.hero__foot .btn { margin-top: clamp(24px, 2.2917vw, 42px); }

/* rating */
.hero__rating {
  order: 3;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.25vw, 24px);
  margin-top: 36px;
}
.hero__avatars { display: flex; }
.hero__avatar {
  --s: clamp(48px, 5.2084vw, 100px);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 clamp(2px, 0.2084vw, 4px) var(--bg);
  transition: transform 0.45s var(--ease);
}
.hero__avatar + .hero__avatar { margin-left: calc(var(--s) * -0.16); }
.hero__avatar--count {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: clamp(0.8125rem, 1.25vw, 1.5rem);
  font-weight: 600;
}
.hero__avatar:nth-child(2) { z-index: 3; position: relative; }
.hero__avatar:nth-child(3) { z-index: 2; position: relative; }
.hero__avatars:hover .hero__avatar { transform: translateX(calc(var(--i, 0) * 6px)); }
.hero__avatars .hero__avatar:nth-child(2) { --i: 1; }
.hero__avatars .hero__avatar:nth-child(3) { --i: 2; }
.hero__avatars .hero__avatar:nth-child(4) { --i: 3; }

.hero__score-value {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: clamp(1.625rem, 2.1875vw, 2.625rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
}
.icon--star { width: 0.72em; height: 0.66em; color: var(--star-hero); }
.hero__score-label {
  margin-top: 2px;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--ink);
}

/* art + chips */
.hero__art {
  order: 4;
  position: relative;
  width: min(100%, 720px);
  margin: 32px auto 0;
  aspect-ratio: 1600 / 1014;
}
.hero__boxes {
  width: 100%;
  animation: art-in 1.5s var(--ease) 0.25s both;
}

.chip {
  --chip-icon: clamp(30px, 3.3334vw, 64px);
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.0417vw, 20px);
  padding: clamp(4px, 0.4167vw, 8px);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
  font-size: clamp(0.6875rem, 1.0417vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
  animation:
    chip-in 1s var(--ease) var(--d, 0ms) both,
    chip-float 7s var(--ease-in-out) calc(var(--d, 0ms) + 1s) infinite;
}
.chip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--chip-icon);
  height: var(--chip-icon);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.chip__icon svg { width: 46%; height: 46%; }

.chip--expertise { left: 7.67%; top: 36%; padding-left: clamp(12px, 2.0834vw, 40px); }
.chip--deliver   { right: 2.72%; top: 4.64%; padding-right: clamp(14px, 2.1875vw, 42px); animation-duration: 1s, 8s; }
.chip--transport { right: 21.9%; top: 57.85%; padding-right: clamp(14px, 2.1875vw, 42px); animation-duration: 1s, 6.5s; }

@media (max-width: 479.98px) {
  .hero__art { width: calc(100% + 24px); margin-inline: -12px; }
  .chip br { display: none; }
  .chip--deliver { right: 0; top: 0; }
  .chip--transport { right: 4%; top: 70%; }
  .chip--expertise { left: 0; top: 34%; }
}

/* Desktop hero: exact placement from the 1920 artboard */
@media (min-width: 1100px) {
  .hero__inner {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: calc(var(--cw) * 0.638);
    padding-top: calc(var(--cw) * 0.0444);
    padding-bottom: calc(var(--cw) * 0.0565);
  }
  .hero__watermark {
    top: calc(var(--cw) * -0.0543);
    left: calc(var(--cw) * 0.1531);
    right: auto;
    width: calc(var(--cw) * 0.7049);
  }
  .hero__foot { align-self: end; margin-top: 0; }
  .hero__lead { max-width: max(calc(var(--cw) * 0.309), 320px); }
  .hero__rating {
    position: absolute;
    z-index: 3;
    top: calc(var(--cw) * 0.0901);
    right: 0;
    margin: 0;
  }
  .hero__art {
    position: absolute;
    top: calc(var(--cw) * 0.1994);
    left: calc(var(--cw) * 0.3167);
    width: calc(var(--cw) * 0.6923);
    margin: 0;
  }
}

/* ---------- 8. About ---------- */
.about { padding-top: clamp(72px, 5.7292vw, 110px); }

.about__grid {
  display: grid;
  gap: 48px;
}

.stats {
  display: grid;
  grid-template-columns: 250fr 180fr 250fr;
  gap: clamp(12px, 1.0417vw, 20px);
  margin-top: clamp(28px, 2.5521vw, 49px);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(128px, 8.75vw, 168px);
  padding: clamp(20px, 1.6667vw, 32px);
  border-radius: var(--r-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.4s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stat:nth-child(1) { grid-column: 1; }
.stat:nth-child(2) { grid-column: 2 / 4; }
.stat:nth-child(3) { grid-column: 1 / 3; }
.stat:nth-child(4) { grid-column: 3; }
.stat--tint { background: var(--blue-050); }
.stat--soft { background: var(--soft); }
.stat--icon {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 1.0417vw, 20px);
}
.stat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(56px, 5.2084vw, 100px);
  height: clamp(56px, 5.2084vw, 100px);
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--blue);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.stat__icon svg { width: 42%; height: 42%; }
.stat:hover .stat__icon { transform: rotate(-8deg) scale(1.06); background: #dfe5fb; }
.stat__num {
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1.22;
  color: var(--stat-num);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.4em;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.25;
  color: var(--stat-label);
}

.about__side { display: flex; flex-direction: column; }
.about__copy p { line-height: 1.5; }
.about__copy p + p { margin-top: 1.5em; }

.quote-card {
  margin-top: clamp(32px, 2.7604vw, 53px);
  padding: clamp(24px, 2.0834vw, 40px);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -30px rgba(33, 56, 120, 0.24); }
.quote-card__title {
  margin-bottom: 0.8em;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue);
}
.quote-card strong { color: var(--ink); }

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 720fr) minmax(0, 800fr);
    column-gap: 6.173%;
  }
  .about__side { padding-top: calc(var(--fs-eyebrow) * 1.22 + 0.45em); }
  .quote-card { margin-top: auto; }
  .about__copy { margin-bottom: clamp(32px, 2.7604vw, 53px); }
}

@media (max-width: 639.98px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(n) { grid-column: auto; }
  .stat--icon { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. Accordion (services + FAQ) ---------- */
.acc-item { border-bottom: 2px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }

.acc-item__heading { font-size: inherit; }

.acc-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(18px, 1.9271vw, 37px) 0 clamp(16px, 1.1459vw, 22px);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.22;
  text-align: left;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.acc-item:first-child .acc-item__trigger { padding-top: 0; }
.acc-item__trigger > span {
  transition: transform 0.5s var(--ease);
}
.acc-item__trigger:hover { color: var(--blue); }
.acc-item__trigger:hover > span { transform: translateX(6px); }
.is-open > .acc-item__heading .acc-item__trigger:hover > span { transform: none; }

.acc-item__icon {
  flex: none;
  width: clamp(12px, 0.9375vw, 18px);
  height: clamp(12px, 0.9375vw, 18px);
  transition: transform 0.5s var(--ease), color 0.35s;
}
.is-open .acc-item__trigger { color: var(--blue); }
.is-open .acc-item__icon { transform: rotate(-90deg); }

.acc-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.55s var(--ease), visibility 0s 0.55s;
}
.is-open > .acc-item__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.55s var(--ease), visibility 0s;
}
.acc-item__inner { overflow: hidden; }
.acc-item__inner p {
  padding: 3px 0 clamp(16px, 1.1459vw, 22px);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.is-open .acc-item__inner p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

/* services layout */
.services__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(36px, 3.698vw, 71px);
}
.services__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 799 / 500;
  background: var(--soft);
}
.services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 1.4s var(--ease);
}
.services__media:hover img { transform: scale(1.03); }
.services__media img.is-swapping { opacity: 0; }

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: minmax(0, 699fr) minmax(0, 820fr);
    column-gap: 6.173%;
    align-items: start;
  }
  .services__media { margin-left: calc(var(--bleed) - var(--gutter)); }
  .accordion--services { padding-top: clamp(12px, 1.0417vw, 20px); }
}

/* FAQ layout */
.accordion--faq {
  --faq-width: 800px; /* ← change this to adjust the FAQ width */
  max-width: var(--faq-width);
  margin: clamp(40px, 4.7396vw, 91px) auto 0;
}

/* ---------- 10. Why us ---------- */
.why__head {
  display: grid;
  gap: 20px;
  align-items: end;
}
.why__intro { max-width: 31em; line-height: 1.5; }

@media (min-width: 1024px) {
  .why__head { grid-template-columns: 1fr auto; column-gap: 48px; }
  .why__intro { max-width: max(26em, 30.9vw); width: calc(500 / 1620 * 100%); min-width: 360px; margin-bottom: 0.1em; }
}

.why__cards {
  display: grid;
  gap: clamp(16px, 1.25vw, 24px);
  margin-top: clamp(36px, 3.698vw, 71px);
}
@media (min-width: 900px) {
  .why__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .why-card { min-height: 220px; }
}

.why-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(260px, 18.75vw, 360px);
  padding: clamp(24px, 2.0834vw, 40px);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.why-card.is-active {
  background: var(--blue);
  box-shadow: 0 34px 70px -30px rgba(45, 110, 254, 0.7);
}
.why-card:not(.is-active):hover { transform: translateY(-4px); }

.why-card__shape {
  position: absolute;
  z-index: -1;
  left: 30.7%;
  top: -5%;
  width: 79.8%;
  aspect-ratio: 418.4 / 396;
  color: #fff;
  opacity: 0;
  transform: translate(12%, -8%) rotate(8deg) scale(0.9);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}
.why-card.is-active .why-card__shape { opacity: 0.05; transform: none; }

.why-card__top { display: flex; align-items: center; gap: clamp(20px, 2.2396vw, 43px); }
.why-card__num {
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.5s var(--ease);
}
.why-card__rule {
  flex: 1;
  height: 2px;
  background: var(--line-strong);
  transform-origin: left;
  transition: background-color 0.5s var(--ease), transform 0.9s var(--ease);
}
.why-card.is-active .why-card__num { color: #fff; }
.why-card.is-active .why-card__rule { background: rgba(255, 255, 255, 0.2); }

/* Display title and detail share one grid cell and crossfade */
.why-card__body { display: grid; align-items: end; }
.why-card__display,
.why-card__detail { grid-area: 1 / 1; }

.why-card__display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.143;
  color: var(--ink);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}
.why-card__detail {
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}
.why-card.is-active .why-card__display { opacity: 0; transform: translateY(-14px); }
.why-card.is-active .why-card__detail {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.why-card__title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.22;
}
.why-card__text { margin-top: 0.65em; line-height: 1.5; }

/* ---------- 11. Fleet ---------- */
.fleet__intro {
  max-width: 48em;
  margin: clamp(20px, 1.7188vw, 33px) auto 0;
  line-height: 1.5;
}
.fleet__media {
  position: relative;
  margin-top: clamp(36px, 3.9063vw, 75px);
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 1819 / 650;
  min-height: 240px;
  background: #efe8e4;
}
.fleet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  transition: transform 1.6s var(--ease);
}
.fleet__media:hover img { transform: scale(1.025); }

/* ---------- 12. FAQ ---------- */
/* layout handled in accordion block */

/* ---------- 13. Testimonials ---------- */
.testimonials__grid {
  display: grid;
  gap: 32px;
  grid-template-areas:
    "head"
    "card"
    "nav";
}
.testimonials__head { grid-area: head; }
.testi-card { grid-area: card; }
.testimonials__nav { grid-area: nav; display: flex; gap: clamp(12px, 1.0417vw, 20px); }

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: minmax(0, 845fr) minmax(0, 775fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "card head"
      "card nav";
    column-gap: 48px;
  }
  .testimonials__head { text-align: right; }
  .testimonials__nav { align-self: end; justify-self: end; }
}

.testi-card {
  padding: clamp(28px, 3.125vw, 60px) clamp(22px, 2.0834vw, 40px) clamp(24px, 1.875vw, 36px);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.testi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.testi-card__quote {
  width: clamp(36px, 2.8021vw, 54px);
  height: clamp(27px, 2.0938vw, 40px);
  color: var(--blue);
}
.testi-card__stars { display: flex; gap: clamp(6px, 0.625vw, 12px); color: var(--star); }
.testi-card__stars svg { width: clamp(18px, 1.6667vw, 32px); height: clamp(17px, 1.5625vw, 30px); }

.testi-slides {
  display: grid;
  margin-top: clamp(24px, 2.3959vw, 46px);
}
.testi-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.testi-slide[hidden] { display: block; visibility: hidden; }
.testi-slide.is-active { opacity: 1; transform: none; visibility: visible; }
.testi-slide.is-leaving-back { transform: translateX(24px); }
.testi-slide.is-leaving { transform: translateX(-24px); }
.testi-slide blockquote p { line-height: 1.5; }
.testi-slide figcaption { margin-top: clamp(18px, 1.4584vw, 28px); }
.testi-slide__name {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.testi-slide__role {
  display: block;
  margin-top: 0.45em;
  font-style: italic;
  font-weight: 400;
}

.testi-avatars {
  display: flex;
  gap: clamp(6px, 0.4167vw, 8px);
  margin-top: clamp(28px, 2.5521vw, 49px);
}
.testi-avatar {
  --s: clamp(48px, 3.75vw, 72px);
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.35s;
}
.testi-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.testi-avatar:hover { transform: translateY(-3px); }
.testi-avatar:hover img,
.testi-avatar.is-active img { filter: none; }
.testi-avatar.is-active::after { opacity: 1; transform: none; }

/* ---------- 14. CTA ---------- */
.cta-wrap { padding-top: clamp(80px, 13.0209vw, 250px); }

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #fff;
  /* Blue background built in CSS: soft light glow top, deeper tone bottom-left */
  background:
    radial-gradient(45% 70% at 62% 6%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(40% 60% at 6% 105%, rgba(10, 50, 190, 0.35), transparent 70%),
    var(--blue);
}

/* Faint brand "S" watermark */
.cta__shape {
  position: absolute;
  z-index: -1;
  left: 2.4%;
  top: -18%;
  width: 82%;
  aspect-ratio: 418.4 / 396;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6.0417vw, 116px) calc(var(--gutter) - var(--bleed)) 0;
}
.cta__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.167;
  color: #fff;
}
.cta__text { margin-top: clamp(18px, 1.6667vw, 32px); font-weight: 400; }
.cta__content .btn { margin-top: clamp(28px, 2.7604vw, 53px); }

/* Van image (transparent WebP, van sits bottom-right) */
.cta__art {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  /* Mobile: larger than the card and shifted left so the whole van shows */
  width: 135%;
  margin: -16% 0 0 -26%;
  pointer-events: none;
  transition: transform 1.6s var(--ease) 0.15s, opacity 1s var(--ease) 0.15s;
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .cta__art { width: 100%; margin: -22% 0 0 0; }
}

/* Desktop: van anchored bottom-right behind the text */
@media (min-width: 1024px) {
  .cta {
    display: block;
    aspect-ratio: 1819 / 700;
    max-height: 700px;
  }
  .cta__content { max-width: 50%; }
  .cta__art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
  }
}

/* Van drives in from the right when the section appears */
@media (prefers-reduced-motion: no-preference) {
  .js .cta[data-reveal] .cta__art { opacity: 0; transform: translate3d(10%, 0, 0); }
  .js .cta[data-reveal].is-in .cta__art { opacity: 1; transform: none; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  padding: clamp(40px, 5.2084vw, 100px) 0 var(--bleed);
}
.site-footer__card {
  padding: clamp(44px, 5.2084vw, 100px) 0 clamp(40px, 7.1875vw, 138px);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 36px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 438fr) minmax(0, 363fr) minmax(0, 318fr) minmax(0, 501fr); gap: 32px 0; }
}

.footer-brand img { width: clamp(180px, 12.8125vw, 246px); }
.footer-brand p {
  max-width: 17em;
  margin-top: clamp(14px, 1.0417vw, 20px);
  font-size: var(--fs-sm);
  line-height: 1.78;
}

.footer-col__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue);
}
.footer-col address,
.footer-col p {
  margin-top: clamp(14px, 1.25vw, 24px);
  font-size: var(--fs-sm);
  line-height: 1.78;
}

.subscribe {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: clamp(14px, 1vw, 19px);
  padding: clamp(6px, 0.4167vw, 8px);
  padding-left: clamp(18px, 1.25vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: #fff;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.subscribe:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 110, 254, 0.12);
}
.subscribe.has-error { border-color: var(--danger); }
.subscribe__input {
  flex: 1;
  min-width: 0;
  height: clamp(40px, 2.6042vw, 50px);
  border: 0;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 300;
  outline: none;
}
.subscribe__input::placeholder { color: var(--muted); }
.subscribe__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: clamp(40px, 2.6042vw, 50px);
  padding: 0 clamp(16px, 1.0417vw, 20px);
  border-radius: var(--pill);
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 400;
  transition: background-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.subscribe__btn svg { width: 14px; height: 11px; transition: transform 0.45s var(--ease); }
.subscribe__btn:hover { background: var(--blue-600); box-shadow: 0 12px 24px -10px rgba(45, 110, 254, 0.7); }
.subscribe__btn:hover svg { transform: translateX(4px); }
.subscribe__msg {
  position: absolute;
  left: 24px;
  top: calc(100% + 8px);
  margin: 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
}
.subscribe__msg.is-error { color: var(--danger); }
.subscribe__msg.is-success { color: var(--success); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(48px, 4.0104vw, 77px);
  padding-top: clamp(24px, 1.9271vw, 37px);
  border-top: 2px solid var(--line-strong);
  font-size: var(--fs-sm);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 2.0834vw, 40px); }
.footer-links__link {
  font-weight: 400;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.4s var(--ease);
}
.footer-links__link:hover { color: var(--blue); background-size: 100% 1px; }

/* ---------- 16. Quote modal ---------- */
.modal {
  --mp: clamp(24px, 3vw, 48px); /* modal padding */
  width: min(760px, 100% - 24px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(17, 26, 51, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in 0.55s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.4s var(--ease); }
.modal.is-closing { animation: modal-out 0.28s var(--ease-in-out) forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.28s var(--ease-in-out) forwards; }

/* Panel no longer scrolls — only the form body does */
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 100px -30px rgba(17, 26, 51, 0.45);
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--soft-2); transform: rotate(90deg); }

/* Form view: header / scrollable body / footer */
.modal__view--form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.modal__head {
  flex: none;
  padding: var(--mp) var(--mp) 20px;
}
.modal__title {
  margin-top: 6px;
  padding-right: 48px;
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.modal__title:focus { outline: none; }
.modal__intro { margin-top: 10px; font-size: 1.0625rem; max-width: 46ch; }

.quote-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.quote-form__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 16px 20px;
  align-content: start;
  padding: 8px var(--mp) 24px;
  /* Scroll shadows: appear only when there is more content above/below */
  background:
    linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) top / 100% 28px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), #fff 70%) bottom / 100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(17, 26, 51, 0.14), transparent) top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(17, 26, 51, 0.14), transparent) bottom / 100% 12px no-repeat scroll;
  background-color: #fff;
}
@media (min-width: 600px) {
  .quote-form__body { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.quote-form__foot {
  flex: none;
  padding: 20px var(--mp) var(--mp);
  border-top: 1px solid var(--soft);
  background: #fff;
}

/* Fields */
.field { display: grid; gap: 6px; align-content: start; }
.field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.field__optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #dde2f0;
  border-radius: 12px;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232e2e2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field ::placeholder { color: var(--muted); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c5cde4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(45, 110, 254, 0.14);
}
.field.has-error input,
.field.has-error select { border-color: var(--danger); }
.field__error {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--danger);
}
.field__error:empty { display: none; }

/* Submit loading state */
.btn__spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; animation: spin 0.8s linear infinite; }

/* Success view */
.modal__view--success {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: calc(var(--mp) + 24px) var(--mp) var(--mp);
  text-align: center;
  overflow-y: auto;
}
.modal__view--success .modal__title { padding-right: 0; }
.modal__view--success .modal__intro { margin-bottom: 24px; }
.modal__view[hidden] { display: none; }
.success-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  color: var(--blue);
}
.success-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.8s var(--ease) 0.1s forwards; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s var(--ease) 0.6s forwards; }

html.modal-open { overflow: hidden; }