/* ============================================================
   He-She Hudson — Visual Effects & Animations
   ============================================================ */

/* ── HTML Smooth Scroll ──────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Scroll Progress Bar ─────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e8192c 0%, #ff6b35 40%, #e8192c 100%);
  background-size: 200% 100%;
  /* Below the Mi Pedido panel (z-index: 9999999) but above normal content */
  z-index: 9000;
  animation: pgGradient 2.5s linear infinite;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(232,25,44,0.7), 0 0 4px rgba(255,107,53,0.5);
  pointer-events: none;
}

@keyframes pgGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Grain Texture Overlay ───────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Hero Animated Blobs ─────────────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-blob--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232,25,44,0.20) 0%, transparent 70%);
  top: -150px;
  right: -80px;
  animation: blobFloat1 14s ease-in-out infinite;
}

.hero-blob--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,107,53,0.14) 0%, transparent 70%);
  bottom: 0;
  left: 8%;
  animation: blobFloat2 18s ease-in-out infinite;
}

.hero-blob--3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232,25,44,0.11) 0%, transparent 70%);
  top: 35%;
  left: 50%;
  animation: blobFloat1 10s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(45px, -40px) scale(1.07); }
  66%       { transform: translate(-30px, 28px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-38px, -28px) scale(1.06); }
  70%       { transform: translate(24px, 32px) scale(0.94); }
}

/* ── Hero Dot Grid ───────────────────────────────────────── */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 80% 50%, rgba(0,0,0,0.7) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 80% 50%, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* ── Hero Scan Lines ─────────────────────────────────────── */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(232,25,44,0.15) 40%, rgba(232,25,44,0.15) 60%, transparent 100%);
  animation: scanLine 8s linear infinite;
}

.hero-lines::before { top: 28%; animation-delay: 0s; }
.hero-lines::after  { top: 68%; animation-delay: -4s; }

@keyframes scanLine {
  0%   { transform: translateX(-100%); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* ── Fix hero bg transform (JS-controlled parallax) ──────── */
.hero-modern__bg {
  transform: scale(1.12) !important;
  transition: none !important;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: #111;
  border-top: 1px solid rgba(232,25,44,0.12);
  border-bottom: 1px solid rgba(232,25,44,0.12);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.03), transparent);
  animation: statsBgPulse 4s ease-in-out infinite;
}

@keyframes statsBgPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.stats-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  flex-direction: column;
  text-align: center;
  transition: background var(--transition, 0.3s ease);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: rgba(232,25,44,0.04); }

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  line-height: 1;
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #e8192c;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.stat-suffix {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #e8192c;
  line-height: 1;
}

.stat-text-big {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #e8192c;
  line-height: 1;
  letter-spacing: 0.04em;
}

.stat-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin-top: 0.3rem;
}

@media (max-width: 767px) {
  .stat-item {
    width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1rem;
  }
  .stat-num { font-size: 2rem; }
  .stat-text-big { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .stat-item { width: 100%; }
}

/* ── Marquee Ticker ──────────────────────────────────────── */
.marquee-ticker {
  background: #e8192c;
  padding: 0.7rem 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-ticker::before,
.marquee-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #e8192c 20%, transparent 100%);
}

.marquee-ticker::after {
  right: 0;
  background: linear-gradient(-90deg, #e8192c 20%, transparent 100%);
}

.marquee-ticker__track {
  display: inline-flex;
  align-items: center;
  animation: marqueeRoll 35s linear infinite;
  will-change: transform;
}

.marquee-ticker:hover .marquee-ticker__track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: 'Raleway', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 0 0.4rem;
  flex-shrink: 0;
}

.marquee-sep {
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  padding: 0 0.9rem;
  flex-shrink: 0;
}

@keyframes marqueeRoll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Floating WhatsApp Button ────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.55);
  z-index: 1001;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.float-wa.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.float-wa:hover {
  background: #1ebe5d;
  transform: scale(1.12) translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
  color: white;
}

.float-wa__pulse,
.float-wa__pulse2 {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  pointer-events: none;
}

.float-wa__pulse  { inset: -8px;  animation: waPulse 2.5s ease-out infinite; }
.float-wa__pulse2 { inset: -18px; animation: waPulse 2.5s ease-out infinite 0.9s; }

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-wa__tip {
  position: absolute;
  right: 74px;
  background: #1a1a1a;
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.float-wa__tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
}

.float-wa.visible:hover .float-wa__tip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scroll-to-top Button ────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2.15rem;
  width: 42px;
  height: 42px;
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(232,25,44,0.3);
  border-radius: 50%;
  color: #e8192c;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top-btn:hover {
  background: #e8192c;
  color: white;
  border-color: #e8192c;
  box-shadow: 0 4px 20px rgba(232,25,44,0.5);
  transform: translateY(-3px) !important;
}

/* ── Card Shine (sweep on hover) ─────────────────────────── */
.featured-card {
  position: relative;
  overflow: hidden;
}

.featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(255,255,255,0.07) 50%,
    transparent 65%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 4;
}

.featured-card:hover::after {
  animation: cardShine 0.65s ease-out forwards;
}

@keyframes cardShine {
  0%   { left: -130%; }
  100% { left: 160%; }
}

/* ── Nav Link Underline Slide ────────────────────────────── */
.main_menu .nav-link {
  position: relative;
}

.main_menu .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #e8192c;
  transition: width 0.3s ease;
}

.main_menu .nav-link:not(.dropdown-toggle):hover::after {
  width: 55%;
}

/* ── Hero title gradient on em ───────────────────────────── */
.hero-modern__title em {
  background: linear-gradient(90deg, #e8192c 0%, #ff6b35 45%, #ff293b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientShift 4s ease-in-out infinite;
}

@keyframes textGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Ripple Effect (injected via JS) ─────────────────────── */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transform: scale(0);
  animation: rippleExpand 0.65s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleExpand {
  to { transform: scale(2.8); opacity: 0; }
}

/* ── Why card accent bar on hover ───────────────────────── */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e8192c;
  border-radius: 1px;
  transition: width 0.4s ease;
}

.why-card:hover::after { width: 70%; }

/* ── Review card decorative quote mark ───────────────────── */
.review-card {
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 0.9rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(232,25,44,0.07);
  pointer-events: none;
  font-weight: 600;
  user-select: none;
}

/* ── Promo banner dot grid decoration ───────────────────── */
.promo-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.promo-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232,25,44,0.22) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.9;
}

/* ── Hero badge icon micro-animation ────────────────────── */
.hero-badge:nth-child(1) i { animation: iconBounce 3s ease-in-out infinite 0s; }
.hero-badge:nth-child(2) i { animation: iconBounce 3s ease-in-out infinite 1s; }
.hero-badge:nth-child(3) i { animation: iconBounce 3s ease-in-out infinite 2s; }

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-3px) scale(1.15); }
}

/* ── Section label line entrance ────────────────────────── */
.section-label::before {
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

/* ── Featured card 3D tilt (JS adds inline transform) ───── */
.featured-card {
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), box-shadow 0.45s ease, border-color 0.3s ease !important;
}

/* ── Glow pulse on promo tags ────────────────────────────── */
.promo-tag:hover {
  background: rgba(232,25,44,0.2);
  border-color: rgba(232,25,44,0.45);
  box-shadow: 0 0 12px rgba(232,25,44,0.25);
}

/* ── Info card icon pop ──────────────────────────────────── */
.info-card:hover .info-card__icon {
  background: #e8192c;
  color: white;
  transition: all 0.3s ease;
}

/* ── Footer social icon glow ────────────────────────────── */
.footer-social a:hover {
  box-shadow: 0 0 14px rgba(232,25,44,0.5);
}

/* ── Product card price glow ─────────────────────────────── */
.single_blog_item:hover .price b,
.single_blog_item:hover .price {
  color: #c8101f !important;
  transition: color 0.3s ease;
}

/* ── Category filter pill active bounce ──────────────────── */
.category-filter__btn.active {
  animation: pillPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pillPop {
  0%   { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ── Loading shimmer on dark sections ────────────────────── */
.section-dark .section-label,
.section-mid .section-label {
  position: relative;
}

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 767px) {
  .float-wa {
    width: 54px;
    height: 54px;
    font-size: 1.55rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-top-btn {
    bottom: 5.8rem;
    right: 1.6rem;
  }

  .float-wa__tip { display: none; }

  .hero-blob--1 { opacity: 0.06; }
  .hero-blob--2 { opacity: 0.05; }
  .hero-blob--3 { display: none; }
}
