/* =====================================================================
   PEPPERELL · HERO BLOCK (Carousel Mosaic)
   Scoped under .pep-hero so it can't bleed into the rest of your site.
   Brand tokens are duplicated at the root of the block for portability.
   ===================================================================== */

.pep-hero {
  /* Brand tokens — edit here if you want different colours */
  --orange:      #FA5425;
  --orange-dark: #D14820;
  --lavender:    #DFACE5;
  --cream:       #FFECD3;
  --cream-soft:  #FFF5E3;
  --taupe:       #967D66;
  --ink:         #1A1614;
  --ink-2:       #4D4641;
  --line:        #E6DFD4;
  --line-strong: #C9BFB1;
  --star:        #E89D2F;
  --paper:       #fffaf2;
  --f-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --f-body: 'Zilla Slab', Georgia, serif;
  --f-accent: 'Market Pro', cursive;

  position: relative;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  padding-block: 24px 22px;
  -webkit-font-smoothing: antialiased;
}
.pep-hero__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  grid-template-rows: 1fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
}
.pep-hero *,
.pep-hero *::before,
.pep-hero *::after { box-sizing: border-box; }
.pep-hero h1, .pep-hero p, .pep-hero ul, .pep-hero li { margin: 0; padding: 0; }
.pep-hero ul { list-style: none; }
.pep-hero a { color: inherit; text-decoration: none; }
.pep-hero button { background: 0; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.pep-hero img { display: block; max-width: 100%; }

/* ────── LEFT · copy column ────── */
.pep-hero__copy {
  position: relative; z-index: 2; min-height: 0;
  display: flex; flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.pep-hero__copy > .pep-hero__trust { margin-top: clamp(8px, 1vw, 14px); }
.pep-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 0;
}
.pep-hero__eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--orange);
}
.pep-hero__h {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 0;
}
.pep-hero__h em {
  font-family: var(--f-accent); font-style: normal; font-weight: 400;
  font-size: 1.18em; color: var(--orange); line-height: 0.85;
}
.pep-hero__lede {
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  color: var(--ink-2); max-width: 40ch; margin-bottom: 0;
}
.pep-hero__cta-row {
  display: inline-flex; gap: 12px; align-items: center; margin-bottom: 0;
}
.pep-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--orange);
  cursor: pointer; line-height: 1;
  transition: background .2s, border-color .2s, transform .2s;
  text-decoration: none;
}
.pep-hero__btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
}
.pep-hero__secondary {
  font-family: var(--f-head); font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 4px; text-decoration: none;
}
.pep-hero__secondary::after { content: "→"; transition: transform .2s; }
.pep-hero__secondary:hover::after { transform: translateX(3px); }

.pep-hero__trust {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(8px, 1vw, 10px) clamp(10px, 1.4vw, 14px);
  background: var(--cream); border-radius: 12px;
  font-family: var(--f-head); font-size: clamp(10.5px, .85vw, 12px);
  color: var(--ink-2);
  min-width: 0;
}
.pep-hero__trust > span { white-space: nowrap; min-width: 0; }
.pep-hero__trust b { color: var(--ink); font-weight: 700; }
.pep-hero__trust .pep-hero__trust-div {
  flex: 0 0 1px; height: 14px; background: var(--taupe); opacity: 0.4;
}
@media (max-width: 720px) {
  .pep-hero__trust { flex-wrap: wrap; }
}
.pep-hero__stars { color: var(--star); letter-spacing: 1px; }

/* ────── RIGHT · mosaic (1 main + 2 side tiles) ────── */
.pep-hero__mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 470px;
  min-width: 0;
}
.pep-hero__main {
  grid-row: 1 / span 2;
  position: relative;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(26,22,20,.10);
  background: #fff;
}

/* carousel internals */
.pep-hero__track {
  position: absolute; inset: 0;
  display: flex;
  transition: transform .7s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .pep-hero__track { transition: none; }
}
.pep-hero__slide {
  flex: 0 0 100%;
  position: relative;
}
.pep-hero__slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.pep-hero__slide-controls {
  position: absolute; left: 16px; top: 16px; right: 16px;
  z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
}
.pep-hero__slide-tag {
  background: rgba(26,22,20,.85); color: var(--cream);
  font-family: var(--f-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

.pep-hero__slide-overlay {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 10px;
}
.pep-hero__slide-info {
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: 12px; max-width: 70%;
}
.pep-hero__slide-eyebrow {
  font-family: var(--f-head); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-dark);
}
.pep-hero__slide-name {
  font-family: var(--f-head); font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1.2; margin: 3px 0;
}
.pep-hero__slide-meta {
  font-family: var(--f-head); font-size: 12px; color: var(--ink-2);
}
.pep-hero__slide-meta b { color: var(--ink); font-weight: 700; }
.pep-hero__slide-buy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff;
  box-shadow: 0 6px 14px rgba(250,84,37,.32);
  border: 0; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.pep-hero__slide-buy:hover {
  background: var(--orange-dark);
  transform: scale(1.05);
}
.pep-hero__slide-buy svg { width: 18px; height: 18px; }

/* dots — minimal underline pills inside an ink scrim for legibility on any image.
   Anchored top-right to stay clear of the slide-info card at the bottom. */
.pep-hero__dots {
  position: absolute; top: 16px; right: 16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  background: rgba(26, 22, 20, .48);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pep-hero__dots { background: rgba(26, 22, 20, .62); }
}
.pep-hero__dots .pep-hero__dot {
  width: 14px; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 0; padding: 0; cursor: pointer;
  transition: width .32s cubic-bezier(.4, 0, .2, 1),
              background .2s ease;
}
.pep-hero__dots .pep-hero__dot[aria-current="true"] {
  background: var(--orange);
  width: 36px;
}
.pep-hero__dots .pep-hero__dot:hover { background: #fff; }
.pep-hero__dots .pep-hero__dot[aria-current="true"]:hover { background: var(--orange); }
.pep-hero__dots .pep-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* side tiles */
.pep-hero__side {
  position: relative; border-radius: 16px; overflow: hidden;
  display: block;
  min-height: 0;
}
.pep-hero__side-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.pep-hero__side:hover .pep-hero__side-img {
  transform: scale(1.04);
}
.pep-hero__side-eyebrow {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--f-head); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
}
.pep-hero__side-eyebrow--lav { background: var(--lavender); }
.pep-hero__side-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,.95);
  padding: 6px 10px; border-radius: 10px;
  font-family: var(--f-head); font-size: 11px;
}
.pep-hero__side-tag b {
  display: block; font-weight: 700; color: var(--ink); margin-bottom: 1px;
}
.pep-hero__side-tag span { color: var(--ink-2); font-size: 10px; }

/* ────── RESPONSIVE ────── */
@media (max-width: 960px) {
  .pep-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .pep-hero__h { font-size: clamp(36px, 8vw, 52px); }
  .pep-hero__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 140px;
    min-height: 0;
  }
  .pep-hero__main { grid-row: 1; grid-column: 1 / span 2; }
}
@media (max-width: 480px) {
  .pep-hero { padding-block: 20px; }
  .pep-hero__h { font-size: 36px; }
  .pep-hero__mosaic { grid-template-rows: 240px 120px; gap: 8px; }
  .pep-hero__trust { font-size: 11px; padding: 8px 10px; gap: 8px; }
  .pep-hero__slide-info { max-width: 75%; padding: 8px 10px; }
  .pep-hero__slide-name { font-size: 14px; }
}
