/* ═══════════════════════════════════════
   DATAX SHARED STYLES — datax-shared.css
   Include via: <style><?php include('css/datax-shared.css'); ?></style>
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0b1120;
  --ink-light:  #374151;
  --surface:    #f4f6fb;
  --card:       #ffffff;
  --accent:     #0ea5e9;
  --accent2:    #06b6d4;
  --gold:       #f59e0b;
  --border:     #e2e8f0;
  --nav-h:      64px;
  --r:          14px;
  --shadow:     0 4px 24px rgba(14,165,233,.10);
  --shadow-lg:  0 12px 40px rgba(14,165,233,.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11,17,32,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 2rem;
}

.navbar-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.navbar-brand span { color: var(--accent); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin-left: auto;
}

.navbar-links > li { position: relative; }

.navbar-links > li > a,
.navbar-links > li > .nav-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: background .18s, color .18s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.navbar-links > li > a:hover,
.navbar-links > li > .nav-btn:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.nav-btn svg { transition: transform .2s; }
.navbar-links > li:hover .nav-btn svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 180px;
  background: #151e35;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 0 .4rem .4rem;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: transparent;
}

.navbar-links > li:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 7px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  transition: background .14s, color .14s;
}

.dropdown-menu a:hover {
  background: rgba(14,165,233,.18);
  color: #fff;
}

.nav-caret {
  width: 12px; height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── FOOTER ── */
.footer {
  background: #080e1c;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3rem clamp(1rem,5vw,3rem) 2rem;
  margin-top: auto;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand span { color: var(--accent); }

.footer-tagline {
  font-size: .86rem;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
}

.footer-contact { text-align: right; }

.footer-contact p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .3rem;
}

.footer-contact a {
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
}

.footer-credit {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .hide-mobile { display: none; }
  .footer-contact { text-align: left; }
}
