/* ==========================================================================
   HOME PAGE - Criativa Soluções
   Page-specific styles not covered by global.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.cs-hero--home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

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

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}

.cs-hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cs-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: var(--cs-accent, #ff6a00);
}

.cs-hero-shape:nth-child(1) {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
}

.cs-hero-shape:nth-child(2) {
  width: 260px;
  height: 260px;
  bottom: -60px;
  left: 10%;
}

.cs-hero-shape:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 55%;
}

.cs-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.cs-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 20px;
}

.cs-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255,255,255,.9);
}

.cs-rotating {
  color: var(--cs-accent, #ff6a00);
  font-weight: 700;
  position: relative;
  display: inline-block;
  min-width: 140px;
}

.cs-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  max-width: 560px;
}

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

.cs-hero-micro {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}

/* Hero Panel */
.cs-hero-panel {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px 24px;
}

.cs-hero-panel-header {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cs-accent, #ff6a00);
  margin-bottom: 24px;
}

.cs-hero-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cs-hero-panel-row:last-child {
  margin-bottom: 0;
}

.cs-hero-panel-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--cs-accent, #ff6a00);
}

.cs-hero-panel-icon svg {
  width: 100%;
  height: 100%;
}

.cs-hero-panel-label {
  font-size: .95rem;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 90px;
}

.cs-hero-panel-value {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.cs-hero-panel-value::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--bar-width, 0%);
  background: linear-gradient(90deg, var(--cs-accent, #ff6a00), #ff9a44);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

.cs-anim-bar.is-visible::after {
  width: var(--bar-width, 0%);
}

/* --------------------------------------------------------------------------
   STATS BAR
   -------------------------------------------------------------------------- */
.cs-stats {
  background: var(--cs-bg-alt, #0d0d0d);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cs-stats-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cs-stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cs-accent, #ff6a00), #ff9a44);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-stat-label {
  font-size: .9rem;
  color: var(--cs-text-muted, #888);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   SECTION DEFAULTS
   -------------------------------------------------------------------------- */
.cs-section {
  padding: 96px 0;
}

.cs-section--video {
  padding: 64px 0;
}

.cs-section--faq,
.cs-section--cta-final {
  padding: 96px 0;
}

.cs-text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   VIDEO EMBED
   -------------------------------------------------------------------------- */
.cs-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.cs-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   DUAL SECTION (Design + Strategy)
   -------------------------------------------------------------------------- */
.cs-section--dual {
  overflow: hidden;
}

.cs-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cs-dual-content .cs-kicker {
  display: block;
  margin-bottom: 12px;
}

.cs-dual-content .cs-section-title {
  margin-bottom: 20px;
}

.cs-dual-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cs-text-muted, #aaa);
  margin-bottom: 28px;
}

.cs-dual-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.cs-dual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.cs-dual-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,106,0,.18), rgba(0,0,0,.25));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   STEPS
   -------------------------------------------------------------------------- */
.cs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.cs-step {
  text-align: center;
  padding: 32px 24px;
}

.cs-step-num {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cs-accent, #ff6a00), #ff9a44);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.cs-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.cs-step-text {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--cs-text-muted, #aaa);
}

/* --------------------------------------------------------------------------
   PORTFOLIO GRID
   -------------------------------------------------------------------------- */
.cs-section--portfolio {
  background: var(--cs-bg-alt, #0a0a0a);
}

.cs-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cs-portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

.cs-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cs-portfolio-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   CEO SECTION
   -------------------------------------------------------------------------- */
.cs-section--ceo {
  background: var(--cs-bg, #111);
}

.cs-ceo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.cs-ceo-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--cs-accent, #ff6a00);
  box-shadow: 0 0 40px rgba(255,106,0,.25);
  margin: 0 auto;
}

.cs-ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-ceo-content .cs-section-title {
  margin-bottom: 20px;
}

.cs-ceo-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cs-text-muted, #aaa);
  margin-bottom: 24px;
}

.cs-ceo-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-ceo-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .3s ease, color .3s ease;
}

.cs-ceo-socials a:hover {
  background: var(--cs-accent, #ff6a00);
  color: #fff;
}

.cs-ceo-socials svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.cs-section--cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}

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

.cs-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1;
}

.cs-cta-content {
  position: relative;
  z-index: 2;
}

.cs-cta-content .cs-section-title {
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cs-cta-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   FAQ (page-specific overrides if needed)
   -------------------------------------------------------------------------- */
.cs-section--faq {
  background: var(--cs-bg-alt, #0d0d0d);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cs-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .cs-hero-panel {
    max-width: 420px;
  }

  .cs-dual-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-dual-image img {
    min-height: 300px;
  }

  .cs-ceo-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .cs-ceo-socials {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cs-hero--home {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .cs-hero-inner {
    padding-top: 60px;
  }

  .cs-hero-panel {
    display: none;
  }

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

  .cs-stats-inner {
    gap: 32px;
  }

  .cs-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .cs-section--cta-final {
    min-height: 340px;
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .cs-hero-title {
    font-size: 1.6rem;
  }

  .cs-hero-subtitle {
    font-size: 1rem;
  }

  .cs-ceo-photo {
    width: 220px;
    height: 220px;
  }

  .cs-stat-number {
    font-size: 1.8rem;
  }
}
