/* =========================================================
   HERO SECTION — Consistent Across Pages
   ========================================================= */
.hero-section {
  background: #070026;
  color: #fff;
  padding: 8rem 10px 6rem;
  position: relative;
  overflow: hidden;
}

/* ✅ Background Image Overlay — now fixed to allow clicks */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://cralite.com/wp-content/uploads/2023/12/Cralite-Digital-Hero-Bg.webp");
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: 60% auto;
  pointer-events: none; /* ✅ allows clicks on hero content */
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-section::before {
    background-position: 10vw 0;
    background-size: 150% auto;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-content {
  position: relative; /* ✅ ensures above background */
  z-index: 2;
}

.hero-content h1 {
  margin-top: 0; /* ✅ remove unwanted top spacing */
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1025px) {
  .hero-content {
    padding: 25px 25px 25px 0 !important;
  }
}

/* Hero Animation */
.hero-section.hero-visible .hero-content {
  animation: fadeUp 0.8s ease forwards;
}

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

/* Responsive Hero */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto;
  }
}

/* =========================================================
   BACK TO TOOLS LINK — Clean, Minimal, and Responsive
   ========================================================= */
.back-link {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-link:hover {
  text-decoration: underline;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-link {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
}
