/* Shared UI consistency layer for all pages. */
.navbar {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 300px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-tagline {
  font-family: var(--font-display);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar .btn-cta {
  font-family: var(--font-display);
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: none;
}

/* Hover motion only on pointer-capable devices. */
@media (hover: hover) and (pointer: fine) {
  .navbar .btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(230, 51, 41, 0.16);
  }
}

.navbar .btn-cta:active {
  transform: scale(0.97);
}

/* Shared footer logo fix to keep native aspect ratio and center alignment. */
.footer-brand-logo--fixed {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

@media (max-width: 800px) {
  .navbar {
    height: 62px;
    padding: 0 18px;
  }

  .brand-logo-img {
    height: 36px;
    max-width: 240px;
  }

  .nav-links,
  .nav-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* First-visit consent modal: cookies + 21+ confirmation. */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.consent-modal {
  width: min(560px, 100%);
  background: #090d11;
  border: 1px solid #1a232c;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 22px 22px 18px;
}

.consent-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #fff;
}

.consent-copy {
  color: #d0d7de;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.consent-checks {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #d6dde4;
  font-size: 13px;
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #e63329;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #28323b;
  background: #131a21;
  color: #f1f5f9;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.consent-btn-primary {
  background: #e63329;
  border-color: #e63329;
  color: #fff;
}

.consent-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== MOBILE / TABLET PRODUCTION FIXES ===== */

/* Safe-area insets for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .nav-mobile-menu {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .consent-overlay {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Body lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

/* Mobile menu entry */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  padding: 14px 18px 18px;
  background: rgba(2, 3, 4, 0.98);
  border-bottom: 1px solid #14181b;
  z-index: 900;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nav-mobile-menu.open {
  display: block;
}

.nav-mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: clamp(14px, 1.1vw, 17px);
  border-bottom: 1px solid #161c21;
  color: #d4dae1;
  min-height: 44px;
}

.nav-mobile-menu a:last-child {
  border-bottom: 0;
}

/* Ensure touch targets meet 44px minimum */
@media (max-width: 800px) {
  .btn-cta,
  .btn-outline,
  .btn-green,
  .consent-btn {
    min-height: 44px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Prevent text size adjustment on orientation change (iOS) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth momentum scrolling for scrollable regions */
.scroller-wrapper {
  -webkit-overflow-scrolling: touch;
}
