/* ---------- Design tokens ---------- */
:root{
  --bg: #0b1020;
  --card: #10172a;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(139, 92, 246, .35);
  --container: clamp(16rem, 90vw, 1200px);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(34,211,238,.08), transparent 50%),
              radial-gradient(1000px 500px at 90% 10%, rgba(139,92,246,.08), transparent 50%),
              var(--bg);
}

img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
strong{ font-weight: 700; }
.container{ width: min(var(--container), 100%); margin-inline: auto; padding-inline: 20px; }
.section{ padding: 64px 0; }
.section-header{ text-align: center; margin-bottom: 28px; }
.section-header h2{ font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 8px; letter-spacing: .2px; }
.section-header p{ color: var(--muted); margin: 0; }

/* ---------- Header ---------- */
.skip-link{ position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus{ left: 12px; top: 12px; z-index: 9999; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.7); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{ display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; height: 64px; }
.brand{ display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-text{ letter-spacing: .2px; }
.nav-toggle{ display: none; background: none; border: none; padding: 8px; border-radius: 8px; }
.nav-toggle:focus{ outline: none; box-shadow: var(--ring); }
.nav-toggle-bar{ display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

.nav-list{ display: flex; list-style: none; gap: 18px; margin: 0; padding: 0; }
.nav-list a{ padding: 8px 6px; border-radius: 8px; }
.nav-list a:hover{ background: rgba(255,255,255,.06); text-decoration: none; }
.cta-call{ display: inline-flex; align-items: center; gap: 8px; background: rgba(16,185,129,.15); color: #d1fae5; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(16,185,129,.4); }
.cta-call:hover{ background: rgba(16,185,129,.2); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 12px 16px; font-weight: 600; letter-spacing: .2px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary{ background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b1020; }
.btn-primary:hover{ filter: brightness(1.05); text-decoration: none; }
.btn-secondary{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.btn-secondary:hover{ background: rgba(255,255,255,.12); text-decoration: none; }
.btn-block{ width: 100%; }

/* ---------- Hero ---------- */
.hero{ position: relative; overflow: hidden; padding: 64px 0 40px; }
.bg-shape{
  position: absolute; inset: -10% -20% auto -20%; height: 420px;
  background: conic-gradient(from 0deg, rgba(139,92,246,.25), rgba(34,211,238,.25), transparent 60%);
  filter: blur(30px); opacity: .35; pointer-events: none;
}
.hero-inner{ display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; }
.hero-copy h1{ font-size: clamp(1.8rem, 3.4vw, 3rem); margin: 0 0 12px; }
.hero-copy .lead{ font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text); opacity: .95; }
.hero-ctas{ display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.trust{ display: flex; flex-wrap: wrap; gap: 16px; color: #d1d5db; padding: 0; margin: 12px 0 0; list-style: none; }
.hero-media{
  height: 360px; border-radius: 24px; background:
  linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800"><rect width="100%" height="100%" fill="%230f172a"/><g fill="none" stroke="%2334d399" stroke-width="2" opacity=".35"><path d="M50 500 L250 500 L310 460 L520 460 L560 440 L700 440" /><circle cx="250" cy="500" r="24" /><rect x="700" y="410" width="140" height="60" rx="6" ry="6"/></g><text x="60" y="540" fill="%23d1fae5" font-size="28" font-family="Arial">Markarbete pågår...</text></svg>') center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* ---------- Services ---------- */
.cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card{ background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card .icon{ font-size: 28px; }
.card h3{ margin: 6px 0 8px; font-size: 1.1rem; }
.card p{ margin: 0 0 8px; color: var(--text); }
.chiplist{ display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.chiplist li{ font-size: .9rem; color: #e5e7eb; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 6px 10px; border-radius: 999px; }

.notice{ margin-top: 18px; padding: 12px 14px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); border-radius: 12px; color: #fde68a; }

/* ---------- Steps ---------- */
.steps{ background: linear-gradient(180deg, rgba(139,92,246,.06), rgba(139,92,246,0)); }
.step-list{ counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.step-list li{ background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; }
.step-list h3{ margin: 0 0 8px; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery-track{ display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.gallery-item{ background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 8px; scroll-snap-align: start; }
.gallery-item figcaption{ font-size: .9rem; color: var(--muted); margin-top: 8px; }
.ph-img{ height: 180px; border-radius: 10px; background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(139,92,246,.2)); }

/* ---------- Areas ---------- */
.areas-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.area-card{ background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 14px; }

/* ---------- About & contact ---------- */
.about-inner{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.about-points{ margin: 12px 0 0; padding: 0 0 0 18px; }
.contact-card{ background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.field{ display: grid; gap: 6px; margin: 10px 0; }
label{ font-weight: 600; }
input, textarea{
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: #0c1326; color: var(--text);
}
input:focus, textarea:focus{ outline: none; box-shadow: var(--ring); }
.consent{ display: flex; align-items: start; gap: 8px; margin: 10px 0; font-size: .95rem; }
.form-note{ color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.15); }
.footer-grid{ display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; padding-top: 24px; }
.footer-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.muted{ color: var(--muted); }
.legal{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 24px; color: var(--muted); }
.linklike{ background: none; border: none; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Dialog ---------- */
dialog{ border: none; border-radius: 14px; background: var(--surface); color: var(--text); width: min(720px, 92vw); box-shadow: var(--shadow); }
dialog::backdrop{ background: rgba(0,0,0,.6); }
.dialog header{ display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 10px; }
.dialog-body{ padding: 10px; }
.dialog-footer{ border-top: 1px solid rgba(255,255,255,.08); padding: 10px; text-align: right; }
.dialog-close{ background: none; border: none; color: var(--text); font-size: 18px; cursor: pointer; }

/* ---------- Cookie ---------- */
.cookie{ position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #0b1226; color: var(--text); padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-inner, .about-inner{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .step-list{ grid-template-columns: 1fr; }
  .areas-grid{ grid-template-columns: 1fr; }
  .header-inner{ grid-template-columns: 1fr auto; grid-template-areas: "brand buttons" "nav nav"; height: auto; padding: 10px 0; }
  .brand{ grid-area: brand; }
  .nav{ grid-area: nav; }
  .cta-call{ display: none; }
  .nav-toggle{ display: inline-flex; justify-self: end; }
  .nav-list{ display: none; flex-direction: column; background: rgba(15,23,42,.95); position: absolute; right: 20px; top: 60px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); }
  .nav-list.show{ display: flex; }
  .site-header{ position: sticky; }
}

/* --- Autoroterande galleri --- */
.carousel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}

.carousel-track{
  display: flex;
  width: 100%;
  transition: transform .6s ease;
  will-change: transform;
}

.carousel-item{
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-figure{
  margin: 0;
  padding: 8px;
}

.carousel-figure img{
  display: block;
  width: 100%;
  height: 280px;          /* justera höjd vid behov */
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer; /* visa att bilden är klickbar */
}

.carousel-figure figcaption{
  margin-top: 8px;
  font-size: .95rem;
  color: var(--muted);
}

/* Mobilhöjd lite lägre */
@media (max-width: 640px){
  .carousel-figure img{ height: 220px; }
}
