/* ══════════════════════════════════════════════
   SHARED SUB-SERVICE PAGE STYLES
   Before/After, Content Blocks, Expertise, Nav Cards
   ══════════════════════════════════════════════ */

/* ── Before/After Slider ── */
.ba-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 4px; height: 100%;
  background: #FFFFFF;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.ba-handle-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-handle-grip::before,
.ba-handle-grip::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  position: absolute;
}

.ba-handle-grip::before {
  border-width: 6px 8px 6px 0;
  border-color: transparent #1A1A1A transparent transparent;
  left: 10px;
}

.ba-handle-grip::after {
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #1A1A1A;
  right: 10px;
}

.ba-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 3px;
  pointer-events: none;
}

.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

/* ── Page Heading ── */
.subpage-heading {
  padding: 48px 80px 16px;
  background: #F5F3F0;
}

.subpage-heading h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 52px;
  color: #1A1A1A;
  margin: 0 0 10px;
  clip-path: inset(0 0 100% 0);
}

.subpage-heading p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #847667;
  margin: 0;
  font-style: italic;
  opacity: 0;
}

/* ── Body Content ── */
.subpage-body {
  background: #F5F3F0;
  padding: 20px 80px 80px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(24px);
}

.content-block:nth-child(even) {
  flex-direction: row-reverse;
}

.content-block-text {
  flex: 1;
  max-width: 480px;
}

.content-block-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1A1A1A;
  margin: 0 0 16px;
}

.content-block-text p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #545554;
  line-height: 1.7;
  margin: 0;
}

.content-block-image {
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.content-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: transform 0.6s ease;
}

.content-block-image:hover img {
  transform: scale(1.03);
}

.content-block-image.img-large  { width: 55%; height: 420px; }
.content-block-image.img-medium { width: 45%; height: 360px; }
.content-block-image.img-tall   { width: 40%; height: 500px; }
.content-block-image.img-wide   { width: 50%; height: 320px; }

/* ── Full-width divider ── */
.content-divider {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 35vh;
  overflow: hidden;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(24px);
}

.content-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Expertise Grid ── */
.expertise-section {
  padding: 64px 80px;
  background: #FFFFFF;
  opacity: 0;
  transform: translateY(24px);
}

.expertise-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 36px;
  color: #1A1A1A;
  margin: 0 0 48px;
  text-align: center;
}

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.expertise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(25% - 36px);
  gap: 12px;
}

.expertise-icon {
  width: 40px;
  height: 40px;
}

.expertise-item span {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #545554;
  letter-spacing: 0.3px;
}

.expertise-item:hover .expertise-icon {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.expertise-item:hover span {
  color: #1A1A1A;
  transition: color 0.3s ease;
}

/* ── Navigation Cards ── */
.subpage-nav {
  padding: 64px 40px;
  background: #F5F3F0;
}

.subpage-nav-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 40px;
}

.subpage-nav-cards {
  position: relative;
  width: 100%;
  height: 45vh;
}

.subpage-nav-card {
  position: absolute;
  width: 24%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  z-index: 1;
}

.subpage-nav-card:nth-child(1) { left: 0; }
.subpage-nav-card:nth-child(2) { left: 25.5%; }
.subpage-nav-card:nth-child(3) { left: 51%; }
.subpage-nav-card:nth-child(4) { left: 76.5%; }

.subpage-nav-card:hover {
  z-index: 10;
  width: 42%;
}

.subpage-nav-card:nth-child(3):hover { left: auto; right: 24%; }
.subpage-nav-card:nth-child(4):hover { left: auto; right: 0; }

.subpage-nav-card.is-current {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.subpage-nav-card.is-current .subpage-nav-card-bg {
  filter: grayscale(80%);
}

.subpage-nav-cards:hover .subpage-nav-card.is-current {
  opacity: 0.35;
}

.subpage-nav-card a {
  display: block;
  width: 100%; height: 100%;
  text-decoration: none;
  position: relative;
}

.subpage-nav-card-bg {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.subpage-nav-card:hover .subpage-nav-card-bg {
  transform: scale(1.05);
}

.subpage-nav-card a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.subpage-nav-card-title {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #FFFFFF;
  pointer-events: none;
}

.subpage-nav-card-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.subpage-nav-card:hover .subpage-nav-card-overlay { opacity: 1; }

.subpage-nav-card-overlay span {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #F5F3F0;
  letter-spacing: 0.5px;
}

.subpage-nav-cards:hover .subpage-nav-card { opacity: 0.5; }
.subpage-nav-cards:hover .subpage-nav-card:hover { opacity: 1; }

/* ── Process Banner ── */
.process-banner {
  background: #8EBA3F;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-banner-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: #1A1A1A;
}

.process-banner-link a {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.process-banner-link a:hover { color: #FFFFFF; }

/* ── Process Page Timeline ── */
.process-page-heading {
  padding: 48px 80px 16px;
  background: #F5F3F0;
}

.process-page-heading h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 52px;
  color: #1A1A1A;
  margin: 0 0 10px;
  clip-path: inset(0 0 100% 0);
}

.process-page-heading p.process-subtitle {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #847667;
  margin: 0 0 24px;
  font-style: italic;
  opacity: 0;
}

.process-page-heading .process-intro {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #545554;
  line-height: 1.7;
  max-width: 700px;
  margin: 0;
  opacity: 0;
}

.process-timeline {
  padding: 80px 80px;
  background: #F5F3F0;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 160px);
  background: #D4D0CC;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 80px;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
}

.process-step:last-child { margin-bottom: 0; }

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8EBA3F;
  color: #FFFFFF;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.process-step-text {
  width: calc(50% - 48px);
}

.process-step:nth-child(odd) .process-step-text {
  text-align: right;
  margin-left: 0;
  margin-right: auto;
}

.process-step:nth-child(even) .process-step-text {
  text-align: left;
  margin-left: auto;
  margin-right: 0;
}

.process-step-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1A1A1A;
  margin: 0 0 12px;
}

.process-step-text p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #545554;
  line-height: 1.7;
  margin: 0;
}

.process-step-image {
  width: calc(50% - 48px);
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
}

.process-step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: transform 0.6s ease;
}

.process-step-image:hover img {
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════
   MOBILE — Sub-pages
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ba-slider { height: 50vh; }
  .ba-handle-grip { width: 40px; height: 40px; }
  .ba-handle-grip::before { border-width: 5px 7px 5px 0; left: 8px; }
  .ba-handle-grip::after { border-width: 5px 0 5px 7px; right: 8px; }
  .ba-label { font-size: 11px; padding: 4px 10px; }
  .ba-label-before { left: 14px; }
  .ba-label-after { right: 14px; }
}

@media (max-width: 768px) {
  .subpage-heading { padding: 32px 24px 12px; }
  .subpage-heading h1 { font-size: 36px; }
  .subpage-heading p { font-size: 15px; }
  .subpage-body { padding: 16px 24px 48px; }

  .content-block {
    flex-direction: column !important;
    gap: 24px;
    margin-bottom: 48px;
  }

  .content-block-text { max-width: 100%; }
  .content-block-text h2 { font-size: 20px; }
  .content-block-text p { font-size: 15px; }

  .content-block-image.img-large,
  .content-block-image.img-medium,
  .content-block-image.img-tall,
  .content-block-image.img-wide {
    width: 100%;
    height: 280px;
  }

  .content-divider {
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 25vh;
    margin-bottom: 48px;
  }

  .expertise-section { padding: 48px 24px; }
  .expertise-title { font-size: 28px; margin-bottom: 36px; }
  .expertise-grid { gap: 32px 24px; }
  .expertise-item { width: calc(50% - 12px); }
  .expertise-icon { width: 36px; height: 36px; }
  .expertise-item span { font-size: 13px; }

  .subpage-nav { padding: 48px 24px; }
  .subpage-nav-cards {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  .subpage-nav-card {
    position: relative !important;
    width: 100% !important;
    height: 25vh;
    left: auto !important;
    right: auto !important;
  }
  .subpage-nav-card:hover { width: 100% !important; }
  .subpage-nav-cards:hover .subpage-nav-card { opacity: 1; }
  .subpage-nav-card-overlay { opacity: 1; background: rgba(0, 0, 0, 0.15); }

  .process-banner {
    padding: 32px 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .process-banner-text { font-size: 22px; }

  /* Process timeline mobile */
  .process-page-heading { padding: 32px 24px 12px; }
  .process-page-heading h1 { font-size: 36px; }
  .process-timeline { padding: 48px 24px; }
  .process-timeline::before { left: 24px; }

  .process-step {
    flex-direction: column !important;
    gap: 24px;
    padding-left: 56px;
    margin-bottom: 48px;
  }

  .process-step-number {
    left: 0;
    transform: none;
    width: 40px; height: 40px;
    font-size: 18px;
  }

  .process-step-text {
    width: 100% !important;
    text-align: left !important;
  }

  .process-step-image {
    width: 100%;
    height: 220px;
  }
}
