/* =============================================
   SANDS ELECTRONICS SERVICES — Global Styles
   Dark tech aesthetic | Blue + Silver + Black
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── CSS Variables ── */
:root {
  --black:       #0a0a0a;
  --dark:        #111318;
  --dark-2:      #161b24;
  --dark-3:      #1c2333;
  --blue:        #1a6fd4;
  --blue-light:  #4da6ff;
  --blue-glow:   rgba(26, 111, 212, 0.35);
  --silver:      #8a9bae;
  --silver-light:#c0ccd8;
  --white:       #f0f4f8;
  --text:        #c8d4e0;
  --text-muted:  #7a8a9a;
  --border:      rgba(26, 111, 212, 0.2);
  --border-dim:  rgba(138, 155, 174, 0.12);

  --font-head:   'Rajdhani', sans-serif;
  --font-body:   'Exo 2', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;

  --nav-h:       72px;
  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--blue); color: var(--white); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.03em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
.mono { font-family: var(--font-mono); font-size: 0.85em; color: var(--blue-light); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Spacing ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Section Titles ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
}
.section-title {
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue-light); }
.section-subtitle {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 1.05rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 20px var(--blue-glow);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--black);
  box-shadow: 0 0 35px rgba(77, 166, 255, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid var(--silver);
}
.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  box-shadow: 0 0 20px var(--blue-glow);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* ── Cards ── */
.card {
  background: var(--dark-2);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--blue-glow);
}
.card:hover::before { opacity: 1; }

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(26, 111, 212, 0.15);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,111,212,0.08) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(26,111,212,0.04) 79px, rgba(26,111,212,0.04) 80px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(26,111,212,0.04) 79px, rgba(26,111,212,0.04) 80px);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breadcrumb a { color: var(--blue-light); }
.breadcrumb .sep { color: var(--border); }

/* ── Icon Box ── */
.icon-box {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 111, 212, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.icon-box svg { stroke: var(--blue-light); }
.card:hover .icon-box {
  background: rgba(26, 111, 212, 0.25);
  box-shadow: 0 0 20px var(--blue-glow);
}

/* Value / sector / tab icons */
.value-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 0.5rem; }
.value-icon svg { stroke: var(--blue-light); }
.sector-icon { display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
.sector-icon svg { stroke: var(--blue-light); }
.info-icon { display: flex; align-items: center; justify-content: center; }
.info-icon svg { stroke: var(--blue-light); }
.industry-tag svg { display: inline; vertical-align: middle; margin-right: 4px; stroke: var(--blue-light); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border-dim);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
}

/* ── Glowing line accent ── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
  margin: 0;
}

/* ── Tag ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  padding: 0.2rem 0.6rem;
  background: rgba(138,155,174,0.08);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234da6ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ── Notification Banner ── */
.news-banner {
  background: rgba(26, 111, 212, 0.1);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow: hidden;
}
.news-ticker {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.news-ticker-label {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.news-ticker-text {
  font-size: 0.82rem;
  color: var(--silver-light);
  font-family: var(--font-mono);
}
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── ═══════════════════════════════
   NAVIGATION
═══════════════════════════════ ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(26,111,212,0.5));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--blue-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: all var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--blue-light);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 0.8rem; right: 0.8rem;
}
.nav-link.active { color: var(--blue-light); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px var(--blue-glow);
  z-index: 100;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--dark-2);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: calc(100% + 8px);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}
.nav-dropdown a:hover {
  background: rgba(26,111,212,0.15);
  color: var(--white);
}
.nav-dropdown a .dd-icon { font-size: 1rem; width: 20px; text-align: center; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 0;
}
/* Hide the quote button inside nav-menu on desktop */
.nav-menu-cta { display: none; }

/* SVG icons in dropdown */
.dd-icon-svg { display: inline-flex; align-items: center; }
.dd-icon-svg svg { stroke: var(--blue-light); }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--silver-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-phone svg { stroke: var(--silver-light); transition: stroke var(--transition); }
.nav-phone:hover { color: var(--blue-light); }
.nav-phone:hover svg { stroke: var(--blue-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver-light);
  transition: all var(--transition);
  transform-origin: left center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(1px, -1px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(1px, 1px); }

/* ── ═══════════════════════════════
   FOOTER
═══════════════════════════════ ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dim);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(26,111,212,0.3));
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a::before {
  content: '›';
  color: var(--blue);
  font-size: 1rem;
  transition: transform var(--transition);
}
.footer-links a:hover { color: var(--blue-light); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-contact-item .f-icon {
  color: var(--blue);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.footer-contact-item .f-icon svg { stroke: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
/* social icons removed */

/* WhatsApp float removed */

/* ── Back to top ── */
.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 15px var(--blue-glow);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border-dim); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  /* Hide desktop-only nav elements */
  .nav-menu, .nav-phone, .nav-quote-btn { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile open menu */
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 999;
    backdrop-filter: blur(16px);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }

  /* Show Get a Quote inside mobile menu */
  .nav-menu-cta {
    display: block;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-dim);
    margin-top: 0.5rem;
  }
  .nav-menu-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: var(--dark-3);
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .nav-dropdown::before { display: none; }
  .nav-item.expanded .nav-dropdown { display: block; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
  .container { padding: 0 1rem; }
}
