/*
 * The home page's structure (lib/native/pages/home.ts): layout, backgrounds
 * and behaviour. Sizes, spacing and type are measured from the captured page
 * and live in gen/home.css, loaded after this file.
 */

/* ---- Hero ---- */
.z-hero {
  background: #1e0a36 url(/assets/img/ee7e9ceabb34-q55e4.avif?v=cb6842ddac) center / cover no-repeat;
  overflow: hidden;
}
.z-hero__copy,
.z-hero__picker,
.z-cards {
  display: block;
}

/* ---- Carousels (behaviour in site.js, structure in site.css): five to a view ---- */
.z-carousel__slide {
  width: calc((100% - 40px) / 5);
}
/* Five to a view the cards fill their slide; one to a view (768px and down)
 * each keeps its own size at most, centred, as Swiper drew them (at 768px
 * that is 712px in a 738px strip). */
@media (min-width: 769px) {
  .z-carousel__slide img { width: 100%; }
}
/* One card to a view up to 768px; at 769px the old Swiper already showed five. */
@media (max-width: 768px) {
  .z-cards .z-carousel__slide { width: 100%; }
  .z-cards .z-carousel__slide img { margin: 0 auto; }
}

.z-team__carousel .z-carousel__track {
  align-items: center;
  column-gap: 35px;
}
.z-team__carousel .z-carousel__slide {
  width: calc((100% - 35px) / 2);
}
@media (max-width: 768px) {
  .z-team__carousel .z-carousel__slide { width: 100%; }
}
.z-team__carousel {
  transition: transform 0.3s;
}
.z-team__carousel:hover {
  transform: scale(1.01);
}

/* ---- Pains: three columns, two per row from 768 to 1280px, one on phones ---- */
.z-pains__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.z-pain__col {
  display: flex;
  width: calc(100% / 3);
}
@media (max-width: 1280px) {
  .z-pain__col { width: 50%; }
}
@media (max-width: 767px) {
  .z-pain__col { width: 100%; }
}
.z-pain {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
}
.z-pain__icon {
  display: block;
  line-height: 0;
}
.z-pain__icon svg {
  display: inline-block;
}
.z-pain__title {
  width: 100%;
}
@media (max-width: 1280px) {
  .z-pains__row { justify-content: flex-start; }
}
@media (min-width: 391px) {
  .z-pain__icon { margin-bottom: 20px; }
}
/* Phones up to 390px: the drawing below the words, as Elementor's mobile layout had it. */
@media (max-width: 390px) {
  .z-pain { flex-direction: column-reverse; }
  .z-pain__icon { margin-top: 20px; }
}


/* ---- Photo statement: the sparkle above the heading, as the old page drew it ---- */
.z-photo__title {
  position: relative;
}
.z-photo__title::before {
  content: '';
  position: absolute;
  left: -10px;
  top: -70px;
  width: 36px;
  height: 46px;
  background-image: url(/wp-content/uploads/2026/04/star.svg);
}
@media (min-width: 768px) and (max-width: 1024px) {
  .z-photo__title::before { top: -60px; }
}
@media (max-width: 769px) {
  .z-photo__title::before { top: -50px; }
}
.z-photo {
  position: relative;
  background: url(/assets/img/d9331717d664-q55e4.avif?v=013ca9f88e) center / auto no-repeat;
}
/* Up to 769px the old page drew the shop owner's photo over the blurred
 * background, on the box around the text (measured in gen/home.css); from
 * 770px the photo is part of the wide background image itself. From 391 to
 * 769px the old photo also zoomed in as the visitor scrolled (Elementor's
 * scroll scale, 1 to 1.1): site.js sets --z-zoom, clipped by the box. */
.z-photo__owner {
  display: none;
}
@media (max-width: 769px) {
  .z-photo__owner {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
  }
  .z-photo__zoom {
    position: absolute;
    inset: 0;
    background: url(/assets/img/fb35f18d4fc1-q55e4.avif?v=ae34cbb486) 0 0 / cover no-repeat;
  }
  .z-photo__row {
    position: relative;
  }
}
@media (min-width: 391px) and (max-width: 769px) {
  .z-photo__zoom {
    transform: scale(var(--z-zoom, 1));
    transition: transform 1s cubic-bezier(0, 0.33, 0.07, 1.03);
  }
}
@media (max-width: 1280px) {
  .z-photo { background-position: top center; }
}

/* ---- One brief in: both columns share one grid cell, each placed by its
 * measured width and left edge (gen/home.css); stacked on phones. ---- */
.z-brief__row {
  display: grid;
  align-items: center;
}
.z-brief__row > * {
  grid-area: 1 / 1;
}
@media (max-width: 767px) {
  .z-brief__row { display: block; }
}
.z-brief__lead {
  border-left-style: solid;
}
.z-steps li {
  background: url(/wp-content/uploads/2026/03/icon.svg) no-repeat left 10px;
  border-bottom-style: solid;
  margin-bottom: 18px;
}
@media (max-width: 767px) {
  .z-steps li { background-position: left 5px; }
}
.z-steps strong {
  display: inline;
}
.z-brief__art svg {
  /* Inline, as on the old page: the line box adds the same space under it. */
  display: inline;
  vertical-align: baseline;
  width: 100%;
  height: auto;
}

/* 391 to 769px: the old pain section kept 10px more below its cards. */
@media (min-width: 391px) and (max-width: 769px) {
  .z-pains__row { margin-bottom: 10px; }
}

/* Phones: the drawing under the steps' scan box is hidden (owner,
 * 2026-11-06: "remove items for mobile"; its small screens cannot be read
 * at phone width, and at 390px and narrower it touched the box, audit
 * item 2). The box, the section's last thing, gets 48px below it before
 * the next section. */
@media (max-width: 767px) {
  .z-brief__art { display: none; }
  .z-brief__picker { margin-bottom: 48px; }
}

/* 391 to 767px: the old photo heading's top gap grew with the width (a
 * percentage padding); measured at 391, 420, 480, 545, 600, 700 and 767px,
 * it is 6.31% of the width plus 26.6px. Above gen/home.css by specificity. */
@media (min-width: 391px) and (max-width: 767px) {
  .z-page--home .z-photo { padding-top: calc(6.31% + 26.6px); }
}

/* Text contrast on the photo statement (audit item 20, 2026-11-03): white
 * text was 4.48:1 on the photo's brightest part. The photo is darkened a
 * little, under the text and the owner's photo. */
.z-photo { isolation: isolate; }
.z-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(13, 4, 24, 0.14); }
/* On phones the text sits on the owner's photo, drawn over the background: the same darkening. */
.z-photo__owner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(13, 4, 24, 0.14); }
