/* Redesigned homepage (src/index.njk). Loaded only where the page sets homeAssets and scoped by
   the home-v2 body class, so no other route is affected. It sits on top of the landing-page system
   (lp.css, seo-page.css) and uses the same dark palette. Bump business.versions.homeCss in
   src/_data/business.json when this file changes. */

/* ---------- icons ---------- */

.home-v2 .hv-ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero: headline ---------- */

/* The split hero's column is narrow at 1024 to 1279px; a slightly smaller headline keeps it to two lines. */
@media (min-width: 1024px) {
  .home-v2 .lp-hero-split h1 { font-size: clamp(42px, 4vw, 56px); }
}
.home-v2 .lp-answer { text-wrap: balance; }

/* ---------- hero: brand slider and picker ---------- */

.home-v2 .hv-stage { width: 100%; }
.home-v2 .hv-case[hidden] { display: none; }
.home-v2 .hv-case:not([hidden]) { animation: hv-fade 0.4s ease; }
@keyframes hv-fade { from { opacity: 0; } to { opacity: 1; } }
.home-v2 .hv-case .seo-ba { margin: 0; }
.home-v2 .hv-case-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 12px;
  color: #9aa0ab;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.home-v2 .hv-case-caption a { color: #fff; text-underline-offset: 3px; }
.home-v2 .hv-case-caption a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-v2 .hv-brands-panel { margin-top: 22px; text-align: left; }
.home-v2 .hv-brands-hint { margin: 0 0 12px; color: #c7cbd4; font-size: 15px; }
.home-v2 .hv-brands-static { margin: 14px 0 0; color: #c7cbd4; font-size: 16px; }
.home-v2 .hv-brand-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.home-v2 .hv-brand-list[hidden] { display: none; }
.home-v2 .hv-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #090a0c;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.home-v2 .hv-brand-logo { width: 100%; max-width: 46px; height: 30px; object-fit: contain; }
.home-v2 .hv-brand:hover { border-color: rgba(255, 255, 255, 0.55); }
.home-v2 .hv-brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-v2 .hv-brand[aria-selected="true"] { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }

/* ---------- location ---------- */

.home-v2 #location { padding-top: 40px; }

/* ---------- pickup and delivery ---------- */

.home-v2 .hv-pickup-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 40px 40px;
  background: radial-gradient(120% 90% at 50% 0%, #15171b 0%, #0b0c0e 62%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
}

.home-v2 .hv-pickup-head { max-width: 680px; margin: 0 auto; text-align: center; }
.home-v2 .hv-pickup-head h2 { margin: 0; }
.home-v2 .hv-pickup-head p { margin: 14px 0 0; color: #c7cbd4; font-size: 18px; line-height: 1.55; text-wrap: balance; }

.home-v2 .hv-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.home-v2 .hv-step { display: flex; flex-direction: column; align-items: center; text-align: center; }

.home-v2 .hv-step-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #141518;
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.03);
  color: #fff;
}

.home-v2 .hv-step-ico .hv-ico { width: 32px; height: 32px; }

.home-v2 .hv-step h3 { margin: 0 0 8px; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.home-v2 .hv-step p { max-width: 250px; margin: 0; color: #c7cbd4; font-size: 15.5px; line-height: 1.55; text-wrap: balance; }

.home-v2 .hv-step-arrow { display: flex; align-items: center; justify-content: center; height: 76px; color: #4b4f58; }
.home-v2 .hv-step-arrow .hv-ico { width: 20px; height: 20px; }
.home-v2 .hv-step-number { margin: -4px 0 8px; color: #c7cbd4; font-size: 12px; }

.home-v2 .hv-pickup-note {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9aa0ab;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.home-v2 .hv-pickup-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- services ---------- */

.home-v2 .hv-services .lp-section-head { max-width: 760px; }

.home-v2 .hv-group-title {
  margin: 38px 0 14px;
  color: #8b909c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: none;
  text-align: left;
}

.home-v2 .hv-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-v2 .hv-svc {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 20px;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.home-v2 .hv-svc:hover { border-color: rgba(255, 255, 255, 0.5); background: #121418; transform: translateY(-2px); }
.home-v2 .hv-svc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.home-v2 .hv-svc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #15171b;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-v2 .hv-svc-ico .hv-ico { width: 26px; height: 26px; }
.home-v2 .hv-svc:hover .hv-svc-ico { background: #fff; color: #050607; }

.home-v2 .hv-svc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-v2 .hv-svc-title { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.home-v2 .hv-svc-text { color: #aeb3bf; font-size: 15px; line-height: 1.5; text-wrap: balance; }
.home-v2 .hv-svc-cta { margin-top: 2px; color: #fff; font-size: 14px; font-weight: 500; }
.home-v2 .hv-svc-cta span { display: inline-block; transition: transform 0.2s ease; }
.home-v2 .hv-svc:hover .hv-svc-cta span { transform: translateX(4px); }

.home-v2 .hv-services-note { max-width: 760px; margin: 34px auto 0; color: #aeb3bf; font-size: 16px; line-height: 1.55; text-align: center; text-wrap: balance; }
.home-v2 .hv-services-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- why choose us ---------- */

.home-v2 .hv-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
}

.home-v2 .hv-why-media { position: relative; }
.home-v2 .hv-why-media .shop-photo { height: 100%; display: flex; flex-direction: column; }
.home-v2 .hv-why-media .shop-picture { flex: 1; display: block; min-height: 360px; border-radius: 20px; }
.home-v2 .hv-why-media .shop-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.home-v2 .hv-why-ratings {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-v2 .hv-why-ratings .rating-chip {
  background: rgba(5, 6, 7, 0.74);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-v2 .hv-why-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.home-v2 .hv-why-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-v2 .hv-why-item:hover { border-color: rgba(255, 255, 255, 0.4); background: #121418; }

.home-v2 .hv-why-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: #050607;
}

.home-v2 .hv-why-ico .hv-ico { width: 24px; height: 24px; }
.home-v2 .hv-why-item h3 { margin: 0 0 6px; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.25; }
.home-v2 .hv-why-item p { margin: 0; color: #c7cbd4; font-size: 16px; line-height: 1.55; text-wrap: balance; }

/* ---------- about the shop and our work: photo slider ---------- */

.home-v2 .hv-story { padding-bottom: 24px; }

.home-v2 .hv-story-slider { position: relative; max-width: 1100px; margin: 0 auto; }

.home-v2 .hv-story-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
}

.home-v2 .hv-story-viewport::-webkit-scrollbar { display: none; }
.home-v2 .hv-story-viewport:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.home-v2 .hv-slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
  scroll-snap-align: start;
}

/* On wide screens the photo takes the right two thirds, a taller frame than a full-width banner, so portrait
   photos keep their subject; the shade below blends it into the dark text side. */
.home-v2 .hv-slide-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; }

/* The photo fills the slide. photos.css gives the frame a 4:3 box and keeps portraits whole (contain);
   here every photo is a background, so it covers. */
.home-v2 .hv-slide-bg .shop-picture[data-shop-photo] { height: 100%; aspect-ratio: auto; border-radius: 0; background: #0b0c0e; }
.home-v2 .hv-slide-bg .shop-picture[data-photo-fit] img { object-fit: cover; }
.home-v2 .hv-slide-bg .shop-picture img { transform: scale(1.02); transition: transform 6s ease-out; }
.home-v2 .hv-slide:hover .hv-slide-bg img { transform: scale(1.06); }

/* The darkening that keeps the text readable on any photo: solid on the text side, fading out. */
.home-v2 .hv-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 1) 0%, rgba(11, 12, 14, 0.97) 34%, rgba(11, 12, 14, 0.72) 52%, rgba(11, 12, 14, 0.25) 78%, rgba(11, 12, 14, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.55) 0%, rgba(5, 6, 7, 0) 38%);
}

.home-v2 .hv-slide-copy { position: relative; max-width: 560px; padding: 56px 56px 72px; }

.home-v2 .hv-slide-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.home-v2 .hv-slide-copy p { margin: 0; color: #e1e3e8; font-size: 18px; line-height: 1.6; text-wrap: pretty; }

.home-v2 .hv-slide-copy p + p { margin-top: 16px; }

.home-v2 .hv-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 22px;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-v2 .hv-slide-link span { display: inline-block; transition: transform 0.2s ease; }
.home-v2 .hv-slide-link:hover span { transform: translateX(4px); }
.home-v2 .hv-slide-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px; }

.home-v2 .hv-slide-caption {
  position: absolute;
  right: 28px;
  bottom: 22px;
  max-width: 46%;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.home-v2 .hv-story-controls {
  position: absolute;
  left: 56px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-v2 .hv-story-controls[hidden] { display: none; }

.home-v2 .hv-story-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(5, 6, 7, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-v2 .hv-story-arrow:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.home-v2 .hv-story-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.home-v2 .hv-story-dots { display: flex; align-items: center; gap: 2px; }

/* The dot is small to look at but the button around it is 44px to tap. */
.home-v2 .hv-story-dot {
  position: relative;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.home-v2 .hv-story-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.home-v2 .hv-story-dot[aria-current="true"]::before { width: 24px; background: #fff; }
.home-v2 .hv-story-dot:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 8px; }

/* ---------- scroll reveal ---------- */

/* home-v2.js adds .hv-reveal only to blocks that start below the fold, then .is-in as they scroll into
   view. Without the script, or with reduced motion, nothing is hidden. */
.home-v2 .hv-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--hv-delay, 0ms), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--hv-delay, 0ms);
}

.home-v2 .hv-reveal.is-in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */

/* The stacked hero has no side gutter at phone widths; the slider keeps its own. */
@media (max-width: 1023px) {
  .home-v2 .hv-stage { padding: 0 16px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .home-v2 .hv-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 20px; }
  .home-v2 .hv-step { flex: 0 0 calc((100% - 40px) / 3); }
  .home-v2 .hv-step-arrow { display: none; }
}

@media (min-width: 992px) and (max-width: 1100px) {
  .home-v2 .hv-pickup-card { padding-right: 24px; padding-left: 24px; }
  .home-v2 .hv-steps { column-gap: 6px; }
  .home-v2 .hv-step h3 { font-size: 18px; }
  .home-v2 .hv-step p { font-size: 15px; }
}

@media (max-width: 991px) {
  .home-v2 .hv-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-v2 .hv-why-grid { grid-template-columns: minmax(0, 1fr); }
  .home-v2 .hv-why-media .shop-picture { min-height: 0; }
  .home-v2 .hv-why-media .shop-picture img { aspect-ratio: 4 / 3; height: auto; }
}

@media (max-width: 767px) {
  /* Match the shared landing hero action at this breakpoint in every section. */
  .home-v2 .primary-button { padding: 14px 18px; font-size: 17px; white-space: nowrap; gap: 18px; }
  .home-v2 .primary-button .item-icon-right { margin-left: 0; }
  .home-v2 .hv-brand-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-v2 .hv-brand { min-height: 52px; }

  .home-v2 .hv-pickup-card { padding: 36px 22px 28px; border-radius: 22px; }
  .home-v2 .hv-pickup-head p { font-size: 16.5px; }
  .home-v2 .hv-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 32px; }
  .home-v2 .hv-step-arrow { height: 36px; }
  .home-v2 .hv-step-arrow .hv-ico { transform: rotate(90deg); }

  .home-v2 .hv-svc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-v2 .hv-svc { padding: 16px; gap: 14px; }
  .home-v2 .hv-why-item { padding: 18px; gap: 14px; }

  .home-v2 .hv-story-viewport { border-radius: 22px; }
  .home-v2 .hv-slide { align-items: flex-end; min-height: 600px; }
  .home-v2 .hv-slide-bg { width: 100%; }
  .home-v2 .hv-slide-shade {
    background: linear-gradient(0deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.88) 46%, rgba(5, 6, 7, 0.3) 82%, rgba(5, 6, 7, 0.12) 100%);
  }
  .home-v2 .hv-slide-copy { max-width: none; padding: 72px 22px 92px; }
  .home-v2 .hv-slide-copy p { font-size: 16.5px; }
  .home-v2 .hv-slide-caption { top: 16px; right: 18px; bottom: auto; max-width: 70%; font-size: 13px; }
  .home-v2 .hv-story-controls { left: 12px; bottom: 16px; gap: 6px; }
  .home-v2 .hv-why-ratings { top: 12px; left: 12px; right: 12px; }
}

@media (max-width: 359px) {
  .home-v2 .hv-brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 .hv-reveal { opacity: 1; transform: none; transition: none; }
  .home-v2 .hv-slide-bg .shop-picture img,
  .home-v2 .hv-slide-link span,
  .home-v2 .hv-story-dot::before { transition: none; }
  .home-v2 .hv-slide:hover .hv-slide-bg img { transform: scale(1.02); }
  .home-v2 .hv-case:not([hidden]) { animation: none; }
  .home-v2 .hv-svc,
  .home-v2 .hv-svc-cta span { transition: none; }
  .home-v2 .hv-svc:hover { transform: none; }
}
