/* ========================
   SHARED NAVIGATION STYLES
   Atlantic Export Enterprise
   ======================== */

nav {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto 0;
  height: 76px;
  border-bottom: 2px solid rgba(201, 214, 234, 0.4);
  background: rgba(7, 42, 94, 0.92);
  backdrop-filter: blur(10px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d9e9ff, #7ab0ff);
  color: #072a5e;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.logo-text {
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
  font-size: 0.94rem;
  font-weight: 700;
}

.logo-text span { color: #9bccff; }

.nav-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: #ffffff; }

.btn-nav {
  background: linear-gradient(145deg, #f2f7ff, #cde2ff);
  color: #072a5e !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
  border: 1px solid #d4e4fb;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

/* ========================
   MOBILE NAV
   ======================== */

@media (max-width: 768px) {
  nav { height: 70px !important; }

  .nav-inner { position: relative; }

  .nav-logo { width: 52px; height: 52px; }

  .logo-text { font-size: 13px; line-height: 1.2; }

  .nav-toggle {
    display: block !important;
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1300 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 7px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  /* slide-in panel from right — override any left:-100% or display:none from inline styles */
  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: auto !important;    /* neutralise any left:-100% from inline styles */
    right: -320px !important; /* hidden off-screen to the right */
    height: 100vh !important;
    width: 280px !important;
    max-width: 80%;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 88px 18px 20px !important;
    gap: 12px !important;
    background: linear-gradient(180deg, rgba(7,42,94,0.98), rgba(11,62,135,0.95)) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4) !important;
    transition: right .35s ease !important;
    z-index: 1250 !important;
  }

  .nav-links.open,
  .nav-links.active {
    right: 0 !important;
    left: auto !important;
  }

  .nav-links {
    text-align: left !important;  /* override text-align:center from some inline styles */
  }

  .nav-links li { width: 100%; }

  .nav-links a,
  .nav-links a:visited,
  .nav-links li a,
  .nav-links li a:visited {
    color: #fff !important;
    display: block !important;
    padding: 12px 8px !important;   /* override 16px 0 / 18px from inline styles */
    font-size: 0.92rem !important;  /* override 1.2rem from inline styles */
    font-weight: 700 !important;
    text-align: left !important;
    text-decoration: none !important;
    justify-content: flex-start !important;
  }

  /* "Request Quote" button — a.btn-nav gives specificity 0,2,2: beats all .nav-links li a rules */
  a.btn-nav,
  .nav-links li a.btn-nav,
  .nav-links li a.btn-nav:visited {
    background: #ffffff !important;
    color: #072a5e !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    border: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
  }
}

/* ========================
   PRODUCTS DROPDOWN
   ======================== */

.dropdown { position: relative; }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: .3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 145%;
  left: 0 !important;
  right: auto !important;
  transform: translateY(10px);
  width: calc(100vw - 70px) !important;
  max-width: 320px;
  margin-left: 0 !important;
  box-sizing: border-box;
  border-radius: 20px;
  background: #fff;
  padding: 14px 0;
  list-style: none;
  box-shadow: 0 20px 45px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transition: .35s ease;
  z-index: 99999;
}

.dropdown-menu li { width: 100%; }

.dropdown-menu li a {
  display: block;
  padding: 16px 24px;
  color: #111 !important;
  white-space: normal;
  word-break: break-word;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: .3s ease;
}

.dropdown-menu li a:hover {
  background: #f4f7ff;
  color: #145cc2 !important;
}

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

.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* ========================
   MOBILE DROPDOWN
   ======================== */

@media (max-width: 768px) {
  .dropdown { width: 100%; }

  .dropdown-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    display: none;
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #123f85 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .dropdown.active .dropdown-menu { display: block; }

  .dropdown-menu li {
    width: 100%;
    list-style: none;
  }

  .dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 16px 12px !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 600;
    border-radius: 14px;
    background: transparent !important;
  }

  .dropdown-menu li a:hover { background: rgba(255,255,255,.06) !important; }
}

/* ========================
   FLOATING WHATSAPP BUTTON
   ======================== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #f2f7ff, #cde2ff);
  color: #072a5e !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 700 !important;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid #d4e4fb;
  box-shadow: 0 10px 25px rgba(7, 42, 94, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #ffffff, #dbebff);
  box-shadow: 0 14px 30px rgba(7, 42, 94, 0.24);
}

.whatsapp-icon {
  display: inline-block;
  color: #072a5e;
}
