/* =========================================================
   ECAC PUBLIC WEBSITE
   Custom CSS Supplements to Tailwind
   ========================================================= */

html {
  scroll-behavior: smooth;
}

::selection {
  background: #3CB54A;
  color: #ffffff;
}


/* =========================================================
   ECAC PREMIUM HERO
   ========================================================= */

.ecac-hero {
  min-height: 620px;
  isolation: isolate;
}


/* ---------------------------------------------------------
   Hero Image
   --------------------------------------------------------- */

.ecac-hero-image {
  object-position: center center;
  transform: scale(1.02);
  animation: ecacHeroZoom 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ecacHeroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.06);
  }
}


/* =========================================================
   HERO STAT CARDS
   ========================================================= */

.hero-stat {
  width: 160px;
  min-height: 70px;
  padding: 12px 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.07);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #ffffff;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(-3px);
}

.hero-stat strong {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-stat span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   HERO ENTRANCE ANIMATION
   ========================================================= */

.hero-reveal {
  opacity: 0;
  transform: translateY(20px);

  animation:
    heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 {
  animation-delay: 0.1s;
}

.hero-delay-2 {
  animation-delay: 0.2s;
}

.hero-delay-3 {
  animation-delay: 0.3s;
}

.hero-delay-4 {
  animation-delay: 0.4s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   MOBILE HERO
   ========================================================= */

@media (max-width: 767px) {

  .ecac-hero {
    min-height: 590px;
  }

  .ecac-hero-image {
    object-position: center center;
    transform: scale(1.01);
    animation: none;
  }

  /*
   * Stronger mobile overlay for text readability.
   * Kept separate from the hero image.
   */

  .ecac-hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 11;

    pointer-events: none;

    background:
      linear-gradient(to bottom,
        rgba(3, 43, 73, 0.70) 0%,
        rgba(3, 43, 73, 0.30) 45%,
        rgba(3, 43, 73, 0.65) 100%);
  }
}


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

@media (prefers-reduced-motion: reduce) {

  .ecac-hero-image {
    animation: none;
    transform: none;
  }

  .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-stat {
    transition: none;
  }
}