/* Wings public site — Vanex-inspired layout, Wings navy/sky palette */
@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --navy: #012762;
  --navy-deep: #00122e;
  --navy-mid: #0a4a8a;
  --sky: #2a8fcb;
  --sky-hi: #3aa0db;
  --sky-soft: #e8f4fa;
  --frost: #edf2f8;
  --pill: #f4f7fb;
  --card: #f8fafd;
  --white: #ffffff;
  --ink: #001236;
  --ink-2: #1c3558;
  --ink-3: #5b6b82;
  --line: #d7e0ec;
  --success: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --display: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --r-xl: 1.75rem;
  --r-lg: 1.25rem;
  --r-md: 0.9rem;
  --shadow-panel: 0 18px 50px rgba(1, 39, 98, 0.12);
  --shadow-card: 0 10px 28px rgba(1, 39, 98, 0.08);
  --nav-h: 72px;
  --max: 1500px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wx-public {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--frost);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body.wx-public a { color: inherit; text-decoration: none; }
body.wx-public img { max-width: 100%; height: auto; display: block; }
body.wx-public button,
body.wx-public input,
body.wx-public select { font: inherit; }

.wx-wrap {
  width: min(var(--max), calc(100% - clamp(1rem, 3vw, 3rem)));
  margin-inline: auto;
}

.wx-display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.wx-btn:hover { transform: translateY(-1px); }
.wx-btn-sky {
  background: linear-gradient(135deg, var(--sky-hi), var(--sky));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(42, 143, 203, 0.35);
}
.wx-btn-navy {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(1, 39, 98, 0.28);
}
.wx-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.wx-btn-outline {
  background: #fff;
  color: var(--navy) !important;
  border: 1px solid var(--line);
}

/* ——— Navbar ——— */
.wx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wx-nav.is-scrolled {
  background: rgba(0, 18, 46, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 18, 46, 0.22);
}
.wx-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 100%;
}
.wx-nav-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
}
.wx-nav,
.wx-nav a,
.wx-nav button,
.wx-nav-desktop a,
.wx-nav-cta {
  color: #fff !important;
}
.wx-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.wx-nav-logo img {
  height: 48px !important;
  max-height: 48px;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.wx-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wx-nav-desktop li { margin: 0; }
.wx-nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 1;
  transition: background 0.15s ease;
}
.wx-nav-desktop a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}
.wx-nav-desktop a.is-active {
  color: #fff !important;
  font-weight: 700;
  background: transparent;
}
.wx-nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  left: 0.7rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.wx-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}
.wx-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.95rem;
  border-radius: 8px;
  background: transparent;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wx-nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
  transform: none;
}
.wx-nav-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.wx-nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.wx-nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}
.wx-nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.wx-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.wx-nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.wx-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(0, 18, 46, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.wx-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.wx-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  width: min(300px, 86vw);
  background: #fff;
  box-shadow: -12px 0 36px rgba(1, 39, 98, 0.18);
  transform: translateX(105%);
  transition: transform 0.26s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.95rem 1.25rem;
}
.wx-drawer.is-open { transform: translateX(0); }
.wx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.wx-drawer-head img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.wx-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pill);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
}
.wx-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wx-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.wx-drawer-links a:hover {
  background: var(--sky-soft);
  color: var(--navy);
}
.wx-drawer-links a.is-active {
  background: var(--navy);
  color: #fff;
}
.wx-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .wx-nav-desktop { display: flex; }
  .wx-nav-toggle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .wx-nav-desktop a {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
  }
  .wx-nav-start { gap: 1rem; }
}

/* ——— Footer ——— */
.wx-footer {
  margin-top: 2rem;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-mid));
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 2.5rem 0 1.25rem;
}
.wx-footer a { color: rgba(255, 255, 255, 0.88); }
.wx-footer a:hover { color: #fff; }
.wx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}
.wx-footer-brand img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.wx-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
}
.wx-footer-links {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}
.wx-footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 992px) {
  .wx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  :root { --nav-h: 64px; }
  .wx-footer-grid { grid-template-columns: 1fr; }
  .wx-nav-inner { gap: 0.5rem; }
  .wx-nav-start { gap: 0.75rem; }
  .wx-nav-logo img {
    height: 40px !important;
    max-height: 40px;
    max-width: 180px;
  }
  .wx-footer-brand img { height: 48px; }
  .wx-nav-cta {
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
  .wx-nav-toggle { width: 36px; height: 36px; }
}

/* ——— Shared panels ——— */
.wx-panel {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.wx-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

.wx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.wx-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wx-reveal { opacity: 1; transform: none; transition: none; }
  .wx-btn:hover { transform: none; }
}
