:root{
  --bg: #f7f9fc;
  --bg-grad-1: rgba(255,106,0,.14);
  --bg-grad-2: rgba(20,184,166,.16);
  --paper: #ffffff;
  --paper-2: rgba(255,255,255,.88);
  --paper-3: rgba(255,255,255,.92);
  --ink: #0b1220;
  --muted: rgba(11,18,32,.72);
  --line: rgba(11,18,32,.12);
  --line-strong: rgba(11,18,32,.18);
  --topbar: rgba(255,255,255,.92);
  --topbar-border: rgba(11,18,32,.08);
  --lang-bg: rgba(11,18,32,.06);
  --lang-active-bg: #ffffff;
  --btn-ghost-bg: rgba(255,255,255,.0);
  --hero-badge-bg: rgba(255,255,255,.92);
  --soft: #f5f7fb;
  --soft2: #eef2f8;
  --input-bg: #ffffff;
  --info-bg: rgba(245,247,251,.7);
  --miniNoteBg: rgba(255,106,0,.10);
  --miniNoteBorder: rgba(255,106,0,.18);
  --shadow: 0 18px 50px rgba(11,18,32,.12);
  --shadow2: 0 12px 30px rgba(11,18,32,.10);
  --radius: 18px;
  --radius2: 24px;
  --primary: #ff6a00;
  --primary2: #ffb200;
}

:root[data-theme="dark"]{
  --bg: #0b1220;
  --bg-grad-1: rgba(255,106,0,.18);
  --bg-grad-2: rgba(56,189,248,.12);
  --paper: #111827;
  --paper-2: rgba(17,24,39,.88);
  --paper-3: rgba(17,24,39,.94);
  --ink: #edf2ff;
  --muted: rgba(226,232,240,.76);
  --line: rgba(148,163,184,.20);
  --line-strong: rgba(148,163,184,.30);
  --topbar: rgba(11,18,32,.92);
  --topbar-border: rgba(148,163,184,.16);
  --lang-bg: rgba(255,255,255,.06);
  --lang-active-bg: rgba(255,255,255,.10);
  --btn-ghost-bg: rgba(255,255,255,.03);
  --hero-badge-bg: rgba(15,23,42,.88);
  --soft: #0f172a;
  --soft2: #111827;
  --input-bg: #0f172a;
  --info-bg: rgba(15,23,42,.75);
  --miniNoteBg: rgba(255,106,0,.12);
  --miniNoteBorder: rgba(255,178,0,.24);
  --shadow: 0 18px 50px rgba(0,0,0,.30);
  --shadow2: 0 12px 30px rgba(0,0,0,.28);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg));
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: var(--topbar);
  border-bottom: 1px solid var(--topbar-border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.brand__logo{ height:42px; width:auto; border-radius:6px; }
.brand__text{ font-size:15px; }

.nav{ display:flex; gap:18px; margin-left:10px; }
.nav a{ font-weight:600; font-size:14px; opacity:.9; }
.actions{ margin-left:auto; display:flex; align-items:center; gap:12px; }

/* Dold på desktop, visas på mobil */
.mobile-socials { display: none; } 

.lang{
  display:flex;
  background: var(--lang-bg);
  border:1px solid var(--topbar-border);
  border-radius: 999px;
  padding:3px;
}
.lang__btn{
  border:0;
  background:transparent;
  padding:8px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  opacity:.7;
}
.lang__btn.is-active{
  background: var(--lang-active-bg);
  box-shadow: 0 6px 16px rgba(11,18,32,.10);
  opacity:1;
}

.burger{
  display:none;
  margin-left:auto;
  border:1px solid rgba(11,18,32,.12);
  background: var(--lang-active-bg);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}
.burger span{ display:block; width:18px; height:2px; background:var(--ink); margin:4px 0; border-radius:2px; }

/* Mobilmenyn */
.mobileNav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--paper);
  padding: 20px 24px;
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobileNav[hidden] {
  display: none !important;
}
.mobileNav__link {
  display: block;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  background: var(--soft);
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.mobileNav__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 12px 0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius: 999px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  box-shadow:none;
  cursor:pointer;
}
.btn--primary{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color:#111;
}
.btn--ghost{
  background: rgba(255,255,255,.0);
  background: var(--btn-ghost-bg);
  border-color: var(--line);
}
.btn--full{ width:100%; }

/* Hero */
.hero{
  position:relative;
  padding: 54px 0 28px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:34px;
  align-items:center;
}
.eyebrow{
  font-weight:800;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: var(--muted);
}
.hero h1{
  margin:14px 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.02;
  letter-spacing:-.02em;
}
.lead{
  color: var(--muted);
  font-size: 16px;
  line-height:1.65;
  margin:0 0 18px;
}
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }

.hero__visual{ position:relative; }
.heroPhoto{
  height: 420px;
  border-radius: 26px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 80px rgba(2,6,23,.18);
  border: 1px solid rgba(15,23,42,.08);
}

.wave{
  height:44px;
  margin-top:36px;
  background: transparent;
}

/* Trust bar */
.trust{
  padding: 10px 0 34px;
}
.trust__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.trust__item{ display:flex; gap:10px; flex-wrap:wrap; }
.trust__note{
  color: var(--muted);
  font-weight:700;
}

/* Sections */
.section{ padding: 58px 0; }
.section--soft{
  background: linear-gradient(180deg, var(--soft), var(--soft2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head{ max-width: 760px; }
.section__head h2{
  margin:0;
  font-size: 28px;
  letter-spacing:-.02em;
}
.section__head p{ margin:10px 0 0; color: var(--muted); line-height:1.65; }

.services{ 
  display:flex; 
  flex-direction:column; 
  gap:32px; 
  margin-top:26px; 
}

.service{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 2px solid var(--line-strong); 
  background: var(--paper-2);
  box-shadow: var(--shadow); 
}
.service__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:stretch;
}
.service__row--reverse .service__media{ order:2; }
.service__row--reverse .service__body{ order:1; }

.service__media{ position:relative; min-height: 260px; background:var(--paper); }
.service__body{ padding:22px 22px 20px; }

.service h3{ margin:0 0 8px; font-size: 20px; letter-spacing:-.01em; }
.muted{ color: var(--muted); }
.bullets{ margin:14px 0 0; padding-left:18px; color: var(--ink); }
.bullets li{ margin:8px 0; }

/* Slideshow */
.slideshow{
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow:hidden;
}
.slideshow img{
  position:absolute;
  top: 0;
  left: 0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity 600ms ease;
  transform: scale(1.02);
}
.slideshow img.is-active{ opacity:1; }

/* Accents per service */
.service::before{
  content:"";
  display:block;
  height:5px;
  background: linear-gradient(90deg, rgba(11,18,32,.12), rgba(11,18,32,.0));
}
.accent--amber::before{ background: linear-gradient(90deg, rgba(255,106,0,.95), rgba(255,178,0,.75)); }
.accent--mint::before{ background: linear-gradient(90deg, rgba(20,184,166,.95), rgba(34,197,94,.65)); }
.accent--sky::before{ background: linear-gradient(90deg, rgba(56,189,248,.95), rgba(99,102,241,.75)); }
.accent--rose::before{ background: linear-gradient(90deg, rgba(244,63,94,.95), rgba(251,113,133,.75)); }
.accent--violet::before{ background: linear-gradient(90deg, rgba(99,102,241,.95), rgba(168,85,247,.75)); }
.accent--lime::before{ background: linear-gradient(90deg, rgba(132,204,22,.95), rgba(34,197,94,.70)); }
.accent--sand::before{ background: linear-gradient(90deg, rgba(245,158,11,.95), rgba(251,191,36,.70)); }
.accent--steel::before{ background: linear-gradient(90deg, rgba(148,163,184,.95), rgba(100,116,139,.70)); }

/* About */
.about{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.about__card{
  background: var(--paper-3);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:24px;
  box-shadow: var(--shadow2);
}
.about__card h2{ margin:0 0 10px; }
.checklist{ margin:14px 0 0; padding:0; list-style:none; }
.checklist li{
  margin:10px 0;
  padding-left:28px;
  position:relative;
  color: var(--ink);
  font-weight:600;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:20px;
  height:20px;
  border-radius:999px;
  background: rgba(20,184,166,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.about__cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }

.about__media{
  display:grid;
  grid-template-rows: 1fr auto;
  gap:14px;
}
.frame{
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
}
.frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.frame--small{ height: 190px; }

/* Contact */
.contact__card{
  background: var(--paper-3);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:24px;
  box-shadow: var(--shadow2);
}
.contact__grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:18px;
  margin-top:16px;
}
.info{
  border:1px dashed var(--line-strong);
  border-radius: 18px;
  padding:16px;
  background: var(--info-bg);
}
.info__row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom: 1px solid var(--line);
}
.info__row:last-child{ border-bottom:0; }
.info__k{ font-weight:800; color: var(--muted); }
.info__v a{ font-weight:900; text-decoration:none; }
.info__v a:hover{ text-decoration:underline; }

.miniNote{
  margin-top:12px;
  padding:12px;
  border-radius: 14px;
  background: var(--miniNoteBg);
  border: 1px solid var(--miniNoteBorder);
  font-weight:700;
  color: var(--ink);
}

.form label{ display:block; margin-bottom:12px; }
.form span{ display:block; font-weight:800; font-size:13px; margin-bottom:6px; }
input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  padding:12px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--lang-active-bg);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(255,106,0,.55);
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}
.tiny{ font-size:12px; margin-top:10px; }

/* Footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid var(--topbar-border);
}
.footer__row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}
.footer__brand{ font-weight:900; }
.footer__muted{ color: var(--muted); font-weight:600; }
.footer__right{ display:flex; gap:16px; }
.footer__right a{ font-weight:800; opacity:.85; }

.themeToggle{
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow2);
}
.themeToggle:hover{ transform: translateY(-1px); }

html[data-theme="dark"] .heroPhoto,
html[data-theme="dark"] .frame,
html[data-theme="dark"] .service,
html[data-theme="dark"] .about__card,
html[data-theme="dark"] .contact__card,
html[data-theme="dark"] .styled-box{
  box-shadow: var(--shadow2);
}

/* Faktaboxar och pill-rutor */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.styled-box {
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  text-align: center; 
  box-shadow: var(--shadow2);
}

.trust__item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center; 
}

.trust__item .pill {
  flex: 1 1 auto;
  text-align: center;
  align-items: center;
}

/* ============================
   RESPONSIVE / MOBILE FIXES
   ============================ */
  .facts { 
    grid-template-columns: 1fr; 
  }

@media (max-width: 920px){
  .hero{ padding: 34px 0 20px; }
  .hero__grid{ grid-template-columns:1fr; gap: 24px; }
  .heroPhoto{ height: 320px; }
  
  .nav{ display:none; }
  
  /* Förhindrar att topbaren bryter rad och knuffar ner element */
  .topbar__inner {
    gap: 8px; /* Minska mellanrummet mellan logga, ikoner och meny */
  }
  
  /* Gör loggan flexibel så den kan krympa om det behövs */
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .brand__logo {
    max-width: 100%;
    height: auto;
    max-height: 36px; /* Aningen mindre på små skärmar för att spara plats */
    object-fit: contain;
  }

  .actions{ display:none; }
  
  .mobile-socials {
    display: flex;
    align-items: center;
    gap: 10px; /* Tajtar till avståndet mellan IG och FB */
    margin-left: auto;
    margin-right: 6px; /* Tajtar till avståndet till burgermenyn */
    flex-shrink: 0; /* Förhindrar att ikonerna kläms ihop */
  }
  .mobile-socials a {
    color: var(--ink);
    opacity: 0.8;
  }
  
  .burger {
    display: inline-block;
    margin-left: 0;
    flex-shrink: 0; /* Förhindrar att knappen trycks ut från skärmen */
  }
  
  .service__row { 
    display: flex; 
    flex-direction: column; 
  }
  .service__body { 
    order: 1; 
  }
  .service__media { 
    order: 2; 
    min-height: 240px; 
    border-top: 2px solid var(--line-strong); 
  }
  
  .about{ grid-template-columns:1fr; gap: 24px; }
  .contact__grid{ grid-template-columns:1fr; gap: 24px; }
  .section{ padding: 40px 0; }
}