/* ====== RESET & BAS ====== */
* { box-sizing: border-box; }
html, body { height:100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f9f9fb;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== CONTAINER ====== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

/* ====== HEADER ====== */
.header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eef0f6;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 700;
  color: #3f2b96; /* lila */
  font-size: 1.5rem;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #0f1720;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.3s;
}

.nav a:hover {
  background: #f0f0ff;
  color: #3f2b96;
}

.header-cta {
  margin-left: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #3f2b96, #6c4eff);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(63,43,150,0.15);
  transition: all 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(63,43,150,0.25);
}

/* ====== MOBILE MENU ====== */
.menu-button {
  display: inline-block;
  font-size: 1.4rem; /* mindre och mer proportionerlig */
  background: #3f2b96; /* matcha lila tema */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(63,43,150,0.3);
  transition: background 0.2s, transform 0.1s;
}

.menu-button:hover {
  background: #5c3fd6; /* lite ljusare hover */
  transform: scale(1.05);
}

.menu-button:active {
  transform: scale(0.95);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 64px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e0dbff, #ffffff);
  border-bottom: 1px solid #eef0f6;
}

.hero-inner {
  max-width: 900px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 30px rgba(63,43,150,0.05);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  color: #3f2b96;
  line-height: 1.1;
}

.hero p.lead {
  margin: 0 0 20px;
  color: #374151;
  font-size: 1.05rem;
}

.hero-svg {
  position: absolute;
  right: 6%;
  top: -10%;
  width: 320px;
  height: 320px;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(8deg);
}

/* ====== KORT & SEKTIONSSTIL ====== */
.section {
  padding: 48px 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #eef0f6;
  box-shadow: 0 6px 20px rgba(12,15,25,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(12,15,25,0.1);
}

h2 { font-size: 1.3rem; margin: 0 0 10px; color: #3f2b96; }
p.lead { color: #475569; font-size: 1rem; }

/* ====== FORM ====== */
.form-box {
  max-width: 720px;
  margin: 18px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(12,15,25,0.05);
}

.form-row { display: flex; gap: 12px; }
.form-row .col { flex: 1; min-width: 0; }

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
}

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e9f2;
  font-size: 0.98rem;
  color: #0f1720;
  background: #fefefe;
  transition: all 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3f2b96;
  box-shadow: 0 0 6px rgba(63,43,150,0.2);
}

textarea { min-height: 120px; resize: vertical; }

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== KNAPPAR ====== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #3f2b96, #6c4eff);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(63,43,150,0.15);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(63,43,150,0.25);
  background: linear-gradient(135deg, #5a45c9, #7d5fff);
}

.btn:active { transform: translateY(1px); box-shadow: 0 4px 14px rgba(63,43,150,0.2); }

.btn.secondary {
  background: #fff;
  color: #3f2b96;
  border: 2px solid #3f2b96;
}

.btn.secondary:hover {
  background: #3f2b96;
  color: #fff;
}

/* ====== FOOTER ====== */
footer {
  margin-top: 48px;
  padding: 28px 20px;
  background: #3f2b96;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #eef0f6;
}

/* ====== RESPONSIV ====== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-button { display: inline-block; }
  .hero h1 { font-size: 1.6rem; }
  .hero-inner { padding: 20px; }
  .container { padding: 0 16px; }
  .form-row { flex-direction: column; }
  .btn, .btn.secondary { width: 100%; text-align: center; }
}

/* ====== MOBILE MENU STYLING ====== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px; /* Start off-screen */
  width: 280px;
  height: 100vh;
  background: #3f2b96; /* mörklila bakgrund */
  color: white;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 60;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 16px 20px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s, transform 0.3s, opacity 0.3s;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.15);
}

/* Overlay */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 50;
}

.close-menu {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.8rem; /* lagom stor */
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.close-menu:hover {
  background: rgba(255,255,255,0.2);
}





/* Header logga */
.brand img {
  display: block;
  height: 48px; /* standardstorlek för mobil */
  width: auto;
  vertical-align: middle;
}

/* Större logga på större skärmar */
@media (min-width: 900px) {
  .brand img {
    height: 70px; /* desktopstorlek, kan justeras */
  }
}

/* Justera header-inner för att centrera vertikalt */
.header-inner {
  display: flex;
  align-items: center; /* ser till att logga och knappar är centrerade */
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
}
