/* =============================================
   SpeedCalculator.net — Shared Stylesheet
   ============================================= */

/* CSS VARIABLES */
:root {
  --bg: #05080f;
  --bg2: #0b1220;
  --bg3: #111b2e;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-glow: rgba(59,130,246,0.15);
  --green: #10b981;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --red: #ef4444;
  --teal: #06b6d4;
  --text: #f0f4ff;
  --text2: #94a3b8;
  --text3: #4a6080;
  --border: rgba(59,130,246,0.12);
  --border2: rgba(59,130,246,0.25);
  --card: rgba(11,18,32,0.9);
  --radius: 14px;
  --radius-sm: 8px;
}

/* RESET */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* BG EFFECTS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.12), transparent);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(5,8,15,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--accent2); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent2); }
.nav-active { color: var(--accent2) !important; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #2563eb; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--text3); }
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { margin: 0 6px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 580px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo {
  font-size: 20px;
  display: block;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 260px;
}
.footer-contact {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  transition: color 0.2s;
}
.footer-contact-btn:hover { color: var(--accent2); }
.footer-contact-btn.whatsapp:hover { color: var(--green); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tag {
  font-size: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--text3);
}

/* =============================================
   SHARED ANIMATIONS
   ============================================= */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
