/*
 * Aalpha Solution V2 - Homepage Specific Stylesheet
 * File: public/assets/css/home.css
 * Target PHP Version: 8.3
 * Inherits from: public/assets/css/global.css
 */

/* ==========================================================================
   1. HERO SPLIT SECTION CUSTOMIZATION
   ========================================================================== */
.hero-split {
  position: relative;
  overflow: hidden;
}

.hero-visual-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Dashboard UI frame customization */
.hero-visual-wrapper .aspect-\[4\/3\] {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Background animated glow circle */
.hero-split::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   2. CLIENT LOGO STRIP
   ========================================================================== */
.logo-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  padding: var(--space-8) 0;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-12);
}

.logo-item {
  height: 32px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.logo-item:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

/* ==========================================================================
   3. BUSINESS CHALLENGES & SERVICES GRIDS
   ========================================================================== */
.challenge-card {
  border-top: 4px solid var(--color-danger);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. WHY CHOOSE AALPHA (BENEFITS)
   ========================================================================== */
.benefit-icon {
  background-color: rgba(15, 76, 129, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   5. PROCESS TIMELINE
   ========================================================================== */
.process-timeline {
  position: relative;
}

/* Central horizontal line on desktop, vertical on mobile */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  /* Connecting line */
  .process-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
  }
}

.process-step {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg-base);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.process-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-large);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 4px var(--color-bg-base);
}

/* ==========================================================================
   6. METRICS HIGHLIGHTS SECTION
   ========================================================================== */
.metrics-section {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  position: relative;
  overflow: hidden;
}

.metric-number {
  font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--fs-small);
  color: var(--color-text-white);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   7. TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials-section {
  background-color: var(--color-bg-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   8. DYNAMIC ASSESSMENT CONTAINER
   ========================================================================== */
.assessment-container {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-base);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-8);
}

/* ==========================================================================
   9. INTERACTIVE ACCORDION TRANSITIONS
   ========================================================================== */
details[open] summary svg {
  transform: rotate(180deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details {
  transition: all var(--transition-normal);
}
