/* ============================================================
   SERVICES PAGE — Kirtane & Pandit
   Full-viewport accordion: 5 categories, flex-grow transitions
   ============================================================ */

/* ---- Page shell ---- */
body.page-services {
  overflow: hidden;
  height: 100vh;
  background: var(--navy);
}

/* ================================================================
   SECTION
   ================================================================ */
.svc {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

/* Subtle dot-grid texture for depth */
.svc::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   SECTION HEADER BAR
   ================================================================ */
.svc__hd {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(22px, 2.8vh, 38px) clamp(36px, 5vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 2;
}

/* Gold left accent on header */
.svc__hd::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 50%, transparent);
  opacity: 0.6;
}

.svc__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  opacity: 0.7;
}

.svc__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

.svc__hd-meta {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: 3px;
}

.svc__count {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.svc__cta-link {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transition: color 0.3s, border-color 0.3s;
}
.svc__cta-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.svc__cta-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-butter);
}
.svc__cta-link:hover .svc__cta-arrow {
  transform: translateX(5px);
}

/* ================================================================
   ROWS CONTAINER
   ================================================================ */
.svc__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ================================================================
   INDIVIDUAL ROW
   ================================================================ */
.svc__row {
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.052);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s;
}
.svc__row:last-child { border-bottom: none; }

.svc__row.is-active {
  flex: 5;
  cursor: default;
}

/* Hover tint on inactive rows */
.svc__row:not(.is-active):hover {
  background: rgba(255,255,255,0.016);
}

/* ---- Gold left bar ---- */
.svc__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--gold);
  transition: height 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.svc__row.is-active::before { height: 100%; }
/* Peek on hover */
.svc__row:not(.is-active):hover::before { height: 35%; }

/* ---- Row inner flex ---- */
.svc__row-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(36px, 5vw, 80px);
  gap: clamp(28px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

/* ================================================================
   LEFT PANEL
   ================================================================ */
.svc__row-left {
  flex: 0 0 clamp(190px, 32%, 400px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* Category number */
.svc__num {
  font-family: var(--font-serif);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.45;
  display: block;
  margin-bottom: 5px;
  transition: opacity 0.45s;
}
.svc__row.is-active .svc__num { opacity: 1; }

/* Category title — transitions from small+dim to large+bright */
.svc__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: rgba(255,255,255,0.34);
  line-height: 1.1;
  margin: 0;
  transition: color 0.45s,
              font-size 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc__row.is-active .svc__title {
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  color: var(--white);
}
.svc__row:not(.is-active):hover .svc__title {
  color: rgba(255,255,255,0.58);
}

/* Tagline — max-height reveal */
.svc__tag {
  font-family: var(--font-sans);
  font-size: clamp(0.71rem, 0.95vw, 0.82rem);
  color: rgba(245,243,239,0.4);
  line-height: 1.58;
  max-width: 340px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s var(--ease-butter),
              opacity 0.4s 0.22s,
              margin-top 0.45s var(--ease-butter);
}
.svc__row.is-active .svc__tag {
  max-height: 72px;
  opacity: 1;
  margin-top: 13px;
}

/* Explore link — max-height reveal */
.svc__explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s var(--ease-butter),
              opacity 0.38s 0.34s,
              margin-top 0.45s 0.1s var(--ease-butter);
}
.svc__row.is-active .svc__explore {
  max-height: 36px;
  opacity: 1;
  margin-top: 22px;
}
.svc__explore-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-butter);
}
.svc__explore:hover .svc__explore-arrow {
  transform: translateX(5px);
}

/* ================================================================
   VERTICAL DIVIDER
   ================================================================ */
.svc__divider {
  flex: 0 0 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.09) 20%,
    rgba(184,150,110,0.18) 50%,
    rgba(255,255,255,0.09) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.55s 0.3s;
  flex-shrink: 0;
}
.svc__row.is-active .svc__divider { opacity: 1; }

/* ================================================================
   RIGHT PANEL
   ================================================================ */
.svc__row-right {
  flex: 1;
  padding-left: clamp(22px, 3vw, 48px);
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.48s 0.26s,
              transform 0.52s 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  min-width: 0;
}
.svc__row.is-active .svc__row-right {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ----------------------------------------------------------------
   Service items grid
   ---------------------------------------------------------------- */
.svc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 11px 28px;
}

.svc__list li {
  font-family: var(--font-sans);
  font-size: clamp(0.73rem, 0.97vw, 0.85rem);
  color: rgba(245,243,239,0.52);
  padding-left: 15px;
  position: relative;
  line-height: 1.45;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.32s,
              transform 0.32s,
              color 0.22s;
}

/* Gold bullet */
.svc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  transition: opacity 0.25s;
}

.svc__list li:hover { color: rgba(245,243,239,0.9); }
.svc__list li:hover::before { opacity: 1; }

/* Staggered reveal */
.svc__row.is-active .svc__list li               { opacity: 1; transform: translateY(0); }
.svc__row.is-active .svc__list li:nth-child(1)  { transition-delay: 0.27s; }
.svc__row.is-active .svc__list li:nth-child(2)  { transition-delay: 0.32s; }
.svc__row.is-active .svc__list li:nth-child(3)  { transition-delay: 0.37s; }
.svc__row.is-active .svc__list li:nth-child(4)  { transition-delay: 0.42s; }
.svc__row.is-active .svc__list li:nth-child(5)  { transition-delay: 0.47s; }
.svc__row.is-active .svc__list li:nth-child(6)  { transition-delay: 0.52s; }
.svc__row.is-active .svc__list li:nth-child(7)  { transition-delay: 0.57s; }
.svc__row.is-active .svc__list li:nth-child(8)  { transition-delay: 0.62s; }
.svc__row.is-active .svc__list li:nth-child(9)  { transition-delay: 0.67s; }
.svc__row.is-active .svc__list li:nth-child(10) { transition-delay: 0.72s; }
.svc__row.is-active .svc__list li:nth-child(11) { transition-delay: 0.77s; }
.svc__row.is-active .svc__list li:nth-child(12) { transition-delay: 0.82s; }
.svc__row.is-active .svc__list li:nth-child(13) { transition-delay: 0.87s; }

/* ================================================================
   GHOST NUMERAL
   ================================================================ */
.svc__ghost {
  position: absolute;
  right: clamp(24px, 4.5vw, 68px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: color 0.65s,
              font-size 0.65s var(--ease-butter);
  z-index: 0;
}
.svc__row.is-active .svc__ghost {
  color: rgba(184,150,110,0.07);
  font-size: clamp(80px, 13vw, 175px);
}

/* ================================================================
   FOCUS / ACCESSIBILITY
   ================================================================ */
.svc__row:focus { outline: none; }
.svc__row:focus-visible {
  background: rgba(255,255,255,0.022);
}
.svc__row:focus-visible::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(184,150,110,0.35);
  pointer-events: none;
  z-index: 2;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .svc__row-inner {
    gap: clamp(16px, 3vw, 32px);
  }
  .svc__row-left {
    flex: 0 0 clamp(160px, 38%, 280px);
  }
}

@media (max-width: 680px) {
  body.page-services { overflow: auto; height: auto; }
  .svc { height: auto; min-height: 100vh; }
  .svc__body { overflow: visible; }

  .svc__row {
    flex: none !important;
    min-height: 64px;
    transition: background 0.3s;
  }
  .svc__row.is-active {
    min-height: 380px;
  }
  .svc__row::before { transition: height 0.5s; }

  .svc__row-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(16px, 3vw, 24px) clamp(20px, 5vw, 36px);
    gap: 10px;
    height: auto;
    min-height: inherit;
  }

  .svc__row-left {
    flex: none;
    width: 100%;
  }

  .svc__divider { display: none; }

  .svc__row-right {
    width: 100%;
    padding-left: 0;
  }

  .svc__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
  }

  .svc__ghost { display: none; }

  .svc__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 85vw; }

  .svc__row.is-active .svc__title {
    white-space: normal;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
}
