/* ============================================================
   HERO SECTION — Figma node 4:967
   ============================================================ */

/* Hide the Elementor #top section — replaced by the PHP template above */
section.elementor-section#top,
section.elementor-top-section#top {
  display: none !important;
}

/* ── Layout ──────────────────────────────────────────────── */

#top.cap-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center; /* Figma: content is vertically centred */
  /* Push the flex centre down by the navbar height so the heading
     never hides behind the transparent navbar */
  padding-top: 72px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ── Gradient overlay: rgba(0,51,72) = var(--primary-dark-var-1) ── */

.cap-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 51, 72, 0.65) 0%,
    rgba(0, 51, 72, 0.5)  50%,
    rgba(0, 51, 72, 0.35) 100%
  );
  z-index: 1;
}

/* Bottom fade to blend hero into next section (Figma 4:967) */
#top.cap-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(96px, 14vh, 180px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Content ─────────────────────────────────────────────── */

.cap-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--cap-content-max-width, 1216px);
  margin: 0 auto;
  padding: 32px var(--cap-site-gutter-x, 24px);
}

/* ── Heading ─────────────────────────────────────────────── */

.cap-hero__title {
  font-family: DM-sans, sans-serif !important; /* Figma: DM_Sans:Bold — overrides global Aleo */
  font-weight: 700 !important;
  color: #fff;
  font-size: clamp(48px, 5vw, 72px) !important;
  line-height: 1.25 !important; /* 90px / 72px from Figma */
  margin-bottom: 48px;
}

.cap-hero__accent {
  color: var(--secondary);
}

/* ── CTA buttons ─────────────────────────────────────────── */

.cap-hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cap-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px; /* height ~60px: (60 - 28px line-height) / 2 = 16px */
  border-radius: 10px; /* Figma: 10px */
  font-family: DM-sans !important;
  font-size: 18px; /* Figma: 18px */
  font-weight: 600;
  line-height: 28px; /* Figma: line-height 28px */
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cap-hero__btn--primary {
  background-color: var(--secondary);
  color: var(--primary-dark-var-1) !important;
  border: none;
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1); /* Figma */
}

.cap-hero__btn--primary:hover,
.cap-hero__btn--primary:focus {
  background-color: var(--secondary-light-var-2);
  color: var(--primary-dark-var-1) !important;
  transform: translateY(-2px);
  box-shadow: 0px 14px 20px 0px rgba(0, 0, 0, 0.12), 0px 6px 8px 0px rgba(0, 0, 0, 0.1);
}

.cap-hero__btn--ghost {
  background-color: rgba(255, 255, 255, 0.1); /* Figma: 0.1 */
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Figma: ~0.9px / 0.3 opacity */
}

.cap-hero__btn--ghost:hover,
.cap-hero__btn--ghost:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

/* ── Scroll indicator ────────────────────────────────────── */

.cap-hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.75;
}

.cap-hero__scroll-dot {
  animation: cap-hero-scroll 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes cap-hero-scroll {
  0%   { transform: translateY(0);    opacity: 0.7; }
  50%  { transform: translateY(14px); opacity: 0.25; }
  100% { transform: translateY(0);    opacity: 0.7; }
}

/* ── Responsive ──────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  #top.cap-hero {
    min-height: 80vh;
    padding-top: 64px; /* mobile navbar height */
  }

  .cap-hero__content {
    padding: 24px var(--cap-site-gutter-mobile-x, 24px);
  }

  .cap-hero__title {
    font-size: clamp(36px, 6vw, 48px) !important;
  }
}

@media screen and (max-width: 576px) {
  #top.cap-hero {
    min-height: 100svh;
  }

  .cap-hero__content {
    padding: 16px var(--cap-site-gutter-mobile-x, 16px);
  }

  .cap-hero__title {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .cap-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cap-hero__btn {
    justify-content: center;
  }

  .cap-hero__scroll-indicator {
    display: none;
  }
}
