/* ═══════════════════════════════════════════════════════════════════════════
   MotoMagic — Premium Homepage Hero  (css/premium-hero.css)
   Additive only. Enhances existing .hero / .cat-grid markup. No JS touched.
   Load AFTER app.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero: more breathing room, premium depth ──────────────────────────────*/
.hero {
  min-height: min(90vh, 840px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}

/* Ambient red glow — low and behind the headline, kept off the photo */
.hero .hero-glow {
  background:
    radial-gradient(52% 46% at 30% 58%, rgba(227,6,19,.16) 0%, transparent 72%),
    radial-gradient(34% 34% at 18% 38%, rgba(255,32,32,.07) 0%, transparent 66%);
  filter: blur(6px);
}
/* Vignette + gentle bottom fade so the hero seats cleanly into the trust bar */
.hero .hero-vignette {
  background:
    linear-gradient(180deg, transparent 60%, rgba(5,5,5,.55) 100%),
    radial-gradient(132% 108% at 50% 0%, transparent 58%, rgba(5,5,5,.6) 100%);
}

/* ── Hero content: refined type hierarchy & spacing ────────────────────────*/
.hero-content { max-width: 640px; }

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m, var(--font-b, sans-serif));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #d0d0d0;
  padding: 8px 15px;
  border-radius: 99px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line, rgba(255,255,255,.09));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  margin-bottom: 26px;
  animation: heroFade .6s var(--ease, cubic-bezier(.22,1,.36,1)) both;
}
.hero-content .eyebrow svg { color: var(--red, #E30613); flex: 0 0 auto; }

.hero-content h1 {
  font-family: var(--font-d, sans-serif);
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: clamp(-2.4px, -.16vw, -1.2px);
  margin: 0 0 22px;
  text-wrap: balance;
  animation: heroRise .7s var(--ease, cubic-bezier(.22,1,.36,1)) .08s both;
}
.hero-content h1 .dim { color: var(--gray-dim, #6b6b6b); font-weight: 800; }
.hero-content h1 .rd  { color: var(--red, #E30613); }

.hero-content .sub {
  font-size: clamp(15.5px, 1.55vw, 18.5px);
  line-height: 1.62;
  color: #b6b6b6;
  max-width: 500px;
  margin: 0 0 36px;
  text-wrap: pretty;
  animation: heroRise .7s var(--ease, cubic-bezier(.22,1,.36,1)) .16s both;
}

/* ── CTA buttons: stronger presence, premium hover ─────────────────────────*/
.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: heroRise .7s var(--ease, cubic-bezier(.22,1,.36,1)) .24s both;
}
.hero-btns .btn {
  transition: transform .2s var(--ease), box-shadow .28s, background .2s, border-color .2s, color .2s;
}

/* Primary — dominant */
.hero-btns .btn-red {
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(180deg, #F5121F, var(--red, #E30613));
  box-shadow: 0 12px 34px -10px rgba(227,6,19,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-btns .btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -12px rgba(227,6,19,.72), inset 0 1px 0 rgba(255,255,255,.22);
}
.hero-btns .btn-red:active { transform: translateY(0); }
.hero-btns .btn-red svg { transition: transform .22s var(--ease); }
.hero-btns .btn-red:hover svg { transform: translateX(4px); }

/* Secondary — elegant glass */
.hero-btns .btn-ghost {
  padding: 15px 26px;
  font-size: 15px;
  border: 1px solid var(--line2, rgba(255,255,255,.16));
  background: rgba(255,255,255,.045);
}
.hero-btns .btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.075);
}
.hero-btns .btn-ghost:active { transform: translateY(0); }

/* Tertiary — quiet link with an animated underline */
.hero-btns .btn-text {
  position: relative;
  color: var(--gray, #A0A0A0);
  padding: 15px 8px;
}
.hero-btns .btn-text::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 10px;
  height: 1.5px;
  background: var(--red, #E30613);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease, cubic-bezier(.22,1,.36,1));
}
.hero-btns .btn-text:hover { color: var(--white, #fff); }
.hero-btns .btn-text:hover::after { transform: scaleX(1); }
.hero-btns .btn:focus-visible { outline: 2px solid var(--accent, #FF2020); outline-offset: 3px; }

/* ── Hero stats: premium divider style ─────────────────────────────────────*/
.hero-stats {
  display: flex;
  gap: 44px;
  animation: heroFade .8s var(--ease, cubic-bezier(.22,1,.36,1)) .34s both;
}
.hero-stats .hstat { position: relative; }
.hero-stats .hstat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line, rgba(255,255,255,.08));
}
.hero-stats .hstat b {
  display: block;
  font-family: var(--font-d, sans-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
}
.hero-stats .hstat b em { color: var(--red, #E30613); font-style: normal; }
.hero-stats .hstat span {
  font-size: 11.5px;
  letter-spacing: .3px;
  color: var(--gray-dim, #6b6b6b);
  margin-top: 6px;
  display: block;
}

/* ── Scroll hint: gentle float ─────────────────────────────────────────────*/
.scroll-hint {
  animation: heroFade 1s ease 1s both, scrollBob 2.4s ease-in-out 1.2s infinite;
}

/* ── Trust strip: premium cards ────────────────────────────────────────────*/
.trustbar {
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 85%);
}
.trustbar .wrap { gap: 14px; padding-top: 26px; padding-bottom: 26px; }
.trustbar .trust {
  gap: 13px;
  padding: 15px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  font-size: 13.5px;
  font-weight: 600;
  color: #d0d0d0;
  transition: transform .26s var(--ease, cubic-bezier(.22,1,.36,1)),
              border-color .26s, background .26s, box-shadow .26s, color .26s;
}
.trustbar .trust:hover {
  transform: translateY(-3px);
  border-color: rgba(227,6,19,.3);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.016));
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.9);
  color: #fff;
}
.trustbar .trust .ic {
  width: 40px; height: 40px; border-radius: 11px;
  color: var(--red, #E30613);
  transition: transform .26s var(--ease, cubic-bezier(.22,1,.36,1)), background .26s, border-color .26s;
}
.trustbar .trust:hover .ic {
  transform: scale(1.06);
  background: rgba(227,6,19,.14);
  border-color: rgba(227,6,19,.4);
}

/* ── Category cards: premium tiles ─────────────────────────────────────────*/
/* Structural layout (position/display/flex/aspect-ratio/background/border/
   radius) is owned by css/images.css's .cat-card rule — this block only adds
   non-conflicting hover/glow/z-index polish so the two files don't fight
   over the same properties (was previously duplicated here). */
.cat-grid { gap: 14px; }

.cat-card {
  transition: transform .2s var(--ease, cubic-bezier(.22,1,.36,1)),
              border-color .2s, box-shadow .2s;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(227,6,19,.12), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227,6,19,.35);
  box-shadow: 0 20px 46px -20px rgba(0,0,0,.75);
}
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-ic {
  font-size: 30px;
  transition: transform .28s var(--ease);
  position: relative;
  z-index: 1;
}
.cat-card:hover .cat-ic { transform: scale(1.14) translateY(-2px); }
.cat-card .cat-nm {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 14px;
}
.cat-card:focus-visible { outline: 2px solid var(--red, #E30613); outline-offset: 3px; }

/* ── Animations ────────────────────────────────────────────────────────────*/
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scrollBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow, .hero-content h1, .hero-content .sub,
  .hero-btns, .hero-stats, .scroll-hint { animation: none !important; }
  .cat-card:hover, .hero-btns .btn:hover,
  .trustbar .trust:hover, .trustbar .trust:hover .ic { transform: none; }
  .marquee { animation: none !important; }
}

/* ── Mobile ────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .hero { min-height: 78vh; }
  .hero-content h1 { letter-spacing: -1px; }
  .hero-stats { gap: 28px; }
  .hero-stats .hstat:not(:last-child)::after { right: -14px; }
  .hero-stats .hstat b { font-size: 22px; }
  .hero-btns { gap: 10px; margin-bottom: 34px; }
  .hero-btns .btn-red, .hero-btns .btn-ghost { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .hero-stats { gap: 20px; }
  /* The current EN/AL headline runs longer than the old copy — trim the floor
     size slightly on the narrowest phones so it settles into two clean lines
     instead of wrapping awkwardly to three. MK (shorter) is unaffected either way. */
  .hero-content h1 { font-size: clamp(34px, 10vw, 46px); }
}

/* ── Brand / value strip: seamless, edge-faded, hover-pause ─────────────────*/
.marquee-wrap {
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee { animation-duration: 42s; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee span { color: #464646; transition: color .35s; }
.marquee-wrap:hover .marquee span { color: #565656; }
.marquee i { box-shadow: 0 0 10px rgba(227,6,19,.5); }

/* ── Trust cards responsive ────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .trustbar .wrap { padding-top: 20px; padding-bottom: 20px; }
  .trustbar .trust { padding: 13px 14px; font-size: 13px; }
  .trustbar .trust .ic { width: 36px; height: 36px; }
}
