/**
 * SKSculpts Premium — What We Offer (Interactive Split-Screen Showcase)
 * - Light Mode (Default): Aristocratic Maroon, White/Cream, & Warm Gold.
 * - Dark Mode (data-theme="dark"): Golden Glowing Box UI with Metallic Typography & Illuminated Icons.
 * Zero-waste optimized vertical spacing.
 * Depends on: tokens.css
 */

/* ============================================================
   LIGHT THEME (Default) — Aristocratic Maroon, White & Gold
   ============================================================ */
.sks-what-we-offer-split {
  padding: clamp(36px, 4.5vw, 64px) 0 !important;
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 42, 58, 0.08), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #faf6f0 52%, #f4eae1 100%) !important;
  color: #34151b !important;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.sks-what-we-offer-split .sks-section-intro {
  max-width: 760px;
  margin: 0 auto clamp(20px, 2.5vw, 36px) !important;
  text-align: center;
}

.sks-what-we-offer-split .sks-section-intro > span {
  display: inline-block;
  font-family: var(--sk-font-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9852d !important;
  margin-bottom: 10px;
  padding: 4px 16px;
  background: rgba(185, 133, 45, 0.08);
  border: 1px solid rgba(185, 133, 45, 0.28);
  border-radius: 20px;
}

.sks-what-we-offer-split .sks-section-intro h2 {
  margin: 0;
  font-family: var(--sk-font-display, Georgia, serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #34151b !important;
  background: none;
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 2px 10px rgba(139, 42, 58, 0.1));
}

.sks-what-we-offer-split .sks-section-intro p {
  max-width: 58ch;
  margin: 12px auto 0;
  color: #664e53 !important;
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.7;
}

/* ============================================================
   SPLIT GRID LAYOUT (OPTIMIZED COMPACT HEIGHT)
   ============================================================ */
.sks-split-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* ── Left Column: Maroon & Gold Offerings (Light Mode) ───── */
.sks-split-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sks-split-item {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(139, 42, 58, 0.16) !important;
  border-left: 3px solid rgba(185, 133, 45, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(139, 42, 58, 0.05) !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  position: relative;
  overflow: hidden;
}

.sks-split-item:hover {
  background: #ffffff !important;
  border-color: rgba(139, 42, 58, 0.3) !important;
  border-left-color: #b9852d !important;
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(139, 42, 58, 0.12) !important;
}

.sks-split-item:focus-visible {
  box-shadow: 0 0 0 2px #b9852d !important;
}

/* ACTIVE STATE IN LIGHT MODE (Aristocratic Maroon Panel) */
.sks-split-item.is-active {
  background: linear-gradient(135deg, #641a27 0%, #46111a 55%, #2c0910 100%) !important;
  border: 1px solid rgba(185, 133, 45, 0.6) !important;
  border-left: 4px solid #d2ae6a !important;
  box-shadow: 0 16px 42px rgba(100, 26, 39, 0.28) !important;
  transform: translateX(6px);
}

.sks-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.sks-split-item.is-active .sks-item-header {
  border-bottom: 1px solid rgba(210, 174, 106, 0.25);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.sks-item-number {
  font-family: var(--sk-font-ui, monospace);
  font-size: 13px;
  font-weight: 700;
  color: #b9852d !important;
  opacity: 0.85;
  letter-spacing: 0.05em;
  min-width: 20px;
}
.sks-split-item.is-active .sks-item-number {
  color: #e6c587 !important;
  opacity: 1;
}

.sks-service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(185, 133, 45, 0.12) !important;
  border: 1px solid rgba(185, 133, 45, 0.3);
  color: #b9852d !important;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: none !important;
}
.sks-split-item.is-active .sks-service-icon {
  background: rgba(210, 174, 106, 0.22) !important;
  border-color: #d2ae6a !important;
  color: #e6c587 !important;
  transform: scale(1.06) rotate(5deg);
}

.sks-item-header h3 {
  margin: 0;
  font-family: var(--sk-font-display, Georgia, serif);
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34151b !important;
  transition: color 0.3s ease;
}
.sks-split-item.is-active .sks-item-header h3 {
  color: #fff8ee !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.sks-item-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  padding-left: 0;
}
.sks-split-item.is-active .sks-item-body {
  max-height: 280px;
  opacity: 1;
}

.sks-item-body p {
  margin: 0;
  color: #664e53 !important;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}
.sks-split-item.is-active .sks-item-body p {
  color: #f5e6e8 !important;
}

/* ── Right Column: Showcase Window (Light Mode) ──────────── */
.sks-split-visuals {
  position: relative;
  height: 100%;
}

.sks-visuals-sticky {
  position: sticky;
  top: 100px;
  height: clamp(360px, 38vw, 520px) !important;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(139, 42, 58, 0.22) !important;
  box-shadow: 0 24px 64px rgba(70, 17, 26, 0.16) !important;
  background: #2a0c12 !important;
}

.sks-split-image-card {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3.5vw, 38px);
}

.sks-split-image-card:not([style*="background-image"]) {
  background: radial-gradient(circle at 60% 30%, #641a27 0%, #3a0d15 50%, #1a0508 100%) !important;
}

.sks-split-image-card.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.sks-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35, 10, 15, 0.95) 0%, rgba(35, 10, 15, 0.45) 45%, rgba(35, 10, 15, 0.1) 100%) !important;
  z-index: 1;
}

.sks-product-badge,
.sks-placeholder-badge {
  position: relative;
  z-index: 2;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.5s ease 0.15s;
}
.sks-split-image-card.is-active .sks-product-badge,
.sks-split-image-card.is-active .sks-placeholder-badge {
  transform: translateY(0);
  opacity: 1;
}

.sks-badge-label {
  display: inline-block;
  font-family: var(--sk-font-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e6c587 !important;
  margin-bottom: 6px;
}

.sks-badge-title {
  margin: 0 0 16px;
  font-family: var(--sk-font-display, Georgia, serif);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff8ee !important;
}

.sks-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--sk-font-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff8ee !important;
  text-decoration: none;
  background: rgba(185, 133, 45, 0.25) !important;
  border: 1px solid rgba(210, 174, 106, 0.6) !important;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.sks-badge-link:hover {
  background: #d2ae6a !important;
  color: #2c0910 !important;
  border-color: #d2ae6a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 133, 45, 0.4) !important;
}
.sks-badge-link:hover svg {
  transform: translateX(4px);
  transition: transform 0.25s ease;
}

.sks-placeholder-badge span {
  font-family: var(--sk-font-display, Georgia, serif);
  font-size: 1.5rem;
  color: #f5e6e8 !important;
  font-style: italic;
}


/* ============================================================
   DARK THEME (data-theme="dark") — Golden Glowing Box UI
   ============================================================ */
html[data-theme="dark"] .sks-what-we-offer-split {
  background:
    radial-gradient(circle at 18% 14%, rgba(195, 145, 80, 0.22), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(160, 115, 65, 0.18), transparent 45%),
    linear-gradient(135deg, #121518 0%, #191d22 45%, #1e2227 75%, #101316 100%) !important;
  color: #f3ece1 !important;
}

html[data-theme="dark"] .sks-what-we-offer-split .sks-section-intro > span {
  color: #d4a359 !important;
  background: rgba(195, 145, 80, 0.12) !important;
  border-color: rgba(195, 145, 80, 0.35) !important;
  box-shadow: 0 0 15px rgba(195, 145, 80, 0.18) !important;
}

/* Metallic Gold Typography in Dark Mode */
html[data-theme="dark"] .sks-what-we-offer-split .sks-section-intro h2 {
  background: linear-gradient(180deg, #fffdf5 0%, #ecd18a 48%, #b38232 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 22px rgba(212, 163, 89, 0.35)) !important;
}

html[data-theme="dark"] .sks-what-we-offer-split .sks-section-intro p {
  color: #b3bdc7 !important;
}

/* Dark Mode: Golden Glowing Boxes (Left Menu Items) */
html[data-theme="dark"] .sks-split-item {
  background: linear-gradient(145deg, #111518 0%, #0c0f12 100%) !important;
  border: 1px solid rgba(212, 163, 89, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(4, 6, 8, 0.45) !important;
}
html[data-theme="dark"] .sks-split-item:hover {
  border-color: rgba(236, 209, 138, 0.65) !important;
  box-shadow: 0 0 25px rgba(212, 163, 89, 0.25), 0 12px 32px rgba(4, 6, 8, 0.5) !important;
}
html[data-theme="dark"] .sks-split-item:focus-visible {
  box-shadow: 0 0 0 2px #ecd18a !important;
}

/* Dark Mode Active Glowing Box State */
html[data-theme="dark"] .sks-split-item.is-active {
  background: linear-gradient(135deg, #1a1e24 0%, #13161a 60%, #0f1114 100%) !important;
  border: 1.5px solid #ecd18a !important;
  box-shadow: 0 0 38px rgba(236, 209, 138, 0.26), inset 0 0 24px rgba(212, 163, 89, 0.08) !important;
}

html[data-theme="dark"] .sks-item-number {
  color: #d4a359 !important;
}
html[data-theme="dark"] .sks-split-item.is-active .sks-item-number {
  color: #ecd18a !important;
}

/* Dark Mode: Illuminated Golden Circle Icons */
html[data-theme="dark"] .sks-service-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(236, 209, 138, 0.45) !important;
  background: radial-gradient(circle, rgba(236, 209, 138, 0.16) 0%, rgba(0,0,0,0.4) 100%) !important;
  box-shadow: 0 0 16px rgba(236, 209, 138, 0.25) !important;
  color: #ecd18a !important;
}
html[data-theme="dark"] .sks-split-item.is-active .sks-service-icon {
  border-color: #ffe08a !important;
  box-shadow: 0 0 24px rgba(255, 224, 138, 0.5) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .sks-item-header h3 {
  color: #e2e9f0 !important;
}
html[data-theme="dark"] .sks-split-item.is-active .sks-item-header h3 {
  color: #ecd18a !important;
  text-shadow: 0 0 12px rgba(236, 209, 138, 0.35) !important;
}

html[data-theme="dark"] .sks-item-body p {
  color: #ced7e0 !important;
}
html[data-theme="dark"] .sks-split-item.is-active .sks-item-body p {
  color: #f2ebe1 !important;
}

/* Dark Mode Right Showcase Pane */
html[data-theme="dark"] .sks-visuals-sticky {
  border: 1px solid rgba(212, 163, 89, 0.45) !important;
  box-shadow: 0 20px 60px rgba(4, 6, 8, 0.85), 0 0 30px rgba(180, 130, 60, 0.12) !important;
  background: #121518 !important;
}
html[data-theme="dark"] .sks-split-image-card:not([style*="background-image"]) {
  background: radial-gradient(circle at 60% 30%, #4a3523 0%, #22272c 55%, #121518 100%) !important;
}
html[data-theme="dark"] .sks-image-overlay {
  background: linear-gradient(0deg, rgba(14, 16, 19, 0.95) 0%, rgba(14, 16, 19, 0.45) 45%, rgba(14, 16, 19, 0.1) 100%) !important;
}
html[data-theme="dark"] .sks-badge-label {
  color: #ecd18a !important;
}
html[data-theme="dark"] .sks-badge-title {
  color: #ffffff !important;
}
html[data-theme="dark"] .sks-badge-link {
  background: rgba(195, 145, 80, 0.2) !important;
  border-color: rgba(236, 209, 138, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(195, 145, 80, 0.2) !important;
}
html[data-theme="dark"] .sks-badge-link:hover {
  background: #ecd18a !important;
  color: #121518 !important;
  box-shadow: 0 8px 25px rgba(236, 209, 138, 0.45) !important;
}
html[data-theme="dark"] .sks-placeholder-badge span {
  color: #ced7e0 !important;
}


/* ============================================================
   RESPONSIVE DESIGN (MOBILE HERO IMAGE + SCROLLABLE BOXES)
   ============================================================ */
@media (max-width: 1024px) {
  .sks-split-item { padding: 16px 18px; }
  .sks-split-item.is-active { transform: translateX(0); }
  .sks-split-item:hover     { transform: translateX(0); }
}

@media (max-width: 900px) {
  .sks-split-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 1. First image is always displayed prominently at top and stays anchored in view */
  .sks-visuals-sticky {
    order: -1 !important;
    position: sticky !important;
    top: 75px !important;
    z-index: 20 !important;
    height: clamp(260px, 60vw, 340px) !important;
    margin-bottom: 8px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75) !important;
  }

  /* 2. Boxes scroll within a dedicated container so expanded text never pushes image away */
  .sks-split-list {
    max-height: clamp(320px, 46vh, 420px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px !important;
    padding-bottom: 12px !important;
    gap: 12px !important;
    border-radius: 16px;
    scrollbar-width: thin;
  }
}

@media (max-width: 600px) {
  .sks-item-header { gap: 12px; }
  .sks-service-icon { width: 38px; height: 38px; font-size: 16px; }
  .sks-item-header h3 { font-size: 1.15rem; }
  .sks-visuals-sticky {
    top: 65px !important;
    height: 250px !important;
  }
  .sks-split-list {
    max-height: 330px !important;
  }
}

