/* ============================================================
   SERVICES PAGE
   ============================================================ */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 500px;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 49px;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 32px;
  max-width: 1150px;
  margin-top: 0;
}
.page-hero-content .slide-eyebrow,
.page-hero-content .slide-title,
.page-hero-content .slide-text {
  opacity: 1;
  transform: none;
}
.page-hero-content .slide-text {
  font-family: 'Barlow', var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  max-width: 1150px;
  line-height: 1.05;
  margin: 0 auto 1px;
  text-align: center;
}
.page-hero-content .slide-title {
  font-size: clamp(2.4rem, 5vw, 3.56rem);
  letter-spacing: 1.4px;
  color: var(--white);
}
.page-hero-content .slide-title::after {
  width: 329px;
  height: 1px;
  background: rgb(255,255,255);
  margin: 14px auto 0;
}

/* ── Active nav link ────────────────────────────────────────── */
.nav-link.active { color: var(--gold); }

/* ── Nav item vertical position ─────────────────────────────── */
.nav-inner { align-items: flex-start; }
.nav-left,
.nav-right { padding-top: 10px; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

/* ── Correspondent Attorneys (centered intro) ───────────────── */
.svc-centered {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
  scroll-margin-top: 76px;
}
.svc-centered-inner { max-width: 860px; margin: 0 auto; }

.svc-centered h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.7vw, 2.9rem);
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 0;
}
.svc-centered h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: rgba(0,0,0,0.2);
  margin: 18px auto 28px;
}
.svc-centered p {
  font-family: 'Barlow', var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.svc-cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 24px;
}
.svc-city {
  position: relative;
  padding: 4px 16px;
  font-family: 'Barlow', var(--sans);
  font-size: 1.5625rem;
  font-weight: 500;
  color: var(--dark);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
}
.svc-city:nth-child(1) { text-align: center; }
.svc-city:nth-child(2) { text-align: center; }
.svc-city:nth-child(3) { text-align: center; }
/* Separators on both edges of the center (Benoni) column */
.svc-city:nth-child(2)::before,
.svc-city:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 36px;
  background: rgba(0,0,0,0.5);
}
.svc-city:nth-child(2)::before { left: 0; }
.svc-city:nth-child(2)::after  { right: 0; }


/* ── Service sections — photo + text ───────────────────────── */
.svc-section {
  scroll-margin-top: 76px;
}

.svc-block {
  display: grid;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.svc-block.img-left  { grid-template-columns: 50% 1fr; }
.svc-block.img-right { grid-template-columns: 1fr 50%; }

/* Photo column — zoomed, no-stitch parallax */
.svc-photo {
  position: relative;
  overflow: hidden;
}
.svc-photo::before {
  content: '';
  position: absolute;
  inset: -15%;            /* 15% extra on all sides: zooms image + parallax buffer */
  background-image: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center var(--py, 50%);
}
.svc-block.img-right .svc-photo { order: 2; }

/* Content column — scrollable */
.svc-content {
  padding: 52px 60px;
  overflow-y: auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Heading — EB Garamond, matches original */
.svc-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.7vw, 2.9rem);
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 0;
  line-height: 1;
}
.svc-content h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: rgba(0,0,0,0.2);
  margin: 16px 0 24px;
}

/* Subheading — Barlow bold, matches original <strong> style */
.svc-content h3 {
  font-family: 'Barlow', var(--sans);
  font-size: 1.94rem;
  font-weight: 700;
  font-style: normal;
  color: var(--dark);
  text-transform: none;
  letter-spacing: 0;
  margin: 20px 0 6px;
}

/* Body text — Barlow matches original */
.svc-content p {
  font-family: 'Barlow', var(--sans);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.46;
  margin-bottom: 12px;
}

/* Lists */
.svc-list {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
}
.svc-list li {
  position: relative;
  padding-left: 18px;
  font-family: 'Barlow', var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.62;
  margin-bottom: 5px;
}
.svc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.svc-list-nested { margin: 4px 0 0 0; }

/* Custom scrollbar for content panel */
.svc-content::-webkit-scrollbar { width: 4px; }
.svc-content::-webkit-scrollbar-track { background: transparent; }
.svc-content::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }


/* ── CTA Banner ─────────────────────────────────────────────── */
.svc-cta {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}
.svc-cta-inner { max-width: 680px; margin: 0 auto; }
.svc-cta h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.svc-cta p {
  font-family: var(--sans);
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 0.92rem;
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Logo: match About Us mobile size */
  .nav-logo { width: 156px; }
  .nav-logo img { width: 156px; }

  /* Hero: drop fixed height, push content below the logo */
  .page-hero {
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding-top: 180px;
    padding-bottom: 40px;
    background-attachment: scroll;
  }
  .page-hero-content { padding: 0 20px; }

  .svc-block.img-left,
  .svc-block.img-right {
    grid-template-columns: 1fr;
    height: auto;
  }
  .svc-block.img-right .svc-photo { order: 0; }
  .svc-photo { display: none; }
  .svc-city:nth-child(2)::before,
  .svc-city:nth-child(2)::after { display: none; }
  .svc-content {
    overflow-y: visible;
    padding: 48px 32px;
  }
  .svc-cities { grid-template-columns: 1fr; }
  .svc-city { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .svc-city:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .svc-centered { padding: 52px 20px; }
  .svc-content { padding: 36px 20px; }
  .svc-section h2 { font-size: 1.6rem; }
  .page-hero-content .slide-title { font-size: 1.8rem; }
}
