/* components/benefits.css */

/* =========================
   BENEFITS / FEATURES
   ========================= */

.features-section {
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

/* ✅ Linha dourada cravada no FINAL da section */
.features-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-secondary),
    transparent
  );
  opacity: 0.9;
  pointer-events: none;
}

.features-container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */

.features-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.features-header .section-title {
  margin-bottom: var(--spacing-sm);
}

.features-header .section-content {
  color: var(--color-on-surface-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* =========================
   GRID
   ========================= */

.features-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================
   CARD
   ========================= */

.feature-item {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-elevated);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.22);
}

/* =========================
   IMAGE
   ========================= */

.feature-visual {
  height: 200px;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.feature-item:hover .feature-visual img {
  transform: scale(1.06);
}

/* =========================
   CONTENT
   ========================= */

.feature-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-content h3 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.feature-content p {
  color: var(--color-on-surface-secondary);
  line-height: 1.45;
  margin: 0;
}

/* =========================
   FECHAMENTO / MANIFESTO
   ========================= */

.features-final {
  margin-top: clamp(28px, 4vw, 48px);
  text-align: center;
}

.features-final-text {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;

  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;

  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* linha dourada acima do texto */
.features-final-text::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary),
    transparent
  );
  opacity: 0.9;
}

/* destaque da segunda frase */
.features-final-text span {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  color: var(--color-secondary);
}

/* =========================
   CTA (AJUSTADO – MAIS COMPACTO)
   ========================= */

.features-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.features-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 24px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    var(--color-secondary, #FFD700),
    #FFC400
  );
  color: #0b0b0b;

  font-size: 0.78rem;      /* ↓ mais compacto */
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  white-space: nowrap;    /* 🔒 1 linha garantida */

  transition: transform 300ms ease, box-shadow 300ms ease;
  position: relative;
  overflow: hidden;

  text-decoration: none;
  cursor: pointer;
}

.features-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.30),
    transparent
  );
  transition: left 0.7s ease;
}

.features-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.30);
}

.features-cta-btn:hover::before {
  left: 100%;
}

/* garante que o texto fique acima do brilho */
.features-cta-btn span {
  position: relative;
  z-index: 1;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 479px) {
  .features-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .feature-visual {
    height: 170px;
  }

  .feature-content {
    padding: var(--spacing-md);
  }

  .features-final-text {
    padding: 16px 16px;
    font-size: 1.05rem;
  }

  .features-cta-btn {
    width: 100%;
    max-width: 520px;
    padding: 13px 20px;
    font-size: 0.72rem;   /* 🔒 ultra seguro no mobile */
    letter-spacing: 0.03em;
  }
}
