/* ── Site Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-base) var(--ease-out);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 40px;
  flex-shrink: 0;
}

.brand__logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Desktop navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  margin-left: 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

/* Burger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav__link {
  font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

.mobile-nav .btn {
  margin-top: 1rem;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ── Page body offset for fixed header ─────────────────── */
.page-body {
  padding-top: var(--header-height);
}

/* ── Section spacing ───────────────────────────────────── */
.section {
  padding-block: var(--space-xl);
}

.section--lg {
  padding-block: var(--space-2xl);
}

/* Dark section */
.dark-section {
  background: var(--color-dark);
}

/* Section header */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header--center {
  text-align: center;
}

.section-header--center .lead {
  margin-inline: auto;
}

.section-header h2 {
  margin-top: var(--space-xs);
}

/* ── Site Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__brand p {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  max-width: 30ch;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-white);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA Band ──────────────────────────────────────────── */
.cta-band {
  padding-block: var(--space-xl);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: var(--space-sm);
}

.cta-band p {
  margin-bottom: var(--space-md);
}

.cta-band .btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
