/* ============================================================
   service-page.css  –  Spol-Jour tjänstesida-layout
   ============================================================ */

/* ---------- Service hero ---------- */
.svc-hero {
  background: var(--dark-blue);
  position: relative;
  overflow: hidden;
  padding: 52px 0 130px;
  color: var(--white);
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 40%;
  opacity: .12;
  z-index: 0;
}
.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,60,.98) 0%, rgba(26,58,107,.85) 100%);
  z-index: 0;
}
.svc-hero .breadcrumb { position: relative; z-index: 1; margin-bottom: 2rem; }
.svc-hero .breadcrumb a,
.svc-hero .breadcrumb span { color: rgba(255,255,255,.6); }
.svc-hero .breadcrumb a:hover { color: var(--white); }
.svc-hero .breadcrumb svg { fill: rgba(255,255,255,.4); }

.svc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3.5rem;
  align-items: center;
}
.svc-hero-text h1 { color: var(--white); margin-bottom: 1rem; }
.svc-hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

/* Stats row */
.svc-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  width: fit-content;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  margin-top: .2rem;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Hero image */
.svc-hero-img-wrap {
  position: relative;
}
.svc-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border: 3px solid rgba(255,255,255,.1);
}
.svc-hero-badge-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.svc-hero-badge-float svg { width:30px; height:30px; fill:#16a34a; flex-shrink:0; }
.svc-hero-badge-float strong {
  display: block;
  font-size: .9rem;
  color: var(--dark-blue);
  line-height: 1.2;
}
.svc-hero-badge-float span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------- Prose + sidebar layout ---------- */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}
.prose-main h2 {
  margin-top: 2.5rem;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--light-gray);
}
.prose-main h2:first-child { margin-top: 0; }
.prose-main p { color: var(--text-muted); line-height: 1.8; }
.prose-main a { font-weight: 600; }

/* Two column mini cards */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.mini-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border: 1.5px solid var(--border);
}
.mini-card-urgent { border-color: rgba(255,107,0,.35); background: rgba(255,107,0,.04); }
.mini-card-planned { border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.04); }
.mini-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .75rem;
  color: var(--dark-blue);
}
.mini-card-urgent .mini-card-header svg { width:16px; height:16px; fill:var(--accent); }
.mini-card-planned .mini-card-header svg { width:16px; height:16px; fill:#16a34a; }
.mini-card ul { padding-left: 1.1em; margin: 0; }
.mini-card ul li { font-size: .88rem; color: var(--text-muted); margin-bottom: .3rem; line-height: 1.5; }

/* Process list */
.process-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}
.process-list .step-num {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}
.process-list strong {
  display: block;
  color: var(--dark-blue);
  margin-bottom: .3rem;
  font-size: .97rem;
}
.process-list p { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* City pills */
.city-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0 2rem;
}
.city-pill-list a,
.city-pill-list span {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark-blue);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.city-pill-list a:hover {
  background: var(--dark-blue);
  color: var(--white);
  border-color: var(--dark-blue);
  text-decoration: none;
}
.city-pill-list span { color: var(--text-muted); }

/* Compare table */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  font-size: .9rem;
}
.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--dark-blue);
}
.compare-header > div {
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.compare-header .col-good { color: #4ade80; }
.compare-header .col-bad  { color: #f87171; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.compare-row:nth-child(even) { background: var(--light-gray); }
.compare-row > div {
  padding: .75rem 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.compare-row .col-good { color: #16a34a; font-weight: 600; }
.compare-row .col-bad  { color: #dc2626; font-weight: 600; }

/* ---------- Sidebar ---------- */
.prose-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-cta-box {
  background: var(--mid-blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.sidebar-cta-icon {
  width: 48px; height: 48px;
  background: rgba(255,107,0,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.sidebar-cta-icon svg { width:24px; height:24px; fill:var(--accent); }
.sidebar-cta-box h3 { color: var(--white); font-size: 1.2rem; margin: 0; }
.sidebar-cta-box p  { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
.sidebar-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.sidebar-trust-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.sidebar-trust-list li svg { width:15px; height:15px; fill:#4ade80; flex-shrink:0; }

.sidebar-related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.sidebar-related h3 { margin-bottom: 1rem; font-size: 1rem; }
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 0;
  color: var(--dark-blue);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.related-list a:hover { color: var(--accent); }
.related-list a svg { width:16px; height:16px; fill:var(--text-muted); flex-shrink:0; transition: fill var(--transition); }
.related-list a:hover svg { fill: var(--accent); }

.sidebar-info-box {
  background: rgba(255,107,0,.06);
  border: 1.5px solid rgba(255,107,0,.25);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.sidebar-info-box h3 { font-size: .97rem; margin-bottom: .5rem; color: var(--dark-blue); }
.sidebar-info-box p  { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.bottom-cta-text h2 { color: var(--white); margin-bottom: .4rem; }
.bottom-cta-text p  { color: rgba(255,255,255,.75); margin: 0; max-width: 500px; }
.bottom-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-hero-grid { grid-template-columns: 1fr 380px; gap: 2rem; }
  .svc-hero-img  { height: 380px; }
  .prose-grid    { grid-template-columns: 1fr 280px; gap: 2rem; }
}

@media (max-width: 900px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-img-wrap { display: none; }
  .prose-grid { grid-template-columns: 1fr; }
  .prose-sidebar { position: static; }
  .svc-hero { padding-bottom: 130px; }
}

@media (max-width: 640px) {
  .two-col-cards    { grid-template-columns: 1fr; }
  .svc-hero-stats   { flex-direction: column; gap: .75rem; padding: 1rem; }
  .stat-divider     { width: 100%; height: 1px; }
  .stat-item        { padding: 0; }
  .compare-header,
  .compare-row      { grid-template-columns: 1.2fr 1fr 1fr; }
  .bottom-cta       { flex-direction: column; align-items: flex-start; }
}
