/* Prima Hemtjänst – layout efter hembosverige.se, Primas egen färgprofil och logga.
   Lila #79288B och mörkblå #040033 är Primas profilfärger (från nuvarande sajt). */

/* Typsnitten ligger på egen server (fonts/), så inga uppgifter om besökaren skickas till Google */
@font-face { font-family: 'Playfair'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/playfair.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }

:root {
  --navy: #040033;
  --purple: #79288B;
  --purple-d: #5E1E6D;
  --lav: #F1E6F6;      /* ljus lila – Hembos mintgröna ytor */
  --rose: #F8DCE7;     /* ljus rosa (Primas hjärtan) – Hembos persikofärgade ytor */
  --rose-d: #EBB8CD;
  --cream: #F7F4EE;    /* ljus sand – Hembos beigea bakgrund */
  --paper: #FAF9F7;
  --ink: #040033;
  --text: #5C596B;
  --line: #E7E2EC;
  --r: 12px;
  --r-l: 20px;
  --r-btn: 6px;
  --shadow: 0 0 30px rgba(121, 40, 139, .13);
  --shadow-lift: 0 18px 40px rgba(4, 0, 51, .12);
  --serif: 'Playfair', 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1152px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; font-optical-sizing: auto; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.i { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid rgba(121, 40, 139, .45); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: calc(var(--wrap) + 48px); padding: 0 24px; margin: 0 auto; }
.nowrap { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }

.eyebrow { display: block; font: 500 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.eyebrow-muted { color: var(--ink); opacity: .75; }
.lead { font-size: 15.5px; max-width: 640px; margin: 0 auto 44px; }

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/1.1 var(--sans); padding: 16px 26px; border-radius: var(--r-btn); border: 1.6px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; text-align: center; }
.btn .i { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-accent:hover { background: var(--purple-d); border-color: var(--purple-d); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--purple); border-color: var(--purple); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { color: #fff; border-color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--purple); box-shadow: var(--shadow); padding-left: 46px; padding-right: 46px; }
.btn-white:hover { color: var(--purple-d); box-shadow: var(--shadow-lift); }
.btn-sm { padding: 13px 22px; font-size: 14px; }
.link-ico { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14.5px; }
.link-ico .i { width: 20px; height: 20px; color: var(--purple); }
.link-ico:hover { color: var(--purple); }

/* Sidhuvud */
.site-header { background: #fff; position: relative; z-index: 30; }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 76px; padding-left: 24px; }
.logo { flex: none; }
.logo img { height: 54px; width: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { display: flex; list-style: none; gap: 2px; }
.nav a { display: block; padding: 10px 9px; font: 400 14.5px/1 var(--sans); text-transform: uppercase; color: var(--navy); white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--purple); }
.hdr-cta { align-self: stretch; display: flex; align-items: center; gap: 18px; background: var(--rose); border-radius: 40px 0 0 40px; padding: 0 22px 0 10px; margin-left: auto; }
.help { display: flex; align-items: center; gap: 12px; }
.help-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
.help-ico .i { width: 25px; height: 25px; }
.help-txt small { display: block; font-size: 12.5px; color: var(--text); line-height: 1.3; }
.help-txt strong { display: block; font-weight: 500; color: var(--navy); font-size: 15px; line-height: 1.35; white-space: nowrap; }
.help:hover strong { color: var(--purple); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(4, 0, 51, .12); color: var(--navy); font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; min-height: 40px; transition: background .2s, color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.lang[open] summary, .lang summary:hover { background: #fff; color: var(--purple); }
.lang summary .i { width: 18px; height: 18px; color: var(--purple); }
.lang-short { display: none; }
.lang-list { position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 6px; display: grid; }
.lang-list a { padding: 11px 14px; border-radius: 8px; color: var(--navy); font-size: 15px; }
.lang-list a:hover { background: var(--lav); }
.lang-list a[aria-current] { color: var(--purple); font-weight: 600; }
.drawer-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.drawer-lang .i { width: 22px; height: 22px; color: var(--purple); margin-inline-end: 4px; }
.drawer-lang a { padding: 10px 14px; border-radius: 999px; background: var(--lav); color: var(--navy); font-weight: 500; font-size: 15px; }
.drawer-lang a[aria-current] { background: var(--purple); color: #fff; }
.burger { display: none; background: none; border: 0; color: var(--navy); padding: 6px; cursor: pointer; border-radius: 6px; }
.burger .i { width: 30px; height: 30px; }

/* Mobilmeny */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(4, 0, 51, .45); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(360px, 88vw); height: 100%; overflow-y: auto; background: #fff; padding: 22px 26px 34px; box-shadow: var(--shadow-lift); animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-top img { height: 46px; width: auto; }
.drawer-close { background: var(--lav); border: 0; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
.drawer-close .i { width: 22px; height: 22px; }
.drawer-nav { list-style: none; border-top: 1px solid var(--line); }
.drawer-nav a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.drawer-nav a[aria-current] { color: var(--purple); }
.drawer-contact { list-style: none; margin-top: 26px; display: grid; gap: 14px; font-size: 15px; color: var(--navy); }
.drawer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.drawer-contact .i { width: 20px; height: 20px; color: var(--purple); margin-top: 3px; }

/* Hero */
.hero { position: relative; min-height: 720px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 0, 51, .74) 0%, rgba(4, 0, 51, .5) 42%, rgba(4, 0, 51, .14) 72%, rgba(4, 0, 51, .05) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 600px; padding: 70px 0 110px; }
.hero .eyebrow { color: #fff; font-size: 17px; letter-spacing: .05em; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.75rem); text-transform: uppercase; line-height: 1.2; margin-bottom: 26px; }
.hero p { font-size: 17px; color: rgba(255, 255, 255, .93); max-width: 560px; margin-bottom: 38px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 22px; }

/* Varför välja Prima */
.why { background: var(--lav); position: relative; z-index: 3; }
.why .wrap { display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); gap: 30px; padding-bottom: 46px; }
.why h2 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); align-self: center; margin: 36px 0 0; }
.why-ico { width: 70px; height: 70px; margin-top: -38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(121, 40, 139, .28); }
.why-ico .i { width: 30px; height: 30px; }
.why-item h3 { font: 500 16.5px/1.3 var(--sans); color: var(--navy); margin: 18px 0 6px; }
.why-item p { font-size: 13.5px; line-height: 1.6; margin: 0; }

/* Tjänster */
.services { padding: 60px 0 96px; }
.svc-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; }
.svc-intro { background: var(--rose); border-radius: var(--r); padding: 38px 32px; display: flex; flex-direction: column; }
.svc-intro h2 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); }
.svc-intro p { font-size: 15px; }
.svc-intro-actions { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.svc-col { display: flex; flex-direction: column; gap: 20px; }
.svc-card { position: relative; display: block; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 22px 26px 26px; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.svc-ico { display: block; color: var(--purple); }
.svc-ico .i { width: 34px; height: 34px; }
.go { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--lav); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 18px rgba(121, 40, 139, .28); transition: background .2s, color .2s; }
.go .i { width: 18px; height: 18px; }
.svc-card:hover .go { background: var(--purple); color: #fff; }
.svc-card h3 { font-size: 18px; margin: 18px 0 8px; }
.svc-card p { font-size: 14.5px; margin: 0; }
.svc-img { flex: 1; min-height: 210px; border-radius: var(--r); overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* Så går det till */
.process { padding: 10px 0 96px; text-align: center; }
.process h2 { margin-bottom: 12px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; margin-bottom: 44px; }
.steps::before { content: ""; position: absolute; top: 42px; left: 12.5%; right: 12.5%; height: 1.5px; background: var(--rose-d); }
.step-ico { position: relative; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--rose); color: var(--navy); display: grid; place-items: center; }
.step-ico .i { width: 32px; height: 32px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0 auto; max-width: 250px; }

/* Om oss */
.about { position: relative; background: var(--cream); padding: 96px 0; overflow: hidden; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; padding-bottom: 58px; }
.about-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); }
.stat-card { position: absolute; left: 0; bottom: 0; display: flex; gap: 30px; background: var(--navy); color: #fff; border-radius: 16px; padding: 22px 30px; box-shadow: var(--shadow-lift); }
.stat strong { display: block; font: 700 32px/1 var(--serif); color: #fff; }
.stat sup { font-size: .55em; color: var(--rose-d); margin-left: 2px; }
.stat > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.about h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.btns { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }

/* Värdegrund som bildkort (Hembos "Vi finns nära dig") */
.values-tiles { padding: 96px 0 40px; text-align: center; }
.values-tiles h2 { margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.tile { position: relative; display: block; aspect-ratio: 1.66; border-radius: var(--r); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(4, 0, 51, .55); transition: background .3s; }
.tile:hover img { transform: scale(1.05); }
.tile:hover::after { background: rgba(121, 40, 139, .55); }
.chips { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--lav); color: var(--navy); font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; }
.chip .i { width: 15px; height: 15px; color: var(--purple); }
.tile h3 { position: absolute; z-index: 2; left: 20px; bottom: 18px; right: 70px; margin: 0; color: #fff; font-size: 21px; }
.corner { position: absolute; z-index: 2; right: 0; bottom: 0; width: 52px; height: 52px; background: #fff; border-radius: 12px 0 0 0; display: grid; place-items: center; color: var(--purple); }
.corner .i { width: 20px; height: 20px; }

/* Uppmaning */
.cta { padding: 56px 0 96px; }
.cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--rose); border-radius: var(--r); padding: 58px 40px 58px 56px; }
.cta-box h2 { position: relative; font-size: clamp(1.4rem, 2.2vw, 1.6rem); max-width: 560px; margin: 0; }
.cta-btns { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 250px; }

/* Dekorativa konturikoner, som Hembos */
.deco { position: absolute; color: var(--purple); opacity: .16; pointer-events: none; }
.deco .i { width: 100%; height: 100%; stroke-width: 1.1; }
.deco-1 { width: 46px; height: 46px; left: 40%; top: 16px; }
.deco-2 { width: 50px; height: 50px; left: 22px; bottom: 14px; }
.deco-3 { width: 70px; height: 70px; right: 4%; top: 60px; }
.deco-4 { width: 80px; height: 80px; right: 3%; bottom: 40px; }

/* Omdöme */
.quote { position: relative; display: flex; align-items: center; min-height: 600px; padding: 100px 0; overflow: hidden; }
.quote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.quote .wrap { position: relative; width: 100%; }
.quote-box { margin: 0; max-width: 600px; background: rgba(4, 0, 51, .84); color: #fff; border-radius: 16px; padding: 44px 56px 40px; text-align: center; backdrop-filter: blur(2px); }
.quote-mark { display: inline-block; color: var(--rose-d); }
.quote-mark .i { width: 34px; height: 34px; }
.quote-title { color: #fff; font-size: 22px; margin: 6px 0 18px; }
.quote-text { margin: 0; font-style: italic; font-size: 16px; line-height: 1.75; }
.quote-text p { margin: 0 0 .9em; }
.quote-box figcaption { margin-top: 18px; font-style: italic; font-size: 14px; color: rgba(255, 255, 255, .85); }

/* Kontakt */
.contact { position: relative; background: var(--cream); padding: 96px 0; overflow: hidden; }
.contact > .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem, 2.8vw, 2.1rem); }
.c-list { list-style: none; margin: 0; display: grid; gap: 22px; }
.c-list li { display: flex; gap: 18px; align-items: flex-start; }
.c-list .i { width: 24px; height: 24px; color: var(--navy); margin-top: 6px; }
.c-list small { display: block; color: var(--purple); font-size: 13px; line-height: 1.4; }
.c-list li > span { color: var(--navy); font-size: 15.5px; }
.c-list a:hover { color: var(--purple); }
.contact-info > p { margin-bottom: 30px; }
.contact-card { background: #fff; border-radius: var(--r-l); padding: 36px 40px 38px; box-shadow: var(--shadow); }
.contact-phone { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--navy); }
.contact-phone .card-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; flex: none; }
.contact-phone .card-ico .i { width: 26px; height: 26px; }
.contact-phone small { display: block; color: var(--purple); font-size: 13px; }
.contact-phone strong { display: block; font: 600 clamp(1.5rem, 3vw, 1.9rem)/1.2 var(--sans); }
.contact-phone:hover strong { color: var(--purple); }
.follow { font-size: 20px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border: 1px solid var(--navy); border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background .2s, color .2s; }
.social a:hover { background: var(--navy); color: #fff; }
.social .i { width: 19px; height: 19px; }

/* Instagram */
.insta { padding: 80px 0; text-align: center; }
.insta h2 { margin-bottom: 18px; }
.insta-handle { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; font-weight: 500; color: var(--purple); font-size: 17px; }
.insta-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; }
.insta-avatar img { width: 32px; height: 32px; }

/* Sidfot */
.site-footer { background: var(--purple); color: #fff; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .9fr 1.2fr; gap: 44px; padding-top: 72px; padding-bottom: 60px; }
.f-logo { height: 58px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; }
.f-brand p { font-size: 14.5px; max-width: 280px; color: rgba(255, 255, 255, .92); }
.f-h { font-size: 19px; color: #fff; margin: 6px 0 24px; }
.f-contact { list-style: none; display: grid; gap: 18px; font-size: 14.5px; }
.f-contact li { display: flex; gap: 14px; align-items: flex-start; }
.f-contact .i { width: 22px; height: 22px; margin-top: 4px; }
.f-contact small { display: block; font-size: 12.5px; opacity: .82; line-height: 1.4; }
.f-contact a:hover, .f-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-links { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 40px; height: 40px; border-radius: 8px; background: var(--cream); color: var(--purple); display: grid; place-items: center; }
.f-social a:hover { background: #fff; }
.f-social .i { width: 20px; height: 20px; }
.f-bottom { background: var(--navy); font-size: 14px; color: rgba(255, 255, 255, .88); }
.f-bottom .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.f-bottom p { margin: 0; }
.f-firma { display: block; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.totop { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.totop .i { width: 20px; height: 20px; color: var(--rose-d); }
.f-bottom nav { justify-self: end; display: flex; flex-wrap: wrap; }
.f-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Undersidor: bildband + vitt kort med rubrik (Hembos undersidor) */
.page-head { background: var(--cream); }
.page-hero { position: relative; height: 320px; background: var(--navy); overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.page-head .wrap { position: relative; z-index: 2; margin-top: -116px; }
.page-card { background: #fff; border-radius: var(--r-l); padding: 26px 38px 30px; max-width: 680px; box-shadow: var(--shadow); }
.page-card .eyebrow { text-transform: none; letter-spacing: 0; font-size: 15px; margin-bottom: 8px; }
.page-card h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 0; }
.page-body { background: var(--cream); padding: 64px 0 96px; }
.page-body.white { background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split-media { display: grid; gap: 20px; }
.split-media img { width: 100%; border-radius: var(--r-l); object-fit: cover; }
.prose p { font-size: 16px; }
.prose h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.prose .intro { font-size: 18px; color: var(--ink); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head .lead { margin-bottom: 0; }

/* Kort på undersidor */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 28px 28px 30px; }
.card .card-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; margin-bottom: 18px; }
.card .card-ico .i { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; margin: 0; }
.card .big { display: inline-block; font: 600 22px/1.2 var(--sans); color: var(--navy); margin: 4px 0 6px; }
.card .big:hover { color: var(--purple); }

/* Siffror på undersidor */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: #fff; border-radius: var(--r-l); padding: 34px 20px; margin-top: 56px; text-align: center; }
.stats-band .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .18); }
.stats-band .stat strong { font-size: 40px; }

/* Numrerade steg (Att välja Prima) */
.timeline { list-style: none; counter-reset: steg; display: grid; gap: 0; margin-top: 30px; }
.timeline li { position: relative; counter-increment: steg; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 26px; }
.timeline li::before { content: counter(steg); width: 56px; height: 56px; border-radius: 50%; background: var(--rose); color: var(--navy); font: 600 20px/56px var(--sans); text-align: center; position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1.5px; background: var(--rose-d); }
.timeline p { margin: 14px 0 0; }

/* Värdegrund (Hur vi arbetar) */
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 26px 28px; }
.value .card-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; margin-bottom: 16px; }
.value .card-ico .i { width: 24px; height: 24px; }
.value p { margin: 0; font-size: 15px; color: var(--ink); }

/* Karta */
.map { margin-top: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }
.map-vanta { background: var(--cream); line-height: 1.6; }
.map-fraga { max-width: 560px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.map-fraga .card-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--lav); color: var(--purple); display: inline-grid; place-items: center; margin-bottom: 14px; }
.map-fraga .card-ico .i { width: 26px; height: 26px; }
.map-fraga h2 { font-size: 24px; margin-bottom: 6px; }
.map-fraga .btns { justify-content: center; margin-top: 22px; }
.liten { font-size: 13.5px; color: var(--text); }
.liten a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* Integritetspolicy och cookies */
.page-hero.kort { height: 200px; background: linear-gradient(120deg, var(--navy) 0%, #2a0c4a 60%, var(--purple) 140%); }
.juridik { max-width: 760px; }
.juridik h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin: 38px 0 10px; }
.juridik ul { margin: 0 0 1em; padding-left: 1.2em; }
.juridik li { margin-bottom: 8px; }
.juridik a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* Mellanstora skärmar */
@media (max-width: 1439px) {
  .lang summary .lang-long { display: none; }
  .lang summary .lang-short { display: inline; }
}
@media (max-width: 1360px) {
  .help-txt { display: none; }
}
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: block; }
  .help-txt { display: block; }
  .why .wrap { grid-template-columns: repeat(2, 1fr); gap: 34px 30px; padding-top: 40px; }
  .why h2 { grid-column: 1 / -1; margin: 0; }
  .why-ico { margin-top: 0; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-intro { grid-column: 1 / -1; }
  .svc-intro-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .about .wrap, .contact > .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .values, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-col:last-child { grid-column: 1 / -1; flex-direction: row; }
  .svc-col:last-child > * { flex: 1; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .f-bottom .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .f-bottom nav { justify-self: center; justify-content: center; }
  .stats-band { padding: 26px 10px; }
  .stats-band .stat strong { font-size: 30px; }
}

/* Mobil */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .hdr { padding-left: 16px; gap: 10px; min-height: 68px; }
  .logo img { height: 44px; }
  .hdr-cta { gap: 6px; padding: 0 10px 0 8px; }
  .hdr-cta .btn, .help-txt { display: none; }
  .lang summary { padding: 8px 10px; gap: 5px; }
  .help-ico { width: 42px; height: 42px; }
  .help-ico .i { width: 22px; height: 22px; }
  .hero { min-height: 600px; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 0, 51, .45) 0%, rgba(4, 0, 51, .72) 100%); }
  .hero-content { padding: 60px 0 70px; }
  .hero p { font-size: 16px; }
  .hero-btns { gap: 14px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .hero-bg { object-position: 38% 30%; }
  .why .wrap { grid-template-columns: 1fr; gap: 24px; }
  .why-item { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
  .why-ico { grid-row: span 2; width: 56px; height: 56px; box-shadow: 0 0 0 5px rgba(121, 40, 139, .28); }
  .why-ico .i { width: 24px; height: 24px; }
  .why-item h3 { margin: 4px 0 4px; }
  .steps { text-align: left; gap: 26px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step-ico { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .step-ico .i { width: 26px; height: 26px; }
  .step h3 { margin: 6px 0 4px; }
  .step p { max-width: none; margin: 0; }
  .services, .process, .about, .contact, .page-body { padding-top: 64px; padding-bottom: 64px; }
  .process { padding-top: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-col:last-child { flex-direction: column; }
  .svc-img { flex: none; height: 230px; min-height: 0; }
  .svc-intro { padding: 30px 24px; }
  .steps { grid-template-columns: 1fr; }
  .stat-card { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -40px 14px 0; padding: 18px 18px; }
  .stat-card .stat strong { font-size: 26px; }
  .stat-card .stat > span { font-size: 12px; }
  .deco { display: none; }
  .tile { aspect-ratio: 2.1; }
  .about-media { padding-bottom: 0; }
  .values-tiles { padding-top: 64px; }
  .tiles, .values, .cards, .cards.two { grid-template-columns: 1fr; }
  .tile h3 { font-size: 19px; }
  .cta { padding: 40px 0 64px; }
  .cta-box { padding: 36px 22px; }
  .cta-btns, .cta-btns .btn { width: 100%; }
  .quote { min-height: 0; padding: 220px 0 0; }
  .quote > img { height: 280px; }
  .quote .wrap { padding: 0; }
  .quote-box { border-radius: 0; padding: 34px 22px; max-width: none; background: var(--navy); }
  /* Större tryckytor för nummer och mejl (samma utseende, mer yta att träffa) */
  .contact-phone { padding-bottom: 22px; margin-bottom: 22px; }
  .c-list a, .f-contact a, .link-ico, .card .big, .prose a[href^="tel"], .card p a[href^="tel"] { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .f-links { gap: 0; }
  .f-links a { display: block; padding: 8px 0; }
  .insta { padding: 60px 0; }
  .f-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; padding-bottom: 44px; }
  .page-hero { height: 220px; }
  .page-head .wrap { margin-top: -70px; }
  .page-card { padding: 20px 22px 22px; }
  .stats-band { grid-template-columns: 1fr; gap: 18px; }
  .stats-band .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }
  .timeline li { grid-template-columns: 46px 1fr; gap: 14px; }
  .timeline li::before { width: 46px; height: 46px; line-height: 46px; font-size: 19px; }
  .timeline li:not(:last-child)::after { left: 22px; top: 46px; }
  .timeline p { margin-top: 10px; }
  .map iframe { height: 320px; }
  .contact-card { padding: 28px 22px 30px; }
  .page-hero.kort { height: 150px; }
  .map-fraga { padding: 36px 18px; }
  .btn-white { padding-left: 30px; padding-right: 30px; }
  .samtycke { inset-inline: 8px; bottom: 8px; }
  .samtycke-kort { padding: 20px 18px 18px; }
  .samtycke h2 { font-size: 19px; }
  .samtycke p { font-size: 14px; margin-bottom: 14px; }
}
@media (max-width: 360px) {
  .samtycke-knappar { grid-template-columns: 1fr; }
  /* De minsta telefonerna (320 px): tätare sidhuvud och kontaktkort som får krympa */
  .logo img { height: 38px; }
  .hdr { gap: 6px; }
  .hdr-cta { gap: 4px; padding: 0 8px 0 6px; }
  [dir="rtl"] .hdr-cta { padding: 0 6px 0 8px; }
  .lang summary { padding: 8px 9px; }
  .lang summary::after { display: none; }
  .help-ico { width: 40px; height: 40px; }
  .contact-phone { gap: 12px; }
  .contact-phone .card-ico { width: 48px; height: 48px; }
  .contact-phone strong { font-size: 1.3rem; }
  .c-list li > span { min-width: 0; overflow-wrap: anywhere; }
}

/* Kopieringsskydd i demon (html.skyddad sätts bara av demobygget, se js/skydd.js) */
html.skyddad body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.skyddad input, html.skyddad textarea { -webkit-user-select: text; user-select: text; }
html.skyddad img { -webkit-user-drag: none; }
@media print {
  html.skyddad body { display: none !important; }
  html.skyddad::after { content: "Utskrift är avstängd i förhandsvisningen."; display: block; padding: 40px; font: 16px/1.5 sans-serif; }
}

/* Cookierutan (js/main.js). Lika tydliga knappar för att godkänna och neka. */
.samtycke { position: fixed; z-index: 70; inset-inline: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.samtycke[hidden] { display: none; }
.samtycke-kort { pointer-events: auto; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-l); box-shadow: 0 24px 60px rgba(4, 0, 51, .28); border: 1px solid var(--line); padding: 26px 28px 24px; animation: kakor-in .4s ease-out; }
@keyframes kakor-in { from { opacity: 0; transform: translateY(16px); } }
.samtycke h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 8px; }
.samtycke h2 .i { width: 24px; height: 24px; color: var(--purple); }
.samtycke p { font-size: 14.5px; margin-bottom: 18px; }
.samtycke p a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.samtycke-val { display: grid; gap: 10px; margin-bottom: 18px; }
.samtycke-val[hidden] { display: none; }
.val { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.val strong { display: block; color: var(--navy); font-size: 15px; }
.val small { display: block; font-size: 13px; line-height: 1.45; }
.val-alltid { flex: none; font-size: 13px; font-weight: 500; color: var(--purple); }
.brytare { flex: none; appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #cfcad6; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.brytare::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s; }
.brytare:checked { background: var(--purple); }
.brytare:checked::after { inset-inline-start: 23px; }
.samtycke-knappar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.samtycke-knappar .btn { width: 100%; padding: 14px 16px; }
.samtycke-knappar [data-ck="anpassa"], .samtycke-knappar [data-ck="spara"] { grid-column: 1 / -1; }
.samtycke-knappar [hidden] { display: none; }
.ck-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.f-bottom nav .ck-open::before, .f-bottom nav a + a::before { content: ""; display: inline-block; width: 1px; height: 14px; background: rgba(255, 255, 255, .4); margin: 0 16px; vertical-align: -2px; }
.ck-open:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ck-open.text-link { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ck-open.text-link:hover { color: var(--purple-d); }

/* Arabiska: egna typsnitt (latinska tecken som telefonnummer faller tillbaka på Poppins), höger till vänster */
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/naskh-arabic.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/sans-arabic.woff2') format('woff2'); }
html[lang="ar"] { --serif: 'Noto Naskh Arabic', 'Playfair', Georgia, serif; --sans: 'Noto Sans Arabic', 'Poppins', system-ui, sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
/* Bokstäverna i arabiska hänger ihop: ingen spärrning och inga versaler */
html[lang="ar"] .eyebrow, html[lang="ar"] .hero .eyebrow, html[lang="ar"] .nav a, html[lang="ar"] .hero h1 { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
html[lang="ar"] .quote-text { font-style: normal; }
bdi { unicode-bidi: isolate; }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .hdr { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .hdr-cta { border-radius: 0 40px 40px 0; padding: 0 10px 0 22px; margin-left: 0; margin-right: auto; }
[dir="rtl"] .drawer { justify-content: flex-start; }
[dir="rtl"] .drawer-panel { animation-name: slidein-rtl; }
@keyframes slidein-rtl { from { transform: translateX(-30px); opacity: 0; } }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(4, 0, 51, .74) 0%, rgba(4, 0, 51, .5) 42%, rgba(4, 0, 51, .14) 72%, rgba(4, 0, 51, .05) 100%); }
[dir="rtl"] .go { right: auto; left: 18px; }
[dir="rtl"] .go .i, [dir="rtl"] .corner .i { transform: scaleX(-1); }
[dir="rtl"] .stat-card { left: auto; right: 0; }
[dir="rtl"] .stat sup { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .deco-1 { left: auto; right: 40%; }
[dir="rtl"] .deco-2 { left: auto; right: 22px; }
[dir="rtl"] .deco-3 { right: auto; left: 4%; }
[dir="rtl"] .deco-4 { right: auto; left: 3%; }
[dir="rtl"] .stats-band .stat + .stat { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .18); }
[dir="rtl"] .timeline li:not(:last-child)::after { left: auto; right: 27px; }
[dir="rtl"] .juridik ul { padding-left: 0; padding-right: 1.2em; }
@media (max-width: 860px) {
  [dir="rtl"] .stats-band .stat + .stat { border-right: 0; }
}
@media (max-width: 640px) {
  [dir="rtl"] .hdr { padding-right: 16px; }
  [dir="rtl"] .hdr-cta { padding: 0 8px 0 10px; }
  [dir="rtl"] .steps { text-align: right; }
  [dir="rtl"] .timeline li:not(:last-child)::after { right: 22px; }
  [dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(4, 0, 51, .45) 0%, rgba(4, 0, 51, .72) 100%); }
}

/* Mjuk övergång mellan sidorna */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
