/* ==========================================================================
   styles-v2.css — Custom styles for Suite Platform Service Website
   Tailwind CSS is loaded via CDN; this file contains ONLY custom styles.
   Color scheme:
     --dark:         #0c1526
     --primary:      #142039
     --secondary:    #1e293b
     --accent:       #ff7e00
     --accent-hover: #ff6a00
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  --color-dark: #0c1526;
  --color-primary: #142039;
  --color-secondary: #1e293b;
  --color-accent: #ff7e00;
  --color-accent-hover: #ff6a00;
  --color-accent-rose: #e11d48;
  --gradient-accent: linear-gradient(90deg, #ff7e00, #e11d48);
  --transition-base: all 0.3s ease;
}

/* ==========================================================================
   2. Base Styles (carried forward from styles.css)
   ========================================================================== */

body {
  font-family: 'Poppins', sans-serif;
  color: #000;
  background-color: #f1f5f9;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #000;
}

/* Gradient text effect */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Section divider bar */
.section-divider {
  height: 3px;
  width: 100px;
  margin: 0 auto;
  background: var(--gradient-accent);
}

/* Profile image circle */
.profile-image-container {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  box-shadow: 0 10px 25px -5px rgba(255, 126, 0, 0.3);
  margin: 0 auto;
  position: relative;
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card base */
.card {
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Border utilities */
.border-l-3 { border-left-width: 3px; }
.border-t-3 { border-top-width: 3px; }

/* Spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Container responsive breakpoints */
.container { width: 100%; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* ==========================================================================
   3. Status Badges (for product cards)
   ========================================================================== */

[class^="badge-"] {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.6;
}

.badge-live  { background-color: #10b981; }
.badge-beta  { background-color: #f59e0b; }
.badge-alpha { background-color: #8b5cf6; }

/* ==========================================================================
   4. Pipeline Visualization (4-step platform pipeline)
   ========================================================================== */

@keyframes pipelineGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0.4); }
  70%  { box-shadow: 0 0 12px 6px rgba(255, 126, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
}

@keyframes pipelineLight {
  0%   { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 120px;
}

.pipeline-step .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #94a3b8;
  font-size: 1.5rem;
  transition: var(--transition-base);
}

.pipeline-active .icon-circle {
  background: var(--color-accent);
  color: #fff;
  animation: pipelineGlow 2s ease-in-out infinite;
}

.pipeline-active {
  animation: pipelineLight 0.6s ease forwards;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748b;
  padding: 0 0.25rem;
  animation: arrowPulse 2s ease-in-out infinite;
}

.pipeline-arrow::after {
  content: "\2192"; /* right arrow */
}

.approval-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  animation: pipelineGlow 2.5s ease-in-out infinite;
}

/* ==========================================================================
   5. Metric Cards (animated counters)
   ========================================================================== */

.metric-card {
  background: var(--color-primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: #e2e8f0;
  transition: var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.counter-value {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent);
  font-family: 'Poppins', sans-serif;
}

.metric-card .metric-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   6. Before / After Comparison
   ========================================================================== */

.comparison-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.comparison-before,
.comparison-after {
  padding: 2rem 1.5rem;
}

.comparison-before {
  background: #374151;
  color: #d1d5db;
}

.comparison-after {
  background: var(--color-primary);
  color: #f1f5f9;
  border-left: 3px solid var(--color-accent);
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--color-dark);
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.comparison-divider::after {
  content: "\2192"; /* right arrow */
}

/* ==========================================================================
   7. Case Study Cards
   ========================================================================== */

.case-study-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.case-study-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-study-card .card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-secondary);
}

.case-study-card .card-body {
  padding: 1.25rem;
}

.case-study-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-study-card .card-brief {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.case-study-card .card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.case-study-card.expanded .card-expand {
  max-height: 600px;
}

.case-study-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.case-study-toggle::after {
  content: "+";
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.case-study-card.expanded .case-study-toggle::after {
  content: "\2212"; /* minus sign */
}

/* ==========================================================================
   8. FAQ Accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 300;
  color: #94a3b8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question::after {
  content: "\2212"; /* minus sign */
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1rem 1.5rem;
}

/* ==========================================================================
   9. Visual Flow Diagrams
      (winnability, product pipeline, assessment toolkit)
   ========================================================================== */

.flow-diagram {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  max-width: 180px;
  transition: var(--transition-base);
}

.flow-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.flow-step .flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.25rem;
}

.flow-arrow {
  font-size: 1.25rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.flow-arrow::after {
  content: "\2192"; /* right arrow, swapped to down arrow on mobile */
}

.flow-input {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.9rem;
  font-style: italic;
  min-width: 180px;
}

/* ==========================================================================
   10. Hub-Spoke Diagram (homepage 3 pillars)
   ========================================================================== */

.hub-spoke {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hub-center {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(255, 126, 0, 0.3);
  flex-shrink: 0;
}

.spoke-node {
  position: absolute;
  width: 140px;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
  transition: var(--transition-base);
}

.spoke-node:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Positioning for 3 spokes (top, bottom-left, bottom-right) */
.spoke-node:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.spoke-node:nth-child(3) { bottom: 10px; left: 5%; }
.spoke-node:nth-child(4) { bottom: 10px; right: 5%; }

/* Connecting lines via pseudo-elements on container */
.hub-spoke::before,
.hub-spoke::after {
  content: "";
  position: absolute;
  background: #cbd5e1;
  z-index: 1;
}

.hub-spoke::before {
  width: 2px;
  height: 60px;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.hub-spoke::after {
  width: 60%;
  height: 2px;
  bottom: 90px;
  left: 20%;
}

/* ==========================================================================
   11. Responsive Overrides (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Profile image */
  .profile-image-container {
    width: 150px;
    height: 150px;
  }

  /* Pipeline: stack vertically */
  .pipeline-arrow::after {
    content: "\2193"; /* down arrow */
  }

  /* Metric cards */
  .counter-value {
    font-size: 2rem;
  }

  /* Before/After: single column */
  .comparison-split {
    grid-template-columns: 1fr;
  }

  .comparison-divider {
    width: 100%;
    height: 40px;
    flex-direction: row;
  }

  .comparison-divider::after {
    content: "\2193"; /* down arrow */
  }

  .comparison-after {
    border-left: none;
    border-top: 3px solid var(--color-accent);
  }

  /* Case study cards */
  .case-study-card .card-image {
    height: 140px;
  }

  /* Flow diagrams: vertical */
  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow::after {
    content: "\2193"; /* down arrow */
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
  }

  .flow-input {
    width: 100%;
  }

  /* Hub-spoke: stacked cards */
  .hub-spoke {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }

  .hub-spoke::before,
  .hub-spoke::after {
    display: none;
  }

  .spoke-node {
    position: static;
    width: 100%;
    transform: none;
  }

  .spoke-node:nth-child(2),
  .spoke-node:nth-child(3),
  .spoke-node:nth-child(4) {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .hub-center {
    width: 100px;
    height: 100px;
    font-size: 0.85rem;
  }
}
