@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --blue: #0b4aa2;
  --blue-dark: #073672;
  --green: #18a36a;
  --bg: #f7f9fc;
  --text: #111827;
  --muted: #64748b;
  --card: #ffffff;
  --line: rgba(11,18,32,.08);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --transition: 0.2s ease;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; }

.wrap{ width:min(1100px, 90vw); margin:0 auto; }

/* ── Topbar ───────────────────────────── */
.topbar{
  padding: 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ── Header ───────────────────────────── */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  position: relative;
  min-height: 120px;
  gap:14px;
  padding:14px 0;
}

.header::after{
  content:"";
  position:absolute;
  inset: 0;
  left:260px;
  right:260px;
  background-image: url("./images/blomma.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 140% auto;
  opacity: 1;
  pointer-events:none;
  z-index:0;
}

.header > *{
  position: relative;
  z-index: 1;
}

/* ── Brand ────────────────────────────── */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  max-width:180px;
  height:auto;
}
.brand .name{
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -.2px;
  line-height:1.1;
  font-size: 17px;
}
.brand .tagline{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Navigation ───────────────────────── */
.nav{
  display:flex;
  gap: 4px;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}
.nav a:hover{
  color: var(--blue-dark);
  background: rgba(11,74,162,.06);
}
.nav a.active{
  background: var(--blue);
  color:#fff;
}

/* ── Hero ─────────────────────────────── */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  padding: 32px 0 16px;
  align-items:stretch;
}
.hero-card{
  background: linear-gradient(135deg, rgba(11,74,162,.04), rgba(24,163,106,.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -.5px;
  font-weight: 800;
}
.hero p{
  margin:0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
  font-size: 15px;
}

/* ── Badges ───────────────────────────── */
.badges{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin: 18px 0 0;
}
.badge{
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
}
.badge strong{ color: var(--green); font-weight: 700; }

/* ── CTA buttons ──────────────────────── */
.cta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.button{
  display:inline-block;
  text-decoration:none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -.1px;
  font-family: inherit;
}
.button.primary{
  background: var(--blue);
  color:#fff;
}
.button.primary:hover{
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(11,74,162,.25);
}
.button.secondary{
  background: #fff;
  border-color: var(--line);
  color: var(--blue-dark);
}
.button.secondary:hover{
  background: rgba(11,74,162,.04);
  border-color: rgba(11,74,162,.15);
}

/* ── Hero image ───────────────────────── */
.hero-image{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow:hidden;
  background:#fff;
  min-height: 260px;
}
.hero-image img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform 0.4s ease;
}
.hero-image:hover img{
  transform: scale(1.02);
}

/* ── Sections ─────────────────────────── */
.section{
  padding: 28px 0 32px;
}
.section h2{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.section p.lead{
  margin:0 0 20px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 72ch;
  font-size: 15px;
}

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

/* ── Cards ────────────────────────────── */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card img{
  width:100%;
  height: 170px;
  object-fit:cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.card p{ margin:0; color: var(--muted); line-height: 1.65; }

/* List items inside cards */
.card li{
  list-style: none;
  padding: 3px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}
.card li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* UL inside cards (sok-jobb page) */
.card ul{
  padding-left: 0;
  margin: 8px 0;
}

/* ── Links inside cards ───────────────── */
.card a:not(.button){
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
.card a:not(.button):hover{
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ── HR styling ───────────────────────── */
.card hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

/* ── Split layout ─────────────────────── */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Form ─────────────────────────────── */
.form{
  display:grid;
  gap: 12px;
}
.input, .textarea{
  width:100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.input:focus, .textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,74,162,.1);
}
.input::placeholder, .textarea::placeholder{
  color: #94a3b8;
}
.textarea{ min-height: 130px; resize: vertical; }

/* ── Footer ───────────────────────────── */
.footer{
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}
.footer .bar{
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}

/* ── Services 6-grid ──────────────────── */
.services-6{
  grid-template-columns: repeat(3, minmax(0,1fr));
}

/* ── Carousel ─────────────────────────── */
.carousel{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.carousel-track::-webkit-scrollbar{ height: 8px; }
.carousel-track::-webkit-scrollbar-track{ background: transparent; }
.carousel-track::-webkit-scrollbar-thumb{
  background: rgba(11,18,32,.15);
  border-radius: 999px;
}

.carousel-track img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  display:block;
  transition: transform 0.3s ease;
}
.carousel-track img:hover{
  transform: scale(1.015);
}

.carousel-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display:grid;
  place-items:center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: all var(--transition);
}

.carousel-btn.prev{ left: 10px; }
.carousel-btn.next{ right: 10px; }

.carousel-btn:hover{
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

@media (max-width: 900px){
  .services-6{ grid-template-columns: 1fr; }
  .carousel-track{ grid-auto-columns: 85%; }
}

/* ── Logo center ──────────────────────── */
.logo-center{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:15px 0;
}

.logo-center img{
  max-width:180px;
  height:auto;
}

/* ── Certificates ─────────────────────── */
.certifikat{
  display:flex;
  justify-content:center;
  gap: 40px;
  flex-wrap:wrap;
  margin-top: 20px;
}

.certifikat img{
  width: 180px;
  height:auto;
  object-fit:contain;
  transition: transform var(--transition);
}
.certifikat img:hover{
  transform: scale(1.04);
}
