/* Nav dropdown menus + lead form styles (loaded after multipage.css).
   Goal: make the inner-page nav (.nav) IDENTICAL to the homepage nav
   (.site-nav), which is a full-width edge-to-edge dark bar from home4.css. */

/* --- Full-width flush nav bar (overrides multipage.css floating .nav) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 13px clamp(18px, 5vw, 72px);
  color: #e2f1fb;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .96), rgba(8, 47, 73, .9) 48%, rgba(2, 6, 23, .96)),
    rgba(2, 6, 23, .94);
  border: 0;
  border-bottom: 1px solid rgba(125, 211, 252, .22);
  border-radius: 0;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .34);
  backdrop-filter: none;
  overflow: visible;
}

/* Animated rainbow top line (like homepage) */
.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #f97316, #14b8a6, #0ea5e9);
  background-size: 220% 100%;
  animation: navFlow 4.8s linear infinite;
}
@keyframes navFlow { to { background-position: -220% 0; } }

/* Soft side glows */
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(14, 165, 233, .16), transparent 22%),
    radial-gradient(circle at 82% 50%, rgba(249, 115, 22, .14), transparent 20%);
  pointer-events: none;
}

.nav .logo,
.nav .links,
.nav .nav-actions { position: relative; z-index: 2; }

.nav .logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  background: transparent;
  filter: contrast(1.15);
}

/* Hero clears the fixed bar */
.page-hero {
  padding-top: 124px;
  min-height: 480px;
}

/* --- Links pill container + animated links (like homepage) --- */
.nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 999px;
  background: rgba(2, 6, 23, .28);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .04);
}

.links .dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.links .dropdown > .drop-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav .links a,
.nav .links .drop-toggle {
  position: relative;
  overflow: hidden;
  min-width: 92px;
  text-align: center;
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: #cbd5e1;
  padding: 10px 15px;
  border-radius: 999px;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}

/* gradient hover overlay */
.nav .links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(14, 165, 233, .22), rgba(249, 115, 22, .14));
  opacity: 0;
  transition: opacity .22s ease;
  z-index: -1;
}
/* animated underline */
.nav .links a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #fb923c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s ease;
}

.nav .links a:hover,
.nav .links a:focus-visible,
.nav .links a.active,
.nav .links .dropdown:hover > .drop-toggle,
.nav .links .dropdown:focus-within > .drop-toggle {
  color: #ffffff;
  background: rgba(14, 165, 233, .18);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .22);
  outline: none;
}
.nav .links a:hover::before,
.nav .links a:focus-visible::before,
.nav .links a.active::before { opacity: 1; }
.nav .links a:hover::after,
.nav .links a:focus-visible::after,
.nav .links a.active::after { transform: scaleX(1); }

/* Invisible hover bridge so the dropdown does not disappear across the gap */
.links .dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.links .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 232px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2, 6, 23, .98), rgba(8, 47, 73, .96));
  border: 1px solid rgba(125, 211, 252, .24);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 2001;
}

.links .dropdown:hover .dropdown-menu,
.links .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.links .dropdown-menu a {
  display: block;
  min-width: 0;
  text-align: start;
  padding: 10px 12px;
  border-radius: 8px;
  color: #dbeafe;
  white-space: nowrap;
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.links .dropdown-menu a::after,
.links .dropdown-menu a::before { content: none; }
.links .dropdown-menu a:hover {
  background: rgba(14, 165, 233, .18);
  color: #ffffff;
}

/* Lead form */
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 7px; color: #07364f; font-weight: 700; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #ffffff;
  color: #07364f;
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form button { border: 0; cursor: pointer; font: inherit; }
.form-note { color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* --- Right side actions: joined Shop + Contact group + language toggle --- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .cta-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(8, 47, 73, .26);
}

/* CTA buttons: iconed, animated shine sweep + hover brightness (like homepage) */
.nav .cta-group .cta {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px 22px;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  transition: filter .2s ease;
}
.nav .cta-group .cta:hover { filter: brightness(1.07); }
.nav .cta-group .cta::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
}
.nav .cta-group .cta::after {
  content: "";
  position: absolute;
  inset: -70% -45%;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%);
  transform: translateX(90%);
  animation: ctaSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaSweep {
  0%, 45% { transform: translateX(90%); }
  70%, 100% { transform: translateX(-90%); }
}
.nav .cta-group .cta + .cta {
  border-inline-start: 1px solid rgba(255, 255, 255, .28);
}
.nav .cta-group .cta.cta-shop {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: none;
}
.nav .cta-group .cta.cta-shop::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.lang-toggle {
  position: relative;
  z-index: 2;
  min-width: 54px;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .5);
  background: rgba(255, 255, 255, .06);
  color: #e0f2fe;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.lang-toggle:hover { background: rgba(14, 165, 233, .22); color: #fff; transform: translateY(-1px); }

/* Hamburger toggle (hidden on desktop) */
.nav .nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, .3);
  border-radius: 12px;
  background: rgba(14, 165, 233, .12);
  cursor: pointer;
}
.nav .nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #e2f1fb;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile: hamburger + slide-down panel (like homepage @920px) --- */
@media (max-width: 920px) {
  .nav { min-height: 78px; padding: 10px 14px; }
  .page-hero { padding-top: 104px; min-height: 420px; }

  .nav .nav-toggle { display: inline-flex; }
  .nav .links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(2, 6, 23, .98), rgba(8, 47, 73, .97));
    border: 1px solid rgba(125, 211, 252, .24);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .5);
    z-index: 2001;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .nav.nav-open .links { display: flex; }
  .nav .links a,
  .nav .links .drop-toggle { min-width: 0; text-align: start; }
  .nav .links a::after { content: none; }
  .links .dropdown { display: block; width: 100%; }
  .links .dropdown > .drop-toggle { display: block; width: 100%; }
  .links .dropdown::after { content: none; }
  .links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 4px 12px 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .nav { min-height: 72px; }
  .nav-actions { gap: 6px; }
  .nav .cta-group .cta {
    min-height: 40px;
    padding: 7px 12px;
    font-size: .8rem;
    gap: 5px;
  }
  .nav .cta-group .cta::before {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }
  .lang-toggle {
    min-width: 46px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: .82rem;
  }
  .nav .nav-toggle { width: 40px; height: 40px; }
}

/* ===== v2 overrides: single-line nav + bigger transparent logo ===== */
.nav { padding-block: 6px; }
.nav .links { gap: 2px; }
.nav .links a,
.nav .links .drop-toggle {
  white-space: nowrap;
  min-width: 0;
  font-size: clamp(.72rem, .92vw, .95rem);
  padding: 10px clamp(8px, 1vw, 15px);
}
.nav .logo img {
  width: auto;
  height: 96px;
  max-width: 340px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  filter: brightness(0) invert(1);
}
@media (max-width: 1150px) {
  .nav .links a,
  .nav .links .drop-toggle { font-size: clamp(.68rem, .82vw, .9rem); padding: 9px 8px; }
}
@media (max-width: 640px) {
  .nav { padding-block: 5px; }
  .nav .logo img { height: 66px; max-width: 220px; }
}

/* ===== Inner-page hero: compact title + short height (home page untouched) ===== */
/* These come last so they override the taller .page-hero + big h1 values above. */
.page-hero {
  min-height: 0;
  padding-top: 100px;
  padding-bottom: 22px;
}
.page-hero .hero-inner { gap: 22px; }
.page-hero h1 {
  margin-top: 6px;
  max-width: 640px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.22;
}
.page-hero .lead {
  margin-top: 10px;
  max-width: 600px;
  font-size: .92rem;
  line-height: 1.65;
}
.page-hero .eyebrow { padding: 4px 10px; font-size: .82rem; }
.page-hero .hero-art { min-height: 150px; }
.page-hero .orb { width: 140px; height: 140px; }
@media (max-width: 920px) {
  .page-hero { padding-top: 90px; padding-bottom: 18px; }
  .page-hero h1 { font-size: clamp(1.3rem, 4.4vw, 1.85rem); }
  .page-hero .lead { font-size: .9rem; }
  .page-hero .hero-art { min-height: 120px; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 80px; padding-bottom: 16px; }
  .page-hero h1 { font-size: clamp(1.2rem, 5.4vw, 1.6rem); }
  .page-hero .orb { width: 110px; height: 110px; }
}
