/* ═══════════════════════════════════════════════════════
   E-Life Electrical — Services Page  (services.css)
   Extends styles.css tokens only — no overrides.
   ═══════════════════════════════════════════════════════ */

/* ── PAGE HERO (reused from about.css pattern) ───────── */
.pg-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding-top: var(--hdr-h);
  overflow: hidden;
}
.pg-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pg-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pg-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,12,20,.88) 0%, rgba(10,12,20,.7) 55%, rgba(10,12,20,.52) 100%);
}
.pg-hero__body { position: relative; z-index: 2; padding-block: 3.5rem 4rem; }

.breadcrumb ol  { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.bc-link        { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.5); transition: color var(--ease); }
.bc-link:hover  { color: var(--amber); }
.bc-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.bc-sep         { color: rgba(255,255,255,.3); font-size: .8rem; }
.breadcrumb [aria-current="page"] { font-size: .8125rem; color: rgba(255,255,255,.55); }

.pg-hero__h1 {
  font-family: var(--fnt-display);
  font-size: clamp(2rem, 5vw + .5rem, 3.5rem);
  font-weight: 800; line-height: 1.08;
  color: var(--white); letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.pg-hero__sub {
  font-size: clamp(.9375rem, 1.5vw + .25rem, 1.125rem);
  color: rgba(255,255,255,.68); line-height: 1.75; max-width: 600px;
}

/* ════════════════════════════════════════════════════════
   STICKY SERVICE NAV
════════════════════════════════════════════════════════ */
.svc-nav {
  position: sticky;
  top: var(--hdr-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.svc-nav__inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc-nav__inner::-webkit-scrollbar { display: none; }

.svc-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
}

.svc-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  position: relative;
}
.svc-nav__link:hover { color: var(--ink); }
.svc-nav__link.is-active { color: var(--amber); border-bottom-color: var(--amber); }
.svc-nav__link:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

/* ════════════════════════════════════════════════════════
   SERVICE SECTIONS  (alternating image / text)
════════════════════════════════════════════════════════ */
.svc-section {
  padding-block: 6rem;
  background: var(--white);
  /* Scroll offset so sticky nav doesn't cover the heading */
  scroll-margin-top: calc(var(--hdr-h) + 56px);
}
.svc-section--alt { background: var(--off); }

/* CCTV featured section */
.svc-section--featured {
  background: var(--off);
  position: relative;
}
.svc-section--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,160,32,.06) 0%, transparent 60%);
  pointer-events: none;
}

.svc-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Image column */
.svc-section__img-wrap {
  position: relative;
  flex-shrink: 0;
}
.svc-section__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Floating category badge on image */
.svc-section__img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(17,24,39,.82);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(232,160,32,.35);
}
.svc-section__img-badge svg { width: 16px; height: 16px; color: var(--amber); }

/* "New Service" label on CCTV section */
.svc-section__new-badge {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* Text column */
.svc-section__title {
  font-family: var(--fnt-display);
  font-size: clamp(1.6rem, 3vw + .25rem, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-top: .3rem;
  margin-bottom: 1.1rem;
}

.svc-section__lead {
  font-size: 1.0625rem;
  color: var(--ink-light);
  line-height: 1.78;
  margin-bottom: 1.75rem;
}

/* Service bullet list */
.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  margin-bottom: 2rem;
}
.svc-list__item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9375rem;
  color: var(--ink-light);
  line-height: 1.5;
}
.svc-list__item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: .48em;
}

/* Callout box */
.svc-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.25rem 1.5rem;
}
.svc-section--alt .svc-callout { background: var(--white); }

.svc-callout--amber {
  background: var(--amber-pale);
  border-color: rgba(232,160,32,.35);
  border-left-color: var(--amber);
}

.svc-callout__text {
  flex: 1;
  font-size: .9375rem;
  color: var(--ink-light);
  line-height: 1.6;
  min-width: 200px;
}

/* ════════════════════════════════════════════════════════
   CLOSING CTA BAND
════════════════════════════════════════════════════════ */
.svc-cta {
  background: var(--ink);
  padding-block: 5rem;
}
.svc-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.svc-cta__heading {
  font-family: var(--fnt-display);
  font-size: clamp(1.75rem, 3vw + .5rem, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .875rem;
}
.svc-cta__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  max-width: 520px;
}
.svc-cta__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-section { padding-block: 4.5rem; }
  .svc-section__inner { gap: 3.5rem; }
  .svc-section__img { height: 420px; }
}

@media (max-width: 900px) {
  .svc-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  /* Always put image on top on mobile regardless of alt */
  .svc-section__img-wrap { order: -1 !important; }
  .svc-section__img { height: 280px; }

  .svc-list { grid-template-columns: 1fr; }

  .svc-cta__inner { grid-template-columns: 1fr; gap: 2rem; }
  .svc-cta__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .svc-section { padding-block: 3.5rem; }
  .svc-nav__link { padding: .875rem 1rem; font-size: .8125rem; }

  .svc-callout { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .svc-callout .btn-primary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .svc-cta__actions { flex-direction: column; }
  .svc-cta__actions .btn-primary,
  .svc-cta__actions .btn-ghost { justify-content: center; width: 100%; }
}