/* ============================================================
   Anoli Art — hero.css
   Feature hero: synchronized text + product-card carousel
   Mobile-first. Left copy changes in sync with the card.
   ============================================================ */

.hero-feat {
  background: var(--bg-1);
  overflow: hidden;
}

/* --- layout shell --- */
.hf-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 22px 52px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
/* On mobile the left group's children flatten into the flex column
   so the card can sit between the copy and the controls. */
.hf-left { display: contents; }

.hf-text     { order: 1; }
.hf-media    { order: 2; }
.hf-controls { order: 3; }
.hf-cta-wrap { order: 4; }

/* --- copy --- */
.hf-text {
  transition: opacity .42s ease, transform .55s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.hf-eyebrow { margin-bottom: 16px; }
.hf-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--primary);
  font-size: clamp(38px, 11.5vw, 78px);
  line-height: 1.015;
  letter-spacing: .004em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hf-h1 em { font-style: italic; color: var(--garnet); }
.hf-lede {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 460px;
}

/* --- product card --- */
.hf-media {
  transition: opacity .42s ease, transform .55s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.hf-card {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 64px -36px rgba(40,20,10,.6);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease;
}
.hf-card:hover { transform: translateY(-4px); box-shadow: 0 44px 80px -38px rgba(40,20,10,.66); }

.hf-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold-soft);                                  /* ink — JS overrides */
  background: linear-gradient(150deg, #7A1B2A, #3A0C14);    /* JS overrides */
  transition: background .6s ease, color .6s ease;
}
.hf-card-img::before {                                       /* soft sheen */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 92% at 28% 16%, rgba(255,255,255,.18), transparent 56%);
}
.hf-card-img::after {                                        /* hairline frame */
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid currentColor;
  opacity: .26;
}
.hf-card-label {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: .02em;
  color: currentColor;
  opacity: .82;
}

.hf-card-foot { padding: 19px 22px 21px; }
.hf-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.1;
  color: var(--primary);
}
.hf-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
}
.hf-card-cat {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hf-card-price { font-size: 15px; color: var(--ink); }

/* --- carousel controls --- */
.hf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hf-arrow {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--primary);
  display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s;
}
.hf-arrow:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.hf-arrow:active { transform: scale(.94); }
.hf-counter {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-soft);
  min-width: 58px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hf-counter b { color: var(--primary); font-weight: 500; }
.hf-dots {
  display: flex;
  gap: 9px;
  margin-left: 4px;
}
.hf-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--hairline);
  transition: background .35s, width .35s;
}
.hf-dot.active { background: var(--gold-deep); width: 22px; }

/* --- crossfade state --- */
.hero-feat[data-hf-fading] .hf-text,
.hero-feat[data-hf-fading] .hf-media {
  opacity: 0;
  transform: translateY(12px);
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 880px) {
  .hf-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 72px;
    padding: 78px 40px 88px;
    min-height: 78vh;
  }
  .hf-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hf-cta-wrap { order: 3; margin-top: 34px; }
  .hf-controls { order: 4; margin-top: 44px; justify-content: flex-start; }
  .hf-card { margin: 0; max-width: 500px; }
  .hf-card-img { aspect-ratio: 4 / 3; }
  .hf-h1 { font-size: clamp(50px, 5vw, 80px); margin-bottom: 24px; }
  .hf-lede { font-size: 17px; }
  .hf-card-name { font-size: 26px; }
  .hf-card-label { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-text, .hf-media, .hf-card { transition: none; }
}
