@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/**
 * Humanise The Dot - Conversation Lab: Five Service Lines Showcase
 * Refined Sunlit Cafe Slides (01 to 05) with clear backdrop and responsive layouts
 */

:root {
  --sunlit-brand-orange: #ea580c;
  --sunlit-brand-orange-hover: #c2410c;
  --sunlit-brand-orange-light: #fff7ed;
  --sunlit-text-dark: #0f172a;
  --sunlit-text-sub: #334155;
  --sunlit-text-muted: #64748b;
  --sunlit-text-soft: #94a3b8;
  --sunlit-card-bg: rgba(255, 255, 255, 0.95);
  --sunlit-card-border: rgba(226, 232, 240, 0.85);
  --sunlit-font-serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --sunlit-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sunlit-font-accent: 'Caveat', cursive;
  --sunlit-blue: #0284c7;
  --sunlit-blue-light: #f0f9ff;
  --sunlit-amber: #d97706;
  --sunlit-amber-light: #fef3c7;
  --sunlit-cyan: #0891b2;
  --sunlit-cyan-light: #ecfeff;
}

.sunlit-showcase-section a,
.sunlit-showcase-section a:hover,
.sunlit-showcase-section a:focus,
.sunlit-showcase-section a:visited {
  text-decoration: none !important;
}

/* ========================================================
   SECTION WRAPPER & INTRO NAVIGATION
   ======================================================== */
.sunlit-showcase-section {
  position: relative;
  background: #080d1a;
  padding: 40px 0 70px;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.sunlit-showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Section Header Bar */
.sunlit-intro-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 992px) {
  .sunlit-intro-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sunlit-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: 9999px;
  color: #fdba74;
  font-family: var(--sunlit-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sunlit-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunlit-brand-orange);
  box-shadow: 0 0 10px var(--sunlit-brand-orange);
  animation: sunlitPulse 2s infinite ease-in-out;
}

@keyframes sunlitPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Top 5 Service Tabs - Horizontal Scroll on Mobile */
.sunlit-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.sunlit-tabs-nav::-webkit-scrollbar {
  display: none;
}

.sunlit-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 7px 15px;
  border-radius: 9999px;
  font-family: var(--sunlit-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.sunlit-tab-btn .tab-idx {
  font-family: var(--sunlit-font-serif);
  font-size: 0.92rem;
  color: #64748b;
  transition: color 0.25s ease;
}

.sunlit-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.sunlit-tab-btn.active {
  background: var(--sunlit-brand-orange);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.sunlit-tab-btn.active .tab-idx {
  color: #ffedd5;
  font-weight: 700;
}

/* View Mode Switch (Slide View vs All 5 Sections) */
.sunlit-view-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
  flex-shrink: 0;
}

.btn-view-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 13px;
  border-radius: 9999px;
  font-family: var(--sunlit-font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-view-mode.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ========================================================
   SLIDER STAGE CONTAINER
   ======================================================== */
.sunlit-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 16px;
}

.sunlit-slider-stage {
  position: relative;
  width: 100%;
  min-height: clamp(660px, 82vh, 880px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #ffffff;
}

/* Continuous Scroll Mode */
.sunlit-showcase-section.mode-expanded .sunlit-slider-stage {
  min-height: auto;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ========================================================
   INDIVIDUAL SLIDE CARD
   ======================================================== */
.sunlit-slide-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
  transform: scale(0.98) translateY(10px);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sunlit-slide-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  z-index: 3;
}

/* In expanded mode, every slide is visible and stacked */
.sunlit-showcase-section.mode-expanded .sunlit-slide-card {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  min-height: clamp(660px, 82vh, 880px);
  border-radius: 28px;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Inner Layout Container */
.sunlit-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(660px, 82vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px 24px;
  z-index: 2;
}

/* ========================================================
   ARTWORK BACKDROP: SHIFTED RIGHT & REDUCED WHITE BLEND
   ======================================================== */
.sunlit-art-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Shifted right so characters and center cafe scene are clearly visible */
.sunlit-art-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center; /* Moves the center characters into the open right half */
  transform: translateX(70px) scale(1.04);
  transition: transform 6s ease-out;
}

.sunlit-slide-card.active .sunlit-art-img {
  transform: translateX(70px) scale(1.02);
}

/* Greatly Reduced White Blend: Only softly covers the far left text column */
.sunlit-art-gradient-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.72) 15%,
    rgba(255, 255, 255, 0.32) 26%,
    rgba(255, 255, 255, 0.06) 34%,
    rgba(255, 255, 255, 0) 40%
  );
  z-index: 2;
  pointer-events: none;
}

.sunlit-art-vignette {
  display: none !important; /* Removed so center image is 100% visible */
}

/* ========================================================
   HERO EDITORIAL CONTENT BLOCK
   ======================================================== */
.sunlit-hero-block {
  position: relative;
  z-index: 10;
  max-width: 440px;
  margin-top: 0;
  margin-bottom: 24px;
}

.sunlit-eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.eyebrow-text {
  font-family: var(--sunlit-font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #475569;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 38px;
  height: 2px;
  background: var(--sunlit-brand-orange);
}

.sunlit-main-heading {
  font-family: var(--sunlit-font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.8);
}

.heading-dark {
  color: var(--sunlit-text-dark);
}

.heading-orange {
  color: var(--sunlit-brand-orange);
}

.sunlit-subhead {
  font-family: var(--sunlit-font-sans);
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--sunlit-text-dark);
  margin-bottom: 16px;
  max-width: 420px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.sunlit-lab-quote {
  font-family: var(--sunlit-font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sunlit-text-sub);
  max-width: 410px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  border-left: 3px solid var(--sunlit-brand-orange);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.05);
}

.sunlit-lab-quote p {
  margin: 0;
}

.quote-line-1 {
  font-weight: 600;
  color: var(--sunlit-text-dark);
}

.quote-line-2 {
  color: var(--sunlit-text-sub);
}

/* ========================================================
   BOTTOM 4 FEATURE CARDS
   ======================================================== */
.sunlit-cards-container {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
  margin-bottom: 18px;
}

.sunlit-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sunlit-feature-card {
  background: var(--sunlit-card-bg);
  border: 1px solid var(--sunlit-card-border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.sunlit-feature-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1), 0 0 16px rgba(234, 88, 12, 0.12);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sunlit-feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon.icon-orange {
  background: var(--sunlit-brand-orange-light);
  color: var(--sunlit-brand-orange);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.feature-icon.icon-blue {
  background: var(--sunlit-blue-light);
  color: var(--sunlit-blue);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.feature-icon.icon-amber {
  background: var(--sunlit-amber-light);
  color: var(--sunlit-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.feature-icon.icon-cyan {
  background: var(--sunlit-cyan-light);
  color: var(--sunlit-cyan);
  border: 1px solid rgba(8, 145, 178, 0.25);
}

.feature-card-title {
  font-family: var(--sunlit-font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sunlit-text-dark);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.feature-card-body {
  font-family: var(--sunlit-font-sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--sunlit-text-sub);
  margin: 0;
}

/* ========================================================
   SLIDE BOTTOM FOOTER BAR & PROGRESS
   ======================================================== */
.sunlit-slide-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-family: var(--sunlit-font-sans);
  font-size: 0.78rem;
  color: var(--sunlit-text-muted);
  flex-wrap: wrap;
}

.footer-left-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-orange-bar {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--sunlit-brand-orange);
}

.footer-brand-tag {
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #64748b;
  text-transform: uppercase;
}

.footer-center-note {
  color: #64748b;
  font-style: italic;
  font-size: 0.8rem;
  text-align: center;
  flex: 1;
}

.footer-right-progress {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.progress-counter {
  font-family: var(--sunlit-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sunlit-text-dark);
  letter-spacing: 0.05em;
}

.progress-track-bars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.track-segment {
  display: inline-block;
  width: 24px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.track-segment:hover {
  background: #94a3b8;
  height: 4px;
}

.track-segment.active {
  background: var(--sunlit-brand-orange);
  width: 36px;
  height: 3px;
}

/* ========================================================
   FLOATING PREV / NEXT BUTTONS
   ======================================================== */
.sunlit-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--sunlit-text-dark);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sunlit-prev-arrow {
  left: 18px;
}

.sunlit-next-arrow {
  right: 18px;
}

.sunlit-nav-arrow:hover {
  background: var(--sunlit-brand-orange);
  color: #ffffff;
  border-color: var(--sunlit-brand-orange);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4);
}

/* Hide floating arrows in expanded view mode */
.sunlit-showcase-section.mode-expanded .sunlit-nav-arrow {
  display: none !important;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 1199px) {
  .sunlit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .sunlit-showcase-section {
    padding: 30px 0 50px;
    scroll-margin-top: 70px;
  }
  .sunlit-slider-stage {
    min-height: auto;
    border-radius: 20px;
  }
  .sunlit-slide-card {
    min-height: auto;
  }
  .sunlit-slide-inner {
    padding: 32px 24px 20px;
    min-height: auto;
  }
  .sunlit-art-img {
    transform: none;
    object-position: 65% center;
    width: 100%;
    right: 0;
    left: 0;
  }
  .sunlit-art-gradient-left {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.8) 35%,
      rgba(255, 255, 255, 0.3) 65%,
      rgba(255, 255, 255, 0.9) 100%
    );
  }
  .sunlit-hero-block {
    max-width: 100%;
  }
  .sunlit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .sunlit-stage-wrap {
    padding: 0 10px;
  }
  .sunlit-intro-row {
    gap: 12px;
    margin-bottom: 16px;
  }
  .sunlit-intro-badge {
    padding: 6px 14px;
    font-size: 0.72rem;
    align-self: flex-start;
  }
  .sunlit-tabs-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 4px;
  }
  .sunlit-tab-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .sunlit-slider-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
  }
  .sunlit-slide-card {
    position: relative;
    height: auto;
    min-height: auto;
  }
  .sunlit-slide-card:not(.active) {
    display: none !important;
  }
  .sunlit-slide-inner {
    padding: 24px 16px 16px;
    min-height: auto;
    height: auto;
  }
  .sunlit-main-heading {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .sunlit-subhead {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .sunlit-lab-quote {
    font-size: 0.85rem;
    padding: 8px 12px;
    margin-bottom: 16px;
  }
  .sunlit-cards-container {
    margin-bottom: 16px;
  }
  .sunlit-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sunlit-feature-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
  }
  .feature-card-header {
    gap: 10px;
    margin-bottom: 6px;
  }
  .feature-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .feature-card-title {
    font-size: 0.95rem;
  }
  .feature-card-body {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .sunlit-slide-footer {
    padding-top: 12px;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-left-lockup {
    width: 100%;
    justify-content: space-between;
  }
  .footer-center-note {
    width: 100%;
    order: 2;
    text-align: left;
    margin-top: 2px;
    font-size: 0.72rem;
  }
  .footer-right-progress {
    width: 100%;
    order: 1;
    justify-content: space-between;
  }
  .progress-counter {
    font-size: 0.92rem;
  }
  .track-segment {
    width: 16px;
  }
  .track-segment.active {
    width: 24px;
  }
  .sunlit-nav-arrow {
    display: none !important;
  }
}
