/* =========================================================
   AIO VEND — MICROMART HERO 4.0
   Enterprise • Premium • Modern • High-Conversion
========================================================= */

/* =========================================================
   BASE STRUCTURE
========================================================= */

.micromart-hero {
    position: relative;
    width: 100%;
    min-height: clamp(700px, 95vh, 1050px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 8vw, 11rem) 1.5rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
  
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  }
  
  /* Remove container width restriction */
  .micromart-hero.container {
    max-width: 100%;
  }
  
  /* =========================================================
     BACKGROUND IMAGES (ROTATING)
  ========================================================= */
  
  .micromart-hero::before,
  .micromart-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.8s ease-in-out, transform 6s ease;
  }
  
  .micromart-hero::before {
    background-image: url('/assets/images/office-micromart-reno.webp');
    opacity: 1;
  }
  
  .micromart-hero::after {
    background-image: url('/assets/images/hospital-micromarts-reno.webp');
    opacity: 0;
  }
  
  .micromart-hero.hero-show-second::before {
    opacity: 0;
    transform: scale(1.08);
  }
  
  .micromart-hero.hero-show-second::after {
    opacity: 1;
    transform: scale(1.08);
  }
  
  /* =========================================================
     OVERLAY
  ========================================================= */
  
  .micromart-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.7) 55%,
        rgba(15,23,42,0.9) 100%
      );
  }
  
  /* =========================================================
     INNER CONTENT
  ========================================================= */
  
  .micromart-hero__inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
  }
  
  .micromart-hero__content {
    max-width: 880px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: clamp(2.5rem, 4vw, 4.5rem);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  }
  
  /* =========================================================
     TYPOGRAPHY
  ========================================================= */
  
  .micromart-hero__title {
    font-size: clamp(2.7rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
  
    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;
  }
  
  .micromart-hero__title.gradient-active {
    background-position: 100% 50%;
  }
  
  .micromart-hero__subtitle {
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    line-height: 1.8;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.8rem;
    padding-bottom: 1.8rem;
    position: relative;
  }
  
  .micromart-hero__subtitle::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    margin: 1.4rem auto 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.9),
      transparent
    );
    opacity: 0.7;
  }
  
  /* =========================================================
     CTA
  ========================================================= */
  
  .micromart-hero__actions {
    display: flex;
    gap: 1.3rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .micromart-hero__actions .btn {
    padding: 1rem 2.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 54px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
  }
  
  .micromart-hero__actions .btn--primary {
    background: linear-gradient(
      135deg,
      var(--clr-primary),
      var(--clr-secondary)
    );
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
  }
  
  .micromart-hero__actions .btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.5);
  }
  
  .micromart-hero__actions .btn--secondary {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
  }
  
  .micromart-hero__actions .btn--secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-4px);
  }
  
  /* =========================================================
     RESPONSIVE
  ========================================================= */
  
  @media (max-width: 1024px) {
  
    .micromart-hero {
      min-height: auto;
      padding: 6rem 1.25rem 5rem;
    }
  
    .micromart-hero__content {
      width: 100%;
      border-radius: 22px;
    }
  
    .micromart-hero__subtitle {
      font-size: 1.05rem;
    }
  }
  
  @media (max-width: 480px) {
  
    .micromart-hero {
      padding: 5.5rem 1rem 4rem;
    }
  
    .micromart-hero__content {
      padding: 1.75rem;
      backdrop-filter: blur(8px);
    }
  
    .micromart-hero__title {
      font-size: 2rem;
    }
  
    .micromart-hero__actions {
      flex-direction: column;
    }
  
    .micromart-hero__actions .btn {
      width: 100%;
      max-width: 340px;
    }
  }
  
  /* =========================================================
     FLOAT ANIMATION (DESKTOP ONLY)
  ========================================================= */
  
  @media (min-width: 1024px) {
  
    .micromart-hero__content {
      animation: micromartFloat 9s ease-in-out infinite alternate;
    }
  
    @keyframes micromartFloat {
      from { transform: translateY(0px); }
      to { transform: translateY(-10px); }
    }
  }
  
  /* =========================================================
     ACCESSIBILITY
  ========================================================= */
  
  @media (prefers-reduced-motion: reduce) {
  
    .micromart-hero::before,
    .micromart-hero::after {
      transition: none;
      transform: none;
    }
  
    .micromart-hero__title {
      transition: none;
    }
  
    .micromart-hero__content {
      animation: none;
    }
  }
  