/* ═══════════════════════════════════════════════════════════════════
   KDV Service Page Styles — shared across all four service sub-pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── All Projects bar ── */
.all-projects-bar {
  background: var(--cream);
  border-top: 1px solid var(--cream);
  padding: 1.25rem 0;
  text-align: center;
}

.all-projects-link {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
.all-projects-link:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ── Screen-reader only utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Service Hero ── */
.service-hero {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.service-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #9A9EA6 0%, #8B6057 16%,
    #6EB4D4 33%, #4A6FA5 50%,
    #344E78 67%, #B22234 83%, #B22234 100%
  );
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--white); }

.service-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.service-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ── Service Body Layout ── */
.service-body {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--offwhite);
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ── Lead paragraph ── */
.service-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--cream);
}

/* ── Section heading ── */
.service-section-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

/* ── Project entries ── */
.project-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cream);
}
.project-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-entry h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.project-client {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.project-entry p:not(.project-client) {
  font-size: 0.97rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}
.project-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: var(--cream);
  border-radius: 100px;
  color: var(--ink-mid);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ── Sidebar ── */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream);
  border-top: 3px solid var(--blue);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sidebar-card ul li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.45;
}
.sidebar-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.sidebar-cta {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .service-sidebar { grid-template-columns: 1fr; }
}
