/* Contact page — space + earth-at-sunset background + refined typography */
.contact-body{
  position:relative;
  min-height:100vh;
  font-family:'Inter','Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  background:#000000;
  overflow-x:hidden;
}

/* Background layers */
.contact-atmosphere{
  position:fixed; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.86) 0%,
      rgba(0,0,0,0.70) 40%,
      rgba(0,0,0,0.88) 100%),
    url('../images/contact-earth-sunset.jpg') center bottom / cover no-repeat fixed;
  filter:saturate(80%) contrast(112%) brightness(85%);
}

/* subtle haze to blend UI with the space/earth background */
.contact-atmosphere::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 800px at 65% 15%, rgba(120,170,255,0.06), transparent 60%),
    radial-gradient(900px 600px at 15% 75%, rgba(255,150,110,0.04), transparent 62%),
    radial-gradient(700px 500px at 92% 80%, rgba(90,240,255,0.04), transparent 64%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.78));
  mix-blend-mode:screen;
  opacity:.72;
  pointer-events:none;
}

#hyperlane.contact-hyperlane{
  position:fixed; inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.22;
  mix-blend-mode:screen;
}


/* Dynamic background FX (sphere + AI circuits) for CMS public pages (not home) */
#cmsBgFx.cms-bg-fx{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:0.90;
  mix-blend-mode:screen;
}
@media (prefers-reduced-motion: reduce){
  #cmsBgFx.cms-bg-fx{display:none;}
}
/* Ensure content is above background */
.contact-body header.topbar,
.contact-body main,
.contact-body .site-footer{position:relative; z-index:2;}

/* Topbar refinement */
.contact-body .topbar{
  background:linear-gradient(to bottom, rgba(0,0,0,0.52), rgba(0,0,0,0));
  backdrop-filter:saturate(160%) blur(10px);
}

/* Active nav item */
.nav-item.active{
  background:rgba(88,166,255,0.16);
  border:1px solid rgba(140,200,255,0.28);
  color:#ffffff;
}
.nav-item.active svg{fill:#ffffff}

/* Hero */
.contact-hero{
  display:grid;
  gap:18px;
  align-items:stretch;
  grid-template-columns:1fr;
  margin-bottom:6px;
}
@media(min-width:980px){
  .contact-hero{grid-template-columns:1.25fr .75fr;}
}
.contact-hero h1{
  letter-spacing:-0.02em;
  line-height:1.06;
}
.contact-hero .lead{
  font-size:1.06rem;
  color:rgba(216,233,255,0.92);
  max-width:900px;
}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(140,200,255,0.22);
  color:#d9efff;
  font-weight:600;
  font-size:.92rem;
}
.pill svg{width:16px;height:16px;fill:#9ed0ff}

/* Cards */
.contact-card{
  border-radius:18px;
  background:rgba(18,28,55,0.62);
  border:1px solid rgba(180,220,255,0.16);
  box-shadow:0 18px 54px rgba(0,0,0,.55);
  backdrop-filter: blur(12px) saturate(140%);
}
.contact-mini h2{margin:.2rem 0 .8rem; font-size:1.15rem}
.contact-mini .mini-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-top:1px dashed rgba(180,220,255,0.16);
}
.contact-mini .mini-row:first-of-type{border-top:none; padding-top:0}
.mini-ico{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(90,140,255,0.12);
  border:1px solid rgba(140,200,255,0.20);
}
.mini-ico svg{width:18px;height:18px;fill:#9ed0ff}
.mini-k{font-size:.82rem; color:#b9ddff; letter-spacing:.02em; text-transform:uppercase}
.mini-v{font-weight:700; color:#ffffff}
.mini-v a{color:#9ed0ff}

/* Form improvements */
.contact-form .field label{
  font-size:.86rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:rgba(185,221,255,0.95);
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea{
  background:rgba(2,6,23,0.55);
  border:1px solid rgba(148,163,184,0.24);
  color:#ffffff;
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder{
  color:rgba(158,208,255,0.82);
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus{
  border-color:rgba(88,166,255,0.65);
  box-shadow:0 0 0 4px rgba(88,166,255,0.18);
}
.contact-form .btn.btn-primary{
  padding:12px 18px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(94,170,255,1), rgba(37,99,235,1));
}
.contact-form .fineprint{
  margin-top:10px;
  color:rgba(185,221,255,0.9);
  font-size:.95rem;
}

/* Info list */
.info-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.info-item{display:flex;gap:12px;align-items:flex-start}
.info-item svg{width:18px;height:18px;fill:#9ed0ff; margin-top:2px}
.info-item .k{font-size:.86rem;color:#b9ddff;text-transform:uppercase;letter-spacing:.03em}
.info-item .v{font-weight:700}
.hr{height:1px;background:rgba(180,220,255,0.12);margin:14px 0}


/* Footer */
.site-footer{
  margin-top:28px;
  padding:18px 0 22px;
}
.site-footer .footer-inner{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-radius:18px;
  background:rgba(6,10,22,0.58);
  border:1px solid rgba(148,163,184,0.16);
  backdrop-filter: blur(12px) saturate(160%);
}
.footer-brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:rgba(235,247,255,0.96);
}
.footer-logo{width:34px;height:34px;border-radius:10px;box-shadow:0 10px 26px rgba(0,0,0,0.38)}
.footer-title{font-weight:800;letter-spacing:.01em;line-height:1.1}
.footer-tagline{color:rgba(185,221,255,0.85);font-size:.92rem;margin-top:2px}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footer-links a{
  text-decoration:none;
  color:rgba(210,235,255,0.95);
  padding:8px 12px;
  border-radius:999px;
  background:rgba(22,38,78,0.40);
  border:1px solid rgba(140,200,255,0.18);
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.footer-links a:hover{
  background:rgba(70,120,200,0.22);
  border-color:rgba(140,200,255,0.35);
  transform:translateY(-1px);
}
.site-footer .footer-bottom{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:10px 8px 0;
  color:rgba(185,221,255,0.78);
  font-size:.92rem;
}
.site-footer .footer-bottom a{color:rgba(210,235,255,0.92);text-decoration:none}
.site-footer .footer-bottom a:hover{text-decoration:underline}
.site-footer .dot{opacity:.55; padding:0 6px}

/* Page spacing tweaks */
.contact-page{margin-top:34px}
