/* TravelAI dark header */
:root {
  --nav-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-offset: calc(var(--nav-h) + var(--safe-top));
  --site-line: rgba(255, 255, 255, 0.06);
  --site-line-width: 2px;
  /* Site-wide content rhythm (matches homepage) */
  --cin-gutter: clamp(24px, 5vw, 80px);
  --cin-hero-max: 1440px;
  --cin-max: 1200px;
  --cin-section-y: clamp(80px, 10vw, 130px);
}

@media (max-width: 768px) {
  :root {
    --nav-h: 72px;
  }

  body {
    --nav-pad-x: 24px;
  }
}

@media (min-width: 769px) {
  /* Align nav logo with cinematic / site-hero content left edge */
  body:has(.wh-hero__inner),
  body:has(.site-hero__inner),
  body:has(.cin-hero-content) {
    --nav-pad-x: max(var(--cin-gutter), calc((100vw - var(--cin-hero-max, 1440px)) / 2 + var(--cin-gutter)));
  }
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  --nav-logo-h: 36px;
  --nav-name-h: 26px;
  --nav-link-gap: 36px;
  --nav-pad-x: 48px;
  --nav-link-size: 15px;
  --nav-bg-alpha: 0;
}

#travelai-header-wrap {
  margin: 0;
  padding: 0;
  height: 0;
  min-height: 0;
  border: 0;
  overflow: visible;
}

.travelai-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  height: var(--nav-offset);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: var(--safe-top) max(var(--nav-pad-x), env(safe-area-inset-right, 0px)) 0 max(var(--nav-pad-x), env(safe-area-inset-left, 0px));
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s linear;
  font-family: var(--font);
}

/* Fill status-bar / overscroll inset above the nav bar */
.travelai-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--safe-top);
  background: rgba(10, 10, 15, 0.96);
  pointer-events: none;
}

body:not(.travelai-header-scrolled) .travelai-header::after {
  opacity: 0;
}

body.travelai-header-scrolled .travelai-header::after {
  opacity: 1;
  transition: opacity 0.35s ease;
  animation: none;
  height: var(--site-line-width);
  background: var(--site-line);
  background-size: auto;
}

body.travelai-header-scrolled .travelai-header,
body.travelai-header-scrolled .travelai-header::before {
  background: rgba(10, 10, 15, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

/* Header stays dark (no light-section invert) */

.scroll-progress {
  top: var(--nav-offset) !important;
}

/* Animated line under nav: white ? rainbow sweep ? white (runs once on page load) */
.travelai-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 28%,
    #ff6b6b 32%,
    #ffa500 40%,
    #ffd700 48%,
    #32cd32 56%,
    #00ced1 64%,
    #4169e1 72%,
    #9370db 80%,
    #ff1493 88%,
    rgba(255, 255, 255, 0.5) 95%,
    rgba(255, 255, 255, 0.5) 100%
  );
  background-size: 300% 100%;
  background-position: 0% 0;
  animation: travelai-header-line-sweep 2.5s ease-in-out 1 forwards;
}

@keyframes travelai-header-line-sweep {
  0% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.travelai-header .travelai-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.travelai-header .travelai-header-logo:hover {
  opacity: 1;
}

.travelai-header .travelai-header-logo:hover img.travelai-header-logo-img {
  animation: travelai-header-logo-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes travelai-header-logo-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.55))
            drop-shadow(0 0 10px rgba(255, 165, 0, 0.45))
            drop-shadow(0 0 14px rgba(255, 215, 0, 0.35))
            drop-shadow(0 0 18px rgba(50, 205, 50, 0.3))
            drop-shadow(0 0 22px rgba(0, 206, 209, 0.3))
            drop-shadow(0 0 26px rgba(65, 105, 225, 0.35))
            drop-shadow(0 0 30px rgba(147, 112, 219, 0.4))
            drop-shadow(0 0 34px rgba(255, 20, 147, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.65))
            drop-shadow(0 0 14px rgba(255, 165, 0, 0.55))
            drop-shadow(0 0 18px rgba(255, 215, 0, 0.45))
            drop-shadow(0 0 22px rgba(50, 205, 50, 0.4))
            drop-shadow(0 0 26px rgba(0, 206, 209, 0.4))
            drop-shadow(0 0 30px rgba(65, 105, 225, 0.45))
            drop-shadow(0 0 34px rgba(147, 112, 219, 0.5))
            drop-shadow(0 0 38px rgba(255, 20, 147, 0.55));
  }
}

.travelai-header .travelai-header-logo-img {
  height: var(--nav-logo-h);
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.15s linear, filter 0.4s;
}

.travelai-header img.travelai-header-logo-name {
  height: var(--nav-name-h);
  width: auto;
  max-height: var(--nav-name-h);
  display: block;
  flex-shrink: 0;
  opacity: calc(0.35 + var(--nav-name-h) / 26 * 0.65);
  transition: height 0.15s linear, opacity 0.15s linear;
}

body.travelai-header-compact .travelai-header img.travelai-header-logo-name {
  opacity: 1;
}

.travelai-header .travelai-header-links {
  display: flex;
  align-items: center;
  gap: var(--nav-link-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  transition: gap 0.15s linear;
}

.travelai-header .travelai-header-links a {
  font-size: var(--nav-link-size);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.3s ease, font-size 0.15s linear;
}

.travelai-header .travelai-header-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.4),
               0 0 16px rgba(255, 165, 0, 0.35),
               0 0 20px rgba(255, 215, 0, 0.3),
               0 0 24px rgba(50, 205, 50, 0.25),
               0 0 28px rgba(0, 206, 209, 0.25),
               0 0 32px rgba(65, 105, 225, 0.3),
               0 0 36px rgba(147, 112, 219, 0.35),
               0 0 40px rgba(255, 20, 147, 0.35);
}

.travelai-header .travelai-header-links a.active {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.travelai-header .travelai-header-links li.travelai-header-sep {
  width: 1px;
  height: 20px;
  min-width: 1px;
  padding: 0;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  list-style: none;
}

.travelai-header .travelai-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: #0A0A0F;
  border-radius: 100px;
  font-size: var(--text-nav-link);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.travelai-header .travelai-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.travelai-header .travelai-header-cta .arrow {
  font-size: 1em;
  line-height: 1;
}

.travelai-header .travelai-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.travelai-header .travelai-header-hamburger {
  display: none;
}

.travelai-header .travelai-header-mobile-cta {
  display: none;
}

/* Desktop & tablet: single flat link row */
@media (min-width: 769px) {
  .travelai-header .travelai-header-links {
    display: flex !important;
  }

  .travelai-header .travelai-header-hamburger {
    display: none !important;
  }

  .travelai-header .travelai-header-right {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .travelai-header {
    padding: var(--safe-top) max(var(--nav-pad-x), env(safe-area-inset-right, 0px)) 0 max(var(--nav-pad-x), env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 768px) {
  .travelai-header {
    padding: var(--safe-top) max(var(--nav-pad-x), env(safe-area-inset-right, 0px)) 0 max(var(--nav-pad-x), env(safe-area-inset-left, 0px));
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    overflow: visible;
    min-height: var(--nav-offset);
    height: var(--nav-offset);
  }

  .travelai-header.travelai-header-mobile-open {
    flex-wrap: wrap;
    align-content: flex-start;
    height: auto;
    min-height: var(--nav-offset);
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Open menu: solid dark sheet regardless of scroll/light state */
  body .travelai-header.travelai-header-mobile-open,
  body .travelai-header.travelai-header-mobile-open::before {
    background: rgba(10, 10, 15, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body .travelai-header.travelai-header-mobile-open .travelai-header-hamburger-bar {
    background: #fff !important;
  }

  body .travelai-header.travelai-header-mobile-open .travelai-header-links a {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  body .travelai-header.travelai-header-mobile-open .travelai-header-links a.active {
    color: #fff !important;
  }

  /* Lock page scroll and dim the page behind the open menu */
  body.travelai-header-menu-open {
    overflow: hidden;
  }

  body.travelai-header-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.55);
    z-index: 999;
    animation: travelai-header-backdrop-in 0.3s ease;
  }

  @keyframes travelai-header-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .travelai-header .travelai-header-links,
    .travelai-header.travelai-header-mobile-open .travelai-header-links {
      transition: none;
    }

    body.travelai-header-menu-open::after {
      animation: none;
    }
  }

  .travelai-header .travelai-header-logo {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    align-items: center;
    display: flex;
    /* Pin the header row height so the logo doesn't shift when the drawer opens */
    height: var(--nav-h);
  }

  .travelai-header .travelai-header-logo-img {
    height: var(--nav-logo-h);
    width: var(--nav-logo-h);
  }

  .travelai-header img.travelai-header-logo-name {
    height: var(--nav-name-h);
    max-height: var(--nav-name-h);
    max-width: min(118px, 40vw);
    object-fit: contain;
    object-position: left center;
    overflow: hidden;
  }

  body.travelai-header-compact .travelai-header img.travelai-header-logo-name {
    max-width: 0;
    opacity: 0;
  }

  .travelai-header .travelai-header-right {
    flex: 0 0 auto;
    min-height: 0;
    margin-left: 8px;
    gap: 0;
  }

  /* CTA lives in the mobile drawer, not the header bar */
  .travelai-header > .travelai-header-right > .travelai-header-cta {
    display: none;
  }

  .travelai-header .travelai-header-links {
    display: flex;
    box-sizing: border-box;
    width: calc(100% + max(var(--nav-pad-x), env(safe-area-inset-left, 0px)) + max(var(--nav-pad-x), env(safe-area-inset-right, 0px)));
    order: 99;
    flex-basis: calc(100% + max(var(--nav-pad-x), env(safe-area-inset-left, 0px)) + max(var(--nav-pad-x), env(safe-area-inset-right, 0px)));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    background: rgba(10, 10, 15, 0.98);
    list-style: none;
    /* Full-bleed to the screen edges; link text stays aligned via padding */
    margin-left: calc(-1 * max(var(--nav-pad-x), env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(var(--nav-pad-x), env(safe-area-inset-right, 0px)));
    /* Collapsed by default; expands with a smooth animation when opened */
    max-height: 0;
    padding: 0 max(var(--nav-pad-x), env(safe-area-inset-right, 0px)) 0 max(var(--nav-pad-x), env(safe-area-inset-left, 0px));
    border-top: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      visibility 0s linear 0.4s;
  }

  .travelai-header .travelai-header-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .travelai-header .travelai-header-links li.travelai-header-mobile-cta {
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
  }

  .travelai-header .travelai-header-links .travelai-header-sep {
    display: none;
  }

  .travelai-header .travelai-header-mobile-cta {
    display: list-item;
  }

  .travelai-header .travelai-header-links a {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    font-size: 16px;
    min-height: 48px;
    line-height: 1.25;
  }

  .travelai-header .travelai-header-links .travelai-header-mobile-cta-link {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #0A0A0F;
    border-radius: 100px;
    font-size: var(--text-nav-link);
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 48px;
  }

  .travelai-header.travelai-header-mobile-open .travelai-header-links {
    max-height: min(calc(100dvh - var(--nav-offset)), 560px);
    padding: 8px max(var(--nav-pad-x), env(safe-area-inset-right, 0px)) 20px max(var(--nav-pad-x), env(safe-area-inset-left, 0px));
    border-top-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease 0.05s,
      visibility 0s;
  }

  .travelai-header .travelai-header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .travelai-header .travelai-header-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .travelai-header .travelai-header-hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .travelai-header.travelai-header-mobile-open .travelai-header-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .travelai-header.travelai-header-mobile-open .travelai-header-hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .travelai-header.travelai-header-mobile-open .travelai-header-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Rainbow gradient text: prevent right-edge clipping site-wide */
.hero-title .gradient,
.hero-title .hero-title-line2,
.hero-title-line2,
.partners-title .better,
.mission-title .powerful,
.cta-title .for-ai,
.gradient {
  display: inline-block !important;
  box-sizing: content-box !important;
  padding-left: 0.05em !important;
  padding-right: 15px !important;
  /* Extend the paint box below the baseline so descenders (g, y) aren't clipped
     by background-clip:text on an inline-block; negative margin cancels the layout shift */
  padding-bottom: 0.18em !important;
  margin-bottom: -0.18em !important;
  background: var(--spectrum) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-text-stroke: 0 transparent !important;
}
.hero-title,
.partners-title {
  overflow: visible !important;
}

/* Hero headlines ? match homepage (600, not black 900) */
.hero-title,
.page-hero .hero-title {
  font-weight: 600 !important;
  letter-spacing: -0.03em;
}

/* Section & card headings: 600 per DESIGN.md ? see typography.css + site.css cascade */

/* Global hover for icon/text cards */
.mission-card,
.value-card,
.contact-card,
.press-item,
.doc-card,
.lab-card,
.tech-card,
.surface-card,
.product-card,
.type-card,
.testimonial-card,
.agentic-card,
.partner-item {
  border: 1px solid var(--glass-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
    background 0.22s ease;
  will-change: transform, box-shadow;
}

.mission-card:hover,
.value-card:hover,
.contact-card:hover,
.press-item:hover,
.doc-card:hover,
.lab-card:hover,
.tech-card:hover,
.surface-card:hover,
.product-card:hover,
.type-card:hover,
.testimonial-card:hover,
.agentic-card:hover,
.partner-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Icon-matching border on hover per card */
.values-grid .value-card:nth-child(1):hover { border-color: #FF6B6B; }
.values-grid .value-card:nth-child(2):hover { border-color: #9370DB; }
.values-grid .value-card:nth-child(3):hover { border-color: #FFD700; }
.values-grid .value-card:nth-child(4):hover { border-color: #00CED1; }
.values-grid .value-card:nth-child(5):hover { border-color: #32CD32; }
.values-grid .value-card:nth-child(6):hover { border-color: #4169E1; }

.agentic-grid .agentic-card:nth-child(1):hover,
.agentic-section .agentic-card:nth-child(1):hover { border-color: #FF6B6B; }
.agentic-grid .agentic-card:nth-child(2):hover,
.agentic-section .agentic-card:nth-child(2):hover { border-color: #4169E1; }
.agentic-grid .agentic-card:nth-child(3):hover,
.agentic-section .agentic-card:nth-child(3):hover { border-color: #32CD32; }
.agentic-grid .agentic-card:nth-child(4):hover,
.agentic-section .agentic-card:nth-child(4):hover { border-color: #9370DB; }
.agentic-grid .agentic-card:nth-child(5):hover,
.agentic-section .agentic-card:nth-child(5):hover { border-color: #FFD700; }
.agentic-grid .agentic-card:nth-child(6):hover,
.agentic-section .agentic-card:nth-child(6):hover { border-color: #00CED1; }

.contact-grid .contact-card:nth-child(1):hover { border-color: #00CED1; }
.contact-grid .contact-card:nth-child(2):hover { border-color: #4169E1; }
.contact-grid .contact-card:nth-child(3):hover { border-color: #FF6B6B; }
.contact-grid .contact-card:nth-child(4):hover { border-color: #9370DB; }

.press-grid .press-item:nth-child(1):hover { border-color: #00CED1; }
.press-grid .press-item:nth-child(2):hover { border-color: #9370DB; }
.press-grid .press-item:nth-child(3):hover { border-color: #4169E1; }
.press-grid .press-item:nth-child(4):hover { border-color: #FF6B6B; }
.press-grid .press-item:nth-child(5):hover { border-color: #32CD32; }
.press-grid .press-item:nth-child(6):hover { border-color: #FFD700; }

.products-grid .product-card:nth-child(1):hover { border-color: #00CED1; }
.products-grid .product-card:nth-child(2):hover { border-color: #00CED1; }
.products-grid .product-card:nth-child(3):hover { border-color: #9370DB; }
.products-grid .product-card:nth-child(4):hover { border-color: #FFD700; }
.products-grid .product-card:nth-child(5):hover { border-color: #32CD32; }
.products-grid .product-card:nth-child(6):hover { border-color: #FF1493; }
.products-grid .product-card:nth-child(7):hover { border-color: #9370DB; }
.products-grid .product-card:nth-child(8):hover { border-color: #4169E1; }
.products-grid .product-card:nth-child(9):hover { border-color: #FF1493; }

.types-grid .type-card:nth-child(1):hover { border-color: #FF6B6B; }
.types-grid .type-card:nth-child(2):hover { border-color: #4169E1; }
.types-grid .type-card:nth-child(3):hover { border-color: #32CD32; }
.types-grid .type-card:nth-child(4):hover { border-color: #9370DB; }

.surfaces-grid .surface-card:nth-child(1):hover { border-color: #FF6B6B; }
.surfaces-grid .surface-card:nth-child(2):hover { border-color: #4169E1; }
.surfaces-grid .surface-card:nth-child(3):hover { border-color: #32CD32; }
.surfaces-grid .surface-card:nth-child(4):hover { border-color: #9370DB; }

.testimonials-grid .testimonial-card:nth-child(1):hover { border-color: #00CED1; }
.testimonials-grid .testimonial-card:nth-child(2):hover { border-color: #4169E1; }
.testimonials-grid .testimonial-card:nth-child(3):hover { border-color: #9370DB; }
.testimonials-grid .testimonial-card:nth-child(4):hover { border-color: #32CD32; }

.tech-grid .tech-card:nth-child(1):hover { border-color: #FF6B6B; }
.tech-grid .tech-card:nth-child(2):hover { border-color: #4169E1; }
.tech-grid .tech-card:nth-child(3):hover { border-color: #32CD32; }
.tech-grid .tech-card:nth-child(4):hover { border-color: #9370DB; }

.factors-grid .factor-card:nth-child(1):hover { border-color: #FF6B6B; }
.factors-grid .factor-card:nth-child(2):hover { border-color: #4169E1; }
.factors-grid .factor-card:nth-child(3):hover { border-color: #32CD32; }
.factors-grid .factor-card:nth-child(4):hover { border-color: #FFD700; }
.factors-grid .factor-card:nth-child(5):hover { border-color: #00CED1; }
.factors-grid .factor-card:nth-child(6):hover { border-color: #9370DB; }

/* Mobile: hero CTAs stacked, centered, same width */
@media (max-width: 768px) {
  .hero-ctas,
  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas .hero-cta,
  .hero-ctas a,
  .hero-actions .btn-primary,
  .hero-actions .btn-hero-outline,
  .hero-actions a {
    width: 100%;
    min-width: 0;
    text-align: center;
    justify-content: center;
  }
}

/* WordPress theme integration */
.travelai-header .travelai-header-links .current-menu-item > a,
.travelai-header .travelai-header-links .current_page_item > a,
.travelai-header .travelai-header-links .current-menu-ancestor > a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

/* Clear fixed nav for theme content; heroes can sit under the transparent bar */
.main-wrapper,
.blog-post-wrapper,
.archive-title-holder,
.content-container {
  scroll-margin-top: var(--nav-offset);
}

body:not(:has(section.hero)):not(:has(.wh-hero)):not(:has(.page-hero)):not(:has(.post-detail-hero)) .main-wrapper {
  padding-top: var(--nav-offset);
}

/* Elementor pages own their top spacing (often full-bleed under the nav) */
body.elementor-page .main-wrapper,
.main-wrapper:has(.elementor) {
  padding-top: 0;
}

body.admin-bar .travelai-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .travelai-header {
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: #fff;
  color: #0a0a0f;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: calc(var(--nav-offset) + 8px);
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
}

/* Hide legacy tall header chrome if any leftover markup/styles remain */
header > .header {
  display: none !important;
}
