/* =========================================================
   AIO VEND — HERO 3.0
   Clean • Structured • Enterprise • High Conversion
========================================================= */

/* =========================================================
   BASE WRAPPER
========================================================= */

.vending-hero {
  position: relative;
  width: 100%;
  min-height: clamp(680px, 92vh, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 8vw, 10rem) 1.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Remove container width restriction */
.vending-hero.container {
  max-width: 100%;
}

/* =========================================================
   BACKGROUND IMAGES (UNCHANGED)
========================================================= */

.vending-hero::before,
.vending-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: opacity 1.6s ease-in-out, transform 6s ease;
}

.vending-hero::before {
  background-image: url('/assets/images/hospital-micromarts-reno.webp');
  opacity: 1;
}

.vending-hero::after {
  background-image: url('/assets/images/office-micromart-reno.webp');
  opacity: 0;
}

.vending-hero.hero-show-second::before {
  opacity: 0;
  transform: scale(1.08);
}

.vending-hero.hero-show-second::after {
  opacity: 1;
  transform: scale(1.08);
}

/* =========================================================
   OVERLAY
========================================================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(15,23,42,0.45) 0%,
      rgba(15,23,42,0.65) 50%,
      rgba(15,23,42,0.85) 100%
    );
}

/* =========================================================
   INNER STRUCTURE
========================================================= */

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 820px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: clamp(2.5rem, 4vw, 4rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  line-height: 1.8;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2.5rem;
}

/* =========================================================
   CTA SECTION
========================================================= */

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

/* Primary */
.hero-actions .btn--primary {
  background: linear-gradient(
    135deg,
    var(--clr-primary),
    var(--clr-secondary)
  );
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.hero-actions .btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.45);
}

/* Secondary */
.hero-actions .btn--secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
}

.hero-actions .btn--secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .hero-content {
    padding: 2rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }
}

/* =========================================================
   ULTRA WIDE
========================================================= */

@media (min-width: 1600px) {

  .vending-hero {
    padding-top: 12rem;
  }

  .hero-title {
    font-size: 4.3rem;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .vending-hero::before,
  .vending-hero::after {
    transition: none;
    transform: none;
  }

  .hero-actions .btn {
    transition: none;
  }
}

/* =========================================================
   HERO TITLE GRADIENT SWEEP ANIMATION
========================================================= */

.hero-title {
  position: relative;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 45%,
    #10b981 50%,
    #2563eb 55%,
    #ffffff 60%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: background-position 3.5s ease;
}

/* When active, sweep gradient across */
.hero-title.gradient-active {
  background-position: 100% 50%;
}


/* =========================================================
   HERO → NEXT SECTION SMOOTH MASK TRANSITION
========================================================= */

.vending-hero {
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 80%,
    transparent 100%
  );
}




/* =========================================================
   HERO PROFESSIONAL REFINEMENT PACK
   Mobile • Tablet • Ultra-Wide • Symmetry • Performance
========================================================= */

/* ---------------------------------------------------------
   Subtitle Divider (Visual Balance)
--------------------------------------------------------- */

.hero-subtitle {
  position: relative;
  padding-bottom: 1.8rem;
}

.hero-subtitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 1.2rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9),
    transparent
  );
  opacity: 0.6;
}

/* ---------------------------------------------------------
   CTA Symmetry & Touch Targets
--------------------------------------------------------- */

.hero-actions {
  margin-top: 0.5rem;
}

.hero-actions .btn {
  min-height: 52px;
  max-width: 100%;
}

@media (min-width: 769px) {
  .hero-actions .btn {
    min-width: 220px;
  }
}

.hero-actions .btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

@media (hover: none) {
  .hero-actions .btn:active {
    transform: scale(0.98);
  }
}

/* ---------------------------------------------------------
   Mobile + Tablet Structural Hardening
--------------------------------------------------------- */

@media (max-width: 1024px) {

  .vending-hero {
    min-height: auto;
    padding: 6rem 1.25rem 5rem;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .hero-title {
    line-height: 1.12;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* Small Phones */

@media (max-width: 480px) {

  .vending-hero {
    padding: 5.5rem 1rem 4rem;
  }

  .hero-content {
    padding: 1.75rem;
    backdrop-filter: blur(8px);
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* ---------------------------------------------------------
   Tablet Precision (iPad Range)
--------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1180px) {

  .hero-content {
    max-width: 720px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
  }
}

/* ---------------------------------------------------------
   Ultra-Wide Center Lock (Prevents Floating Feel)
--------------------------------------------------------- */

@media (min-width: 1600px) {

  .hero-inner {
    max-width: 1300px;
  }

  .hero-content {
    max-width: 900px;
  }
}

@media (min-width: 1920px) {

  .vending-hero {
    padding-top: 14rem;
  }
}

/* ---------------------------------------------------------
   Performance Safety for Mobile GPUs
--------------------------------------------------------- */

@media (max-width: 768px) {

  .vending-hero::before,
  .vending-hero::after {
    transform: none;
  }
}

/* ---------------------------------------------------------
   Optional Subtle Desktop Float (Enterprise Feel)
--------------------------------------------------------- */

@media (min-width: 1024px) {

  .hero-content {
    animation: heroFloat 8s ease-in-out infinite alternate;
  }

  @keyframes heroFloat {
    from { transform: translateY(0px); }
    to { transform: translateY(-8px); }
  }
}
