/* ==========================================================================
   Nilssons Kemiska — designsystem
   "Fresh heritage": familjekemtvätt sedan 1972, moderniserad.
   ========================================================================== */

:root {
  /* Färg */
  --ink:        #13243f;   /* djup marinblå */
  --ink-soft:   #324a66;   /* aning djupare brödtext (mindre washed) */
  --muted:      #6b7d93;
  --line:       #d6dfec;   /* en aning tydligare kant mot ljus bakgrund */
  --bone:       #f4f6fa;   /* sval ljus bakgrund */
  --paper:      #ffffff;   /* rent ljust kort */
  --mist:       #e6eef8;   /* blekt blå ton */
  --green:      #1d5a91;   /* sofistikerad petrol/azur (varumärke) */
  --green-deep: #143f6b;
  --green-bri:  #3f93d6;   /* ljusare accent */
  --sand:       #c9a35a;   /* sparsam varm detalj */

  /* Typografi */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Rytm */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(19,36,63,.07), 0 16px 40px -20px rgba(19,36,63,.36);
  --shadow-lift: 0 2px 4px rgba(19,36,63,.08), 0 30px 64px -22px rgba(19,36,63,.5);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.23,1,.32,1);   /* stark ease-out (Emil) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green-bri); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.28rem; line-height: 1.2; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--green-bri); display: inline-block; }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }

/* Knappar -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .95em 1.5em; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s var(--ease-out), background .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px -12px rgba(20,120,90,.8); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(20,120,90,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.22); }
/* press vinner över hover-lyft (Emil: knappar ska kännas tryckta) */
.btn:active, .btn-primary:active, .btn-ghost:active, .btn-light:active { transform: scale(.97); }

/* hover-effekter bara på riktiga pekare (touch-tap ska inte fastna i hover) */
@media (hover: none) {
  .btn:hover, .svc:hover, .why-item:hover, .price-card:hover,
  .brand:hover .brand-mark, .nav-phone:hover { transform: none; }
}

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,244,236,.78); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246,244,236,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; transition: padding .3s; }
.scrolled .nav { padding: 12px 0; }
.brand { color: var(--ink); flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 46px; width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-3deg) scale(1.04); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.brand-word i { font-style: normal; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .42em; color: var(--green); margin-top: 3px; }
.scrolled .brand-mark { height: 40px; }
.site-footer .brand-word b { color: #fff; }
.site-footer .brand-word i { color: var(--green-bri); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; white-space: nowrap; }
.nav-links { white-space: nowrap; }
@media (max-width: 1080px){ .nav-links { gap: 20px; } }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-5px; height:2px; width:0; background: var(--green-bri); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 600; color: var(--ink); display: inline-flex; align-items:center; gap:.4em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--ink); margin:5px 0; transition: .3s; border-radius:2px; }

/* Hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px,7vw,92px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
.hero h1 .em { font-style: italic; color: var(--green); }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display:flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-meta b { color: var(--ink); font-weight: 600; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, var(--mist), transparent 60%),
    linear-gradient(160deg, #16263f 0%, #1a3a63 55%, #0f4f86 100%);
  box-shadow: var(--shadow-lift);
}
/* fallback färgad scen tills foto finns */
.hero-card .scene {
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25)),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
    linear-gradient(150deg, #1a3a63, #102a4a 70%);
}
.hero-card .scene::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 50% at 70% 25%, rgba(201,163,90,.22), transparent 60%);
}
.hero-card img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; filter: saturate(1.08) contrast(1.06); }
/* lätt blå dimma: mjuk blå slöja + tydlig kant så plaggen syns men kortet förblir ljust */
.hero-card::after { content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: linear-gradient(160deg, rgba(63,147,214,.14) 0%, rgba(29,90,145,.14) 55%, rgba(19,36,63,.34) 100%);
  box-shadow: inset 0 0 0 1px rgba(19,36,63,.16); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--paper);
  border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow-lift); display:flex; gap:14px; align-items:center;
  max-width: 280px;
}
.hero-badge .yr { font-family: var(--serif); font-size: 2.4rem; color: var(--green); line-height:1; }
.hero-badge small { color: var(--muted); font-size:.82rem; display:block; }
.hero-badge b { font-size:.95rem; }

/* Trust strip ---------------------------------------------------------- */
.trust { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background: var(--paper); }
.trust .wrap { display:flex; flex-wrap:wrap; justify-content: space-between; gap: 18px 30px; padding-block: 22px; }
.trust-item { display:flex; align-items:center; gap:10px; font-size:.9rem; font-weight:500; color: var(--ink-soft); }
.trust-item svg { width:20px; height:20px; color: var(--green); flex-shrink:0; }

/* Sektioner ------------------------------------------------------------ */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.section-head.center .lead { margin-inline:auto; }

/* Tjänster ------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .3s;
  position: relative; overflow: hidden;
}
.svc::before { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--green-bri); transition: width .4s var(--ease); }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { width: 100%; }
.svc .ico { width: 52px; height:52px; border-radius: 13px; background: linear-gradient(150deg, #dbe8f8, #c7dbf2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); display:grid; place-items:center; color: var(--green-deep); margin-bottom: 18px; }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .97rem; }

/* Process -------------------------------------------------------------- */
.process { background: var(--ink); color: #eef2ef; }
.process h2, .process h3 { color: #fff; }
.process .eyebrow { color: var(--green-bri); }
.process .eyebrow::before { background: var(--green-bri); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .n { font-family: var(--serif); font-size: 1rem; color: var(--ink); background: var(--green-bri); width: 38px; height:38px; border-radius:50%; display:grid; place-items:center; font-weight:600; margin-bottom:18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: #aebdb6; font-size: .95rem; }
.step::after { content:""; position:absolute; top: 33px; left: 50px; right: -10px; height:1.5px; background: linear-gradient(90deg, var(--green-bri), transparent); opacity:.4; }
.step:last-child::after { display:none; }
.process-note { margin-top: 40px; padding: 22px 26px; border:1px solid rgba(255,255,255,.14); border-radius: var(--r); background: rgba(255,255,255,.04); display:flex; gap:16px; align-items:center; font-size:.97rem; color:#cdd8d3; }
.process-note svg { width:30px; height:30px; color: var(--green-bri); flex-shrink:0; }

/* Priser --------------------------------------------------------------- */
.prices-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
.price-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--r); padding: 28px 26px; box-shadow: var(--shadow); }
.price-card h3 { display:flex; align-items:center; gap:10px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.price-card h3 svg { width:22px; height:22px; color: var(--green); }
.price-list { list-style:none; }
.price-list li { display:flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list .p { font-weight:600; color: var(--green-deep); white-space:nowrap; }
.price-foot { margin-top: 26px; text-align:center; color: var(--muted); font-size:.9rem; }

/* Spårning / status ---------------------------------------------------- */
.track { background: linear-gradient(150deg, var(--green-deep), #0d2f57); color:#eaf4ef; border-radius: var(--r-lg); padding: clamp(40px,6vw,68px); position: relative; overflow:hidden; }
.track::after { content:""; position:absolute; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%; background: radial-gradient(circle, rgba(63,147,214,.42), transparent 70%); }
.track h2 { color:#fff; position:relative; }
.track .lead { color: #c5ded4; position:relative; }
.track-form { display:flex; gap:12px; margin-top: 28px; max-width: 460px; position:relative; flex-wrap:wrap; }
.track-form input { flex:1; min-width: 200px; border:1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color:#fff; border-radius: 999px; padding: .9em 1.3em; font-family: var(--sans); font-size:1rem; }
.track-form input::placeholder { color: rgba(255,255,255,.6); }
.track-form input:focus { outline:none; border-color:#fff; background: rgba(255,255,255,.18); }
.track-note { margin-top:14px; font-size:.85rem; color:#a9cabb; position:relative; }

/* Varför / split ------------------------------------------------------- */
.why-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.why-item .ico { width:54px;height:54px;border-radius:14px; background: var(--mist); color:var(--green); display:grid;place-items:center; margin-bottom:18px; }
.why-item .ico svg { width:28px;height:28px; }
.why-item h3 { margin-bottom:8px; }
.why-item p { color: var(--muted); font-size:.98rem; }

/* Om oss --------------------------------------------------------------- */
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items:center; }
.about-visual { aspect-ratio: 5/4; border-radius: var(--r-lg); background:
    linear-gradient(150deg,#1a3a63,#102a4a); box-shadow: var(--shadow-lift); position:relative; overflow:hidden; }
.about-visual .scene { position:absolute; inset:0; background:
   repeating-linear-gradient(105deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px),
   radial-gradient(70% 60% at 30% 20%, rgba(201,163,90,.2), transparent); }
.about-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.about-text p + p { margin-top: 16px; }
.about-stats { display:flex; gap: 36px; margin-top: 30px; }
.about-stats .stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--green); line-height:1; }
.about-stats .stat small { color: var(--muted); font-size:.85rem; }

/* Kontakt -------------------------------------------------------------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--r); padding: 34px 32px; box-shadow: var(--shadow); }
.contact-list { list-style:none; margin-top: 8px; }
.contact-list li { display:flex; gap:14px; padding: 14px 0; border-bottom:1px solid var(--line); align-items:flex-start; }
.contact-list li:last-child { border-bottom:0; }
.contact-list .ic { width:40px;height:40px;border-radius:10px;background:var(--mist);color:var(--green);display:grid;place-items:center;flex-shrink:0; }
.contact-list .ic svg{width:20px;height:20px;}
.contact-list b { display:block; font-size:.85rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.contact-list a, .contact-list span { font-size:1.05rem; color:var(--ink); }
.map-embed { border:0; width:100%; height:100%; min-height: 320px; border-radius: var(--r); filter: grayscale(.2) contrast(1.02); }
.contact-card.map { padding: 0; overflow:hidden; }

/* CTA-band ------------------------------------------------------------- */
.cta-band { background: var(--green); color:#fff; text-align:center; border-radius: var(--r-lg); padding: clamp(40px,6vw,72px); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 14px auto 30px; }
.cta-band .hero-actions { justify-content:center; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c5bf; padding: 64px 0 30px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom:1px solid rgba(255,255,255,.1); }
.site-footer .brand { color:#fff; margin-bottom:18px; }
.site-footer p { font-size:.95rem; max-width: 36ch; }
.foot-col h4 { color:#fff; font-family:var(--sans); font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom:16px; }
.foot-col ul { list-style:none; } .foot-col li { margin-bottom:10px; } .foot-col a:hover { color:#fff; }
.foot-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:.85rem; color:#7f8e88; }

/* Reveal-animationer --------------------------------------------------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; } .reveal.d2 { transition-delay:.16s; } .reveal.d3{transition-delay:.24s;} .reveal.d4{transition-delay:.32s;}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* Responsivt ----------------------------------------------------------- */
@media (max-width: 920px){
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline:auto; }
  .services, .prices-grid, .steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .step::after{ display:none; }
}
@media (max-width: 720px){
  .nav-links, .nav-cta .btn { display:none; }
  .nav-toggle { display:block; }
  .nav.open .nav-links { display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; background:var(--paper); padding:20px 24px; gap:14px; border-bottom:1px solid var(--line); box-shadow: var(--shadow); }
  .services, .prices-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  body{ font-size:16px; }
  .foot-grid{ grid-template-columns:1fr; gap:28px; }
}

/* ===== Impeccable polish: hero-sigill + omdömen ====================== */
.hero-seal {
  position: absolute; top: -22px; right: -16px; width: 92px; height: 92px;
  background: var(--paper); border-radius: 50%; padding: 8px;
  box-shadow: var(--shadow-lift); z-index: 3;
  animation: sealspin 80s linear infinite;
}
@keyframes sealspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero-seal{ animation: none; } }

.testi { background: linear-gradient(180deg, #eaf0f8, #e3ebf6); border-block: 1px solid var(--line); }
.testi-grid { display:grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px,4vw,56px); align-items:center; }
.testi-lead .stars { display:flex; align-items:center; gap:4px; margin:14px 0 22px; color: var(--sand); }
.testi-lead .stars svg { width:22px; height:22px; }
.testi-lead .stars b { font-family:var(--serif); font-size:1.35rem; color:var(--ink); margin-left:10px; }
.testi-lead .stars span { color:var(--muted); font-size:.9rem; }
.testi-lead blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height:1.25;
  color: var(--ink); font-weight:500; margin-bottom:18px; letter-spacing:-.01em;
}
.testi-lead cite { font-style:normal; color:var(--muted); font-size:.95rem; font-weight:500; }
.testi-side { display:flex; flex-direction:column; gap:18px; }
.testi-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); margin:0; }
.testi-card p { font-size:1.02rem; color:var(--ink-soft); margin-bottom:12px; }
.testi-card figcaption { color:var(--muted); font-size:.88rem; font-weight:600; }
@media (max-width: 920px){ .testi-grid { grid-template-columns: 1fr; } }
