/**
 * Hero section , Bourne Builders
 */

.section-hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* ── Background ──────────────────────────────────────────────────────────── */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  /* Subtle parallax via JS transform */
  will-change: transform;
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Gradient overlays , layered for depth */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(13, 27, 42, 0.78) 0%,
      rgba(13, 27, 42, 0.45) 50%,
      rgba(13, 27, 42, 0.20) 100%
    ),
    linear-gradient(
      to top,
      rgba(13, 27, 42, 0.50) 0%,
      transparent 40%
    );
  z-index: 1;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-top: var(--header-height);
}

.hero__inner {
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-ivory);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: rgba(247, 244, 239, 0.78);
  max-width: 50ch;
  margin-bottom: var(--space-10);
}

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

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

.hero__scroll-hint {
  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(247, 244, 239, 0.5);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(247, 244, 239, 0.35);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.hero__scroll-dot {
  width: 3px;
  height: 7px;
  background: var(--color-gold);
  border-radius: var(--radius-pill);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */

.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(13, 27, 42, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__stats-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: var(--space-5);
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-ivory);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
}

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

@media (max-width: 768px) {
  .section-hero {
    height: auto;
    min-height: 100svh;
    display: block;
    padding-bottom: 0;
  }

  .hero__bg-image,
  .hero__bg-video {
    object-position: 62% center;
  }

  .hero__overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(13, 27, 42, 0.58) 0%,
        rgba(13, 27, 42, 0.50) 42%,
        rgba(13, 27, 42, 0.88) 100%
      ),
      linear-gradient(
        to right,
        rgba(13, 27, 42, 0.88) 0%,
        rgba(13, 27, 42, 0.64) 55%,
        rgba(13, 27, 42, 0.34) 100%
      );
  }

  .hero__content {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-5);
  }

  .hero__inner {
    max-width: 22rem;
  }

  .hero__eyebrow {
    align-items: flex-start;
    gap: var(--space-3);
    max-width: 20rem;
    margin-bottom: var(--space-4);
    font-size: 0.72rem;
    line-height: 1.55;
    letter-spacing: 0.12em;
  }

  .hero__eyebrow::before {
    flex: 0 0 28px;
    width: 28px;
    margin-top: 0.7em;
  }

  .hero__title {
    max-width: 9.5em;
    margin-bottom: var(--space-4);
    font-size: 2.8rem;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
  }

  .hero__subtitle {
    max-width: 20rem;
    margin-bottom: var(--space-6);
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(247, 244, 239, 0.86);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  .hero__actions {
    width: 100%;
    max-width: 21.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 3.6rem;
    justify-content: center;
    padding-inline: var(--space-5);
    white-space: normal;
    text-align: center;
  }

  .hero__scroll-hint {
    display: none;
  }

  .hero__stats {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: var(--space-3);
    background: rgba(13, 27, 42, 0.78);
  }

  .hero__stats-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-block: 0;
  }

  .hero__stat {
    min-width: 0;
    padding: var(--space-4) var(--space-3);
    border-top: 1px solid rgba(247, 244, 239, 0.10);
  }

  .hero__stat:nth-child(odd) {
    border-right: 1px solid rgba(247, 244, 239, 0.10);
  }

  .hero__stat-number {
    font-size: 2rem;
  }

  .hero__stat-label {
    font-size: 0.64rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 380px) {
  .hero__content {
    padding-top: calc(var(--header-height) + var(--space-6));
  }

  .hero__inner {
    max-width: 20rem;
  }

  .hero__title {
    font-size: 2.45rem;
  }

  .hero__subtitle {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero__actions .btn {
    min-height: 3.4rem;
    padding-inline: var(--space-4);
  }

  .hero__stat {
    padding-inline: var(--space-2);
  }

  .hero__stat-number {
    font-size: 1.75rem;
  }

  .hero__stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
}

/* Interior page hero */
.page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__image-zone {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__image-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero--dark .page-hero__overlay {
  background:
    linear-gradient(
      to top,
      rgba(13, 27, 42, 0.9) 0%,
      rgba(13, 27, 42, 0.58) 55%,
      rgba(13, 27, 42, 0.28) 100%
    ),
    linear-gradient(
      to right,
      rgba(10, 20, 31, 0.42) 0%,
      rgba(10, 20, 31, 0.12) 45%,
      rgba(10, 20, 31, 0.04) 100%
    );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--header-height) + var(--space-10)) var(--space-12);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.page-hero__subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  max-width: 50ch;
}

.page-hero--dark .page-hero__title {
  color: var(--color-ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.page-hero--dark .page-hero__subtitle {
  color: rgba(247, 244, 239, 0.84);
}

.page-hero--dark .breadcrumb__list,
.page-hero--dark .breadcrumb__link,
.page-hero--dark .breadcrumb__current,
.page-hero--dark .breadcrumb__sep {
  color: rgba(247, 244, 239, 0.88);
}

.page-hero--dark .breadcrumb__link:hover {
  color: var(--color-gold-light);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 420px;
  }

  .page-hero__title {
    font-size: 3rem;
  }

  .page-hero__subtitle {
    font-size: var(--text-lg);
  }
}
