/* ===========================
   SERVICE PAGE STYLES
   =========================== */

/* Ensure service pages always scroll */
html, body {
  overflow-y: auto !important;
  height: auto !important;
}

/* Service page highlights — 3 columns */
.service-hero ~ .differentiators .diff__grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .service-hero ~ .differentiators .diff__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SERVICE HERO ---------- */
.service-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.3) 60%, rgba(17,17,17,0.2) 100%);
}

.service-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
}

.service-hero__breadcrumb {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

.service-hero__breadcrumb a:hover { color: var(--gold); }

.service-hero__breadcrumb span { margin: 0 0.5rem; color: rgba(255,255,255,0.4); }

.service-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1rem;
}

.service-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- ARTICLE BODY ---------- */
.article {
  padding: 5rem 0;
}

.article__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.article__main {
  max-width: 780px;
}

/* ---------- ARTICLE TYPOGRAPHY ---------- */
.article__main h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 3.5rem 0 1.5rem;
}

.article__main h2:first-child { margin-top: 0; }

.article__main h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.article__main p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.article__main strong { color: var(--text-primary); }

.article__main blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--blockquote-bg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: var(--blockquote-text);
}

.article__main ul,
.article__main ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article__main li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 0.5rem;
  list-style: disc;
}

.article__main ol li { list-style: decimal; }

/* ---------- IMAGE BLOCKS ---------- */
.article__img {
  margin: 3rem 0;
  overflow: hidden;
}

.article__img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article__img:hover img { transform: scale(1.02); }

.article__img figcaption {
  font-size: 0.8rem;
  color: var(--grey);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.article__img--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.article__img--split img { height: 300px; }

/* ---------- STAT BLOCKS ---------- */
.article__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-block { text-align: center; }

.stat-block__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 200;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-block__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- PROCESS SECTION ---------- */
.process {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.process-step__num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 200;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.7;
}

/* ---------- SIDEBAR ---------- */
.article__sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--bg-sidebar);
  padding: 2rem;
  margin-bottom: 2rem;
}

.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}

.sidebar-card ul { padding: 0; }

.sidebar-card li {
  list-style: none;
  margin-bottom: 0.6rem;
}

.sidebar-card li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.sidebar-card li a:hover { color: var(--gold); }

.sidebar-card--cta {
  background: var(--bg-sidebar-cta);
  text-align: center;
}

.sidebar-card--cta h4 {
  color: var(--text-on-dark);
  border-bottom-color: var(--border-footer);
}

.sidebar-card--cta p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.sidebar-card--cta .btn {
  width: 100%;
  text-align: center;
}

/* ---------- RELATED SERVICES ---------- */
.related {
  padding: 5rem 0;
  background: var(--bg-primary);
  text-align: center;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.related__card {
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  text-align: left;
}

.related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--card-shadow);
}

.related__card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.related__card-body {
  padding: 1.5rem;
}

.related__card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.related__card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- PAGE CTA BANNER ---------- */
.page-cta {
  padding: 6rem 0;
  background: var(--bg-dark-section);
  text-align: center;
}

.page-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.page-cta p {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ---------- RESPONSIVE — TABLET ---------- */
@media (max-width: 1024px) {
  .article__layout {
    grid-template-columns: 1fr;
  }
  .article__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .article { padding: 3.5rem 0; }
  .process { padding: 3.5rem 0; }
  .page-cta { padding: 4rem 0; }
}

/* ---------- RESPONSIVE — MOBILE ---------- */
@media (max-width: 768px) {
  .service-hero { height: 50vh; min-height: 350px; }
  .service-hero__title { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .service-hero__subtitle { font-size: 0.95rem; }
  .service-hero__content { padding-bottom: 3rem; }
  .service-hero__breadcrumb { font-size: 0.7rem; }

  .article { padding: 2.5rem 0; }
  .article__main h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
  .article__main h3 { font-size: 1.15rem; }
  .article__main p { font-size: 0.95rem; line-height: 1.8; }
  .article__stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .article__img--split { grid-template-columns: 1fr; }
  .article__sidebar { grid-template-columns: 1fr; }

  .process { padding: 3rem 0; }
  .process__steps { grid-template-columns: 1fr; gap: 2rem; }
  .process-step__num { font-size: 1.75rem; }
  .process-step h4 { font-size: 1rem; }
  .process-step p { font-size: 0.85rem; }

  .page-cta { padding: 3.5rem 0; }
  .page-cta h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
  .page-cta p { font-size: 0.9rem; }

  .related__grid { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE — SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .service-hero { height: 45vh; min-height: 300px; }
  .service-hero__title { font-size: 1.5rem; }
  .service-hero__subtitle { font-size: 0.85rem; }
  .service-hero__breadcrumb { font-size: 0.65rem; }

  .article__main h2 { font-size: 1.25rem; }
  .stat-block__number { font-size: 2rem; }
}
