/* === Safework — Clean UI 3.1 === */
/* Palett & tokens anpassad efter loggan */
:root{
  --brand:#103248;           /* primär (navy) */
  --brand-2:#1b4f6a;         /* sekundär ton */
  --ink:#0e2d3f;             /* rubriker */
  --text:#15202b;            /* brödtext */
  --muted:#64707a;           /* sekundär text */
  --bg:#f6f8fa;              /* bakgrund */
  --card:#ffffff;            /* kort */
  --line:#e7eef3;            /* linjer */
  --radius:16px;             /* rundningar */
  --shadow:0 10px 30px rgba(16,50,72,.06), 0 2px 6px rgba(16,50,72,.05);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

/* Layout helpers */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.container-narrow{max-width:940px;margin:0 auto;padding:0 20px}
.section{padding:48px 0}
.section--tight{padding:28px 0}

/* Header / Nav */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,250,.85);
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(115%) blur(8px);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand img{height:44px;width:auto;display:block}
.brand-text{font-weight:800;letter-spacing:.3px;color:var(--ink)}
.nav a{color:var(--ink);text-decoration:none;font-weight:600;opacity:.9;margin-left:18px}
.nav a:hover{opacity:1}

/* Hero */
.hero{
  position:relative;
  background:
    radial-gradient(1600px 600px at 70% -200px, rgba(27,79,106,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fbfd);
  padding:72px 0 42px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero::after{
  content:""; position:absolute; inset:auto -10% -18% -10%;
  height:320px; background:radial-gradient(60% 60% at 50% 50%, rgba(16,50,72,.06), transparent 70%);
  filter:blur(20px);
}
.hero-grid{
  display:grid; gap:32px; align-items:center;
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr} }

.hero__content{position:relative; z-index:1}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.85rem; color:var(--brand-2);
  background:#eef6fb; border:1px solid #d7e9f3; padding:.35rem .6rem; border-radius:999px;
}
.hero__title{
  margin:.7rem 0 .6rem;
  font-size:clamp(30px, 4.9vw, 56px);
  line-height:1.1; color:var(--ink);
  font-weight:850; letter-spacing:-.3px;
}
.hero__text{font-size:1.075rem; color:#33414d; max-width:58ch}
.hero__ctas{display:flex; gap:.7rem; flex-wrap:wrap; margin-top:16px}
.hero__badges{display:flex; gap:.5rem; flex-wrap:wrap; margin-top:12px}
.badge{display:inline-block; padding:.35rem .6rem; border-radius:999px; font-size:.85rem; color:var(--ink); background:#fff; border:1px solid var(--line)}

.hero__media{
  position:relative; z-index:1;
  aspect-ratio: 4/3;
  border-radius:24px;
  background:linear-gradient(180deg, #f8fbfd, #eef5f9);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero__media img{width:100%; height:100%; object-fit:cover; display:block}

/* Typografi & komponenter */
h1,h2,h3,h4{color:var(--ink);margin:0 0 .5rem}
h2{font-size:clamp(22px, 2.6vw, 28px); font-weight:800}

.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px}
.muted{color:var(--muted)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem 1.05rem; border-radius:14px; border:1px solid transparent;
  text-decoration:none; cursor:pointer; font-weight:700; line-height:1;
  transition:transform .04s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--brand); border-color:var(--brand); color:#fff; box-shadow:0 8px 20px rgba(16,50,72,.18)}
.btn.primary:hover{opacity:.95}
.btn.ghost{background:#fff; border-color:#dbe6ee; color:var(--ink)}
.btn.ghost:hover{border-color:#c9d9e4}

/* === Produktgrid — 3 per rad på desktop (6 produkter = 2 rader) === */
.section-products { padding: 40px 0 20px; }

.grid-products{
  display:grid;
  gap:26px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-items:stretch;
}
/* Desktop exakt 3 kolumner */
@media (min-width: 1020px){
  .grid-products{ grid-template-columns: repeat(3, 1fr); }
}
/* Tablet 2 kolumner */
@media (min-width:700px) and (max-width:1019px){
  .grid-products{ grid-template-columns: repeat(2, 1fr); }
}
/* Mobil 1 kolumn */
@media (max-width:699px){
  .grid-products{ grid-template-columns: 1fr; }
}

.product{
  display:flex; flex-direction:column;
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  box-shadow: 0 6px 22px rgba(16, 50, 72, .06), 0 1px 4px rgba(16, 50, 72, .04);
  padding:18px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.product:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 50, 72, .08), 0 3px 8px rgba(16, 50, 72, .06);
}
.product img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius:12px; margin-bottom:14px; background:#f2f6f8;
}
.product h4{ font-size:1.1rem; font-weight:700; color:var(--ink); margin:0 0 4px; }
.product .muted{ font-size:.95rem; color:var(--muted); margin-bottom:6px; }
.product .price{ font-size:1rem; font-weight:800; color:var(--brand); margin-top:auto; margin-bottom:10px; }
.product .actions{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:auto; }
.product .btn{ flex:1 1 auto; text-align:center; }

/* Produktsida */
.product-page{
  display:grid; grid-template-columns:1.05fr .95fr; gap:28px; align-items:start; margin-top:14px
}
.product-page .gallery img{
  width:100%; height:auto; border-radius:16px; box-shadow:var(--shadow)
}
.product-page .spec ul{ margin:0; padding-left:18px }
@media (max-width:980px){ .product-page{ grid-template-columns:1fr } }

/* Formulär */
#offert{ padding:28px 0 48px; border-top:1px solid var(--line); margin-top:16px }
form .row{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
@media (max-width:760px){ form .row{ grid-template-columns:1fr } }
label{ display:block; font-weight:700; margin:12px 0 6px; color:var(--ink) }
input,select,textarea{
  width:100%; padding:.7rem .85rem; border:1px solid #d6e2ea; border-radius:12px;
  background:#fff; color:var(--text);
}
textarea{ min-height:120px }
.consent{ display:flex; gap:.6rem; align-items:flex-start; margin:10px 0 14px }
.consent input{ width:auto }

/* Footer */
footer{ border-top:1px solid var(--line); padding:22px 0; color:var(--muted); font-size:.96rem }

/* Hjälpklasser */
.hide{display:none !important}
.center{text-align:center}
