/* --------  VARIAVEIS -------- */
:root{
  --red: #8B0000;  
  --redhover: #AB2D31;
  --green: #108C00;
  --greenhover: #0D6901;
  --blue: #2D328D;
  --white: #ffffff;    
  --black: #000000;  
  --font: 'Merriweather Sans', sans-serif;
}

/* --------  BASE -------- */
html { font-size: 16px !important; }

*{ box-sizing:border-box }

body {  
  margin:0;
  padding-top:137px;
  font-family: var(--font);
  color: var(--white);
  background: var(--white);
  -webkit-font-smoothing:antialiased;
}
p { font-size: 20px; }
h2.section-title { 
  font-size: 4.5rem; /* 72px - 1920 */
  color: var(--redhover);
  font-style: italic;
  font-weight: 700;  
}
h3.section-title { 
  font-size: 2.5rem; /* 40px - 1920 */
  color: var(--redhover);
  font-style: italic;
  font-weight: 700;  
}
.text-standard {
  color: var(--blue);  
  font-weight: 300; 
}
.container { margin:0 auto; /* padding:0 20px; */}
.btn {
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}
.btn-green {
  background: var(--green);
  color: var(--white) !important;
}
.btn-green:hover {
  background: var(--greenhover);  
}
span.quebra { display: block; }
span.quebra-reverso { display: inline; }

/* --------  HEADER -------- */
header {    
  position: fixed;
  top: 0;
  z-index: 100;
  background: var(--white);
  justify-content: space-between;
  padding: 50px 0;
  width: 100%;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;  
}
.header-mobile { display: none; }
.header-inner .logo {
  width: 133px;
  height: 57px;
  transition: transform 0.3s ease-in-out;
}
.header-inner img.logo:hover { transform: scale(1.1); }
.header-inner .nav a {
  margin: 0 6px;
  padding: 16px;
  text-decoration: none;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
}
.header-inner .nav a:hover { color: var(--redhover); }

/* --------  FOOTER -------- */
footer {
  background: var(--black);  
  padding-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
footer .footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 2px solid;
  padding-bottom: 20px;
}
footer .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;  
  width: 80%;  
  margin-left: 9%;
  padding: 10px 0;
}
footer .footer-menu a {    
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
}
footer .copy {
  color: var(--black);
  background-color: var(--white);
  text-align: center;  
  margin-top: 20px;
  padding: 15px;
}
footer .socials {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-end;
}
footer .socials p { font-size: 1.5rem; }
footer div.redes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer .socials a {
  display: flex;
  flex-wrap: wrap;
  align-content: center;  
  justify-content: center;
  background: var(--blue);  
  border-radius: 25px;
  width: 48px;
  height: 48px;
}
footer .socials a:hover {
  background: var(--redhover);
  transition: color .15s 
    ease-in-out, background-color .15s 
    ease-in-out, border-color .15s 
    ease-in-out, box-shadow .15s 
    ease-in-out;
}



/* --------  HERO (vídeo FULL WIDTH) -------- */
#hero {
  position: relative;
  width: 100%;
  height: 87vh;
  min-height: 570px;
  overflow: hidden;
  display: block;
}
#hero h1 {
  font-size: 2.75rem;
  font-weight: 300;  
}
#hero h1 span {
  font-size: 4.5rem;  
  font-style: italic;
  font-weight: 700;  
}
#hero h2 {
  font-size: 2rem;  
}
#hero .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: var(--black);
}
#hero #bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* width: 177.78vh;
  height: 100vh; */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* bloqueia hover e cliques */
  border: none;
}
#hero .video-mobile { display: none; }

@media (min-aspect-ratio: 16/9) {
  #bg-video {
    height: 56.25vw;
    width: 100vw;
  }
}

/* overlay do conteúdo (texto) */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* gradiente sobre o vídeo */
.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: 
    linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    linear-gradient(180deg, rgba(45, 50, 141, 0) 29.32%, rgba(45, 50, 141, 0.35) 83.67%);
}

/* conteudo real */
.hero-overlay .container { 
  pointer-events: auto; 
  position: relative;
  z-index: 2;
}
.hero-overlay .row {justify-content: center;}
.hero-pretitle {
  color: #fff;
  opacity: 0.95;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* título grande com estilo itálico e destaque */
.hero-title {
  color: #fff;
  font-size: 3.0rem; /* desktop */
  line-height: 1.02;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  font-style: italic;
  text-shadow: 0 6px 20px rgba(0,0,0,0.5);
  letter-spacing: 0.2px;
}

/* se quiser destacar parte em cor diferente */
.hero-primary { display: inline-block; }

/* descrição do hero */
.hero-desc {
  color: rgba(235, 241, 249, 0.95);
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 1.05rem;
}

/* botão estilo */
.hero-cta {margin-top: 5vh;}

/* fade bottom para transição para o banner */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(255,255,255,0.95) 85%);
  pointer-events: none;
}


/* -------- BANNER -------- */
#banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
#banner .contain {
  background-image: url("../img/nos-somos.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 100%;
  height: 448px;
}


/* -------- SOBRE -------- */
#sobre { 
  padding: 50px 0;
  background:var(--white);
}
#sobre .conteudo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
}
#sobre .sobre-quem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#sobre p { 
  text-align: justify;
  line-height: 1.25;
}
#sobre .subtitle {
  color: var(--blue);
  font-size: 1.65rem;
  font-weight: 700;
}
#sobre .sobre-img { 
  height: 78vh;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}
#sobre img.fundador {
  width: 200px;
  border-radius: 50%;
}
#sobre div.fundador {
  text-align: right;
}


/* -------- SERVIÇOS -------- */
#servicos {
  padding-top: 40px;
  padding-bottom: 60px;
  background:var(--white);
  isolation: isolate;
}
#servicos h3 {
  color: var(--blue);
  font-weight: 300;
}
#servicos #services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem; /* espaçamento entre os cards */
}
#servicos #services-grid .destaque-card {
  grid-column: 4;
  grid-row: 1 / span 2;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
#servicos a.btn {
  padding: 8px 24px;
}
#servicos .service-card {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;  
  border-radius: 16px;
  min-height: 300px;
  background: var(--blue);
  box-shadow: 0px 4px 4px 0px #00000040;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-position: center;
  background-size: cover;
}
#servicos .service-card img { 
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(1.2);
}

#servicos .service-card.abertura { background-image: url("../img/cards/abertura-alteracao-cnpj.jpg"); }
#servicos .service-card.cadastro { background-image: url("../img/cards/profissionais-autonomos.jpg"); }
#servicos .service-card.emissao { background-image: url("../img/cards/emissao-nota-fiscal.jpg"); }
#servicos .service-card.planejamento { background-image: url("../img/cards/planejamento-tributario.jpg"); }
#servicos .service-card.declaracao { background-image: url("../img/cards/declaraocao-irpf-carne-leao.jpg"); }
#servicos .service-card.calculo { background-image: url("../img/cards/calculo-prolabore-inss.jpg"); }

#servicos .destaque-card img { 
  width: 80px;
  height: 80px;
  object-fit: contain;
}
#servicos .service-title {   
  font-weight: 700;
  font-size: 2rem;
}
#servicos .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}
#servicos .service-card > * {
  position: relative;
  z-index: 1;
}
#servicos .destaque-card::before {
  display: none;
}

#servicos .card-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 16px;  
  text-align: center;
  padding: 20px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#servicos .card-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#servicos .card-overlay .service-title {
  font-size: 1.5rem;
  line-height: 1.3;
}
#servicos .card-overlay p { line-height: 1.2; }

/* Responsividade de serviços */
@media (max-width: 991.98px) {
  #services-grid {
    grid-template-columns: 1fr;
  }

  #services-grid .destaque-card {
    grid-column: auto;
    grid-row: auto;
  }
}




/* -------- POR QUE (boxes) -------- */
#porque {
  color: var(--blue);
}
.why-box {  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;  
  border: 2px solid var(--black);
  min-height: 280px;
  padding: 18px;
  text-align: center;
}
.why-box:hover {
  background-color: var(--blue);
  border: 2px solid var(--blue);
  color: white;
}
.why-box p {
  font-size: 1.6rem;
  font-weight: 700;
}
.icon-lg {
  width: 110px;
  height: 110px;
}


/* -------- DEPOIMENTOS -------- */
#clientes{ 
  color: var(--blue);
}
#clientes h3 {
  font-weight: 300;
  font-size: 1.6rem;
}
.depoimento {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between; 
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);  
  min-height: 378px;  
  box-shadow: 0px 4px 16.9px 0px #00000040;
}
.depoimento p {  
  text-align: justify;
  line-height: 1.3;
  margin: 0;
}
.depoimento .stars { 
  color: #FEA500;
}
.depoimento .pessoa {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
/* --- DEPOIMENTOS / CARROSSEL --- */
#clientes {
  position: relative;
}
#clientes .swiper {
  padding: 20px 10px;
}
.mobile { display: none; }
.swiper-button-next,
.swiper-button-prev {
  position: static !important;
  margin: 0 !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}



/* -------- FAQ -------- */
#faq {
  padding: 60px 0;
}
#faq h3 {
  font-size: 3.75rem;
}
#faq p {
  font-size: 1.75rem;
}
#faq .container {
  display: flex;
  flex-wrap: wrap;
}
.accordion-item {
  border: 0px;
}
.accordion-button {
  color: var(--white);
  background: var(--blue);
  padding: 18px 36px;
  margin-bottom: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 16px;
}
.accordion-button:focus { box-shadow: none; }
.accordion-item:first-of-type .accordion-button {
  border-radius: 16px !important;
}
.accordion-item:last-of-type .accordion-button {
  border-radius: 16px !important;
}
.accordion-button:not(.collapsed) {
  color: var(--blue);
  background-color: #DCDCDC;
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' stroke-width='2.5' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");  
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='%232D328D' stroke-width='2.5' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M2 11l6-6 6 6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");  
  transform: rotate(-360deg);
}
.accordion-body {  
  font-size: 1.5rem;
  text-align: justify;
}


/* -------- DUVIDAS -------- */
#duvidas {
  position: relative;
  overflow: hidden;  
  background: linear-gradient(
      272.35deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    var(--redhover); 
  padding: 90px 0;
}
/* Elipse em SVG posicionada no fundo */
#duvidas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/elipse.svg") no-repeat center bottom;  
  opacity: 1;
  pointer-events: none;
}
#duvidas a { 
  font-size: 2rem;
}
#duvidas h2 {
  font-size: 5rem;
  margin-bottom: 15px;
  font-style: italic;
  font-weight: 700;
}

/* -------- RESPONSIVIDADE -------- */

/* telas médias (ex: 1366px) */
@media (max-width: 1440px) {
  html {
    font-size: 14px !important;
  }
  #hero #bg-video {
    height: 126vh;
    top: 60%;    
  }
  #sobre .sobre-img { height: 110vh;}
  #banner .contain { height: 320px; }
}

/* telas menores (ex: 1024px) */
@media (max-width: 1200px) {
  html {
    font-size: 14px !important;
  }
  .header-inner {    
    justify-content: center;    
    margin-left: 35px;
  }
  .container.header-inner { padding: 0; }
}

/* mobile */
@media (max-width: 576px) {
  html { font-size: 8px !important; }
  body { padding-top: 0; }
  p { font-size: 16px; }
  .container { padding: 0 20px; }

  /* HEADER */
  header { position: relative; padding: 0; }
  .header-inner { display: none; }
  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
  }
  .header-mobile img.logo { height: 44px; }
  /* Esconde o menu mobile por padrão */  
  .nav-mobile {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: white;
    width: 250px;
    padding: 20px;
    display: none; /* escondido */
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 999;
  }
  .nav-mobile a {
    margin: 15px 0;
    text-decoration: none;
    color: var(--blue);
    font-weight: 700;    
    font-size: 16px;
  }
  .nav-mobile a.btn-green { padding: 12px 24px; }
  .nav-mobile .btn-green {
    margin-top: 15px;
  }
  .nav-mobile.active {
    display: flex;
    align-items: flex-end;
  }
  #overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;    
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }  
  #overlay-menu.active {
      display: block;
      opacity: 1;
      pointer-events: auto;
  }

  /* HERO */
  #hero {
    background: var(--white);
    height: auto;
    min-height: 0;
    margin-top: 20px;
  }
  #hero .video-bg{ display: none; }
  #hero .hero-overlay { color: var(--blue); }
  #hero .hero-overlay::before { content: unset; background: var(--white); }
  /* apenas o video com auto play */
  #hero .video-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
  }  
  #hero #mobile-video {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: none;
    pointer-events: none;
    opacity: 0;
    animation: fadeInVideo 1s ease forwards;
    animation-delay: 1s;
  }
  @keyframes fadeInVideo {
    to { opacity: 1; }
  }
    
  /* --- HERO Mobile: com imagem e botão play --- */
  /* #hero .video-mobile {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;   
  }
  .video-thumb {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
  }
  .video-thumb .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.2s ease;
  }
  .video-thumb:hover .play-button { transform: translate(-50%, -50%) scale(1.1); }
  #mobile-video {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: none;
    display: none;
    pointer-events: none;
  }  
  .video-mobile.playing .video-thumb { display: none; }
  .video-mobile.playing #mobile-video { display: block; } 
  */








  #hero h1 span { color: var(--redhover); }
  #hero h2 { margin-top: 20px; }
  #hero .hero-cta {
    margin: 15px 0;
    font-size: 16px;
    width: 100%;
    padding: 12px 24px;
  }

  /* BANNER */
  #banner .contain {
    background-image: url("../img/nos-somos-mobile.jpg");   
    height: 166px;
  }

  /* SOBRE */
  #sobre { padding: 50px 25px; }
  #sobre .conteudo { text-align: center; }
  #sobre .subtitle { font-size: 20px; margin-bottom: 15px; }
  #sobre .sobre-nos { margin: 20px 0 50px; }
  #sobre .sobre-quem h3 { font-size: 36px; margin: 15px 0; }
  #sobre div.fundador { text-align: center; }
  #sobre img.fundador { width: 150px; }
  #sobre .sobre-img { height: 300px; }
  #sobre .sobre-quem { flex-direction: column-reverse; }

  /* SERVICO */
  #servicos { padding: 0 5px 50px; }
  #servicos h3 { font-size: 16px; margin: 15px 0px 25px !important; }
  #servicos #services-grid {
    display: flex;
    gap: 25px;
    flex-direction: column;
  }
  #servicos .service-card {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    text-align: left !important;
    min-height: 170px;
  }
  #servicos .service-card:has(.card-overlay.active) { height: 300px; }
  #servicos .service-title { 
    font-size: 20px;
    padding: 0 25px 0 15px;
  }
  #servicos .destaque-card .service-title { text-align: center; }  
  #servicos .service-icon { margin: 0 !important; padding: 20px; }
  #servicos #services-grid .destaque-card { flex-direction: column; }
  #servicos .card-overlay .service-title {
    font-size: 24px;
    padding: 0;
    margin-bottom: 20px;
  }
  #servicos .card-overlay { text-align: left; }
  #servicos .card-overlay p { margin-bottom: 20px; }
  #servicos a.btn {
    padding: 12px 24px;
    width: 100%;
    font-size: 16px;
  }

  /* PORQUE */
  #porque h2 { margin-bottom: 20px; }
  #porque h3 { font-size: 16px; margin-bottom: 25px; }
  #porque .why-box p {
    font-size: 16px;
    text-align: left;
    padding: 0 10px;
  }
  #porque .why-box {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 97px;
  }
  #porque .why-box.reverse {
    flex-direction: row-reverse;
    justify-content: right;
  }
  #porque .why-box.reverse p {
    text-align: right;
  }
  #porque .why-box .icon-lg {
    width: 65px;
    height: 65px;
    margin: 0 10px !important;
  }
  span.quebra { display: inline; }
  span.quebra-reverso { display: block; }

  /* DEPOIMENTOS */
  #clientes h2 { margin-top: 60px; }
  #clientes h3 { font-size: 16px; margin: 20px 0 15px; }
  #clientes .depoimento { min-height: 265px; padding: 25px !important; }
  .swiper-nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 10px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: static !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* leve sombra */
  }
  .swiper-button-next:after,
  .swiper-button-prev:after {    
    font-size: 18px;
    color: var(--white);
  }

  /* FAQ */
  #faq .container { justify-content: center; }
  #faq h3 { margin-bottom: 15px; text-align: center; }
  #faq p { font-size: 16px; margin-bottom: 20px; text-align: center; }
  .accordion-button { font-size: 20px; }
  .accordion-body { font-size: 16px; padding-bottom: 20px; }

  /* DUVIDAS */
  #duvidas { 
    display: flex;
    align-items: center;
    height: 254px;
    padding: 0;
  }
  #duvidas::before { background: url("../img/elipse-mobile.svg") no-repeat; }
  #duvidas a.btn { padding: 12px 48px; }

  /* FOOTER */
  footer .socials {
    width: 100%;
    align-items: center;
    align-content: center;
  }
  footer .footer-info { border-bottom: 0px; padding-bottom: 0px; }
  footer .logo-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }
  footer .logo-info p {
    text-align: center;
    width: 90%;
    border-bottom: 2px solid;
    padding-bottom: 15px;
  }
  footer div.redes {
    justify-content: center;
    border-bottom: 2px solid;
    width: 90%;
    padding-bottom: 15px;
  }
  footer .footer-menu { display: none; }
  footer .copy {
    color: var(--white);
    background-color: var(--black);
    margin-top: 5px;
    padding: 20px;
  }

  /* DEPOIMENTOS */
  .mobile { display: block; }
}

section[id] {
  scroll-margin-top: 150px;
}