/* =====================================================
   HERO — Full-height homepage hero
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Noise grain for premium texture */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.90' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    /* Main gradient overlay */
    linear-gradient(
      145deg,
      rgba(8, 30, 20, 0.90) 0%,
      rgba(15, 43, 31, 0.72) 40%,
      rgba(27, 67, 50, 0.40) 70%,
      rgba(212, 160, 23, 0.08) 100%
    );
}

/* Subtle animated decorative shapes */
.hero__bg::before {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(212,160,23,0.12) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from { transform: scale(1) translate(0, 0); opacity: 0.6; }
  to   { transform: scale(1.2) translate(-2%, 3%); opacity: 1; }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__inner {
  max-width: 780px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  /* Premium pill capsule */
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 100px;
  padding: 0.4em 1em 0.4em 0.85em;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212,160,23,0.6);
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 32px rgba(0,0,0,0.35);
}

.hero__heading em {
  color: var(--color-accent);
  font-style: normal;
}

.hero__subtext {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Warm ambient zoom on load */
.hero.is-loaded .hero__bg {
  transform: scale(1);
}

/* =====================================================
   SECTION HEADER
   ===================================================== */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header__intro {
  font-size: var(--text-lg);
  color: var(--color-grey-700);
  line-height: 1.7;
  max-width: 660px;
}

.section-header--center .section-header__intro {
  margin-inline: auto;
}

/* =====================================================
   CTA STRIP
   ===================================================== */

.cta-strip {
  padding-block: var(--space-16);
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 85% 50%, rgba(212,160,23,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 80%, rgba(27,67,50,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* Diagonal top edge for premium section separation */
.cta-strip--angled {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-16) + 40px);
}

.cta-strip__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-strip__text h2 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

.cta-strip__text p {
  color: rgba(255,255,255,0.80);
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: 0;
}

.cta-strip__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero__heading { font-size: 2.25rem; }
  .hero__subtext  { font-size: var(--text-base); }

  .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip__actions { justify-content: center; }
}

/* Honour prefers-reduced-motion — disable non-essential animations */
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    transition: none;
  }
  .hero__bg::before {
    animation: none;
  }
  .hero__scroll-indicator {
    animation: none;
  }
}
