/* Home — brand front page (spokardent.cz /).
 *
 * A dedicated, photography-forward layout that deliberately departs from the PDP
 * look: no repeated olive packshot circles. Replicates the spokar.com
 * /pece-o-zuby/ aesthetic — white space, product photos on clean cards and a
 * three-up "why SPOKAR" block — built on the shared design tokens. Loaded only
 * on the front page (functions.php, is_front_page()). Olive stays a thin accent
 * (eyebrow rule, soft icon tile), never a dominant shape.
 */

/* ========== HOME HERO — centered headline + full-width product lineup ========== */

.home-hero {
  padding: clamp(7rem, 14vh, 9.5rem) 0 var(--section-py);
  text-align: center;
  overflow: hidden;
}

.home-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.home-hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  color: var(--slate);
  margin: 0;
}

.home-hero__perex {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--grey-600);
  max-width: 46ch;
  margin: 0;
}

.home-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Equal-width CTAs for visual symmetry — the icon makes the first button
 * naturally wider, so both share a min-width and centre their content. */
.home-hero__cta-row .btn {
  min-width: 14rem;
  justify-content: center;
}

.home-hero__awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1rem;
}

.home-hero__award {
  height: 3.25rem;
  width: auto;
}

/* Full-width product lineup — sits directly on the page white, no tinted panel
 * (the source webp is already on pure white, so it blends seamlessly). */
.home-hero__stage {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* The source webp is nearly square with ~15% white margin above and below the
 * brush row, which reads as an empty block. Crop it to a landscape band with
 * object-fit: cover — the trimmed strips fall entirely in the white margin, so
 * no brush is clipped, and the lineup fills the frame. */
.home-hero__stage img {
  width: 100%;
  max-width: 62rem;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .home-hero__award { height: 2.5rem; }
  .home-hero__awards { gap: 1.25rem; }
}

/* ========== SHOWCASE — product cards on white (replaces hardness olive circles) ========== */

.showcase {
  background: var(--white);
}

.showcase__head,
.usp__head {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.showcase__head h2,
.usp__head h2 {
  margin: 0;
}

.showcase__head .lead,
.usp__head .lead {
  margin: 0;
  max-width: 52ch;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* Resting shadow with --shadow-2's exact geometry but a transparent colour.
   * Transitioning box-shadow from `none` makes the browser grow the shadow from
   * zero size/opacity, so it visibly lags the image scale on hover. Starting from
   * the full geometry means only the colour fades in — the shadow appears in step
   * with the scale instead of arriving late. */
  box-shadow:
    0 6px 16px -6px rgba(30, 37, 43, 0),
    0 24px 48px -16px rgba(30, 37, 43, 0);
  transition:
    transform var(--t-base) var(--ease-out-quint),
    box-shadow var(--t-base) var(--ease-out-quint),
    border-color var(--t-base) var(--ease-out-quint);
}

.showcase-card:hover,
.showcase-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
  outline: none;
}

/* Showcase cards run their staggered entrance on a keyframe animation instead of
 * the shared reveal--stagger transition. The reveal rules leave a per-card
 * transition-delay (up to 400ms) and `.reveal--stagger.is-visible > :nth-child(n)`
 * (0,3,0) outranks `.showcase-card` (0,1,0), so the hover shadow/lift would inherit
 * that delay — making the drop shadow arrive late on every card but the first.
 * Driving the entrance with @keyframes keeps the stagger (and restores the opacity
 * fade the shared transition lost here) while leaving the card's transition free
 * for an instant, in-sync hover. `backwards` holds the start frame through the
 * delay but releases the transform afterwards, so the hover lift still works.
 * The (0,4,0) selector also zeroes the inherited transition-delay for good measure. */
.showcase__grid.reveal--stagger > .showcase-card {
  opacity: 0;
}
.showcase__grid.reveal--stagger.is-visible > .showcase-card {
  opacity: 1;
  transition-delay: 0s;
  animation: showcase-card-in var(--t-slow) var(--ease-out-quint) backwards;
}
.showcase__grid.reveal--stagger.is-visible > .showcase-card:nth-child(2) { animation-delay: 160ms; }
.showcase__grid.reveal--stagger.is-visible > .showcase-card:nth-child(3) { animation-delay: 320ms; }
.showcase__grid.reveal--stagger.is-visible > .showcase-card:nth-child(4) { animation-delay: 480ms; }
.showcase__grid.reveal--stagger.is-visible > .showcase-card:nth-child(5) { animation-delay: 640ms; }
.showcase__grid.reveal--stagger.is-visible > .showcase-card:nth-child(6) { animation-delay: 800ms; }

@keyframes showcase-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.showcase-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  overflow: hidden;
}

/* Absolutely filling the fixed 4/3 box (not a flex child with max-height:100%):
 * tall transparent packshots — e.g. the single-tuft SOLO brush — otherwise
 * ignore max-height against the aspect-ratio-derived height and blow the card
 * up to their full intrinsic height. object-fit + padding keeps every packshot
 * contained and centred regardless of its proportions. */
.showcase-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  transition: transform var(--t-base) var(--ease-out-quint);
}

.showcase-card:hover .showcase-card__media img {
  transform: scale(1.04);
}

.showcase-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1 1 auto;
}

.showcase-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0;
  letter-spacing: var(--tracking-tight);
}

.showcase-card__price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
}

.showcase-card__price del {
  color: var(--grey-500);
  font-weight: 400;
  margin-right: 0.4rem;
}

.showcase-card__caption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--grey-600);
  margin: 0.15rem 0 0;
}

.showcase-card__more {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
}

.showcase-card__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--t-base) var(--ease-out-quint);
}

.showcase-card:hover .showcase-card__more svg {
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .showcase__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .showcase__grid { grid-template-columns: 1fr; }
}

/* ========== USP — "Není kartáček jako kartáček" three-up ========== */

.usp {
  background: var(--grey-50);
}

.usp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
}

.usp-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usp-item__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--olive-soft);
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-item__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.usp-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0;
}

.usp-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-600);
  margin: 0;
}

@media (max-width: 768px) {
  .usp__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ========== Section seam fix (front page only) ========== */

/* On the home page the grey awards block sits directly above the olive e-shop
 * banner; the banner's default top margin left a thin white strip between the two
 * colour blocks. Drop it here (home.css loads only on the front page, so the PDP
 * keeps its spacing). */
.banner-eshop {
  margin-top: 0;
}
