/* ==================================================
   Header — Figma node 9052:932 "TopNavBar" (1440 x 101)
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--line-header);
  backdrop-filter: blur(var(--blur-header));
  -webkit-backdrop-filter: blur(var(--blur-header));
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: var(--color-header-bg-scrolled);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 24px top / 24px bottom + 1px border around a 52px lockup = the 101px frame */
  padding-top: 24px;
  padding-bottom: 24px;
}

/* --- Navigation ------------------------------------ */

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  display: block;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-text-teal);
}

/* Active item: teal text with a 2px teal underline */
.site-nav__link.is-active,
.site-nav__link[aria-current="page"] {
  color: var(--color-text-teal);
  border-bottom-color: var(--color-text-teal);
}

/* --- Header call to action ------------------------- */

.site-header__cta {
  flex: none;
  width: 249px;
  height: 48px;
}

/* Duplicate CTA that only appears inside the mobile dropdown */
.site-nav__cta {
  display: none;
}

/* --- Mobile menu button --------------------------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-header);
  border-radius: var(--radius-pill);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--color-text-strong);
  transition: background-color 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: var(--color-text-strong);
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Header responsive ---------------------------- */

@media (max-width: 1180px) {
  .site-nav__list {
    gap: 22px;
  }

  .site-header__cta {
    width: auto;
    padding-inline: 24px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-header__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
  }

  /* Nav + CTA collapse into a dropdown panel */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 24px var(--page-gutter) 32px;
    background-color: var(--color-header-bg-scrolled);
    border-bottom: 1px solid var(--line-header);
    backdrop-filter: blur(var(--blur-header));
    -webkit-backdrop-filter: blur(var(--blur-header));
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav__cta {
    display: inline-flex;
    margin-top: 28px;
    height: 48px;
    padding-inline: 32px;
  }
}

/* ==================================================
   Footer — Figma node 9052:3285 "Footer" (1440 x 1081)
   ================================================== */

.site-footer {
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--line-strong);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 96px;
  /* Figma pads 128px top and bottom; the bottom 128 left a large dead
     space under the copyright line, so it is trimmed to the footer's
     own 64px rhythm. */
  padding-block: 128px 34px;
}

/* --- Statement row -------------------------------- */

.footer-statement {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-statement__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

/* 192px / -9.6px tracking / 153.6px leading at the 1440 design width */
.footer-statement__wordmark {
  margin: 0;
  color: var(--color-accent);
  font-size: clamp(56px, 13.33vw, 192px);
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* 80px / -3.2px tracking / 84px leading */
.footer-statement__tagline {
  margin: 0;
  max-width: 672px;
  color: var(--color-text-strong);
  font-size: clamp(32px, 5.55vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-statement__tagline em {
  color: var(--color-accent);
  font-style: italic;
}

.footer-statement__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
}

.footer-statement__cta {
  padding: 20px 40px;
}

/* Back-to-top: label + 48px bordered circle holding a 16px arrow */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--color-text-teal);
}

.back-to-top__circle {
  display: flex;
  width: 48px;
  height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover .back-to-top__circle {
  border-color: var(--color-text-teal);
  transform: translateY(-2px);
}

.back-to-top__circle img {
  width: 16px;
  height: 16px;
}

/* --- Link columns --------------------------------- */

.footer-links {
  display: grid;
  /* Column tracks mirror the Figma offsets 0 / 366 / 733 / 1132 across 1312px */
  grid-template-columns: 366fr 367fr 399fr 180fr;
  border-top: 1px solid var(--line-soft);
  padding-top: 64px;
  padding-bottom: 1px;
}

.footer-links__heading {
  margin: 0 0 24px;
  color: var(--color-text-teal);
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links__link {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links__link:hover {
  color: var(--color-accent);
}

/* --- Bottom bar ----------------------------------- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-faint);
  padding-top: 33px;
}

/* Small brand lockup: 20 x 16 mark + 20px wordmark */
.footer-bottom__brand {
  gap: 8px;
}

.footer-bottom__brand .brand__mark,
.footer-bottom__brand .brand__mark img {
  width: 20px;
  height: 16px;
}

.footer-bottom__brand .brand__word {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: normal;
}

.footer-bottom__copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
}

.footer-bottom__legal {
  display: flex;
  gap: 32px;
}

.footer-bottom__legal a {
  color: var(--color-text-muted);
  font-size: var(--label-size);
  line-height: var(--label-line);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-bottom__legal a:hover {
  color: var(--color-text-teal);
}

/* --- Footer responsive ---------------------------- */

@media (max-width: 1100px) {
  .site-footer__inner {
    gap: 72px;
    padding-block: 96px;
  }

  .footer-statement {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-statement__actions {
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
    padding-top: 48px;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    gap: 56px;
    padding-block: 72px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
