/* ==========================================================================
   FutureSeed — Why Choose Us / Our Commitment to Excellence
   Interactive Expanding Panels Component
   Theme: FutureSeed Signature Cream (#F8F7EC), Forest Ink (#17402B), Emerald (#1bbd36)
   Prefix: wcu-
   ========================================================================== */

:root {
  --wcu-bg: #F8F7EC;
  --wcu-bg-alt: #F1EFE3;
  --wcu-surface: #FFFFFF;
  --wcu-surface-active: #FAFCF7;
  --wcu-ink: #17402B;
  --wcu-ink-light: #2c3e50;
  --wcu-muted: #55685a;
  --wcu-border: rgba(23, 64, 43, 0.10);
  --wcu-border-active: rgba(27, 189, 54, 0.45);
  --wcu-primary: #1bbd36;
  --wcu-primary-dark: #15803d;
  --wcu-primary-soft: rgba(27, 189, 54, 0.12);
  --wcu-tint: #E3EEDB;
  --wcu-shadow-sm: 0 4px 20px rgba(23, 64, 43, 0.06);
  --wcu-shadow-active: 0 25px 50px -15px rgba(23, 64, 43, 0.18), 0 0 30px rgba(27, 189, 54, 0.12);
  --wcu-font-heading: 'Poppins', sans-serif;
  --wcu-font-body: 'Roboto', sans-serif;
}

/* ── Section Container ─────────────────────────────────────────── */
.wcu-section {
  position: relative;
  background-color: var(--wcu-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(27, 189, 54, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(23, 64, 43, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(23, 64, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 64, 43, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  padding: 100px 0 110px;
  color: var(--wcu-ink);
  font-family: var(--wcu-font-body);
  overflow: hidden;
  z-index: 5;
}

.wcu-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Header ────────────────────────────────────────────── */
.wcu-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
}

.wcu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wcu-primary-soft);
  color: var(--wcu-primary-dark);
  border: 1px solid rgba(27, 189, 54, 0.3);
  font-family: var(--wcu-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

.wcu-badge i {
  font-size: 0.95rem;
  color: var(--wcu-primary);
}

.wcu-title {
  font-family: var(--wcu-font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--wcu-ink);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.wcu-title span {
  color: var(--wcu-primary-dark);
}

.wcu-subtitle {
  color: var(--wcu-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Panels Deck (Desktop Row) ─────────────────────────────────── */
.wcu-deck {
  display: flex;
  gap: 18px;
  min-height: 440px;
  perspective: 1100px;
  position: relative;
  z-index: 2;
}

/* ── Individual Panel ──────────────────────────────────────────── */
.wcu-panel {
  position: relative;
  flex: 0.85 1 0%;
  min-width: 100px;
  background: var(--wcu-surface);
  border: 1px solid var(--wcu-border);
  border-radius: 26px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--wcu-shadow-sm);
  transition: 
    flex 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease,
    transform 0.25s ease-out;
  user-select: none;
  --mx: 50%;
  --my: 50%;
}

/* Spotlight radial gradient inside panel */
.wcu-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(27, 189, 54, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Watermark icon in corner */
.wcu-watermark {
  position: absolute;
  right: -20px;
  bottom: -25px;
  font-size: 150px;
  color: var(--wcu-ink);
  opacity: 0.035;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotate(-10deg) scale(0.9);
  z-index: 1;
}

/* ── Active Panel State ────────────────────────────────────────── */
.wcu-panel.is-active {
  flex: 2.45 1 0%;
  background: var(--wcu-surface-active);
  border-color: var(--wcu-border-active);
  box-shadow: var(--wcu-shadow-active);
  cursor: default;
}

.wcu-panel.is-active::before {
  opacity: 1;
}

.wcu-panel.is-active .wcu-watermark {
  opacity: 0.07;
  color: var(--wcu-primary-dark);
  transform: rotate(0deg) scale(1);
}

/* ── Panel Header / Button ─────────────────────────────────────── */
.wcu-panel-head {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  cursor: pointer;
  outline: none;
}

.wcu-panel-head:focus-visible {
  outline: 3px solid var(--wcu-primary);
  outline-offset: 6px;
  border-radius: 14px;
}

/* Icon Box with magnetic wrapper */
.wcu-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--wcu-tint);
  color: var(--wcu-ink);
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: 
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-radius 0.4s ease;
  box-shadow: 0 4px 12px rgba(23, 64, 43, 0.06);
}

.wcu-panel:hover .wcu-icon-box {
  transform: translateY(-2px);
}

.wcu-panel.is-active .wcu-icon-box {
  background: var(--wcu-primary);
  color: #FFFFFF;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 8px 24px rgba(27, 189, 54, 0.35);
  animation: wcuPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wcuPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Panel Title */
.wcu-panel-title {
  font-family: var(--wcu-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wcu-ink);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.wcu-panel.is-active .wcu-panel-title {
  color: var(--wcu-primary-dark);
}

/* Inactive compact title behavior on desktop */
@media (min-width: 901px) {
  .wcu-panel:not(.is-active) .wcu-panel-title {
    font-size: 1.1rem;
    white-space: normal;
    word-break: break-word;
  }
}

/* ── Panel Body & Details ──────────────────────────────────────── */
.wcu-detail-wrap {
  position: relative;
  z-index: 3;
  margin-top: 14px;
}

/* Fixed-width inner container prevents text reflow during flex-grow */
.wcu-detail-inner {
  width: 290px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 
    opacity 0.45s ease 0.15s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s,
    visibility 0.45s ease 0.15s;
}

.wcu-panel.is-active .wcu-detail-inner {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Inactive state hides details immediately */
.wcu-panel:not(.is-active) .wcu-detail-inner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.wcu-desc {
  color: var(--wcu-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* ── Highlight Metric Badge ────────────────────────────────────── */
.wcu-highlight {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--wcu-tint);
  border: 1px solid rgba(23, 64, 43, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.wcu-highlight-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wcu-ink);
  line-height: 1;
}

.wcu-highlight-label {
  font-family: var(--wcu-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wcu-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wcu-sample-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #718096;
  border: 1px dashed rgba(113, 128, 150, 0.45);
  border-radius: 6px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.4);
}

/* ── Learn More Link ───────────────────────────────────────────── */
.wcu-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wcu-primary-dark);
  font-family: var(--wcu-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(27, 189, 54, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  width: fit-content;
}

.wcu-action-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.wcu-action-btn:hover {
  background: var(--wcu-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 189, 54, 0.35);
  transform: translateY(-2px);
}

.wcu-action-btn:hover i {
  transform: translateX(4px);
}

/* ── Staggered Scroll Entry Animation ─────────────────────────── */
.wcu-panel-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wcu-panel-animate.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile / Tablet Accordion (< 901px) ────────────────────────── */
@media (max-width: 900px) {
  .wcu-section {
    padding: 70px 0 80px;
  }

  .wcu-title {
    font-size: 2.1rem;
  }

  .wcu-deck {
    flex-direction: column;
    min-height: auto;
    gap: 14px;
    perspective: none;
  }

  .wcu-panel {
    flex: none !important;
    min-width: auto;
    padding: 22px 20px;
    border-radius: 20px;
    transform: none !important;
  }

  .wcu-panel-head {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .wcu-icon-box {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 0;
    border-radius: 14px;
    transform: none !important;
  }

  .wcu-panel-title {
    font-size: 1.15rem;
    white-space: normal;
  }

  /* Vertical Accordion Height Animation via Grid */
  .wcu-detail-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 0;
  }

  .wcu-panel.is-active .wcu-detail-wrap {
    grid-template-rows: 1fr;
    margin-top: 16px;
  }

  .wcu-detail-inner {
    width: 100%;
    overflow: hidden;
    transform: none !important;
  }

  .wcu-panel:not(.is-active) .wcu-detail-inner {
    opacity: 0;
    visibility: hidden;
  }

  .wcu-watermark {
    display: none;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wcu-panel,
  .wcu-detail-inner,
  .wcu-detail-wrap,
  .wcu-icon-box,
  .wcu-panel-animate {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}
