@font-face {
	font-family: 'Avenir Next';
	src: url('../styles/fonts/avenir-next-regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Avenir Next';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* Garante que nada scrolle horizontalmente */
	background: #000;
    width: 100%;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

button, input, optgroup, select, textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

:root{
	--bg:#000;
	--text:#fff;
	--muted:#cfcfcf;
	--gold:#c89b1a;
}

/* =========================================
   ESTRUTURA GERAL
   ========================================= */
.oqf-main *{
	box-sizing:border-box;
	margin:0;
	padding:0;
    position: relative;
    overflow: visible;
    height: auto;
    min-height: auto;
}

.oqf-hero {
    position: relative;
    width: 100%;
    height: auto;    
    display: block;
    overflow: hidden;
    margin-top: 0;
}

.hero-img-full {
    width: 100%;       
    height: auto;     
    display: block;
    object-fit: contain; 
}

.oqf-hero-content {
    position: absolute;
    bottom: 0;         
    left: 0;
    width: 100%;
    padding: 120px 5%; 
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: end;
    text-align: right;
}

.oqf-hero-content p {
    max-width: 440px;
    font-size: 19px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-icon-detail {
    width: 30px; 
    height: auto;
    align-self: flex-start; 
}

.section-title {
    font-size: 36px;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 6px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

/* =========================================
   SCROLL INTRO / HERO (Desktop > 1500px)
   ========================================= */
#introScroll {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #000;
}

.intro-track {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.intro-track img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;     /* se quiser sem cortar: contain */
  object-position: center;
  opacity: 1;
  transition: none;
}



/* =========================================
   NOSSOS SERVIÇOS
   ========================================= */
.nossos-servicos {
    background-color: #e7e7e7;
    color: #fff;
    position: relative;
    width: 100%;
    overflow: hidden; /* Segurança extra para evitar vazamento */
}

.nossos-servicos .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 70px;
}

.title-decoration {
    width: 340px;
    height: 2px;
    background-color: var(--gold, #D8AA26);
    margin:auto;
    bottom: 5px;
}

/* Grid de Serviços */
.servicos-grid {
    display: grid;
    /* CORREÇÃO: Aumentado de 240px para 300px.
       Isso força a grade a ter menos colunas (mas mais largas) em telas médias,
       evitando que o texto estoure para fora. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
    width: 100%;
    position: relative; 
}

.servico-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    color: #000;
    padding: 30px;
    transition: all 0.3s ease;
    /* Adicionado para garantir que nada saia do card */
    overflow-wrap: break-word; 
}

.servico-card h3 {
    font-size: 25px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c89b1a;
    /* Segurança para palavras longas */
    word-break: break-word; 
    hyphens: auto;
}

.servico-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 20px; 
    font-weight: 300;
    flex-grow: 1; 
    width: 100%; /* Garante largura fluida */
}

.card-footer {
    margin-top: auto;   
    text-align: right;  
    width: 100%;
}

.plus-btn {
    color: var(--gold, #D8AA26);
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    display: inline-block;
}

/* Expansão dos Cards (Lógica de JS) */
.servicos-grid.expanding-mode {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

.servicos-grid.expanding-mode .servico-card:not(.active) {
    display: none !important;
}

.servico-card .specs-list, .servico-card .close-btn { display: none; }

.servico-card.active {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    background-color: #D69E1E !important; 
    color: #000000 !important;
    padding: 80px 10%; 
    border-radius: 0;
    border-left: none !important; 
    border: none !important;
    display: flex !important; 
    flex-direction: column;      
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
}

.servico-card.active > * {
    width: 100%;
    max-width: 1400px; 
}

.servico-card.active .card-content {
    max-width: 600px; 
    text-align: left;
}

.servico-card.active h3 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.servico-card.active .servico-icon {
    width: 300px;
    height: auto;
    opacity: 1;
}

.servico-card.active h3, 
.servico-card.active p, 
.servico-card.active li {
    color: #000000 !important;
}

.servico-card.active .close-btn {
    display: block;
    position: absolute;
    top: 30px;
    right: 90px;
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
}

.servico-card.active .specs-list {
    display: block;
    margin-top: 40px;
    list-style: none;
}
.servico-card.active .specs-list li {
    padding: 20px 0;
    font-size: 22px;
    text-align: left;
}

.servico-card.active .card-footer { display: none; }

.servico-card.active p {
    font-size: 24px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: -30px;
}

.specs-list .sub-item {
    margin-left: 25px; 
    display: flex; 
    align-items: flex-start;
    color: #1a1a1a;
}

.specs-list .sub-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;   
    border-right: 2px solid white; 
    transform: rotate(45deg);      
    margin-right: 15px;
    margin-top: 6px; 
    flex-shrink: 0; 
}

/* =========================================
   SOLUÇÕES / CTA
   ========================================= */
.solucoes-cta {
    width: 100%;
    background-color: #F2F2F2; 
    padding: 100px 8%;      
    display: flex;
    justify-content: flex-start; 
}

.cta-inner-content {
    max-width: 850px; 
}

.cta-inner-content h2 {
    font-family: 'Avenir Next';
    font-size: 52px; 
    line-height: 1.1;
    color: #1D1D1D;
    font-weight: 400;
    margin-bottom: 25px;
}

.cta-inner-content p {
    font-size: 22px; 
    line-height: 1.5;
    color: #4A4A4A;
    font-weight: 400;
}

.solucoes-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-basis: 36.3%;
    max-width: 36.3%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
}

.solucoes-video video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 10%;  /* mais pra cima */
}

.solucoes-pratica {
    width: 100%;
    padding: 0;
    margin: 0;
}

.solucoes-wrapper {
    display: flex;
    width: 100%;
    min-height: 891px;
    background-color: #000;
}

.solucoes-left {
    flex-basis: 63.7%; 
    max-width: 63.7%;
    position: relative;
    background-color: #000; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%; 
    padding-right: 5%;
}

.solucoes-content {
    display: flex;
    flex-direction: column;
    max-width: 600px; 
}

.solucoes-content h2 {
    font-family: 'Avenir Next'; 
    font-size: 62px; 
    line-height: 1.1;
    color: #fff;
    font-weight: 500;
    margin: 0;
}

.solucoes-content p {
    font-size: 24px; 
    line-height: 1.5;
    color: #fff;
    margin-top: 20px;
    font-weight: 300;
}

.midia-placeholder p {
    color: #999;
    font-size: 18px;
    font-weight: 500;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================= */

/* Tablets / Laptops menores que 1500px */
@media (max-width: 1500px) {
    /* CORREÇÃO DO ESPAÇO PRETO VERTICAL */
    #introScroll {
        height: auto !important;
        min-height: auto !important;
        position: relative;
    }

    .intro-track {
        position: relative !important;
        height: auto !important;
        width: 100%;
        display: block;
    }

    .intro-track img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
    }


    /* Ajustes das seções de conteúdo */
    .solucoes-cta {
        padding: 60px 5%;
    }
    
    .cta-inner-content h2 {
        font-size: 34px;
    }
    
    .cta-inner-content p {
        font-size: 18px;
    }

    .solucoes-wrapper{
        flex-direction: column;
        min-height: auto;
    }
    .solucoes-left {
        flex-basis: 100%;
        max-width: 100%;
        padding: 20px 24px;
        min-height: auto;   
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .solucoes-content h2 {
        font-size: 20px; 
        line-height: 1.2;
        margin: 30px 0; 
    }

    .solucoes-content p {
       font-size: 18px;
    }

    .solucoes-right {
        flex-basis: 100%;
        max-width: 100%;
        padding: 60px 24px;
        min-height: 70vh; 
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .solucoes-video {
        width: auto;
        height: auto;
        max-width: none;
        -webkit-mask-image: linear-gradient(to bottom, transparent 2%, black 50%);
    }
    
    .solucoes-content {
        padding-left: 0; 
    }
}

/* Mobile / Tablet Portrait (< 1000px) */
@media (max-width: 1000px) {
    .servico-card.active .close-btn {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    }

    .servico-card.active h3 {
    font-size: 25px;
    margin-bottom: 20px;
    text-transform: uppercase;
    }

    .oqf-hero-content {
        display: none; 
    }

    .oqf-hero {
        height: auto; 
        background: #000;
        display: flex;
        align-items: center;
    }

    .hero-img-full {
        height: auto;
        width: 100%;
        object-fit: cover;
        margin-bottom: 0; 
    }

    .nossos-servicos {
        padding-top: 20px; 
    }

    .section-title {
        font-size: 25px; 
        letter-spacing: 2px;
        margin-bottom: 9px;
        color: #000;
    }

    .title-decoration {
        width: 140px; 
        height: 2px;
        background-color: var(--gold);
        margin-top: 5px;
    }

    .servicos-grid {
        gap: 50px;
    }

    .servico-card h3 {
        /* CORREÇÃO IMPORTANTE: Reduzido de 32px para 26px.
           Fontes muito grandes estavam empurrando a largura da tela. */
        font-size: 26px; 
        color: var(--gold);
        margin-bottom: 15px;
        font-weight: 400; 
    }

    .servico-card p {
        font-size: 18px;
        line-height: 1.4;
        color: #000; 
        font-weight: 300;
        width: 100%;
    }

    .card-footer {
        margin-top: 10px;
    }

    .plus-btn {
        font-size: 31px; 
        color: var(--gold);
        font-weight: 300;
        line-height: 0.8;
    }
}

/* Telas muito pequenas (< 768px) */
@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Telas minúsculas (< 600px) */
@media (max-width: 914px) {
    .oqf-hero,
    .solucoes-pratica {
        position: sticky;
        top: 0;
        height: auto;
    }
    .banner-solucoes{
        position: sticky;
        top: 0;
        height: auto;
    }

    .nossos-servicos{
        position: relative;
        min-height: auto;
        height: auto;        
    }

    .servico-card.active{
        position: relative;
        height: auto;    
        overflow: visible;
    }

    .sticky-bg {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .content {
        position: relative;
    }

    .solucoes-video {
        width: auto;
        -webkit-mask-image: linear-gradient(to right, transparent 2%, black 50%);
    }
}

/* Sticky Logic para Telas Grandes (> 1500px) */
@media (min-width: 915px) {
    .oqf-hero,
    .solucoes-pratica {
        position: sticky;
        top: 0;
        height: 110vh;
    }

    .banner-solucoes{
        position: sticky;
        top: 0;
        height: auto;
    }

    .nossos-servicos{
        position: relative;
        min-height: auto;
        height: auto;        
    }

    .servico-card.active{
        position: relative;
        height: auto;    
        overflow: visible;
    }

    .sticky-bg {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .content {
        position: relative;
    }

    .solucoes-video {
        width: auto;
        -webkit-mask-image: linear-gradient(to right, transparent 2%, black 50%);
    }
}

body.lock-scroll {
  overflow: hidden;
}

.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.popup-overlay.is-open{ display: flex; }

.popup{
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.popup h3{
  margin: 0 0 8px 0;
  font-weight: 400;
  letter-spacing: 1px;
}

.popup p{
  margin: 0 0 16px 0;
  color: #cfcfcf;
  line-height: 1.5;
}

.popup-close{
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  color: #000;
}

/* ========= SOCIALS TOP (replicar igual em todas as páginas) ========= */

.site-footer .socials.socials-left.socials-top{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;

  width: fit-content;
  margin-left: 0;
  padding-left: 0;

  margin-top: -80px;
  margin-bottom: 25px;

  position: relative;
  z-index: 20;
}

.site-footer .socials.socials-left.socials-top .social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  background: transparent;
  border: none;
  text-decoration: none;

  cursor: pointer;
  position: relative;
  z-index: 21;
  -webkit-tap-highlight-color: transparent;
}

.site-footer .socials.socials-left.socials-top .social-img{
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  max-width: none;
  pointer-events: none;
}

/* evita pseudo-elementos decorativos bloquearem clique */
.site-footer::before,
.site-footer::after{
  pointer-events: none;
}

@media (max-width: 900px){
  .site-footer .socials.socials-left.socials-top{
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .site-footer .socials.socials-left.socials-top .social-icon{
    width: 58px;
    height: 58px;
  }

  .site-footer .socials.socials-left.socials-top .social-img{
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 768px) and (max-width: 1366px){

  /* garante que a hero não crie altura sobrando */
  .oqf-hero,
  #introScroll,
  .intro-track{
    height: auto !important;
    min-height: 0 !important;
  }

  /* sobe o texto */
  .oqf-hero-content{
    padding: 36px 5% 28px !important; /* antes era 120px... */
  }

  /* opcional: reduz um pouco o texto pra caber melhor */
  .oqf-hero-content p{
    font-size: 16px;
    max-width: 520px;
  }
}
