:root {
  --page-gutter: clamp(1rem, 5vw, 2.5rem);
}

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

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width, 1120px);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: clamp(2rem, 6vw, 3.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --page-gutter: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --page-gutter: clamp(1.25rem, 6vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 1rem;
  }
}
.nav-links__cta {
  display: none;
}

@media (max-width: 1200px) {
  .nav-container {
    gap: 0.75rem;
  }

  .brand img {
    width: clamp(64px, 16vw, 96px);
  }

  .navbar {
    position: relative;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - (var(--page-gutter) * 2)));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: transform 0.28s ease, opacity 0.24s ease;
    z-index: 1000;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 0.75rem;
  }

  .nav-links__cta {
    display: block;
    margin-top: 0.5rem;
  }

  .nav-links__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    width: calc(100vw - (var(--page-gutter) * 2));
  }
}
