/* ============================================
   cShub Automações - Page Styles
   ============================================ */

/* ---------- HERO ---------- */
.cs-automacoes-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cs-automacoes-hero .cs-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cs-automacoes-hero .cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 8, 12, 0.88) 0%, rgba(30, 20, 28, 0.82) 100%);
  z-index: 1;
}

.cs-automacoes-hero .cs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.cs-automacoes-hero .cs-badge {
  margin-bottom: 20px;
}

.cs-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFF8F5;
  margin-bottom: 20px;
}

.cs-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #D3B9B2;
  line-height: 1.7;
  margin-bottom: 36px;
}

.cs-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating badges */
.cs-hero-floating-badges {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cs-float-badge {
  position: absolute;
  background: rgba(255, 248, 245, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 248, 245, 0.15);
  color: #FFF8F5;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 100px;
  animation: cs-float-badge 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  white-space: nowrap;
}

@keyframes cs-float-badge {
  0%, 100% { opacity: 0; transform: translateY(12px); }
  15%, 85% { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.cs-section {
  padding: 100px 0;
  position: relative;
}

.cs-section--alt {
  background: linear-gradient(180deg, rgba(30, 20, 28, 0.6) 0%, rgba(18, 12, 20, 0.9) 100%);
}

.cs-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8A050;
  margin-bottom: 12px;
}

.cs-section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #FFF8F5;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cs-section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #D3B9B2;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- FLOW CARDS (Examples) ---------- */
.cs-flow-card {
  background: rgba(255, 248, 245, 0.04);
  border: 1px solid rgba(255, 248, 245, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cs-flow-card:hover {
  border-color: rgba(200, 160, 80, 0.3);
  box-shadow: 0 8px 32px rgba(200, 160, 80, 0.08);
}

.cs-flow-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-flow-card-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #C8A050;
  opacity: 0.5;
  min-width: 40px;
}

.cs-flow-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF8F5;
}

.cs-flow-card-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-flow-card-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 248, 245, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}

.cs-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8A050, #A07A30);
  color: #0A080C;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cs-flow-card-step p {
  font-size: 0.85rem;
  color: #D3B9B2;
  line-height: 1.4;
  margin: 0;
}

.cs-flow-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #C8A050;
  opacity: 0.4;
}

.cs-flow-arrow svg {
  width: 100%;
  height: 100%;
}

/* ---------- COMPARISON ---------- */
.cs-comparison {
  display: flex;
  gap: 0;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.cs-comparison-col {
  flex: 1;
  padding: 36px 32px;
  border-radius: 16px;
}

.cs-comparison-col--before {
  background: rgba(180, 50, 50, 0.08);
  border: 1px solid rgba(180, 50, 50, 0.15);
}

.cs-comparison-col--after {
  background: rgba(80, 180, 100, 0.08);
  border: 1px solid rgba(80, 180, 100, 0.15);
}

.cs-comparison-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.cs-comparison-col--before h3 {
  color: #E87070;
}

.cs-comparison-col--after h3 {
  color: #70D890;
}

.cs-comparison-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-comparison-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #D3B9B2;
  line-height: 1.5;
}

.cs-comparison-col li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cs-comparison-col--before li svg {
  color: #E87070;
}

.cs-comparison-col--after li svg {
  color: #70D890;
}

.cs-comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
}

.cs-comparison-divider span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #C8A050;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* ---------- FLOW (Process Steps) ---------- */
.cs-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: flow-step;
}

.cs-flow-step {
  background: rgba(255, 248, 245, 0.04);
  border: 1px solid rgba(255, 248, 245, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.cs-flow-step:hover {
  border-color: rgba(200, 160, 80, 0.3);
  transform: translateY(-4px);
}

.cs-flow-num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: #C8A050;
  opacity: 0.25;
  margin-bottom: 12px;
}

.cs-flow-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF8F5;
  margin-bottom: 10px;
}

.cs-flow-step p {
  font-size: 0.88rem;
  color: #D3B9B2;
  line-height: 1.6;
}

/* ---------- CTA SECTION ---------- */
.cs-cta-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.cs-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cs-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 8, 12, 0.9) 0%, rgba(30, 20, 28, 0.85) 100%);
  z-index: 1;
}

.cs-cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cs-cta-content .cs-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- SCROLL REVEAL ---------- */
.cs-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(22, 1, 0.36, 1);
}

.cs-reveal.cs-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .cs-section {
    padding: 72px 0;
  }

  .cs-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-automacoes-hero {
    min-height: 75vh;
  }

  .cs-automacoes-hero .cs-hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .cs-section {
    padding: 60px 0;
  }

  .cs-section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .cs-comparison {
    flex-direction: column;
    gap: 16px;
  }

  .cs-comparison-divider {
    width: 100%;
    height: 40px;
  }

  .cs-comparison-divider span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .cs-flow-card-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-flow-arrow {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
    margin: 0 auto;
  }

  .cs-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-float-badge {
    font-size: 0.7rem;
    padding: 8px 14px;
  }

  .cs-float-badge:nth-child(3),
  .cs-float-badge:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs-automacoes-hero .cs-hero-content {
    padding-top: 90px;
  }

  .cs-hero-actions {
    flex-direction: column;
  }

  .cs-hero-actions .cs-btn {
    width: 100%;
    text-align: center;
  }

  .cs-flow {
    grid-template-columns: 1fr;
  }

  .cs-flow-card {
    padding: 24px 20px;
  }

  .cs-comparison-col {
    padding: 24px 20px;
  }
}

/* ---------- BADGE (if not in global) ---------- */
.cs-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(200, 160, 80, 0.15);
  color: #C8A050;
  border: 1px solid rgba(200, 160, 80, 0.25);
}

.cs-badge--gold {
  background: linear-gradient(135deg, rgba(200, 160, 80, 0.2), rgba(160, 122, 48, 0.15));
  border-color: rgba(200, 160, 80, 0.35);
  color: #D4AF60;
}