/* ====== Base / Reset ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:target {
  scroll-margin-top: 88px; /* så ankarlänkar inte hamnar bakom headern */
}

/* ====== Layout ====== */
.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 60px;          /* justera här om du vill ha större/mindre */
  width: auto;
}
body {
  padding-top: 72px; /* justera om headern är högre/lägre */
}


/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  color: #0f172a;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
}

/* ====== Buttons ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: #10b981;
  color: #052e2b;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ====== Hero ====== */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 400px at 30% 10%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(800px 380px at 90% 30%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(#ffffff, #f8fafc);
}

.hero .container {
  max-width: 980px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.75);
  max-width: 52ch;
}

/* ====== Services grid ====== */
.services {
  padding: 22px 0 56px;
  background: #f8fafc;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
}

.service h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.service p {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.72);
}

/* ====== About ====== */
.about {
  padding: 64px 0;
  background: #ffffff;
}

.about h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.about p {
  margin: 0;
  max-width: 80ch;
  color: rgba(15, 23, 42, 0.75);
}

/* ====== Contact ====== */
.contact {
  padding: 64px 0;
  background: #f8fafc;
}

.contact h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-info {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-info li {
  margin: 8px 0;
  color: rgba(15, 23, 42, 0.78);
}

.contact-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.07);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-weight: 700;
  font-size: 13px;
}

input,
select,
textarea {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.65);
}

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

/* Alerts */
.alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: rgba(15, 23, 42, 0.8);
}

.alert.ok {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.10);
}

.alert.err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

/* ====== Footer ====== */
.site-footer {
  padding: 30px 0;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* ====== Responsive ====== */
@media (max-width: 920px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav ul {
    gap: 14px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 28px;
  }
}
.hero-badges{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 10px 0 18px;
}
.hero-badges span{
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
}
.service{
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service:hover{
  transform: translateY(-2px);
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 16px 34px rgba(2,6,23,.10);
}
