/* =================== B2B =================== */
/* ===== Vars locais (usam as do base.css quando possível) ===== */
:root {
  --container: 1500px;
  --gutter: clamp(16px, 4.5vw, 24px);
  --h2-gap: 1.75rem;
  --rb-pb: 3rem;

  --brand: var(--color-header-bg, #0f2b3a);
  --coral: var(--color-coral, #f2675b);
  --ink: var(--color-text, #222);
  --ink-2: var(--color-muted, #444);
  --bg: var(--color-bg, #f9f9f9);
}

/* ===== Util & Containers ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* =================== 1) HERO VÍDEO (FULL-BLEED) =================== */
.hero-video {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #000;
}
.hero-video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 2rem;
  background: rgba(0,0,0,.35);
}

/* =================== 2) BENEFÍCIOS =================== */
/* =================== 2) BENEFÍCIOS =================== */
.relocation-benefits {
  position: relative;
  background: var(--bg);
  padding: 0 0 360px 0; /* reserva altura para o card absoluto */
}

.relocation-benefits h1,
.relocation-benefits h2 {
  color: var(--coral);
  margin: 0;
}

.benefits-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-right: 480px; /* reserva espaço pro highlight */
}

.benefits-text {
  flex: 2;
  min-width: 280px;
  max-width: 950px;
  padding-right: 50px;
}

.benefits-text > p {
  color: var(--ink-2);
  margin: 0;
}

.benefits-highlight {
  position: absolute;
  top: 90px;
  right: 0;
  min-width: 400px;
  max-width: 450px;
  text-align: center;
}

.infactis-highlight {
  background: #fff;
  border-radius: 8px;
  color: var(--coral);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.6;
  padding: 30px;
}

/* ===== resultado alinhado à esquerda ===== */
.relocation-benefits .ergebnis {
  margin-top: 60px !important;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}



/* =================== 3) SOBRE + VÍDEO =================== */
.sobre-infactis-video { padding: 2rem 0; background: #fff; border-radius: 8px; }
.sobre-infactis-video .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
}
.texto-sobre { flex: 1 1 38%; max-width: 38%; }
.texto-sobre h2 {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; color: var(--coral);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.texto-sobre p { margin-bottom: 1rem; color: var(--ink-2); }
.texto-sobre p:last-child { margin-bottom: 0; }
.logo-inline { width: 40px; height: auto; display: block; }

.video-sobre { flex: 1 1 58%; max-width: 58%; }
.video-wrapper { position: relative; width: 100%; max-width: 900px; margin: 0 auto; }
.video-wrapper video {
  width: 100%; height: auto; display: block;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-audio {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(242,103,91,.9); color: #fff; border: 0;
  padding: .6rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 700;
  transition: background-color .25s ease;
}
.btn-audio:hover { background: #d55249; }

/* =================== 4) DIFERENCIAIS (cards — alinhado e compacto) =================== */
.sobre-infactis-cards .feature-cards > * { margin-top: 0 !important; }
.sobre-infactis-cards .container { padding-left: 0; padding-right: 0; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-left: 0; padding-right: 0;
  align-items: start;
}
.card-horizontal {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "icon  title"
    "body  body";
  column-gap: .75rem;
  row-gap: .4rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.05);
  height: 100%;
  box-sizing: border-box;
}
.card-horizontal > img {
  grid-area: icon;
  width: 64px;
  height: 64px;
  object-fit: contain;
  align-self: start;
  justify-self: center;
}
.card-content { display: contents; }
.card-content h3 {
  grid-area: title;
  margin: 0;
  color: var(--coral);
  font-size: 1.15rem;
  line-height: 1.3;
  align-self: center;
}
.card-content p {
  grid-area: body;
  margin: .25rem 0 0;
  color: var(--ink-2);
  line-height: 1.45;
}

/* =================== 5) SERVIÇOS =================== */
.servicos { padding: 4rem 0 2rem; background: #fff; border-radius: 8px; }
.servicos-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.texto-servicos h2 { margin-bottom: 1rem; color: var(--coral); }
.texto-servicos p { margin-bottom: 1rem; color: var(--ink-2); }
.imagem-servicos img { width: 500px; max-width: 100%; height: auto; }

/* Botão coral */
.btn-coral-div { text-align: center; margin-top: 1rem; }
.btn-coral {
  background: var(--coral);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: background-color .25s ease, transform .06s ease;
}
.btn-coral:hover { background: #d55249; }
.btn-coral:active { transform: translateY(1px); }

/* =================== 6) CLIENTES =================== */
.clientes { padding: 3rem 0; background: var(--bg); }
.clientes h2 { text-align: center; margin-bottom: 2rem; color: var(--coral); }
.swiper-slide {
  display: flex; justify-content: center; align-items: center; height: 100px;
}
.swiper-slide img { max-height: 80px; width: auto; object-fit: contain; }

/* =================== 7) AVALIAÇÕES =================== */
.avaliacoes { padding: 2rem 0; border-radius: 8px; margin-bottom: 2rem ; }
.avaliacoes h3 { text-align: center; margin-bottom: 1rem; color: #06527b; }
.avaliacoes-carrossel {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center;
}
.avaliacao {
  background: #fff; border-radius: 8px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  flex: 1 1 300px; max-width: 450px;
  display: flex; flex-direction: column; gap: 1rem;
  text-align: left;
}
.avaliacao-topo { display: flex; align-items: center; gap: 1rem; }
.avaliacao img { width: 100px; height: 100px; border-radius: 6px; object-fit: cover; }
.avaliacao h4 { margin: 0; font-size: 1rem; color: var(--ink); }
.avaliacao p { font-size: 0.95rem; line-height: 1.5; }
.estrelas { color: var(--coral); }

/* =================== Acessibilidade extra =================== */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =================== AJUSTE GLOBAL =================== */
.relocation-benefits,
.sobre-infactis-video,
.sobre-infactis-cards,
.servicos,
.clientes,
.avaliacoes {
  text-align: left;
}
.relocation-benefits h1,
.relocation-benefits h2,
.clientes h2,
.avaliacoes h3 {
  text-align: left;
}

/* Logos no carrossel centralizadas e contidas */
.clientes .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.clientes .swiper-slide img {
  max-width: 80%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* =================== AJUSTE GLOBAL: SEM PADDING VERTICAL =================== */
.relocation-benefits,
.sobre-infactis-video,
.sobre-infactis-cards,
.servicos,
.clientes,
.avaliacoes,
.relocation-benefits .container,
.sobre-infactis-video .container,
.sobre-infactis-cards .container,
.servicos .container,
.clientes .container,
.avaliacoes .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* =================== VARIÁVEIS GLOBAIS (para espaçamento) =================== */
:root {
  --section-spacing: 3rem;   /* espaçamento vertical das seções */
  --heading-spacing: 1.5rem; /* espaçamento inferior dos títulos */
}

/* =================== ESPAÇAMENTO PADRÃO DAS SEÇÕES =================== */
.relocation-benefits,
.sobre-infactis-video,
.sobre-infactis-cards,
.servicos,
.clientes,
.avaliacoes {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}
.relocation-benefits h1,
.relocation-benefits h2,
.sobre-infactis-video h2,
.sobre-infactis-cards h2,
.servicos h2,
.clientes h2,
.avaliacoes h2,
.avaliacoes h3 {
  margin-top: 0; 
  margin-bottom: var(--heading-spacing);
}

/* =========================================================
   RESPONSIVO — TABLET (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  /* Hero */
  .hero-video { height: 70vh; }
 

  /* Benefícios */
  .benefits-layout { flex-direction: column; }
  .benefits-highlight { margin-bottom: -2rem; text-align: center; }

  /* Sobre + Vídeo → full-bleed abaixo do texto */
  .sobre-infactis-video .container {
    flex-direction: column;
    align-items: stretch;
  }
  .texto-sobre,
  .video-sobre {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .video-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
  }

  /* Serviços */
  .servicos-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .imagem-servicos img {
    width: 70%;
    max-width: 360px;
    margin: -2rem auto 0 auto;
    display: block;
  }

  /* Cards de diferenciais (2 colunas) */
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVO — MOBILE (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero-video { height: 50vh; }

  .conteudo-interno{
    border: 1px solid red;
  }

  /* Sobre + Vídeo — remove fundo e aproxima dos cards */
  .sobre-infactis-video {
    background: transparent;
    padding-top: 0.1rem;
    padding-bottom: 0.5rem;
  }
  .sobre-infactis-cards .feature-cards { padding-top: 0.5rem; }

  /* Serviços — imagem menor e central */
  .imagem-servicos img {
    width: 80%;
    max-width: 280px;
    margin: -2rem auto 0 auto;
    display: block;
  }

  /* Depoimentos centralizados no mobile */
  .avaliacao { text-align: center; }

  /* Cards de diferenciais (1 coluna e ícone menor) */
  .feature-cards { grid-template-columns: 1fr; }
  .card-horizontal { grid-template-columns: 64px 1fr; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-video { height: 50vh; }

  /* Benefícios — alinhamento uniforme */
  .benefits-layout { flex-direction: column; }
  .benefits-text {
    padding-right: 0;       /* remove padding lateral extra */
    width: 100%;            /* ocupa largura total do container */
  }
  .benefits-highlight {
    order: 2;
    width: 100%;
    min-width: 0;
    margin: 1rem 0 0 0;
    text-align: center;
    padding-inline: var(--container-gutter); /* mesma margem do container */
    box-sizing: border-box;
  }

  /* Sobre + Vídeo — remove fundo e aproxima dos cards */
  .sobre-infactis-video {
    background: transparent;
    padding-top: 0.1rem;
    padding-bottom: 0.5rem;
  }
  .sobre-infactis-cards .feature-cards { padding-top: 0.5rem; }

  /* Serviços — imagem menor e central */
  .imagem-servicos img {
    width: 80%;
    max-width: 280px;
    margin: -2rem auto 0 auto;
    display: block;
  }

  /* Depoimentos centralizados no mobile */
  .avaliacao { text-align: center; }

  /* Cards de diferenciais (1 coluna e ícone menor) */
  .feature-cards { grid-template-columns: 1fr; }
  .card-horizontal { grid-template-columns: 64px 1fr; }
}
/* ====== BENEFÍCIOS — laterais iguais no mobile ====== */
@media (max-width: 768px) {
  /* container com o MESMO padding dos dois lados */
  .relocation-benefits .container {
    padding-inline: var(--gutter) !important;
  }

  /* empilha texto + highlight e remove assimetria */
  .benefits-layout { flex-direction: column; }
  .benefits-text {
    padding-right: 0;   /* zera o padding extra da coluna de texto */
    width: 100%;
  }
  .benefits-highlight {
    order: 2;           /* garante que venha depois do texto "Das Ergebnis" */
    width: 100%;
    min-width: 0;       /* sobrescreve o min-width:500px */
    margin-top: var(--space-2);
    text-align: center;
    padding-inline: 0;  /* NÃO adiciona padding próprio; usa o do container */
    box-sizing: border-box;
  }
}

/* ===== MOBILE (≤768px): "Das Ergebnis" central + highlight logo abaixo ===== */
@media (max-width: 768px){
  /* padding simétrico no container (sobrescreve o padding-right:0 do desktop) */
  .relocation-benefits .container{
    padding-inline: var(--gutter) !important;
  }

  /* empilha e centraliza a coluna de texto */
  .benefits-layout{
    flex-direction: column;
    align-items: stretch;
  }
  .benefits-text{
    padding-right: 0;
    width: 100%;
    text-align: left;               /* centraliza todo o texto dentro */
  }
  .benefits-text h2{
    text-align:left;               /* "Das Ergebnis" central */
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
  }

  /* highlight vem DEPOIS e ocupa a largura, centralizado */
  .benefits-highlight{
    order: 2;
    width: 100%;
    min-width: 0;                      /* cancela min-width:500px do desktop */
    margin-top: var(--space-2);
    text-align: center;
    padding-inline: 0;                 /* usa o padding do container */
    box-sizing: border-box;
  }
}

/* "Das Ergebnis" centralizado e ocupando toda a largura da seção */
.relocation-benefits h2.ergebnis {
  text-align: center;          /* centraliza o texto */
  color: var(--coral);         /* mantém a cor da marca */
  width: 100%;                 /* ocupa a largura da seção */
  box-sizing: border-box;
  margin: var(--heading-spacing) 0 0; /* respiro em cima */
  padding: 0 var(--gutter);    /* mesma margem lateral do layout */
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.35;
}
