/* Hero Block Styles */
.acf-block-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
}

/* Background Image */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Fallback Background */
.hero-fallback-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: revert;
  opacity: 0; /* Hidden initially for animation */
}

/* Hero Button */
.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: #457B9D;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0; /* Hidden initially for animation */
}

.hero-button:hover {
  background: #F1FAEE;
  color: #000000;
}

.hero-button svg {
  width: 18px;
  height: 16px;
  color: #000000;
  transition: transform 0.3s ease;
  transform: rotate(-45deg);
}



/* Responsive */
@media (max-width: 767px) {
  .acf-block-hero {
    height: auto;
    min-height: 70vh;
    padding: 4rem 1.25rem;
    align-items: flex-end;
    text-align: left;
  }

  .hero-content {
    text-align: center;
    max-width: 550px;
    padding: 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-button {
    width: fit-content;
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5.5rem;
  }

  .hero-button {
    font-size: 0.9rem;
    padding: 1rem 2.25rem;
  }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acf-block-hero.is-visible .hero-title {
    /* Increased duration to 2s for a slower animation */
    animation: fadeInUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.acf-block-hero.is-visible .hero-button {
    /* Increased duration to 2s and increased delay */
    animation: fadeInUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* Disable animations in backend editor */
.acf-block-hero.no-animation .hero-title,
.acf-block-hero.no-animation .hero-button {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    animation-delay: 0s !important;
    transition: none !important;
}