/* Font loaded via <link> in HTML for performance */

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

:root {
  --blue-900: #102a5c;
  --blue-800: #1e3a8a;
  --blue-700: #1e4d8a;
  --blue-600: #2866AB;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --teal: #5FBDC5;
  --purple: #AA83F3;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--blue-600); }
.nav-logo img { height: 32px; }

.nav-short { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--slate-900); }

/* Dropdown menus */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown .caret { font-size: 0.55rem; line-height: 1; transform: translateY(1px); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  margin: 0;
  padding: 8px;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  list-style: none;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--blue-50); }

.nav-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--blue-800) !important; }

.nav-lang {
  font-size: 0.82rem;
  color: var(--slate-500);
  display: flex;
  gap: 8px;
}

.nav-lang a {
  color: var(--slate-500);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-lang a.active {
  color: var(--blue-600);
  background: var(--blue-50);
  font-weight: 600;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger svg { display: block; }

/* Mobile language switcher (inside hamburger menu) */
.nav-lang-mobile {
  display: none;
}

.nav-lang-mobile a {
  color: var(--slate-500);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.nav-lang-mobile a.active {
  color: var(--blue-600);
  background: var(--blue-50);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .nav-full { display: inline; }
  .nav-short { display: none; }

  .nav-hamburger { display: block; }

  .nav-lang { display: none; }

  .nav-lang-mobile {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--slate-200);
    list-style: none;
  }

  /* Dropdowns visas alltid utfällda i mobilmenyn */
  .nav-dropdown { position: static; width: 100%; text-align: center; }
  .nav-dropdown .caret { display: none; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 6px 0 0;
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .nav-dropdown-menu a {
    padding: 6px 12px;
    white-space: normal;
    color: var(--slate-500);
    font-size: 0.85rem;
  }
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer a { color: var(--slate-300); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--slate-900);
  color: #fff;
  padding: 16px 24px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-inner p {
  margin: 0;
  flex: 1;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-accept {
  background: var(--blue-600);
  color: #fff;
}
.cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
