/* ── GLOBAL HEADER STYLES ── */

:root {
  --nav-bg:      #1c2b5e;
  --ann-bg:      #1e2f6b;
  --white:       #ffffff;
  --accent:      #5b6bcc;
  --accent-lt:   #7b8de0;
  --border-dark: #2a3a7a;
  --ink:         #1a1a2e;
  --ink-mid:     #4a4f70;
}

/* ── ANNOUNCEMENT BAR ── */
.ann-bar {
  background: var(--ann-bg);
  color: rgba(255,255,255,0.75);
  text-align: center; padding: 9px 20px;
  font-size: 0.76rem; letter-spacing: 0.05em;
  position: relative; z-index: 101; overflow: hidden;
}
.ann-track {
  display: inline-flex; gap: 0;
  animation: annScroll 40s linear infinite;
  white-space: nowrap;
}
.ann-item { padding: 0 60px; }
.ann-sep { color: rgba(255,255,255,0.3); }
@keyframes annScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 68px;
  background: var(--nav-bg);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 42px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.88rem; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.2); }
.nav-cta {
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  padding: 8px 20px; border-radius: 6px;
  font-size: 0.85rem !important; font-weight: 500 !important;
  transition: all 0.2s !important;
  cursor: pointer;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.8) !important;
}

/* ── INLINE SEARCH ── */
.nav-search-wrapper { position: relative; display: flex; align-items: center; }
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.nav-search-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

.nav-search-bar {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px;
  background: rgba(28, 43, 94, 0.97);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; padding: 6px 12px;
  width: 0; opacity: 0; overflow: hidden;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease, padding 0.35s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-search-bar.open {
  width: 280px; opacity: 1;
  pointer-events: auto; padding: 6px 12px;
}
.nav-search-bar input {
  flex: 1; border: none; outline: none;
  background: transparent; color: #fff;
  font-size: 0.88rem; font-family: 'Inter', sans-serif;
  min-width: 0;
}
.nav-search-bar input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1.2rem; cursor: pointer; padding: 2px 4px;
  line-height: 1; transition: color 0.2s;
}
.nav-search-close:hover { color: #fff; }

/* ── MEGA MENU ── */
.nav-item-mega { position: relative; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  pointer-events: none; z-index: 100; margin-top: 10px;
  width: auto; padding: 0; background: transparent; border: none; box-shadow: none;
}
.products-dropdown {
  display: grid;
  grid-template-columns: 200px 220px 240px;
  gap: 0;
  padding: 28px 24px;
  background: #1a2a5e;
  border-radius: 12px;
  min-height: 300px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--border-dark);
  text-align: left;
}
.col-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); margin-bottom: 16px; text-transform: uppercase;
}
.category-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background 0.15s ease;
}
.category-row:hover, .category-row.active { background: rgba(255,255,255,0.08); }
.category-name { color: rgba(255,255,255,0.85); font-size: 14px; text-decoration: none; font-weight: 400; }
.category-name:hover { color: #fff; }
.chevron { color: rgba(255,255,255,0.4); font-size: 12px; transition: transform 0.2s ease; }
.category-row.active .chevron { transform: rotate(180deg); color: #e8820c; }
.col-products {
  padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.08); animation: fadeIn 0.15s ease;
}
.sub-product-link {
  display: block; color: rgba(255,255,255,0.7); font-size: 13px;
  padding: 7px 0; text-decoration: none; transition: color 0.15s ease, padding-left 0.15s ease;
}
.sub-product-link:hover { color: #fff; padding-left: 6px; }
.col-featured { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.08); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-item-mega.open .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
/* ── CONTACT DROPDOWN ── */
.contact-dropdown {
  position: absolute; top: 68px; right: 60px;
  background: white; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 420px;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px); transition: all 0.3s ease;
  z-index: 1000;
}
.contact-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.contact-dropdown-arrow {
  position: absolute; top: -6px; right: 24px;
  width: 12px; height: 12px; background: white;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.cd-grid { 
  display: grid !important; 
  grid-template-columns: 1fr 1fr !important; 
  grid-template-rows: auto auto !important;
  gap: 20px 24px !important; 
  padding: 24px !important; 
}
.cd-item {
  display: flex !important; 
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  text-align: left !important;
  padding: 8px !important;
  text-decoration: none; 
  color: var(--ink);
  transition: background 0.2s;
  border-radius: 8px;
}
.cd-item:hover { background: #f0f2ff; }
.cd-icon { color: #5b6bcc; display: flex; align-items: flex-start; padding-top: 2px; }
.cd-icon svg { width: 20px !important; height: 20px !important; }
.cd-text { display: flex; flex-direction: column; gap: 0; text-align: left !important; }
.cd-title { font-size: 14px !important; font-weight: 600 !important; color: #1c2b5e; display: block !important; text-align: left !important; margin-bottom: 2px !important; }
.cd-sub { font-size: 12px !important; color: #666 !important; line-height: 1.3; display: block !important; text-align: left !important; margin-top: 2px !important; }

/* ── MOBILE NAV ── */
.hamburger { display: none; background: none; border: none; padding: 10px; cursor: pointer; flex-direction: column; gap: 4px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: all 0.3s; }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: var(--nav-bg); padding: 80px 40px;
  display: flex; flex-direction: column; gap: 20px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { color: white; text-decoration: none; font-size: 1.1rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.mobile-menu a:hover { opacity: 1; }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* Mobile Products Accordion */
.mob-nav-item { display: flex; flex-direction: column; gap: 0; }
.mob-products-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none;
  color: rgba(255,255,255,0.8); font-size: 1.1rem; font-weight: 500;
  padding: 0; cursor: pointer; text-align: left; font-family: inherit;
  transition: color 0.2s;
}
.mob-products-toggle:hover { color: #fff; }
.mob-chevron {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: transform 0.25s ease; display: inline-block; line-height: 1;
}
.mob-products-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0; padding-left: 16px;
}
.mob-products-submenu.open { max-height: 400px; opacity: 1; }
.mob-products-submenu a {
  display: block !important; color: rgba(255,255,255,0.7) !important;
  font-size: 0.95rem !important; padding: 10px 0 !important;
  text-decoration: none !important; opacity: 1 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s ease, padding-left 0.15s ease !important;
}
.mob-products-submenu a:last-child { border-bottom: none; }
.mob-products-submenu a:hover, .mob-products-submenu a:active {
  color: #fff !important; padding-left: 6px !important;
}

@media (max-width: 1024px) {
  .hamburger { display: inline-flex; }
  .nav-links { display: none !important; }
  nav { padding: 0 32px; }
}


@media (max-width: 640px) {
  nav { padding: 0 20px; }
}

/* ── RESPONSIVE FIXES ── */
@media (max-width: 1024px) {
  .mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  pointer-events: none; z-index: 100; margin-top: 10px;
  width: auto; padding: 0; background: transparent; border: none; box-shadow: none;
}
.products-dropdown {
  display: grid;
  grid-template-columns: 200px 220px 240px;
  gap: 0;
  padding: 28px 24px;
  background: #1a2a5e;
  border-radius: 12px;
  min-height: 300px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--border-dark);
  text-align: left;
}
.col-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); margin-bottom: 16px; text-transform: uppercase;
}
.category-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background 0.15s ease;
}
.category-row:hover, .category-row.active { background: rgba(255,255,255,0.08); }
.category-name { color: rgba(255,255,255,0.85); font-size: 14px; text-decoration: none; font-weight: 400; }
.category-name:hover { color: #fff; }
.chevron { color: rgba(255,255,255,0.4); font-size: 12px; transition: transform 0.2s ease; }
.category-row.active .chevron { transform: rotate(180deg); color: #e8820c; }
.col-products {
  padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.08); animation: fadeIn 0.15s ease;
}
.sub-product-link {
  display: block; color: rgba(255,255,255,0.7); font-size: 13px;
  padding: 7px 0; text-decoration: none; transition: color 0.15s ease, padding-left 0.15s ease;
}
.sub-product-link:hover { color: #fff; padding-left: 6px; }
.col-featured { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.08); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .mobile-menu { width: min(300px, 85vw); }
  .ann-bar { font-size: 0.7rem; padding: 7px 16px; }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 34px; }
  .mobile-menu { padding: 70px 28px; }
  .mobile-menu a { font-size: 1rem; }
  .contact-dropdown {
    right: 8px;
    width: calc(100vw - 16px);
  }
  .cd-grid { grid-template-columns: 1fr; }
}

