/* Leorus Technologies — Design System & Interactive Enhancements */
/* Layered cleanly after main.css; preserves all Tailwind utilities & dark-mode tokens. */

:root {
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 0. Global Responsive Images & Hero Split Layout */
img {
  max-width: 100%;
}
picture {
  display: block;
  max-width: 100%;
}
.hero-mesh {
  overflow-x: clip;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}
.hero-media-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.5);
}
.hero-media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}
.hero-direct-card {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 640px) {
  .hero-direct-card {
    padding: 2rem;
  }
}
.cta-band {
  padding-top: 2.25rem !important;
  padding-bottom: 0 !important;
}
.cta-band__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
}
.cta-band__split > .reveal:first-child {
  padding-bottom: 0.5rem;
}
@media (min-width: 1024px) {
  .cta-band {
    padding-top: 2.5rem !important;
  }
  .cta-band__split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2.5rem;
  }
  .cta-band__split > .reveal:first-child {
    padding-bottom: 2.5rem;
    align-self: center;
  }
}
.cta-band__media {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.cta-band__media img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
@media (max-width: 1023px) {
  .cta-band__media img {
    max-width: 260px;
  }
}

/* Foundation Metrics Band */
section[aria-label="Leorus foundation"] {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 1024px) {
  section[aria-label="Leorus foundation"] {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* 1. Top Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1E4FD8 0%, #5B82F0 50%, #E11D2E 100%);
  transition: width 80ms linear;
}

/* 2. Refined Hero Carousel Controls & Progress */
.hero-carousel {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-carousel__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(11, 27, 63, 0.86), rgba(15, 35, 80, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-carousel__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(30, 79, 216, 0.35);
  color: #dbeafe;
  white-space: nowrap;
}
.hero-carousel__dot {
  transition: width 260ms var(--ease-editorial), background-color 200ms ease;
}

/* 3. Pillar Visual Cards */
.pillar-visual-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #ffffff;
  overflow: hidden;
  transition: transform 300ms var(--ease-editorial), box-shadow 300ms var(--ease-editorial), border-color 300ms ease;
}
.pillar-visual-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.75rem;
}
html.dark .pillar-visual-card {
  background: rgba(17, 34, 72, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
.pillar-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(11, 27, 63, 0.18);
  border-color: rgba(30, 79, 216, 0.32);
}
html.dark .pillar-visual-card:hover {
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55);
  border-color: rgba(91, 130, 240, 0.4);
}
.pillar-visual-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1b3f;
}
.pillar-visual-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-editorial);
}
.pillar-visual-card:hover .pillar-visual-card__media img {
  transform: scale(1.045);
}
.pillar-visual-card__badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(11, 27, 63, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

/* 4. Interactive Service Discovery */
.discovery-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.375rem;
  border-radius: 1rem;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
html.dark .discovery-tabs {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.discovery-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}
html.dark .discovery-tab {
  color: #cbd5e1;
}
.discovery-tab:hover {
  color: #0b1b3f;
}
html.dark .discovery-tab:hover {
  color: #ffffff;
}
.discovery-tab[aria-selected="true"] {
  background: #0b1b3f;
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(11, 27, 63, 0.45);
}
html.dark .discovery-tab[aria-selected="true"] {
  background: #1E4FD8;
  color: #ffffff;
}
.discovery-panel[hidden] {
  display: none;
}
.service-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E4FD8;
  cursor: pointer;
  padding: 0.25rem 0;
}
html.dark .service-expand-btn {
  color: #93c5fd;
}
.service-expand-btn svg {
  transition: transform 220ms var(--ease-editorial);
}
.service-expand-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.service-expand-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
}
html.dark .service-expand-body {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* 5. Business Challenges Interactive Cards */
.challenge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.125rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  transition: transform 260ms var(--ease-editorial), border-color 260ms ease, box-shadow 260ms ease;
}
html.dark .challenge-card {
  background: rgba(17, 34, 72, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}
.challenge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.35);
  box-shadow: 0 18px 36px -18px rgba(11, 27, 63, 0.16);
}
.challenge-card__q {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #0b1b3f;
}
html.dark .challenge-card__q {
  color: #ffffff;
}
.challenge-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E11D2E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
html.dark .challenge-card__pill {
  color: #fda4af;
}

/* 6. 7-Stage Interactive Delivery Journey */
.journey-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 1023px) {
  .journey-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .journey-rail {
    grid-template-columns: 1fr;
  }
}
.journey-step-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  transition: all 220ms var(--ease-editorial);
  cursor: pointer;
}
html.dark .journey-step-btn {
  background: rgba(17, 34, 72, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}
.journey-step-btn:hover {
  border-color: rgba(30, 79, 216, 0.45);
  transform: translateY(-2px);
}
.journey-step-btn[aria-selected="true"] {
  background: #0b1b3f;
  border-color: #0b1b3f;
  color: #ffffff;
  box-shadow: 0 14px 28px -12px rgba(11, 27, 63, 0.5);
}
html.dark .journey-step-btn[aria-selected="true"] {
  background: #1E4FD8;
  border-color: #3b82f6;
}
.journey-step-btn[aria-selected="true"] .journey-step-num {
  color: #fda4af;
}
.journey-step-btn[aria-selected="true"] .journey-step-title {
  color: #ffffff;
}
.journey-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E11D2E;
}
html.dark .journey-step-num {
  color: #fda4af;
}
.journey-step-title {
  margin-top: 0.25rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #0b1b3f;
}
html.dark .journey-step-title {
  color: #ffffff;
}
.journey-detail-box {
  margin-top: 1.25rem;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(30, 79, 216, 0.18);
  background: linear-gradient(135deg, rgba(30, 79, 216, 0.04), rgba(225, 29, 46, 0.03));
}
html.dark .journey-detail-box {
  background: rgba(17, 34, 72, 0.8);
  border-color: rgba(91, 130, 240, 0.25);
}

/* 7. Floating Consultation CTA Pill */
.fab-consult {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  background: #0b1b3f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px -8px rgba(11, 27, 63, 0.45);
  transition: transform 220ms var(--ease-editorial), background-color 200ms ease, opacity 200ms ease;
  cursor: pointer;
}
.fab-consult:hover {
  transform: translateY(-2px);
  background: #1E4FD8;
}
@media (max-width: 639px) {
  .fab-consult span.fab-consult__text {
    display: none;
  }
  .fab-consult {
    padding: 0.75rem;
  }
}

/* 8. Animated Score Meter */
.score-meter-arc {
  transition: stroke-dashoffset 1.4s var(--ease-editorial);
}

/* 9. Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar,
  .pillar-visual-card,
  .pillar-visual-card__media img,
  .challenge-card,
  .journey-step-btn,
  .fab-consult,
  .service-expand-btn svg,
  .score-meter-arc {
    transition: none !important;
  }
  .pillar-visual-card:hover,
  .challenge-card:hover,
  .journey-step-btn:hover,
  .fab-consult:hover {
    transform: none !important;
  }
}
