/* Aviator Hub — dark aerospace theme enhancements */
:root{
  --ah-navy-dark:#071931;
  --ah-navy:#0B2545;
  --ah-blue:#1F8FE0;
  --ah-gold:#D4A537;
}

html{ scroll-behavior:smooth; }

a, button, .elementor-button{ -webkit-tap-highlight-color: transparent; }

.ah-kicker{
  letter-spacing:2px;
  text-transform:uppercase;
}

/* Pure-CSS entrance animation (no JS/scroll dependency — always plays on load) */
@keyframes ah-fade-up{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.elementor-widget:not(.elementor-widget-shortcode),
.ah-feature-card,
.ah-news-card{
  animation: ah-fade-up .7s cubic-bezier(.22,1,.36,1) both;
}
.ah-hero .elementor-widget{ animation-delay: .05s; }
.ah-feature-card:nth-of-type(1),
.ah-news-card:nth-of-type(1){ animation-delay: 0s; }
.ah-feature-card:nth-of-type(2),
.ah-news-card:nth-of-type(2){ animation-delay: .12s; }
.ah-feature-card:nth-of-type(3),
.ah-news-card:nth-of-type(3){ animation-delay: .24s; }
.ah-feature-card:nth-of-type(4){ animation-delay: .36s; }

/* Glass feature + news cards */
.ah-feature-card,
.ah-news-card{
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), border-color .35s ease;
  will-change: transform;
}
.ah-feature-card:hover,
.ah-news-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(31,143,224,.4);
  border-color: rgba(31,143,224,.55) !important;
}
.ah-news-card{ overflow:hidden; }
.ah-news-card .elementor-widget-image img{
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.ah-news-card:hover .elementor-widget-image img{
  transform: scale(1.06);
}

/* Glow buttons */
.ah-btn-glow-blue .elementor-button{ transition: box-shadow .3s ease, transform .25s ease; }
.ah-btn-glow-blue .elementor-button:hover{ box-shadow: 0 0 28px rgba(31,143,224,.55); transform: translateY(-2px); }
.ah-btn-glow-gold .elementor-button{ transition: box-shadow .3s ease, transform .25s ease; }
.ah-btn-glow-gold .elementor-button:hover{ box-shadow: 0 0 28px rgba(212,165,55,.5); transform: translateY(-2px); }

/* Text links (Read More / Instagram) */
.ah-link-underline .elementor-button{
  position:relative;
}
.ah-link-underline .elementor-button-text{
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .3s ease;
  padding-bottom: 2px;
}
.ah-link-underline .elementor-button:hover .elementor-button-text{
  background-size: 100% 1px;
}

/* Hero texture */
.ah-hero{ position:relative; }
.ah-hero > .elementor-background-overlay{ z-index:1; }
.ah-hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:2;
  background-image:
    radial-gradient(circle at 50% 35%, rgba(31,143,224,.16) 0, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px);
  pointer-events:none;
  animation: ah-drift 40s linear infinite;
}
.ah-hero > .elementor-container{ position:relative; z-index:3; }
@keyframes ah-drift{
  from{ background-position: 0 0, 0 0, 0 0; }
  to{ background-position: 0 0, 0 420px, 420px 0; }
}

@media (max-width: 767px){
  .ah-hero{ min-height:62vh !important; }
}

/* Header / navigation */
header.wp-block-template-part{
  background:#071931;
  border-bottom:1px solid rgba(31,143,224,0.2);
}
header.wp-block-template-part .wp-block-site-title a,
header.wp-block-template-part .wp-block-site-title{
  color:#FFFFFF !important;
}
header.wp-block-template-part .wp-block-navigation-item__content{
  color:#C9D6E3 !important;
  font-weight:500;
  font-size:15px;
  position:relative;
}
header.wp-block-template-part .wp-block-navigation-item__content::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:-4px;
  height:2px;
  background:#1F8FE0;
  transition:right .25s ease;
}
header.wp-block-template-part .wp-block-navigation-item:hover > .wp-block-navigation-item__content{
  color:#FFFFFF !important;
}
header.wp-block-template-part .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after{
  right:0;
}
header.wp-block-template-part .wp-block-navigation__responsive-container-open path{
  fill:#FFFFFF;
}
header.wp-block-template-part .wp-block-polylang-navigation-language-switcher,
header.wp-block-template-part [class*="language-switcher"]{
  margin-left:12px;
  padding-left:16px;
  border-left:1px solid rgba(255,255,255,0.15);
}
header.wp-block-template-part .wp-block-polylang-navigation-language-switcher a,
header.wp-block-template-part [class*="language-switcher"] a{
  color:#93A6BA !important;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
header.wp-block-template-part .wp-block-polylang-navigation-language-switcher a:hover,
header.wp-block-template-part [class*="language-switcher"] a:hover{
  color:#D4A537 !important;
}

/* Footer */
footer.wp-block-template-part{
  background:#071931;
  border-top:1px solid rgba(31,143,224,0.2);
  color:#93A6BA;
}
footer.wp-block-template-part .wp-block-site-title,
footer.wp-block-template-part .wp-block-site-title a{
  color:#FFFFFF !important;
}
footer.wp-block-template-part .wp-block-site-tagline,
footer.wp-block-template-part p{
  color:#93A6BA;
}
footer.wp-block-template-part .ah-footer-heading{
  color:#D4A537;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-weight:600;
  margin-bottom:6px !important;
}
footer.wp-block-template-part .wp-block-navigation-item__content{
  color:#C9D6E3 !important;
}
footer.wp-block-template-part .wp-block-navigation-item__content:hover{
  color:#1F8FE0 !important;
}
footer.wp-block-template-part a{
  color:#93A6BA;
}
footer.wp-block-template-part a:hover{
  color:#1F8FE0;
}

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