/* ═══════════════════════════════════════════════════
   RESIDENCIAL — estilos específicos
═══════════════════════════════════════════════════ */

/* ── Hero background image — manipule aqui para esta página ── */
.res-hero .hero-bg-img {
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  object-fit: cover;
  object-position: center bottom;
}

/* ── Hero: fontes idênticas ao Figma ── */

/* container mais largo */
.res-hero .hero-content {
  max-width: 1500px;
}

/* tag — Figma: Syne Regular 32 */
.res-hero-tag {
  font-size: clamp(16px, 1.67vw, 32px);
  font-weight: 400;
  /* Regular */
  color: var(--yellow);
  letter-spacing: 3.2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* headline — Figma: Syne Bold 60 */
.res-hero .hero-headline {
  font-size: clamp(26px, 3.125vw, 60px);
  font-weight: 700;
  max-width: 100%;
  line-height: 1.1;
  white-space: nowrap;
}

/* subtítulo — Figma: Syne Regular 36 */
.res-hero .hero-sub {
  font-size: clamp(16px, 1.875vw, 36px);
  font-weight: 400;
  /* Regular */
  max-width: none;
  line-height: 1.5;
  white-space: nowrap;
}

/* ── Selos em linha dentro do hero ── */
.res-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.5vw, 48px);
  flex-wrap: nowrap;
  /* sem quebra de linha */
  margin-bottom: clamp(24px, 3vw, 40px);
}

.res-badges-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Figma: Syne Regular 26 */
  font-size: clamp(11px, 1.35vw, 26px);
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2.6px;
  white-space: nowrap;
}

/* wrapper do ícone — tamanho fixo + overflow hidden para crop central */
.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 1.35vw, 34px);
  height: clamp(30px, 1.35vw, 34px);
  flex-shrink: 0;
  overflow: hidden;
}

.badge-icon img {
  /* object-fit: none + object-position: center mantém o centro do PNG original */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── Por que tantas famílias ── */
.res-why {
  background: var(--dark-navy);
  padding-block: clamp(60px, 8vw, 120px);
}

.res-why-grid {
  display: grid;
  /* Figma: cards ~447px — mantém próximos e centralizados */
  grid-template-columns: repeat(3, clamp(260px, 23.3vw, 447px));
  gap: 20px;
  justify-content: center;
}

.res-card {
  background: var(--dark-navy);
  border: 1px solid var(--green-lime);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 36px);
  box-shadow: 0 4px 40px 5px rgba(110, 172, 26, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ── hover — igual aos benefit cards da home ── */
.res-card:hover {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(1, 131, 255, 0.45);
}

.res-card:hover .res-card-icon img {
  filter: brightness(0) invert(1);
}

.res-card-icon {
  width: clamp(56px, 3.8vw, 72px);
  height: clamp(56px, 3.8vw, 72px);
  flex-shrink: 0;
}

.res-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.35s ease;
}

.res-card-icon.icon-down img {
  transform: scaleY(-1);
}

.res-card p {
  font-size: clamp(13px, 1vw, 20px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  transition: color 0.35s ease;
}

/* ── Tabela comparativa ── */
.res-compare {
  background: var(--light);
  padding-block: clamp(60px, 8vw, 120px);
}

.res-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.res-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: clamp(16px, 1.4vw, 28px);
}

.res-table thead tr {
  background: transparent;
}

.res-table th {
  padding: clamp(16px, 2vw, 28px) clamp(12px, 1.5vw, 24px);
  text-align: center;
  color: #171716;
  font-size: clamp(17px, 1.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.res-table th.col-feature {
  text-align: left;
  color: #171716;
  font-size: clamp(18px, 1.5vw, 30px);
}

.col-sub {
  font-weight: 400;
  font-size: 0.8em;
  color: rgba(23, 23, 22, 0.65);
}

.col-dr {
  color: #171716;
}

.res-table tbody tr {
  border-top: 1px solid #171716;
  transition: background 0.15s;
}

.res-table tbody tr:hover {
  background: rgba(23, 23, 22, 0.04);
}

.res-table td {
  padding: clamp(14px, 1.5vw, 24px) clamp(12px, 1.5vw, 24px);
  color: #171716;
  vertical-align: middle;
  text-align: center;
}

.res-table td:first-child {
  text-align: left;
  font-weight: 400;
  color: #171716;
}

.res-table td.check svg {
  width: clamp(24px, 2vw, 40px);
  height: clamp(24px, 2vw, 40px);
  display: inline-block;
}

.res-table td.cross {
  font-size: clamp(18px, 1.5vw, 28px);
  color: #171716;
  font-weight: 300;
}

/* ── App section com fundo escuro ── */
.res-app-dark {
  background: var(--dark-navy) !important;
}

.res-app-dark::before {
  display: none;
}

.res-app-dark .app-card-desc {
  background: #0c1f30;
  border-color: var(--green-lime);
}

.res-app-dark .app-card-desc p {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Lifestyle image ── */
.res-lifestyle {
  background: var(--dark-navy);
  padding-block: clamp(40px, 5vw, 80px);
}

.res-lifestyle-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1579px;
  margin-inline: auto;
  aspect-ratio: 16/8;
}

.res-lifestyle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.res-lifestyle-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 40, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px);
}

.res-lifestyle-glass {
  background: rgba(13, 27, 40, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 48px) clamp(28px, 3.5vw, 56px);
  max-width: clamp(340px, 55%, 720px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
}

.res-lifestyle-glass h2 {
  font-size: clamp(22px, 2.4vw, 46px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-align: center;
  margin: 0;
}

.res-lifestyle-glass p {
  font-size: clamp(13px, 1.05vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0;
}

.res-lifestyle-glass ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9vw, 14px);
}

.res-lifestyle-glass li {
  font-size: clamp(13px, 1.05vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  padding-left: 1.2em;
  position: relative;
}

.res-lifestyle-glass li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--green-lime);
}

/* ── Depoimentos ── */
.res-testimonials {
  background: var(--dark-navy);
  padding-block: clamp(60px, 8vw, 120px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 24px;
  justify-content: center;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--green-lime) 10%, #5b9013 118%);
  border-radius: 40px 40px 40px 0;
  padding: clamp(20px, 2vw, 36px);
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.testimonial-quote {
  position: absolute;
  top: -10px;
  left: clamp(16px, 2vw, 28px);
  font-size: clamp(60px, 6vw, 110px);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card p {
  font-size: clamp(14px, 1.35vw, 26px);
  color: var(--dark-navy);
  line-height: 1.6;
  text-align: justify;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.testimonial-stars {
  margin-bottom: 10px;
  line-height: 0;
}

.testimonial-stars img {
  height: 22px;
  width: auto;
  display: block;
}

.testimonial-name {
  font-size: clamp(14px, 1vw, 20px) !important;
  font-weight: 700 !important;
  color: var(--dark-navy) !important;
  text-align: left !important;
  margin: 0 !important;
}

/* ── Stats ── */
.res-stats {
  background: var(--dark-navy);
  padding-block: clamp(60px, 8vw, 100px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.stat-item {
  text-align: left;
}

.stat-num {
  display: block;
  font-size: clamp(48px, 6.25vw, 120px);
  font-weight: 700;
  color: var(--green-lime);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-divider {
  height: 8px;
  width: clamp(120px, 14vw, 271px);
  background: linear-gradient(to right, #0183FF, transparent);
  margin-bottom: 12px;
}

.stat-item p {
  font-size: clamp(14px, 1.2vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}

.stats-cta {
  display: flex;
  justify-content: center;
}

/* ── Final CTA com imagem de fundo ── */
.res-final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px);
}

.res-final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.res-final-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 25, 0.55);
  z-index: 1;
}

.res-final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.res-final-cta-content h2 {
  font-size: clamp(24px, 2.86vw, 55px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .res-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .res-why-grid {
    grid-template-columns: 1fr;
  }

  /* hero: remove nowrap e deixa texto quebrar normalmente */
  .res-hero .hero-headline,
  .res-hero .hero-sub {
    white-space: normal;
  }

  /* badges: empilha centralizado */
  .res-badges-row {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* lifestyle: altura fixa para o img height:100% funcionar corretamente */
  .res-lifestyle-img {
    aspect-ratio: unset;
    height: 700px;
  }

  .res-lifestyle-glass {
    max-width: 100%;
  }

  .res-lifestyle-glass h2 {
    font-size: clamp(20px, 5vw, 32px);
  }

  .res-lifestyle-glass p,
  .res-lifestyle-glass li {
    font-size: clamp(14px, 3.5vw, 18px);
  }

  /* testimonials: sem aspect-ratio, fonte maior */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    aspect-ratio: unset;
    padding: clamp(24px, 5vw, 36px);
  }

  .testimonial-card p {
    font-size: clamp(16px, 4vw, 22px);
  }

  .testimonial-name {
    font-size: clamp(15px, 3.5vw, 18px) !important;
  }

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

  .res-table th,
  .res-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
/* ── Calculadora: fundo claro nesta página ── */
.calculator-section {
  background: var(--light);
}
