/* CPHT1 Hero Styles (brand: navy) */

:root {
  --cpht1-navy: #0b2a52;
  --cpht1-navy-dark: #081d3d;
  --cpht1-ice: #e8eff7;
}

/* HEROES (Home, About) */

/* Fælles grundlag */
.hero-base {
  position: relative;
  width: 100%;
  padding: clamp(60px, 10vw, 140px) clamp(20px, 3vw, 40px);
  overflow: hidden;
  text-align: center;
}
.hero-base::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 2px 2px,
    rgba(45, 90, 138, 0.08) 1px,
    transparent 0
  );
  background-size: 50px 50px;
  opacity: 0.35;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: clamp(12px, 1.5vw, 20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Typografi fælles */
.hero-title {
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 clamp(12px, 2.2vw, 18px);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.hero-text {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* hero-cta styling samlet i assets/css/components/cta.css (Sektion 1) */

/* ---------- HOME ---------- */
.home-hero {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 520px;
  padding: clamp(96px, 14vw, 140px) 5% clamp(72px, 10vw, 120px) 5% !important;
  margin: 0 auto 96px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%) !important;
  color: #ffffff;
}

/* Subtle scanline texture */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  opacity: 1;
  z-index: 1;
}

/* Soft top glow */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.12),
    transparent 45%
  );
  z-index: 1;
}

@keyframes cpht1LightSweep {
  to {
    background-position: 220% 0;
  }
}

/* Scroll-reaktion (kun moderne browsere) */
@supports (animation-timeline: auto) {
  .home-hero {
    view-timeline-name: --hero;
    view-timeline-axis: block;
  }

  .home-hero::after {
    animation-name: cpht1LightSweep, cpht1Parallax;
    animation-duration: 13.5s, 1s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, 1;
    animation-timeline: auto, --hero;
    animation-range: normal, entry 0% exit 85%;
  }

  @keyframes cpht1Parallax {
    from {
      transform: translateY(0);
      opacity: 0.26;
    }
    to {
      transform: translateY(20px);
      opacity: 0.18;
    }
  }
}

/* Glasplade bag tekst */
.home-herocontainer {
  position: relative;
  max-width: 1400px;
  padding: 0;
  text-align: left !important;
  z-index: 2;
}

.home-herocontainer::before {
  content: none;
}

/* Hero Title */
.home-herotitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #ffffff !important;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  max-width: 900px;
  text-shadow: none;
  position: relative;
}

.home-herotitle::after {
  content: none;
  display: none;
}

/* Hero Text */
.home-herotext {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  letter-spacing: 0;
  color: #b8c5d6 !important;
  margin: 0 0 36px;
  text-align: left;
  max-width: 700px;
  text-shadow: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .home-hero {
    padding: 70px 20px !important;
  }

  .home-herocontainer {
    padding: 0 !important;
  }

  .home-herotitle {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
  }

  .home-herotext {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
}

/* Hero CTA Button - styling i assets/css/components/cta.css (Sektion 1) */

/* ---------- OM OS ---------- */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 520px;
  padding: clamp(96px, 14vw, 140px) 5% clamp(72px, 10vw, 120px) 5%;
  margin: 0 auto 96px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
  color: #ffffff;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  opacity: 1;
  z-index: 1;
}

/* Soft top glow */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.12),
    transparent 45%
  );
  z-index: 1;
}

.about-herocontainer {
  position: relative;
  max-width: 1400px;
  padding: 0;
  text-align: left;
  z-index: 2;
}

.about-herotitle::after {
  content: none;
}
.about-herotitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #ffffff;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  max-width: 900px;
  text-shadow: none;
  position: relative;
}
.about-herotext {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  letter-spacing: 0;
  color: #b8c5d6;
  margin: 0 0 36px;
  text-align: left;
  max-width: 700px;
  text-shadow: none;
  position: relative;
  z-index: 2;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .hero-inner {
    padding: 20px;
  }
  .hero-cta {
    width: 100%;
    max-width: 320px;
  }
}
