
/* ════════════════════════════════════════════════════════════
   SERVICES PAGE — Append to assets/css/main.css
════════════════════════════════════════════════════════════ */

/* ── SERVICE DETAIL SECTION (sidebar + panels) ─────────────── */
/* ── SCROLL SPACER — gives scroll room for the pinned section ── */
.svc-scroll-spacer {
  position: relative;
  /* height set by JS */
}

.svc-detail-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Pinned state — applied by default since it's inside .svc-scroll-spacer */
.svc-detail-section.svc-pinned {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.svc-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 48px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 80px;
  align-self: start;
}

.svc-tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.svc-tab-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.svc-tab-item:hover {
  color: var(--purple);
  background: var(--purple-pale);
  border-left-color: rgba(107,33,168,0.3);
}
.svc-tab-item.active {
  color: var(--purple);
  background: var(--white);
  border-left-color: var(--purple);
  font-weight: 600;
  box-shadow: 2px 0 0 var(--white) inset;
}
.svc-tab-item.active::after {
  content: '→';
  position: absolute;
  right: 20px;
  color: var(--gold);
  font-size: 14px;
}

.svc-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
  transition: var(--transition);
}
.svc-tab-item.active .svc-tab-icon,
.svc-tab-item:hover .svc-tab-icon {
  background: var(--purple);
  color: #fff;
}

/* Sidebar extras */
.svc-sidebar-extra {
  padding: 24px 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.svc-brochure-box {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.svc-brochure-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-brochure-label::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}

.svc-contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.svc-contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.svc-contact-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.svc-contact-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  transition: var(--transition);
}
.svc-contact-val:hover { color: var(--gold); }

/* ── DETAIL PANELS ──────────────────────────────────────────── */
.svc-panels {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.svc-panels::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: url(../images/tree-logo.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 800px;

  opacity: 0.32;

  pointer-events: none;
  z-index: 0;
}

.svc-panel {
  position: absolute;
  inset: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;

  min-height: 100vh;

  will-change: transform, opacity;

  background: transparent;

  position: relative;
  z-index: 1;
}

.svc-panel.active { z-index: 2; }

/* ── IMAGE — full bleed, no ratio constraint ── */
.svc-panel-img-wrap {
  position: relative;
  overflow: hidden;
  margin-top:37px;
  height: 90%;
  /* clip-path driven by JS for wipe effect */
}
.svc-panel-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  will-change: transform;
  border-radius: 20px;
}
.svc-panel-img-overlay {
  position: absolute;
  inset: 0;
  
  z-index: 1;
  /* overlay sits above img but below tag */
}
.svc-panel-img-tag {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  padding: 7px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1.8px;
  z-index: 2;
}

/* ── CONTENT BODY ── */
.svc-panel-body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.svc-panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 10px 0 0;
}
.svc-panel-title .accent { color: var(--purple); }

.svc-panel-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 2px;
  margin: 20px 0 24px;
}

.svc-panel-body p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  max-width: 100%;
}

.svc-panel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 14px;
}
.svc-feature-pill {
  background: var(--purple-pale);
  color: var(--purple);
  border: 1px solid rgba(107,33,168,0.18);
  border-radius: 100px;
  padding: 5px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  transition: var(--transition);
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  width: auto;
  align-self: flex-start;
  margin-top: 14px;
}

