/* ========================================================
   RECURSOS & TELAS - ESTILOS ESPECÍFICOS (SLIDER HORIZONTAL)
   ======================================================== */

.page-hero {
  padding: 44px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(222, 223, 197, 0.05) 0%, transparent 65%);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
  color: #FFFFFF;
}

/* Tablesy Full Creme Puro */
.text-cream-solid {
  color: var(--c-cream);
  font-weight: 800;
}

/* Subtítulo Estritamente em 1 Linha no Desktop */
.hero-subtitle-single-line {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  white-space: nowrap;
  max-width: 100%;
  margin: 0 auto 24px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .hero-subtitle-single-line {
    white-space: normal;
  }
}

/* Menu de Navegação Horizontal das Telas */
.modules-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.module-pill .pill-svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease, stroke 0.2s ease;
}

.module-pill:hover {
  color: #fff;
  border-color: rgba(222, 223, 197, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.module-pill:hover .pill-svg {
  opacity: 1;
  stroke: var(--c-cream);
}

.module-pill.active {
  color: #0B0D0F;
  border-color: var(--c-cream);
  background: var(--c-cream);
  box-shadow: none;
}

.module-pill.active .pill-svg {
  opacity: 1;
  stroke: #0B0D0F;
}

/* ========================================================
   DEMONSTRATIVO FULL-WIDTH COM TRANSIÇÃO FADE SUAVE
   ======================================================== */
.resources-slider-section {
  padding: 16px 0 60px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Contêiner amplo que aproveita toda a largura da tela sem bordas cortadas */
.slider-stage-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 44px);
  box-sizing: border-box;
}

/* Palco de apresentação */
.presentation-stage {
  position: relative;
  width: 100%;
  min-height: 440px;
}

/* Slides com Fade-in: elimina qualquer corte de borda de cards vizinhos */
.module-slide {
  display: none;
  opacity: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 0;
}

.module-slide.active {
  display: block;
  opacity: 1;
  animation: slideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Interno do Slide */
.resource-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100%;
}

.resource-grid.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.resource-grid.reverse .resource-info {
  order: 2;
}

.resource-grid.reverse .screen-card {
  order: 1;
}

.resource-info h2 {
  font-size: 2.15rem;
  margin-bottom: 14px;
  line-height: 1.22;
  color: var(--text-bright);
}

.resource-info .lead-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.feature-checkmarks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 0;
}

.feature-checkmarks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.feature-checkmarks li .check-icon {
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Barra de Controles de Navegação (Sem colisão com texto) */
.slider-controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.slider-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(18, 20, 23, 0.95);
  border: 1px solid var(--border-glow);
  color: var(--text-bright);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  font-family: inherit;
}

.slider-nav-btn svg {
  color: var(--c-cream);
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.slider-nav-btn:hover {
  background: var(--c-cream);
  color: #0B0D0F;
  border-color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: none;
}

.slider-nav-btn:hover svg {
  stroke: #0B0D0F;
}

.slider-nav-btn.prev:hover svg {
  transform: translateX(-3px);
}

.slider-nav-btn.next:hover svg {
  transform: translateX(3px);
}

.slider-nav-btn:active {
  transform: translateY(0);
}

/* Indicadores de Paginação / Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.slider-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--c-cream);
  box-shadow: none;
}

/* Cartões Simuladores de Tela */
.screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.screen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-cream);
}

.card-header-title svg {
  color: var(--c-cream);
  stroke: var(--c-cream);
  flex-shrink: 0;
}

.screen-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(222, 223, 197, 0.08);
  border: 1px solid rgba(222, 223, 197, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-item-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.screen-item-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Caixa de Ações da Comanda (Padrão Oficial do Garçom) */
.comanda-actions-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.comanda-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comanda-subtotal-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.comanda-subtotal-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-cream);
  font-family: inherit;
}

.comanda-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

.btn-comanda-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-comanda-cancel:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-comanda-send {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #0B0D0F;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-comanda-send svg {
  stroke: #0B0D0F;
}

.btn-comanda-send:hover {
  background: var(--c-cream);
  border-color: var(--c-cream);
  transform: translateY(-1px);
}

/* Linha de Ações do Cardápio Digital */
.cardapio-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-cardapio-call {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-cardapio-call svg {
  stroke: #FFFFFF;
}

.btn-cardapio-call:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-cardapio-bill {
  background: var(--emerald);
  border: 1px solid var(--emerald);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-cardapio-bill svg {
  stroke: #FFFFFF;
}

.btn-cardapio-bill:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Responsividade e Otimização Mobile Refinada */
@media (max-width: 992px) {
  .page-hero {
    padding: 32px 0 16px;
  }

  .resource-grid,
  .resource-grid.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .resource-grid.reverse .resource-info {
    order: 1;
  }

  .resource-grid.reverse .screen-card {
    order: 2;
  }

  .resource-info h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  /* 1. Hero Compacto & Proporcional */
  .page-hero {
    padding: 22px 14px 12px;
  }

  .page-hero h1 {
    font-size: clamp(1.45rem, 5.4vw, 1.8rem);
    line-height: 1.22;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
  }

  .hero-subtitle-single-line {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  /* 2. Menu de Pills com Rolagem Suave por Toque */
  .modules-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 14px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    scroll-snap-type: x mandatory;
  }

  .modules-nav::-webkit-scrollbar {
    display: none;
  }

  .module-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 7px 14px;
    scroll-snap-align: start;
    gap: 6px;
  }

  .module-pill .pill-svg {
    width: 14px;
    height: 14px;
  }

  /* 3. Seção do Demonstrativo Full-Width no Mobile */
  .resources-slider-section {
    padding: 8px 0 36px;
  }

  .slider-stage-container {
    padding: 0 14px;
  }

  .presentation-stage {
    min-height: auto;
  }

  /* 4. Estrutura Visual do Slide no Mobile:
        Título -> Lead -> Card de Tela Simulada -> Benefícios -> Botão CTA Full-Width */
  .resource-grid,
  .resource-grid.reverse {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .resource-info {
    display: contents;
  }

  .resource-info h2 {
    order: 1;
    font-size: 1.42rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .resource-info .lead-text {
    order: 2;
    font-size: 0.9rem;
    line-height: 1.48;
    margin-bottom: 10px;
    color: var(--text-muted);
  }

  .screen-card {
    order: 3;
    padding: 18px 14px;
    border-radius: 14px;
    margin: 4px 0 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .feature-checkmarks {
    order: 4;
    margin-bottom: 18px;
    gap: 12px;
  }

  .feature-checkmarks li {
    font-size: 0.88rem;
    line-height: 1.44;
    gap: 10px;
  }

  .feature-checkmarks li .check-icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-top: 1px;
  }

  /* 5. Botão CTA Principal em Largura Total no Mobile */
  .resource-info .btn-primary {
    order: 5;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
  }

  /* 6. Ajuste dos Botões e Conteúdo Interno dos Cartões */
  .screen-card-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .card-header-title {
    font-size: 0.95rem;
  }

  .screen-item {
    padding: 10px 12px;
  }

  .screen-item-name {
    font-size: 0.88rem;
  }

  .screen-item-sub {
    font-size: 0.78rem;
  }

  .comanda-actions-box {
    padding: 12px 14px;
  }

  .comanda-buttons-row {
    grid-template-columns: 1fr 1.55fr;
    gap: 8px;
  }

  .btn-comanda-cancel {
    padding: 10px 10px;
    font-size: 0.84rem;
  }

  .btn-comanda-send {
    padding: 10px 10px;
    font-size: 0.84rem;
    gap: 6px;
    white-space: nowrap;
  }

  .cardapio-buttons-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .btn-cardapio-call,
  .btn-cardapio-bill {
    padding: 10px 8px;
    font-size: 0.84rem;
    gap: 6px;
    white-space: nowrap;
  }

  /* 7. Barra de Controles Inferior (Anterior / Próxima e Dots) */
  .slider-controls-bar {
    margin-top: 20px;
    gap: 10px;
  }

  .slider-nav-btn {
    padding: 8px 15px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .slider-dots {
    gap: 6px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 20px;
  }
}

@media (max-width: 400px) {
  .comanda-buttons-row {
    grid-template-columns: 1fr 1.45fr;
    gap: 6px;
  }

  .btn-comanda-send span {
    font-size: 0.8rem;
  }

  .cardapio-buttons-row {
    gap: 6px;
  }

  .btn-cardapio-call span,
  .btn-cardapio-bill span {
    font-size: 0.8rem;
  }
}
