:root {
  --navy: #061426;
  --red: #d91f2a;
  --red-dark: #b81822;
  --white: #ffffff;
  --gutter: clamp(40px, 7vw, 96px);
  --content-max: 1320px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--white);
  background: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero — full viewport */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 20, 38, 0.72) 0%, rgba(6, 20, 38, 0.2) 38%, rgba(6, 20, 38, 0.55) 100%),
    linear-gradient(90deg, rgba(6, 20, 38, 0.92) 0%, rgba(6, 20, 38, 0.45) 52%, rgba(6, 20, 38, 0.15) 100%);
}

/* Header — full width, over hero */

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 20, 38, 0.35);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: 100%;
  max-width: var(--content-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.site-logo img {
  width: auto;
  height: clamp(30px, 3.2vw, 40px);
  max-width: 180px;
}

.main-navigation {
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.is-active {
  color: var(--white);
}

.button-emergency {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  line-height: 1.2;
  transition: background 0.2s ease;
}

.button-emergency:hover {
  background: var(--red-dark);
}

.button-emergency span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-emergency strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

/* Hero content */

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding:
    clamp(32px, 6vh, 72px)
    var(--gutter)
    clamp(48px, 10vh, 96px);
}

.hero-content > * {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--red);
}

.hero-subline {
  max-width: 480px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  max-width: none;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
}

.hero-proof li {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

.hero-proof strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Mobile */

@media (max-width: 820px) {
  :root {
    --gutter: 28px;
    --header-h: 64px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .button-emergency {
    display: none;
  }

  .main-navigation {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: block;
  }

  .main-navigation ul {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--gutter) 32px;
    background: rgba(6, 20, 38, 0.97);
    backdrop-filter: blur(20px);
  }

  body.nav-open .main-navigation ul {
    display: flex;
  }

  .main-navigation a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero h1 br {
    display: none;
  }
}
