/* Flowersstore — hero banner (tokens in theme.css).
 * Scroll entrance: root `data-cs-scroll-reveal` + `.reveal` on children — theme.css + components/js/animation.js */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--theme-hero-text);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transform-origin: center center;
  animation: heroKenburns 26s ease-out forwards;
}

@keyframes heroKenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    transform: scale(1.06);
    animation: none;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--theme-text) 72%, transparent) 0%, color-mix(in srgb, var(--theme-text) 40%, transparent) 42%, color-mix(in srgb, var(--theme-text) 10%, transparent) 70%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-text) 50%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--theme-text) 45%, transparent) 100%);
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 840px;
  padding-block: 120px;
}

.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  font-weight: 500;
  line-height: 1.06;
  margin: 0.25em 0 0.7em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__title em { display: inline-block; margin-top: 0.04em; font-style: italic; font-weight: 400; color: var(--theme-surface-raised); }

.hero__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  max-width: 540px;
  color: var(--theme-hero-text-muted);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__rating {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.86rem; color: var(--theme-hero-text-muted);
  margin-bottom: 1.4rem;
}

@media (min-width: 641px) {
  .hero__rating {
    margin-top: 2.5rem;
  }
}
.hero__rating .stars { color: var(--theme-star); }

.hero__assure {
  display: flex; align-items: center; gap: 0.9em; flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.9rem; color: var(--theme-hero-text-soft);
}
.hero__assure-sep { opacity: 0.5; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 1px; height: 56px; overflow: hidden;
  z-index: 4;
}
.hero__scroll-line {
  display: block; width: 1px; height: 100%;
  background: var(--theme-hero-scroll-line);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.marquee {
  background: var(--theme-coffee);
  color: var(--theme-surface-high);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
  border-block: 1px solid var(--theme-hero-marquee-border);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 28px;
  font-family: var(--theme-font-display); font-style: italic;
  font-size: 1.3rem;
  animation: marquee 28s linear infinite;
}
.marquee__track .dot { color: var(--theme-primary); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--theme-font-family);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    color 0.35s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    border-color 0.35s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform 0.35s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  white-space: nowrap;
}

.hero .btn:hover {
  transform: translateY(-2px);
}

.hero .btn:active {
  transform: translateY(0);
}

.hero .btn--solid {
  background-color: var(--theme-coffee);
  color: var(--theme-surface);
}

.hero .btn--outline-light {
  background-color: transparent;
  border-color: var(--theme-hero-btn-border);
  color: var(--theme-hero-text);
}

.hero .btn--solid:hover {
  background-color: var(--theme-secondary);
}

.hero .btn--outline-light:hover {
  background-color: var(--theme-surface);
  color: var(--theme-coffee);
  border-color: var(--theme-surface);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}
