/* ═══════════════════════════════════════════════════════
   MEDLINE ROBOTICS — SHARED STYLES
   Used by ALL pages. Edit once, reflects everywhere.
   ═══════════════════════════════════════════════════════ */

/* ─── VARIABLES & RESET ─── */
:root {
  --red: #c0392b; --red-dark: #a93226; --dark: #111111;
  --dark2: #1a1a1a; --dark3: #222222; --grey: #f3f3f5;
  --white: #ffffff; --text: #1a1a1a; --text-mid: #444444;
  --text-light: #777777; --border: rgba(0,0,0,0.09);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.16);
}

/* ─── HEADER ─── */
header.site-header {
  display: block !important;
  padding: 0 !important;
  height: auto !important;
  background: var(--dark) !important;
  position: sticky !important;
  top: 0 !important;
  left: auto !important; right: auto !important;
  backdrop-filter: none !important;
  border-bottom: 3px solid var(--red) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.55) !important;
  z-index: 1000 !important;
  justify-content: unset !important;
  align-items: unset !important;
}
.header-inner {
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 74px !important;
  position: relative !important;
}
.site-logo { position: absolute !important; left: 32px !important; }
.site-logo a { display: flex !important; align-items: center !important; }
.site-logo img { height: 44px !important; width: auto !important; filter: brightness(0) invert(1) !important; transition: opacity 0.2s !important; }
.site-logo img:hover { opacity: 0.85 !important; }

/* ─── DESKTOP NAV ─── */
.main-nav { display: flex !important; justify-content: center !important; }
.main-nav ul { list-style: none !important; display: flex !important; align-items: center !important; gap: 1px !important; }
.main-nav > ul > li { position: relative !important; }
.main-nav > ul > li > a {
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 9px 14px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: background 0.18s, color 0.18s !important;
  white-space: nowrap !important;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.nav-open > a { background: var(--red) !important; color: #fff !important; }
.main-nav .dropdown {
  position: absolute !important; top: calc(100% + 2px) !important; left: 0 !important;
  background: #161616 !important; border: 1px solid rgba(255,255,255,0.07) !important;
  border-top: 2px solid var(--red) !important; min-width: 240px !important;
  border-radius: 0 0 6px 6px !important; box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
  display: none !important; z-index: 500 !important; padding: 4px 0 !important;
}
.main-nav .dropdown.dd-open { display: block !important; }
.main-nav .dropdown li { position: relative !important; }
.main-nav .dropdown > li > a {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  padding: 9px 18px !important; color: rgba(220,220,220,0.85) !important;
  font-size: 12px !important; font-weight: 400 !important; text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important; white-space: nowrap !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
.main-nav .dropdown > li > a:hover,
.main-nav .dropdown > li.dd-open > a { background: var(--red) !important; color: #fff !important; }
.main-nav .dropdown .dropdown { top: -6px !important; left: 100% !important; border-top: 2px solid var(--red) !important; }
.nav-arrow { font-size: 10px !important; opacity: 0.55 !important; }

/* ─── MOBILE TOGGLE ─── */
.mobile-toggle {
  display: none !important; background: none !important; border: none !important;
  color: #fff !important; font-size: 22px !important; cursor: pointer !important; padding: 8px !important;
}

/* ─── MOBILE NAV ─── */
header.site-header .mobile-nav { display: none !important; background: #161616 !important; border-top: 1px solid rgba(255,255,255,0.07) !important; max-height: 72vh !important; overflow-y: auto !important; }
header.site-header .mobile-nav.open { display: block !important; }
.mobile-nav ul { list-style: none !important; }
.mobile-nav ul li a {
  display: block !important; padding: 11px 24px !important;
  color: rgba(255,255,255,0.75) !important; font-size: 13px !important;
  text-decoration: none !important; border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: background 0.15s, color 0.15s !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
.mobile-nav ul li a:hover { background: var(--red) !important; color: #fff !important; }
.mobile-nav .mob-sub, .mobile-nav .mob-sub2 { background: rgba(0,0,0,0.3) !important; padding-left: 16px !important; display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .main-nav { display: none !important; }
  .mobile-toggle { display: block !important; position: absolute !important; right: 16px !important; }
  #desktop-auth-nav { display: none !important; }
}

/* ═══ FOOTER ═══ */
.site-footer { background: var(--dark); border-top: 3px solid var(--red); padding: 60px 0 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 52px; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 18px; display: block; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; margin-bottom: 22px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.f-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.55); font-size: 10.5px; font-weight: 600; padding: 5px 12px; border-radius: 3px; letter-spacing: 0.8px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.42); text-decoration: none; font-size: 13px; transition: color 0.2s; line-height: 1.55; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-copy a { color: rgba(192,57,43,0.7); text-decoration: none; }
.footer-copy a:hover { color: var(--red); }

/* ─── FOOTER RESPONSIVE ─── */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── SCROLL TO TOP ─── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--red); color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; z-index: 999; text-decoration: none;
  border: none;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }
