/* ===============================
   HEADER MODERN v10 (FINAL)
   Goal:
   - Fix wrap (single row menu)
   - Works with OLD index.css floats
   - Glass (liquid-like) look
   - Hover/Active red pill
   - Customer service stays top-right
   - No HTML structure change needed
================================= */

:root{
  --brand:#8b181b;
  --ink:#1f2937;
  --muted:#6b7280;

  --glass: rgba(255,255,255,.22);
  --glassBorder: rgba(255,255,255,.30);
  --shadow: 0 14px 28px rgba(0,0,0,.12);
}

/* Use Poppins everywhere in header area */
#header, #menu, #customer-service{
  font-family:"Poppins", Arial, Helvetica, sans-serif !important;
}

/* Make header a positioning context */
#header{
  position:relative !important;
}

/* ===============================
   IMPORTANT FIX:
   Old index.css makes #right-menu width 670px
   => This forced menu to wrap.
   We remove that limit.
================================= */
#header #right-menu,
#bg-content #header #right-menu{
  float:none !important;
  width:935px !important;     /* same as #content */
  margin:0 auto !important;
  position:relative !important;
}

/* Keep logo left exactly as old layout */
#header h1{
  float:left !important;
}

/* ===============================
   Customer Service Card (Top Right)
================================= */
#header #customer-service,
#bg-content #header #customer-service{
  position:absolute !important;
  top: 6px !important;
  right: 0 !important;

  float:none !important;
  width:auto !important;
  text-align:right !important;
  z-index:999 !important;
}

/* Card glass */
#customer-service p{
  margin:0 !important;
  padding:10px 14px !important;
  border-radius:18px !important;

  background: rgba(255,255,255,.28) !important;
  border: 1px solid rgba(255,255,255,.35) !important;

  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;

  box-shadow: 0 10px 20px rgba(0,0,0,.10) !important;
}

/* Text tuning */
#customer-service .service-left{
  color: var(--muted) !important;
}
#customer-service .service-left strong{
  color: var(--muted) !important;
  font-weight:600 !important;
}
#customer-service b{
  color: var(--ink) !important;
  font-weight:700 !important;
}

/* Optional: shrink icon area a bit */
#customer-service .service-right img{
  margin-left:8px !important;
}

/* ===============================
   Menu (Glass Bar) - Center + One Row
================================= */
#header #menu,
#bg-content #header #menu{
  /* cancel old float/right + fixed width */
  float:none !important;
  width:935px !important;
  margin: 78px auto 0 auto !important; /* pushes under logo + customer-service */
  position:relative !important;

  padding: 10px 14px !important;

  background: var(--glass) !important;
  border: 1px solid var(--glassBorder) !important;
  border-radius: 22px !important;

  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;

  box-shadow: var(--shadow) !important;

  /* if screen is narrow -> allow horizontal scroll instead of wrap */
  overflow-x:auto !important;
  overflow-y:hidden !important;
}

/* remove scrollbar ugliness (optional) */
#menu::-webkit-scrollbar{ height:8px; }
#menu::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.12); border-radius:999px; }
#menu::-webkit-scrollbar-track{ background:transparent; }

/* UL -> flex center + NO WRAP */
#header #menu ul,
#bg-content #header #menu ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;

  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;

  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  text-align:center !important;
}

/* LI -> cancel old float/height/padding */
#header #menu ul li,
#bg-content #header #menu ul li{
  float:none !important;
  height:auto !important;
  padding-top:0 !important;
  margin:0 !important;
  background:none !important;
}

/* ===============================
   Link pill base
================================= */
#header #menu ul li a,
#bg-content #header #menu ul li a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;

  border-radius: 999px !important;

  /* remove old right border lines */
  border-right: none !important;

  color: var(--ink) !important;
  text-decoration:none !important;

  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.25) !important;

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important;
}

/* Hover (strong) */
#header #menu ul li:hover a,
#bg-content #header #menu ul li:hover a{
  background: rgba(139,24,27,.90) !important;
  color:#fff !important;

  transform: translateY(-2px) scale(1.06) !important;
  box-shadow:
    0 22px 38px rgba(139,24,27,.35),
    0 10px 18px rgba(0,0,0,.14) !important;
}

/* Active page (same as hover but slightly stronger) */
#header #menu ul li.active a,
#bg-content #header #menu ul li.active a{
  background: rgba(139,24,27,.95) !important;
  color:#fff !important;

  transform: translateY(-1px) !important;
  box-shadow:
    0 20px 34px rgba(139,24,27,.30),
    0 10px 18px rgba(0,0,0,.14) !important;
}

/* Remove old "li:hover background" from index.css */
#menu ul li:hover{
  background:none !important;
}

/* Make sure menu doesn't look broken on very old browsers */
#menu ul li a:focus{
  outline:none !important;
}