/* =============================================
   LineaGIS – Styles
   Minimalist dark-to-light responsive design
   ============================================= */

:root {
  --bg: #0a0f1e;
  --bg-dark: #060c18;
  --bg-section: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-dark: #111827;

  --accent: #c8006e;
  --accent-dark: #a8005c;
  --accent-light: #e0408e;
  --green: #10b981;
  --purple: #8b5cf6;
  --red: #ef4444;

  --text: #111827;
  --text-light: #f1f5f9;
  --text-muted: #6b7280;
  --text-muted-light: #94a3b8;

  --border: #e5e7eb;
  --border-dark: rgba(255, 255, 255, 0.08);

  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-section);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-accent {
  background: var(--accent);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label--light {
  color: rgba(255,255,255,0.75);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title--light { color: #fff; }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 114, 244, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(6, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(200, 0, 110, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.logo-img:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 24px rgba(200, 0, 110, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.logo-img--footer {
  height: 30px;
  opacity: 0.85;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(200, 0, 110, 0.3);
}

.logo-img--footer:hover {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(200, 0, 110, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.hero-map .leaflet-container {
  width: 100% !important;
  height: 100vh !important;
  background: var(--bg) !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(6, 12, 24, 0.96) 0%,
    rgba(6, 12, 24, 0.88) 38%,
    rgba(6, 12, 24, 0.55) 65%,
    rgba(6, 12, 24, 0.25) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}

.hero-content {
  max-width: 580px;
  animation: fadeInUp 0.9s ease forwards;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.hero-scroll:hover { color: rgba(255,255,255,0.8); }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-map-wrap {
  position: relative;
}

.service-map {
  height: 230px;
  width: 100%;
  background: #e5e7eb;
}

.service-map .leaflet-container {
  height: 100%;
  width: 100%;
}

.service-map-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.service-body {
  padding: 1.75rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-icon--blue  { background: rgba(200, 0, 110, 0.10); color: var(--accent); }
.service-icon--green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.service-icon--purple{ background: rgba(139, 92, 246, 0.1); color: var(--purple); }

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content .section-label { color: var(--accent-light); }
.about-content .section-title { color: var(--text-light); margin-bottom: 20px; }

.about-content p {
  color: var(--text-muted-light);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tech-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.tech-badge:hover {
  background: rgba(61, 114, 244, 0.2);
  border-color: var(--accent);
  color: var(--accent-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted-light);
  line-height: 1.4;
}

/* ── Clients ── */
.clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.client-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.client-sector-icon {
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
}

.client-sector {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.client-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.client-names strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.client-use-case {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted-light);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  transition: var(--transition);
}

.footer-nav a:hover { color: #fff; }

/* ── Leaflet overrides ── */
.leaflet-control-attribution {
  font-size: 10px !important;
  opacity: 0.6;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-control-zoom a {
  border-radius: 6px !important;
  font-weight: 400 !important;
}

/* Pulse markers for hero */
.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ring-pulse 2.5s ease infinite;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive: Tablet ── */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Responsive: Desktop ── */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }

  .menu-btn { display: none; }
  .nav-links { display: flex; }
}

/* ── Mobile nav ── */
@media (max-width: 1023px) {
  .menu-btn {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(6, 12, 24, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a {
    display: block;
    padding: 20px;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
  }

  .nav-cta {
    margin: 20px auto 0 !important;
    width: calc(100% - 40px) !important;
    border-radius: 8px !important;
    background: var(--accent) !important;
    color: #fff !important;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .section { padding: 72px 0; }
}
