/* AeroEdge — shared responsive system
   Breakpoints: 480 mobile · 768 tablet · 1024 laptop · 1280 desktop */

:root {
  --bp-mobile: 480px;
  --bp-tablet: 768px;
  --bp-laptop: 1024px;
  --bp-desktop: 1280px;
  --header-h: 82px;
  --utility-h: 38px;
  --site-header-h: calc(var(--utility-h) + var(--header-h));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ── Utility bar (above main header) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  padding-top: var(--safe-top);
}

body.ae-subpage .site-header {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10000;
  width: 100%;
}

.utility-bar {
  background: #06152f;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar-inner {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.utility-tagline,
.utility-contact {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.utility-tagline {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.utility-dot {
  margin: 0 0.35em;
  opacity: 0.55;
}

.utility-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  white-space: nowrap;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease;
}

.utility-bar a:hover {
  color: #13a8ff;
}

.utility-sep {
  margin: 0 10px;
  opacity: 0.45;
  user-select: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* ── Mobile menu button ── */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(7, 95, 230, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #1c3152;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.menu-btn:hover {
  background: rgba(7, 95, 230, 0.06);
  border-color: rgba(7, 95, 230, 0.32);
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ── Shared header shell (index .topbar + subpages .ae-header) ── */
.topbar,
.ae-header {
  position: relative;
  padding-top: 0;
}

.topbar-inner,
.ae-header-inner {
  position: relative;
}

.brand,
.ae-brand { order: 1; }

.nav,
.ae-nav { order: 2; }

.menu-btn { order: 3; }

.top-actions,
.ae-cta-wrap { order: 4; }

/* Laptop: compact nav spacing */
@media (max-width: 1280px) {
  .topbar-inner,
  .ae-header-inner {
    width: min(1380px, calc(100% - 28px));
  }
  .nav a,
  .ae-nav a {
    font-size: 0.84rem;
    padding: 10px 11px;
  }
  .brand img { width: 168px; }
  .ae-brand img { width: 168px; }
}

/* Tablet landscape / small laptop: hamburger nav */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .menu-btn { display: inline-flex; }

  .topbar-inner,
  .ae-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 72px;
    padding: 10px 0;
    gap: 12px;
  }

  .brand,
  .ae-brand {
    min-width: 0;
    flex: 1;
  }

  .nav,
  .ae-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(7, 95, 230, 0.14);
    box-shadow: 0 24px 60px rgba(6, 21, 47, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 2;
    overflow: visible;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open,
  .ae-nav.is-open {
    display: flex;
  }

  .nav a,
  .ae-nav a {
    white-space: normal;
    text-align: left;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .top-actions,
  .ae-cta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
  }

  .top-actions .btn-outline { display: inline-flex; }

  body.ae-subpage { padding-top: calc(var(--site-header-h) + var(--safe-top)) !important; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .topbar-inner,
  .ae-header-inner,
  .section,
  .footer {
    width: min(100% - 24px, 1320px);
  }

  .brand img,
  .ae-brand img {
    width: 148px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .top-actions .btn-outline {
    display: none;
  }

  .top-actions,
  .ae-cta-wrap {
    display: none;
  }

  :root { --utility-h: 52px; }

  .utility-tagline {
    display: none;
  }

  .utility-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 10px 0;
  }

  .utility-contact {
    justify-content: center;
    white-space: normal;
    row-gap: 4px;
  }

  .utility-contact a[href^="mailto:"],
  .utility-contact .utility-sep:last-of-type {
    display: none;
  }

  body.ae-subpage { padding-top: calc(var(--site-header-h) + var(--safe-top)) !important; }
}

/* Mobile */
@media (max-width: 480px) {
  .topbar-inner,
  .ae-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand img,
  .ae-brand img {
    width: 132px;
  }

  .menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav,
  .ae-nav {
    padding: 12px;
    border-radius: 18px;
  }

  .nav a,
  .ae-nav a {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  :root { --utility-h: 52px; --header-h: 64px; }

  .utility-bar-inner {
    min-height: var(--utility-h);
    padding: 8px 0;
  }

  .utility-contact {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1.35;
  }


  .utility-sep { margin: 0 8px; }

  body.ae-subpage { padding-top: calc(var(--site-header-h) + var(--safe-top)) !important; }
}

/* Nav overlay backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(6, 21, 47, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-backdrop.is-visible { display: block; }

/* ── Premium motion system (shared across all pages) ── */
.ae-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ae-delay, 0ms);
  will-change: opacity, transform;
}

.ae-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ae-reveal[data-reveal="fade"] {
  transform: none;
}

.ae-reveal[data-reveal="left"] {
  transform: translate3d(-16px, 0, 0);
}

.ae-reveal[data-reveal="right"] {
  transform: translate3d(16px, 0, 0);
}

.ae-reveal[data-reveal="fade-up"],
.ae-reveal[data-reveal="zoom"] {
  transform: translate3d(0, 14px, 0);
}

.ae-reveal.is-visible[data-reveal="left"],
.ae-reveal.is-visible[data-reveal="right"],
.ae-reveal.is-visible[data-reveal="fade-up"],
.ae-reveal.is-visible[data-reveal="zoom"] {
  transform: translate3d(0, 0, 0) scale(1);
}

.topbar,
.ae-header,
.site-header {
  animation: aeHeaderDrop 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes aeHeaderDrop {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero,
.geo-hero,
.page-hero,
.premium-hero,
.case-hero,
.training-hero,
.tourism-hero,
.products-hero,
.solutions-hero {
  animation: aeHeroLift 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes aeHeroLift {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.btn,
.geo-btn,
.btn-about,
.ae-cta,
.related-card,
.vertical-card,
.service-card,
.process-step,
.list-card,
.member-card,
.intent-card,
.value-card,
.trust-item,
.metric,
.geo-stat,
.client-item,
.deliverable-item,
.industry-item {
  backface-visibility: hidden;
}

.is-clickable-card {
  cursor: pointer;
}

.is-clickable-card:focus-visible {
  outline: 3px solid rgba(19, 168, 255, 0.78);
  outline-offset: 4px;
}

.is-clickable-card a {
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .btn,
  .geo-btn,
  .btn-about,
  .ae-cta {
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      background 0.22s ease,
      border-color 0.22s ease;
  }

  .btn:hover,
  .geo-btn:hover,
  .btn-about:hover,
  .ae-cta:hover {
    transform: translateY(-2px);
  }

  .vertical-card,
  .service-card,
  .related-card,
  .process-step,
  .list-card,
  .member-card,
  .intent-card,
  .value-card,
  .trust-item,
  .metric,
  .geo-stat,
  .client-item,
  .deliverable-item,
  .industry-item {
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease,
      filter 0.22s ease;
  }

  .process-step:hover,
  .list-card:hover,
  .value-card:hover,
  .trust-item:hover,
  .metric:hover,
  .geo-stat:hover,
  .client-item:hover,
  .deliverable-item:hover,
  .industry-item:hover {
    transform: translateY(-2px);
    filter: saturate(1.015);
  }
}

@media (max-width: 768px) {
  .ae-reveal {
    transform: translate3d(0, 16px, 0);
    transition-duration: 0.56s;
  }

  .ae-reveal[data-reveal="left"],
  .ae-reveal[data-reveal="right"] {
    transform: translate3d(0, 16px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ae-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
