/* ============================================
   SE link – Hero Section
   Center-weighted, responsive, low-bandwidth optimized
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #132a4a;
  --electric: #1e5a9e;
  --electric-light: #2a7bc8;
  --white: #ffffff;
  --gray-light: rgba(255, 255, 255, 0.9);
  --gray-muted: rgba(255, 255, 255, 0.75);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  overflow-x: hidden;
}

/* Hero container */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video background – optimized for performance */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

/* Gradient overlay – subtle tint, lets video colors show through */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.4) 0%,
    rgba(19, 42, 74, 0.35) 40%,
    rgba(30, 90, 158, 0.35) 100%
  );
  pointer-events: none;
}

/* Content – center-weighted, safe from edge cropping */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 90%;
  margin: 0 auto;
}

/* Logo */
.hero__brand {
  margin-bottom: 0.5rem;
}

.hero__logo {
  display: block;
  margin: 0 auto;
  max-width: min(280px, 70vw);
  height: auto;
}

.hero__tagline {
  margin: 0.15rem 0 0;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--gray-light);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Separator – longer than heading text */
.hero__separator {
  width: min(100%, 580px);
  margin: 1.25rem auto;
  border: none;
  border-top: 1px solid var(--gray-muted);
}

/* Main heading – single line */
.hero__heading {
  margin: 0;
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

/* Sub-heading */
.hero__subheading {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--gray-light);
}

/* Contact section */
.hero__contact {
  margin-top: 2rem;
}

.hero__contact-label {
  margin: 0;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: var(--gray-light);
}

.hero__contact-link {
  display: block;
  margin-top: 0.35rem;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero__contact-link:hover,
.hero__contact-link:focus {
  color: var(--electric-light);
  opacity: 1;
}

.hero__contact-link:focus-visible {
  outline: 2px solid var(--electric-light);
  outline-offset: 4px;
}

/* Responsive – mobile: allow heading wrap on very narrow screens */
@media (max-width: 480px) {
  .hero__heading {
    white-space: normal;
  }
}

/* Responsive – tablet */
@media (min-width: 600px) {
  .hero__content {
    max-width: 85%;
  }

  .hero__logo {
    max-width: 300px;
    margin-bottom: 7%;
  }
}

/* Responsive – desktop */
@media (min-width: 900px) {
  .hero__content {
    max-width: 720px;
  }

  .hero__separator {
    width: min(100%, 620px);
  }
}
