/* Homepage T01 (spec §4): hero slider, icon boxes, parallax band, winter tiles, product sections. */

/* ---------- Hero slider (C10)
   Desktop 622px (measured on the reference). The headline and CTA are live text in .hero__content (they
   used to be baked into the image and were cropped on narrow screens). Image treatment is per slide
   (inline object-fit / object-position from content.home.slides). The controls are positioned against
   .hero itself: previous on the left, next on the right, vertically centred; the text area is padded
   by the arrow zone so it can never sit under an arrow. On phones the arrows and dots form one row below
   the text instead. */
.hero {
  --hero-arrow: 44px; --hero-edge: clamp(8px, 1.8vw, 24px); --hero-arrow-zone: calc(var(--hero-arrow) + 2 * var(--hero-edge));
  /* Text padding = only the part of the arrow zone not already covered by the margin outside the
     1300px container, so on wide screens the headline lines up with the logo/content edge. */
  --hero-text-inset: max(var(--gutter), calc(var(--hero-arrow-zone) - max(0px, (100vw - var(--container)) / 2)));
  position: relative; height: 622px; overflow: hidden; background: #E9E9E9;
}
.hero__track { display: flex; height: 100%; transition: transform .5s ease; touch-action: pan-y; }
.hero__slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.hero__link { position: relative; display: block; height: 100%; color: inherit; }
.hero__link:hover { color: inherit; }
.hero__link:focus-visible { outline-offset: -4px; } /* .hero clips outside outlines */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.hero__content {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center;
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--hero-text-inset) 56px;
}
.hero__box { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.2vw, 32px); max-width: 100%; }
.hero__title {
  font-family: var(--f-arial); font-size: clamp(1.75rem, .9rem + 4.4vw, 4.5rem); line-height: 1.04; font-weight: 900;
  letter-spacing: .01em; text-transform: uppercase; color: #1F1F1F; overflow-wrap: break-word; max-width: min(100%, 11em); /* long headlines wrap instead of crossing the artwork */
}
.hero__text { font-family: var(--f-georgia); font-size: clamp(1rem, .85rem + .7vw, 1.5rem); line-height: 1.35; color: #444; }
.hero__cta {
  display: inline-block; padding: .9em 2.1em; background: var(--c-primary-bright-aa); color: #fff;
  font-family: var(--f-georgia); font-size: clamp(.875rem, .72rem + .5vw, 1.25rem); line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  transition: background var(--t-fast);
}
.hero__link:hover .hero__cta { background: var(--c-heading-dark); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 3; width: var(--hero-arrow); height: var(--hero-arrow); transform: translateY(-50%);
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--c-heading-dark);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .18); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast);
}
.hero__arrow--prev { left: var(--hero-edge); }
.hero__arrow--next { right: var(--hero-edge); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: #fff; color: var(--c-primary-aa); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.hero__dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C5C5C5; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hero__dot[aria-current="true"]::before { background: var(--c-primary-bright); }
@media (prefers-reduced-motion: reduce) { .hero__track { transition: none; } }

/* Tablet: shorter band, same layout */
@media (max-width: 1024px) {
  .hero { height: clamp(440px, 55vw, 560px); }
}
/* Phones: text on a light panel (legible over any part of the artwork), controls in one row underneath */
@media (max-width: 767px) {
  .hero { --hero-edge: 12px; height: clamp(380px, 112vw, 460px); }
  .hero__content { align-items: center; padding: 0 16px 76px; }
  .hero__box { padding: 18px 20px 20px; border-radius: 10px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 18px rgba(15, 23, 42, .12); }
  .hero__arrow { top: auto; bottom: 14px; transform: none; }
  .hero__dots { bottom: 24px; }
}

/* ---------- Trust icon boxes (C11) */
.icon-boxes { padding: 60px 0; }
.icon-boxes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-box { display: flex; align-items: center; gap: 15px; padding: 10px var(--gutter); }
.icon-box__icon { flex: none; width: 50px; height: 50px; color: var(--c-primary-bright); }
.icon-box__icon svg { width: 50px; height: 50px; }
.icon-box__title {
  margin: 0 0 14px; font-family: var(--f-poppins); font-size: clamp(1.25rem, 1.0795rem + .852vw, 1.625rem); line-height: 1.3; font-weight: 600; /* 20 → 26px */
  color: var(--c-iconbox-title);
}
.icon-box__text { margin: 0; font-family: var(--f-arial); font-size: 16px; line-height: 26.4px; color: var(--c-text); }

/* ---------- Parallax band (C12): photo + dark overlay + angled dividers */
.parallax {
  position: relative; height: 532px; background-color: #555;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.parallax__shape { position: absolute; left: 0; width: 100%; height: 40px; z-index: 1; }
.parallax__shape--top { top: -1px; }
.parallax__shape--bottom { bottom: -1px; }
.parallax__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
@media (hover: none) { .parallax { background-attachment: scroll; } }

/* ---------- Product + collection sections */
.home-section { padding: 64px 0; }
.home-section .product-grid { margin-top: 95px; }
.home-section__more { margin-top: 80px; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 70px; padding: 0 var(--gutter); }
.tile { margin: 0; padding: 0 10px; }
.tile__media { aspect-ratio: 853 / 1024; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { margin-top: 24px; font-family: var(--f-arial); font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #2b2b2b; text-align: center; }
.tiles__cta { margin-top: 30px; text-align: center; }
.tiles__cta .btn { padding: 15px 24px; font-family: var(--f-arial); font-weight: 400; }

@media (max-width: 1024px) {
  .icon-boxes__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; } /* provisional */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 767px) {
  .icon-box { align-items: flex-start; }
  .parallax { height: 400px; }
  .home-section { padding: 50px 0; }
  .home-section .product-grid { margin-top: 50px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
