/* =============================================================
   Service page styles — used by all palvelut/*.html pages
   ============================================================= */

/* Service pages always show a solid nav — inherits white nav from style.css */

/* ---- Hero ---- */
.sp-hero {
  position: relative;
  margin-top: 72px; /* clear fixed white nav */
  height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sp-hero__img-wrap {
  position: absolute;
  inset: 0;
}
.sp-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5,10,25,.4), rgba(5,10,25,.4)),
    linear-gradient(to top, rgba(5,10,25,.96) 0%, rgba(5,10,25,.62) 45%, rgba(5,10,25,.22) 100%);
}

.sp-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
  padding-top: 80px;
}

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  transition: color var(--ease-fast);
  border-radius: var(--r-sm);
}
.sp-back:hover { color: rgba(255,255,255,.9); }
.sp-back:focus-visible { outline: 2px solid #60a5fa; }

.sp-hero__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
}

.sp-hero__content h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 10px;
}
.sp-hero__content > p {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  max-width: 500px;
}

/* ---- Main layout ---- */
.sp-main {
  padding: 64px var(--px) 96px;
}

.sp-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ---- Content ---- */
.sp-content { min-width: 0; }

.sp-section {
  margin-bottom: 44px;
}
.sp-section:last-child { margin-bottom: 0; }

.sp-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.sp-section p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.sp-section p:last-child { margin-bottom: 0; }

.sp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-list li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.sp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  font-size: 13px;
  top: 3px;
}
.sp-list li strong {
  color: var(--text);
  font-weight: 600;
}

.sp-note {
  font-size: 13.5px !important;
  color: var(--text-subtle) !important;
  font-style: italic;
  margin-top: 12px !important;
}

.sp-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.sp-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.sp-highlight strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sp-highlight span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Sidebar ---- */
.sp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.sp-cta-card {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--r-xl);
  padding: 28px 24px 24px;
  box-shadow: 0 8px 24px rgba(29,78,216,.28);
}
.sp-cta-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.sp-cta-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
  line-height: 1.55;
}
.sp-cta-card .btn--primary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.sp-cta-card .btn--primary:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
  transform: translateY(-1px);
}

.sp-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}
.sp-info-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sp-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sp-hours td {
  padding: 5px 0;
  color: var(--text-muted);
  line-height: 1.4;
}
.sp-hours td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 70px;
}
.sp-hours tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.sp-hours tr:not(:first-child) td { padding-top: 8px; }

.sp-other-services {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-other-services a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: color var(--ease-fast);
}
.sp-other-services a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sp-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sp-cta-card { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .sp-hero { height: 380px; }
  .sp-sidebar { grid-template-columns: 1fr; }
  .sp-highlight-grid { grid-template-columns: 1fr; }
  .sp-main { padding: 40px var(--px) 64px; }
}
