* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8f6;
  color: #111827;
  font-family: "Raleway", Arial, sans-serif;
  font-variant-numeric: lining-nums;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;

  padding: 16px 24px;
  background: #a13a33;
  color: #ffffff;
  border-bottom: 1px solid transparent;
}

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

.brand {
  display: block;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: clamp(160px, 24vw, 240px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 30px;
}

.nav-links a {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding: 13px 20px;

  background: transparent;
  color: #ffffff;
  border-radius: 0;

  font-size: 16px;
  font-weight: 450;
}

.nav-links a:hover {
  background: #ffffff;
  color: #000000;
  text-decoration: none;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;

  padding: 13px 20px;
  background: #ffffff;
  color: black;
  border-radius: 0;
  font-size: 15px;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 100px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-editorial {
  background: #231b15;
}

.hero-editorial h1,
.hero-editorial .hero-copy {
  text-shadow: 0 2px 12px rgba(20, 15, 12, 0.55);
}

@media (max-width: 760px) {
  .hero-editorial .hero-image {
    object-position: 42% center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  padding: clamp(24px, 5vw, 72px);
}

.hero h1 {
  max-width: 20ch;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(25px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy {
  margin: 0 0 28px;
  color: #f0f3f4;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 20px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 750;
}

.primary-action {
  background: #ffffff;
  color: black;
}

.secondary-action {
  background: #ffffff;
  color: #122238;
  border: 1px solid #d9dee7;
}

.back-to-top {
  display: grid;
  place-items: center;
  padding: 6px 0;
  background: #fffef3;
  color: #a13a33;
}

.back-to-top a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.back-to-top span {
  width: 16px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg) scale(1.25);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: clamp(24px, 4vw, 38px) clamp(18px, 5vw, 48px) 18px;
  background: #a13a33;
  color: #ffffff;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-logo {
  display: block;
  width: clamp(180px, 48vw, 250px);
  height: auto;
}

.footer-contact {
  display: grid;
  gap: 5px;
  font-size: 15px;
  font-style: normal;
}

.footer-contact a {
  font-size: 14px;
}

.footer-contact a,
.footer-privacy {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-company {
  width: min(100%, 38rem);
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.site-header.over-hero {
  background: transparent;
  border-bottom-color: transparent;
}

html {
  scroll-padding-top: 100px;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
}

@media (max-width: 1200px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .site-header .quote-button {
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;

    background: #a13a33;
    border-bottom: 1px solid transparent;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
      opacity 250ms ease,
      transform 250ms ease,
      visibility 0s linear 250ms;
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    min-height: 44px;
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px;
    gap: 8px;
  }

  .brand-logo {
    width: clamp(128px, 32vw, 150px);
  }

  .quote-button {
    padding: 12px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 18px;
  background: #ffffff;
  color: #a13a33;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}
