/* ==========================================================================
   Home page sections.
   ========================================================================== */

/* Hero: purple panel with the logo's hanger drawn large, image beside it.
   This panel is the one bold move on the page; everything else stays quiet. */
.hero { padding: 0; position: relative; }
.hero:focus-visible { outline-offset: -4px; }
.hero__track {
  display: flex; list-style: none; padding: 0; margin: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(520px, 72vh, 760px);
  background: var(--color-primary);
}
.hero__panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: var(--space-2xl) var(--gutter) var(--space-2xl) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  color: var(--color-white);
}
.hero__hanger {
  position: absolute; width: 140%; left: -8%; top: -6%;
  fill: none; stroke: color-mix(in srgb, var(--color-white) 9%, transparent);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.hero__copy { position: relative; max-width: 30rem; }
.hero__script {
  font-family: var(--font-accent); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  line-height: 1; color: var(--color-accent); margin-bottom: var(--space-xs);
}
.hero__title { color: var(--color-white); font-size: var(--step-5); line-height: 1.04; }
.hero__text {
  margin-top: var(--space-m); font-size: var(--step-1); font-weight: 300;
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-l); }
.hero__media { position: relative; }
.hero__media picture { display: block; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Slider controls (also used by the promo banners) */
.hero__controls { position: absolute; left: 0; right: 0; bottom: var(--space-m); pointer-events: none; }
.slider-controls { display: inline-flex; align-items: center; gap: var(--space-2xs); pointer-events: auto; }
.slider-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  color: var(--color-white); border: 1.5px solid color-mix(in srgb, var(--color-white) 55%, transparent);
  background: color-mix(in srgb, var(--color-primary-dark) 40%, transparent);
  transition: background-color .2s var(--ease);
}
.slider-btn:hover { background: var(--color-white); color: var(--color-primary); }
.slider-dots { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0 var(--space-3xs); }
.slider-dot { position: relative; width: 24px; height: 44px; display: grid; place-items: center; }
.slider-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-white) 45%, transparent);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.slider-dot.is-active::before { background: var(--color-white); transform: scale(1.3); }
.slider-controls :focus-visible { outline-color: var(--color-white); }

/* One orchestrated entrance on load, nothing else animates on its own. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: hero-in .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__hanger { animation: hanger-in 1.6s var(--ease) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hanger-in { from { opacity: 0; transform: translateY(-24px) rotate(-3deg); } }

@media (max-width: 899px) {
  .hero__slide { grid-template-columns: 1fr; min-height: 0; }
  .hero__controls { bottom: var(--space-s); }
  .hero__media { order: -1; aspect-ratio: 4 / 5; max-height: 62vh; }
  .hero__panel { padding: var(--space-xl) var(--gutter) calc(var(--space-xl) + 44px); }
  .hero__hanger { width: 120%; top: -18%; }
}

/* Why Sigal -------------------------------------------------------------- */
.why-us__list {
  display: grid; gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.why-us__item { display: grid; gap: var(--space-2xs); align-content: start; }
.why-us__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill);
  background: var(--color-bg); color: var(--color-accent-dark); margin-bottom: var(--space-2xs);
}
.why-us__item h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 500; color: var(--color-primary); }
.why-us__item p { color: var(--color-muted); }

/* Category tiles ----------------------------------------------------------- */
.tiles {
  display: grid; gap: var(--space-m); list-style: none; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 44%), 1fr));
}
.tile { display: grid; gap: var(--space-xs); text-decoration: none; justify-items: center; }
.tile__img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--color-surface); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile__name { font-family: var(--font-heading); font-size: var(--step-2); color: var(--color-primary); }
@media (hover: hover) { .tile:hover .tile__img img { transform: scale(1.05); } .tile:hover .tile__name { color: var(--color-accent-dark); } }

/* Tabs --------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-bottom: var(--space-l); }
.tabs__item {
  padding: .45em 1.1em; border-radius: var(--radius-pill); text-decoration: none;
  border: 1.5px solid var(--color-line-strong); font-weight: 500; font-size: var(--step--1);
}
.tabs__item:hover { border-color: var(--color-primary); }
.tabs__item[aria-current] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

/* Promo pair and wide banner ------------------------------------------------ */
.pair { display: grid; gap: var(--space-m); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 699px) { .pair { grid-template-columns: 1fr; } }
.wide { position: relative; }
.wide__track { display: flex; list-style: none; padding: 0; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wide__track::-webkit-scrollbar { display: none; }
.wide__slide { flex: 0 0 100%; position: relative; scroll-snap-align: start; scroll-snap-stop: always; background: var(--color-primary); }
.wide__img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }
.wide__slide picture { display: block; }
.wide__text {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: var(--space-xs);
  padding-bottom: 44px;
}
.wide__text h2 { color: inherit; font-size: var(--step-4); max-width: 18ch; }
.wide__text p { color: inherit; max-width: 44ch; }
.wide .hero__controls { bottom: var(--space-2xs); }

/* Gallery strip -------------------------------------------------------------- */
.strip {
  display: flex; gap: var(--space-xs); list-style: none; padding: 0 var(--gutter) var(--space-2xs); margin: 0;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.strip li { flex: 0 0 min(260px, 62vw); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-s); }

/* Polish: fade-in on scroll for a few blocks, motion only when the visitor allows it ---- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (hover: hover) {
  .why-us__item:hover .why-us__icon { background: var(--color-blush); }
  .strip a:hover img { opacity: .9; }
}
.strip img { transition: opacity .3s var(--ease); }
.why-us__icon { transition: background-color .3s var(--ease); }
