/* =========================================
   HERO (cabeçalho da home)
   ========================================= */

.hero {
  max-width: 1200px;
  margin: 24px auto 12px auto;
  padding: 0 16px;
}

.hero h1 {
  margin: 0 0 6px 0;
  color: #111827;
  font-size: 1.85rem;
  line-height: 1.2;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero p {
  margin: 0;
  color: #6B7280;
  font-size: 0.98rem;
  line-height: 1.5;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* =========================================
   (LEGADO) CARDS PRINCIPAIS – GRID + CARD BASE
   (se você não usa mais, pode remover tudo este bloco)
   ========================================= */

.cards {
  max-width: 1200px;
  margin: 18px auto 40px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #7B2C3A;
  border-radius: 14px 0 0 14px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: #CBD5F5;
}

.card:hover::before {
  background: #F97316;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #7B2C3A;
  font-family: "Montserrat", sans-serif;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: #4B5563;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 0.50rem;
  font-weight: 500;
  color: #ffffff;
  background: #7B2C3A;
  border: 1px solid #7B2C3A;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tag:hover {
  background: #E5E7EB;
  border-color: #cbd5e1;
}


/* =========================================
   CONTEÚDO EDITORIAL / TEXTOS LONGOS
   ========================================= */

.page-content {
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 16px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.page-content h2 {
  margin: 24px 0 10px 0;
  font-size: 20px;
  color: #7B2C3A;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.text-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  padding: 14px 16px;
}

.text-card h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #111827;
}

.text-card p {
  margin: 0;
  font-size: 13px;
  color: #4B5563;
}


/* =========================================
   TIPS / BLOG (cards)
   ========================================= */

.tip-item {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.tip-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #F97316;
}

.tip-thumb {
  width: 320px;
  height: 390px;
  border-radius: 10px;
  object-fit: cover;
}

.tip-body h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #111827;
}

.tip-body p {
  margin: 0;
  font-size: 13px;
  color: #4B5563;
}

.tip-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #F97316;
  font-size: 11px;
  color: #F97316;
}

.tip-tag:hover {
  background: #FFF7ED;
}

.tip-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #9CA3AF;
}

.tip-meta span::before {
  content: "•";
  margin: 0 4px;
}

.tip-meta span:first-child::before {
  content: "";
  margin: 0;
}


/* =========================================
   CATÁLOGO DE APPS (HOME)
   ========================================= */

.apps-catalog {
  max-width: 1200px;
  margin: 22px auto 34px auto;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #7B2C3A 0%, #6B2533 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.apps-catalog__header {
  background: #ffffff;
  border-radius: 14px 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.apps-catalog__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apps-catalog__title-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 44, 58, 0.08);
  border: 1px solid rgba(123, 44, 58, 0.18);
}

.apps-catalog__title-ico svg {
  width: 22px;
  height: 22px;
  color: #7B2C3A;
}

.apps-catalog__header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #111827;
  font-family: "Montserrat", sans-serif;
}

.apps-catalog__header p {
  margin: 4px 0 0 0;
  color: #6B7280;
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
}


/* =========================================
   LAYOUT (APPS À ESQUERDA + CAROUSEL À DIREITA)
   ✅ Ajuste principal: breakpoint menor
   ========================================= */

.apps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  padding: 16px 8px 10px 8px;
}

.apps-main {
  min-width: 0;
  padding: 0 6px;
}

.apps-aside {
  min-width: 0;
  padding: 0 6px;
  width: 300px;
}

/* opcional: deixa o carousel “preso” no scroll no desktop */
@media (min-width: 901px) {
  .apps-aside {
    position: sticky;
    top: 18px;
    align-self: start;
  }
}


/* =========================================
   GRUPOS / DIVISÓRIAS
   ========================================= */

.apps-group {
  margin-top: 12px;
}

.apps-group__title {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: 1.02rem;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apps-group__ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.apps-group__ico svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.apps-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.16);
}


/* =========================================
   GRID DE APPS + CARD (NOME SEM ABREVIAR)
   ========================================= */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
}

.app-card {
  --accent: #F97316;
  text-decoration: none;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  border-color: rgba(249, 115, 22, 0.9);
}

.app-card__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.app-card__ico svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.app-card__name {
  font-weight: 800;
  font-size: 0.96rem;
  color: #7B2C3A;
  font-family: "Montserrat", sans-serif;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}


/* =========================================
   ACENTOS POR GRUPO
   ========================================= */

.apps-group--docs .app-card {
  --accent: #2563EB;
}

.apps-group--docs .app-card__ico {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.20);
}

.apps-group--address .app-card {
  --accent: #EF4444;
}

.apps-group--address .app-card__ico {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.20);
}

.apps-group--calc .app-card {
  --accent: #F97316;
}

.apps-group--calc .app-card__ico {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.20);
}

.apps-group--web .app-card {
  --accent: #16A34A;
}

.apps-group--web .app-card__ico {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.20);
}


/* =========================================
   CAROUSEL (300x600) — HOME
   ========================================= */

.otb-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, #7B2C3A 0%, #5F1F2C 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.otb-carousel__viewport {
  position: relative;
  min-height: 600px;
}

.otb-slide {
  display: none;
  padding: 18px 18px 10px 18px;
}

.otb-slide.is-active {
  display: block;
}

.otb-slide__top h3 {
  margin: 0 0 8px 0;
  font-size: 1.55rem;
  line-height: 1.1;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}

.otb-slide__top p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.otb-slide__banner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}


.otb-banner-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  height: 600px;
  border-radius: 14px;
}


.otb-slide__btn--below {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}


.otb-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #F97316;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  width: fit-content;
}

.otb-slide__btn:hover {
  filter: brightness(0.97);
}

.otb-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 14px 12px;
}

.otb-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease;
}

.otb-dot:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.otb-dot.is-active {
  background: #60A5FA;
  border-color: rgba(96, 165, 250, 0.95);
}

.apps-aside.is-hidden {
  display: none;
}

.apps-layout.is-single {
  grid-template-columns: 1fr;
}


/* =========================================
   RESPONSIVO — HOME
   ✅ breakpoint do layout ajustado para 900px
   ========================================= */

@media (max-width: 900px) {
  .apps-layout {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .apps-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .otb-carousel__viewport {
    min-height: 680px;
  }
}

@media (max-width: 520px) {
  .apps-catalog {
    padding: 14px 12px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .tip-item {
    flex-direction: row;
  }

  .tip-thumb {
    width: 90px;
    height: 70px;
  }

  .otb-banner-img {
    width: 100%;
    max-width: 300px;
  }
}


/* =========================================
   CAROUSEL – AJUSTE SLIDE 1 (CTA)
   - remove topo/texto
   - remove sobras e caixa extra
   - botão sobre o banner (posição do X)
   ========================================= */

.otb-slide--cta {
  padding: 0;
}

.otb-slide__banner--cta {
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

/* garante que a imagem seja exatamente 300x600 */
.otb-slide__banner--cta .otb-banner-img {
  width: 300px;
  height: 600px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 12px;
}

/* botão por cima do banner (área do X) */
.otb-cta-btn {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #F97316;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.otb-cta-btn:hover {
  filter: brightness(0.97);
}

/* =========================================
   CAROUSEL – REMOVE SOBRAS DE ESPAÇO
   (evita o branco extra embaixo do banner)
   ========================================= */

.otb-carousel__viewport {
  margin: 5px;
  padding: 0px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

/* cada slide não deve criar altura extra */
.otb-slide {
  padding: 0;
}

/* quando não for slide CTA (ads), mantém um respiro */
.otb-slide:not(.otb-slide--cta) {
  padding: 12px;
}

/* =========================================
   CAROUSEL – REGRA BASE (evita slides empilhados)
   ========================================= */

.otb-slide {
  display: none;
}

.otb-slide.is-active {
  display: block;
}

