/* ===================================
   FIRED UP BBQ - Hero Section Styles
   =================================== */

/* Hero Section Container */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: -70px;
    padding-top: 110px;
    min-height: 90vh;
  }
}

@media (max-width: 576px) {
  .hero-section {
    margin-top: -80px;
    padding-top: 110px;
  }
}

.hero-section.scrolled::after {
  opacity: 0;
  animation: none;
}

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@media (min-width: 769px) {
  .hero-bg-image {
    will-change: transform;
  }

  .hero-bg-image.parallax {
    transform: translateY(var(--parallax-y, 0));
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Hero Logo Background */
.hero-logo-bg {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 70%;
  height: 70%;
  background: url('https://storage.googleapis.com/kws-clientele/Fired%20Up%20BBQ/Logos/fired-up-skull-600-v5.png')
    no-repeat center center;
  background-size: contain;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Smoke Overlay Effect */
.smoke-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.3) 0%,
    rgba(28, 28, 28, 0.5) 40%,
    rgba(28, 28, 28, 0.7) 70%,
    rgba(28, 28, 28, 0.85) 100%
  );
  z-index: -1;
}

.smoke-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.smoke-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Hero Content */
.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 1;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .hero-content {
    max-width: 1100px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(214, 105, 30, 0.2);
  border: 1px solid var(--ember-orange);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-round);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease-out 0.2s both;
}

@media (max-width: 576px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-badge-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--white);
}

.hero-badge-divider {
  color: var(--ember-orange);
}

/* Hero Title */
.hero-title {
  margin-bottom: 1.5rem;
  animation: heroTitleReveal 1s ease-out 0.3s both;
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title-top {
  display: block;
  font-family: var(--accent-font);
  font-size: clamp(2rem, 4vw, 3rem);
  color: black;
  margin-bottom: -0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideRight 1s ease-out 0.4s both;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title-main {
  display: block;
  font-size: clamp(4rem, 8vw, 7rem);
  text-transform: uppercase;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffb347;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3), 4px 4px 8px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 140, 66, 0.2);
}

@media (max-width: 576px) {
  .hero-title-main {
    letter-spacing: 0;
  }
}

/* Title Wrapper for Positioning */
.hero-title-wrapper {
  position: relative;
  display: inline-block;
}

/* Logo Divider - Bouncy Looney Tunes Style */
.hero-logo-divider {
  position: absolute;
  bottom: -90%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: clamp(4.25rem, 8.5vw, 7rem);
  height: auto;
  opacity: 0;
  animation: bouncyPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s both;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  z-index: 10;
}

@keyframes bouncyPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0) translateY(20px);
  }
  50% {
    transform: translateX(-50%) scale(1.2) translateY(-5px);
  }
  70% {
    transform: translateX(-50%) scale(0.9) translateY(2px);
  }
  85% {
    transform: translateX(-50%) scale(1.05) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-logo-divider {
    bottom: -98%;
  }
}

@media (max-width: 768px) {
  .hero-logo-divider {
    bottom: -100%;
    width: clamp(4.25rem, 12vw, 6.5rem);
  }
}

.hero-title-bottom {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideLeft 1s ease-out 1s both;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  animation: fadeIn 1s ease-out 0.6s both;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.7s both;
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

/* Hero Trust Badges */
.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.8s both;
}

@media (max-width: 576px) {
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.trust-badge {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.trust-badge:hover {
  transform: translateY(-5px);
  background: rgba(214, 105, 30, 0.2);
  border-color: var(--ember-orange);
}

.badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ember-orange);
  font-family: var(--heading-font);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.badge-label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

/* Smoke Particles Animation */
.smoke-particle {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: floatSmoke 25s infinite;
  pointer-events: none;
}

@media (max-width: 576px) {
  .smoke-particle {
    width: 100px;
    height: 100px;
  }
}

.smoke-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.smoke-2 {
  top: 50%;
  right: 10%;
  animation-delay: 7s;
  animation-duration: 22s;
}

.smoke-3 {
  bottom: 20%;
  left: 50%;
  animation-delay: 14s;
  animation-duration: 25s;
}

@keyframes floatSmoke {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    transform: translate(100px, -150px) scale(1.5) rotate(180deg);
    opacity: 0.2;
  }
  90% {
    opacity: 0;
  }
}

/* Fire Glow Effect */
.hero-section::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(
    ellipse at center,
    rgba(214, 105, 30, 0.3) 0%,
    rgba(178, 34, 34, 0.2) 30%,
    transparent 70%
  );
  filter: blur(40px);
  animation: fireGlow 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes fireGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Scroll Indicator */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-section::after {
    bottom: 80px;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

/* Loading Animation */
.hero-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--ember-orange);
  border-radius: 50%;
  animation: heroSpin 1s linear infinite;
}

@keyframes heroSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image,
  .smoke-particle,
  .hero-section::before,
  .hero-section::after {
    animation: none !important;
  }

  .hero-content,
  .hero-badge,
  .hero-title,
  .hero-title-top,
  .hero-title-bottom,
  .hero-subtitle,
  .hero-cta-group,
  .hero-trust-badges {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  .hero-section {
    min-height: auto;
    background: none !important;
    margin-top: 0;
    padding: 2rem 0;
  }

  .hero-bg-image,
  .smoke-overlay,
  .smoke-particle,
  .hero-section::before,
  .hero-section::after {
    display: none !important;
  }

  .hero-content {
    color: #000 !important;
  }

  .hero-badge {
    border-color: #000 !important;
    background: none !important;
  }

  .hero-title-top,
  .hero-title-bottom {
    color: #000 !important;
  }

  .hero-title-main {
    color: #000 !important;
  }
}
