/* ==========================================================================
   TATVA LEGAL — REUSABLE 50/50 SPLIT LAYOUT (split-layout.css)
   Compatible with 6+ Practice & About Subpages
   ========================================================================== */

/* Prevent ancestor overflow clipping from breaking sticky positioning */
html,
body {
  overflow-x: clip !important;
}

/* --------------------------------------------------------------------------
   1. MAIN GRID WRAPPER
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  position: relative;
  background: #ffffff;
  box-sizing: border-box;
  align-items: start; /* Critical: allows sticky column to scroll freely */
}

/* --------------------------------------------------------------------------
   2. DIRECTION MODIFIERS (Desktop Swapping)
   -------------------------------------------------------------------------- */

/* Default: Content Left, Image Right */
.split-layout.image-right .split-content {
  order: 1;
  padding: 80px 60px 80px 80px;
  justify-content: flex-end;
}
.split-layout.image-right .split-media {
  order: 2;
}

/* Inverted: Image Left, Content Right */
.split-layout.image-left .split-media {
  order: 1;
}
.split-layout.image-left .split-content {
  order: 2;
  padding: 80px 80px 80px 60px;
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   3. SCROLLABLE CONTENT COLUMN & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.split-content {
  display: flex;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.split-content-inner {
  max-width: 640px;
  width: 100%;
}

/* Section Title */
.split-title {
  color: var(--gold, #c49a3c);
  text-transform: lowercase;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 100 !important;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Key Highlight Bullets */
.split-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #1e1b16;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.split-bullets .bullet-dot {
  width: 5px;
  height: 5px;
  background: #1e1b16;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Body Prose */
.split-para {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4540;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Subtle Golden Section Divider */
.split-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(196, 154, 60, 0.35), transparent);
  margin: 40px 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. STICKY MEDIA COLUMN, SCRIM & TITLE
   -------------------------------------------------------------------------- */
.split-media {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh; /* Responsive to dynamic mobile/tablet browser chrome */
  max-height: 100vh;
  max-height: 100dvh;
  width: 100%;
  overflow: hidden;
  z-index: 5;
  box-sizing: border-box;
}

.split-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #e9dfcf;
}

.split-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient scrim so white title text remains readable over light photos */
.split-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Heading placed over the image */
.split-media-title {
  position: absolute;
  left: 48px;
  bottom: 48px;
  color: #ffffff25;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  text-transform: lowercase;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Heading placed over the image */
.split-media-title-gold {
  position: absolute;
  left: 48px;
  bottom: 48px;
  color: #c49a3c25;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  text-transform: lowercase;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
}


/* --------------------------------------------------------------------------
   5. PRACTICE ITEMS & EXPANDING PILL BUTTONS
   -------------------------------------------------------------------------- */
.split-practice-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-practice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(196, 154, 60, 0.15);
}

.split-practice-link {
  text-decoration: none;
  color: #1e1b16;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  flex: 1;
}

.split-practice-link:hover {
  color: var(--gold, #c49a3c);
}

/* Expanding Pill Read More Button */
.about-readmore {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  padding: 0 18px 0 42px; /* Reserves space on left for initial circular icon */
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--gold, #c49a3c);
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.4s ease, transform 0.3s ease;
}

.about-readmore .arrow-circle {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gold, #c49a3c);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 9px;
  box-sizing: border-box;
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

/* Arrow inside circle */
.about-readmore .arrow-circle::before {
  content: "→";
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.4s ease;
}

/* Label text */
.about-readmore .text {
  position: relative;
  z-index: 2;
  color: var(--gold, #c49a3c);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-weight: 500 !important;
  white-space: nowrap;
  transition: color 0.35s ease;
}

/* Hover expansion */
.about-readmore:hover .arrow-circle {
  width: calc(100% - 6px);
}

.about-readmore:hover .arrow-circle::before {
  transform: translateX(3px);
}

.about-readmore:hover .text {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .split-layout {
    grid-template-columns: 1fr !important;
  }

  /* Force image to top on mobile regardless of left/right modifier */
  .split-layout .split-media {
    order: -1 !important;
    position: relative;
    top: auto;
    height: 50vh;
    min-height: 320px;
    max-height: none;
  }

  .split-layout .split-content {
    order: 1 !important;
    padding: 48px 24px !important;
    justify-content: flex-start !important;
  }

  .split-media-title {
    left: 24px;
    bottom: 24px;
  }
}

@media (max-width: 600px) {
  .split-practice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}