/* ===== Shared Styles for XXX Electronics Sourcing ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --bg: #ffffff;
  --bg2: #f5f7fa;
  --bg3: #e8ecf1;
  --ink: #1a1a2e;
  --muted: #5a6a7a;
  --rule: #d0d7de;
  --success: #27ae60;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.25; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 700;
  font-size: 14px; cursor: pointer; border: none; transition: var(--transition);
  font-family: 'Space Grotesk', sans-serif; gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }
.section-title { font-size: 2rem; color: var(--primary); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  font-size: 13px; padding: 8px 0; position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left a, .top-bar-left span { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); font-size: 12px; }
.top-bar-left a:hover { color: var(--accent); }
.top-bar-left i { font-size: 12px; color: var(--accent); }
.top-bar-right { display: flex; gap: 4px; }
.top-bar-right a {
  padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7); border: 1px solid transparent;
}
.top-bar-right a.active { background: var(--accent); color: #fff; }
.top-bar-right a:hover:not(.active) { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule); transition: var(--transition);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; flex-direction: column; }
.logo-main { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-menu > li > a:hover { color: var(--accent); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 280px; padding: 12px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition); border: 1px solid var(--rule);
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--ink);
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--bg2); border-left-color: var(--accent); color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); transition: var(--transition); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 100px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; padding: 24px;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--rule); }
.mobile-menu .dropdown-mobile { padding-left: 16px; }
.mobile-menu .dropdown-mobile a { font-size: 14px; font-weight: 400; padding: 10px 0; }
.mobile-menu-actions {
  display: flex; gap: 10px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.mobile-menu-actions .btn {
  flex: 1; padding: 14px 12px; font-size: 14px; border-radius: 50px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; letter-spacing: 0.3px;
}
.mobile-menu-actions .btn-whatsapp {
  background: #25d366; color: #fff; border: none;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.mobile-menu-actions .btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.mobile-menu-actions .btn-primary {
  box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ===== Floating Buttons ===== */
.float-rfq {
  position: fixed; bottom: 100px; right: 24px; z-index: 999;
  background: var(--accent); color: #fff; padding: 14px 20px;
  border-radius: 50px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,126,34,0.5); } 50% { box-shadow: 0 0 0 12px rgba(230,126,34,0); } }
.float-whatsapp {
  position: fixed; bottom: 32px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--transition); font-size: 28px;
}
.float-whatsapp:hover { transform: scale(1.1); }

/* Page Banner */
.page-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 140px 0 60px; text-align: center; }
.page-banner h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-banner p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }


/* Footer Brand & Social */
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-main { font-size: 1.15rem; color: #fff; }
.footer-brand .logo-sub { font-size: 10px; color: var(--accent); letter-spacing: 0.8px; text-transform: uppercase; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
/* ===== Responsive ===== */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar-left { gap: 12px; }
  .top-bar-left span { display: none; }
}
@media (max-width: 768px) {
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-rfq { bottom: 90px; right: 16px; padding: 10px 16px; font-size: 13px; }
  .float-whatsapp { bottom: 24px; right: 16px; width: 48px; height: 48px; font-size: 24px; }
  .page-banner h1 { font-size: 1.6rem; }
  .top-bar-left a span { display: none; }
}
@media (max-width: 480px) {
  .page-banner { padding: 120px 0 40px; }
}
