/* The homepage uses its own section styles. The legacy layout stays on the interior pages. */
*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
h1, h2, h3, h4, p { margin-block: 0 .75rem; }
button, input, textarea { font: inherit; }
a { color: var(--brand-blue); text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.home-section { padding-block: var(--section-space); }
.home-section h2 { margin-bottom: .8rem; max-width: 24ch; }
.home-eyebrow {
  margin: 0 0 .45rem;
  color: var(--brand-red);
  font-size: .83rem;
  font-weight: 720;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.65rem;
}
.home-section-head h2, .home-section-head p:last-child { margin-bottom: 0; }
.text-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  color: var(--brand-blue);
  font-size: .9375rem;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.5rem, 5.2vw, 5rem);
  align-items: center;
}
.home-intro > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 1rem;
}
.home-intro p:not(.home-eyebrow) { max-width: 52ch; }
.home-intro-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: 1.05rem 0 1.35rem;
  padding: 0;
}
.home-intro-benefits li {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  border-radius: .5rem;
  padding: .36rem .65rem;
  font-size: .875rem;
}
.home-intro-benefits li::before { content: "✓"; color: var(--brand-red); font-weight: 750; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.home-actions > a { margin: 0; min-height: 46px; }

.home-services, .home-reviews { background: var(--brand-blue-light); }
.home-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2.2vw, 1.55rem); }
.home-service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--brand-blue-line);
  background: #fff;
  border-radius: .95rem;
  padding: .65rem;
}
.home-service-card > a, .home-service-card img { display: block; width: 100%; }
.home-service-card img { aspect-ratio: 1.7; height: auto; object-fit: cover; border-radius: .62rem; }
.home-service-copy { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: .85rem .65rem .6rem; }
.home-icon { display: inline-grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; background: #f8e8de; color: var(--brand-red); border-radius: .62rem; }
.home-service-copy .home-icon { margin: -1.75rem 0 .55rem; z-index: 1; border: 2px solid #fff; }
.home-service-copy h3, .home-service-copy p { margin-bottom: .55rem; }
.home-service-copy .text-action { margin-top: auto; }

.choose-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.choose-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: .65rem; padding: 0; margin: 1.15rem 0 0; }
.choose-benefits li { display: flex; align-items: flex-start; gap: .7rem; border: 1px solid var(--brand-blue-line); padding: .8rem; border-radius: .75rem; }
.choose-benefits h3 { font-size: 1.08rem; margin: .07rem 0 .25rem; }
.choose-benefits p { font-size: .94rem; margin: 0; }
.choose-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 15rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--brand-navy) url("../img/illustrations/moving-route.svg") center / cover;
}
.move-route {
  display: grid;
  width: min(100%, 25rem);
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #ffffff30;
  border-radius: 1rem;
  background: #092545e8;
  padding: 1.25rem .65rem 2.45rem;
}
.move-route-stop { display: grid; justify-items: center; gap: .35rem; color: #fff; font-size: .9rem; }
.move-route-stop > span { display: grid; place-items: center; width: 2.9rem; aspect-ratio: 1; border-radius: .75rem; background: #fff2e9; color: var(--brand-red); font-size: 1.22rem; }
.move-route-progress, .move-route-truck { position: absolute; bottom: 1rem; }
.move-route-progress { left: 16.67%; right: 16.67%; height: 1px; background: #d29885; }
.move-route-truck { left: 16.67%; display: grid; place-items: center; width: 66.66%; justify-content: start; height: 1.5rem; margin-bottom: -.67rem; color: #fff1eb; }
.move-route-truck .moving-icon { width: 1.6rem; height: 1.6rem; background: var(--brand-red); padding: .25rem; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .is-route-visible .move-route-truck { animation: finish-route 1.35s var(--ease-out) both; }
  @keyframes finish-route { to { transform: translateX(calc(100% - 1.6rem)); } }
}

.home-process { background: var(--surface-warm); }
.home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: .85rem; padding: 0; margin: 0; }
.home-steps li { position: relative; padding: 1.1rem; background: #fff; border: 1px solid #e9ded2; border-radius: .8rem; }
.home-steps h3 { margin: .75rem 0 .35rem; font-size: 1.15rem; }
.home-steps p { margin: 0; font-size: .94rem; }
.step-number { position: absolute; top: 1rem; right: 1rem; color: var(--brand-red); font-weight: 700; font-variant-numeric: tabular-nums; }

.home-stats { padding-block: clamp(2rem, 4vw, 3.1rem); }
.home-stats h2 { font-size: clamp(1.45rem, 2.55vw, 2.1rem); margin-bottom: 1rem; }
.home-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.home-stat-grid > div { display: flex; flex-direction: column-reverse; min-width: 0; padding: .95rem; border-radius: .75rem; background: var(--brand-blue-light); }
.home-stat-grid dd { margin: 0; color: var(--brand-navy); font-weight: 760; font-variant-numeric: tabular-nums; font-size: clamp(1.35rem, 3.5vw, 2.8rem); line-height: 1.18; }
.home-stat-grid dt { font-size: .9rem; margin-top: .22rem; }
.home-help { padding-block: 1rem; }
.home-help-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: clamp(1.4rem, 3.8vw, 3rem); background: var(--brand-navy) url("../img/illustrations/moving-route.svg") right center / auto 150% no-repeat; border-radius: .95rem; }
.home-help h2 { color: #fff; margin: 0; }
.home-help .home-eyebrow { color: #ffceb9; }

.home-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.4rem) / 4); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding: .1rem .1rem .65rem; scrollbar-color: #abc1d7 transparent; }
.home-rail > * { min-width: 0; scroll-snap-align: start; }
.home-project { display: flex; flex-direction: column; overflow: hidden; color: var(--brand-navy); background: #fff; border: 1px solid var(--brand-blue-line); border-radius: .8rem; }
.home-project img { width: 100%; aspect-ratio: 1.3; object-fit: cover; height: auto; background: var(--brand-blue-light); }
.home-project span { padding: .65rem .75rem; font-weight: 650; font-size: .9rem; }
.home-project:hover span { text-decoration: underline; }
.rail-controls { display: flex; gap: .4rem; }
.rail-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--brand-blue-line); border-radius: .6rem; background: #fff; color: var(--brand-blue); }
.rail-controls button:hover { background: var(--brand-blue); color: #fff; }
.rail-controls button:active { transform: scale(.97); }
.home-gallery-link { margin-top: .85rem; }
.review-rail { grid-auto-columns: calc((100% - 1.6rem) / 3); }
.home-review { background: #fff; border: 1px solid var(--brand-blue-line); border-radius: .8rem; padding: 1.15rem; }
.home-review h3 { font-size: 1.13rem; margin: 0; }
.review-location { margin-bottom: .65rem; color: var(--brand-red); font-size: .86rem; font-weight: 650; }
.home-review > p:last-child { margin: 0; }

.home-faq-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 4.5vw, 4rem); align-items: start; }
.home-callback { overflow: hidden; border: 1px solid var(--brand-blue-line); border-radius: .95rem; background: var(--surface-warm); }
.home-callback-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(4.25rem, 9vw, 8rem);
  align-items: center;
  gap: .65rem;
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
  color: #e5edf9;
  background: var(--brand-navy);
}
.home-callback-header h2 { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.28rem, 2.1vw, 1.8rem); }
.home-callback-header p { margin: 0; font-size: .875rem; line-height: 1.45; }
.home-callback-header img { width: 100%; height: auto; }
.home-callback-body { container-type: inline-size; padding: clamp(1rem, 2.1vw, 1.4rem); }
.home-callback .move-form fieldset { grid-template-columns: minmax(0,1fr); gap: .6rem .7rem; }
.home-callback .form-control { display: block; width: 100%; }
.home-callback textarea.form-control { height: 4.4rem; min-height: 4.4rem; }
@container (min-width: 320px) {
  .home-callback .move-form fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-clients { background: var(--surface-warm); }
.home-client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: .7rem; }
.home-client-grid li { display: grid; place-items: center; min-height: 5rem; background: #fff; border-radius: .65rem; padding: .65rem; border: 1px solid #ede2d6; }
.home-client-grid img { width: auto; height: auto; max-height: 3.7rem; object-fit: contain; }

#toTop { position: fixed; cursor: pointer; }

@media (max-width: 930px) {
  .home-rail, .review-rail { grid-auto-columns: calc((100% - .8rem) / 2); }
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choose-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .home-intro, .choose-layout, .home-faq-layout { grid-template-columns: 1fr; }
  .home-services-grid, .home-stat-grid, .home-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section-head { align-items: flex-start; flex-wrap: wrap; }
  .home-rail, .review-rail { grid-auto-columns: 82%; }
  .choose-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .home-services-grid { grid-template-columns: 1fr; }
  .choose-benefits { grid-template-columns: 1fr; }
  .home-steps li { padding: .75rem; }
  .step-number { top: .75rem; right: .75rem; }
  .home-intro img { aspect-ratio: 1.6; }
}
