/* ======================== ÍNDICE DE SEÇÕES ========================
01. VARIÁVEIS / RESET E CONFIGURAÇÕES GERAIS
02. CABEÇALHO
03. MENU DE NAVEGAÇÃO
04. SEÇÕES GERAIS
05. GRID DE SERVIÇOS
06. CARTÕES DE SERVIÇOS
07. TÍTULO E DESCRIÇÃO DOS SERVIÇOS
08. BOTÕES
=================================================================== */

/* ======================== 01. VARIÁVEIS / RESET E CONFIGURAÇÕES GERAIS ======================== */
:root{
  --container-max: 880px;
  --gap-top: 3rem;
  --gap-bottom: 2.5rem;

  --brand: #1864ab;
  --brand-dark: #12568c;
  --ink: #222222;

  --carousel-h-desktop: 378px;
  --carousel-h-md: 340px;
  --carousel-h-sm: 300px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  background: url('img/Arte_Fundo_1.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  padding: 0 0 60px 0;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================== 02. CABEÇALHO ======================== */
.section-header{
  background-image: url('img/Arte_Fundo_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 0 1rem 0;
  text-align: center;
  color: #0f2743;
}

.section-header h1{
  font-size: 2.2rem;
  margin-bottom: .5rem;
}

.section-header p{
  color: #2c4660;
  font-size: 1.2rem;
  margin-top: 0;
  font-weight: 400;
}

/* ======================== 03. MENU DE NAVEGAÇÃO ======================== */
.main-nav{
  background: #1c2d3a;
  text-align: center;
  padding: .7rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.main-nav a{
  color: #fff;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 600;
  transition: color .2s;
}

.main-nav a:hover{
  color: #a3d3ff;
}

.main-nav a:focus-visible{
  outline: 3px solid #a3d3ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ======================== 04. SEÇÕES GERAIS ======================== */
section{
  max-width: var(--container-max);
  background: transparent;
  margin: var(--gap-top) auto var(--gap-bottom);
  padding: 2.2rem 2.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
  font-family: 'Inter', sans-serif;
}

.info-box{
  text-align: justify;
}

/* ======================== 05. GRID DE SERVIÇOS ======================== */
.services-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 0 1rem;
}

/* ======================== 06. CARTÕES DE SERVIÇOS ======================== */
.service-card{
  background: rgba(255,255,255,0.95);
  border-radius: 22px 55px 22px 55px;
  box-shadow: 0 6px 22px rgba(68,134,255,0.08);
  padding: 32px 22px 28px 22px;
  border-left: 5px solid #548eed;
  min-height: 200px;
  transition: transform .18s, box-shadow .22s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(68,134,255,0.15);
}

/* ======================== 07. TÍTULO E DESCRIÇÃO DOS SERVIÇOS ======================== */
.service-title{
  color: var(--brand);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: .8rem;
}

.service-desc{
  text-align: justify;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 1rem;
}

/* ======================== 08. BOTÕES ======================== */
.cta-btn, .main-btn{
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(24, 100, 171, 0.15);
  min-width: 120px;
}

.cta-btn:hover, .main-btn:hover{
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 100, 171, 0.2);
}

.cta-btn:focus-visible, .main-btn:focus-visible{
  outline: 3px solid #a3d3ff;
  outline-offset: 2px;
}
/* ======================== 09. LISTAS ======================== */
ul{ 
  margin: 1rem 0 0 clamp(0.5rem, 2vw, 1rem); 
}
ul li{ 
  margin-bottom: .7rem; 
}

/* ======================== 10. ARTIGOS ======================== */
.artigo-meta{
  color: #7c8a97;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-style: italic;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ======================== 11. VÍDEOS ======================== */
/* substituído por .video-embed e .video-grid nas seções 21 e 22 */

/* ======================== 12. QR CODE ======================== */
.qrcode-container{
  margin: 2.2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background-color: #f0f4f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  max-width: clamp(220px, 90%, 300px);
}

.qrcode-container img{
  width: clamp(90px, 25vw, 120px);
  height: auto;
  border-radius: 8px;
}

/* ======================== 13. BOTÕES ESPECIAIS – MATÉRIAS JURÍDICAS ======================== */
.btn-group a{
  display: inline-block;
  background-color: var(--brand);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 28px;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(24, 100, 171, 0.15);
}

/* CENTRALIZAÇÃO DOS BOTÕES INFERIORES */
.bottom-links,
.links-footer,
.section-links,
.materiais-links{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  margin: 2.5rem auto 1rem;
  text-align: center;
}

.bottom-links a,
.links-footer a,
.section-links a,
.materiais-links a{
  margin: 0;
}

/* ======================== 14. RODAPÉ ======================== */
footer{
  width: 100%;
  background: #223b53;
  color: #ffffff;
  text-align: center;
  padding: clamp(0.8rem, 2vw, 1.2rem) 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
}

/* ======================== 15. BOTÃO WHATSAPP ======================== */
.whatsapp-button{
  position: fixed;
  right: clamp(12px, 3vw, 18px);
  bottom: clamp(70px, 10vw, 85px);
  background: #25D366;
  color: #ffffff;
  padding: clamp(10px, 2vw, 14px) clamp(16px, 4vw, 22px);
  border-radius: 48px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
  box-shadow: 0 6px 20px rgba(40, 120, 60, 0.15);
  z-index: 100;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-button:hover{
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40, 120, 60, 0.2);
}

.whatsapp-button:focus-visible{
  outline: 3px solid #b6f5cc;
  outline-offset: 2px;
}

/* Ajuste para listas de definições (#sobre) */
.valores-lista {
  margin: 1rem 0;
  padding: 0;
}

.valores-lista dt {
  font-weight: bold;
  margin-top: .5rem;
}

.valores-lista dd {
  margin: 0 0 .5rem 1.5rem;
}

/* ======================== 16. FORMULÁRIO ======================== */
form{
  margin-top: 1rem;
}

input[type="text"], input[type="email"], textarea{
  width: 100%;
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.8rem, 2vw, 1rem);
  margin: 0.25rem 0 1rem 0;
  border-radius: 10px;
  border: 1px solid #c7d7e6;
  background: #f9fbfc;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border 0.2s, box-shadow 0.2s;
  resize: vertical;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(24, 100, 171, 0.2);
  outline: none;
}

input[name="honeypot"]{
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

button[type="submit"]{
  background: var(--brand);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 32px;
  padding: clamp(0.6rem, 2vw, 0.7rem) clamp(1rem, 3vw, 1.4rem);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1rem);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(24, 100, 171, 0.15);
}

button[type="submit"]:hover{
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 100, 171, 0.2);
}

button[type="submit"]:focus-visible{
  outline: 3px solid #a3d3ff;
  outline-offset: 2px;
}
/* ======================== 17. MENSAGEM DE SUCESSO ======================== */
#mensagem-sucesso{
  display: none;
  background-color: #dff0d8;
  color: #3c763d;
  padding: clamp(10px, 2vw, 15px);
  border-radius: 5px;
  margin-bottom: clamp(12px, 3vw, 20px);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ======================== 18. CARROSSEL ======================== */
.carousel-container{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  max-width: var(--container-max);
  height: var(--carousel-h-desktop);
  background: #000;
  touch-action: pan-y;
  overscroll-behavior: contain;
  margin: var(--gap-top) auto 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.carousel-track{
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-item{
  flex: 0 0 100%;
  user-select: none;
}

/* ======================== 19. ACESSIBILIDADE / PREFERÊNCIAS DE MOVIMENTO ======================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Ajuste de textos justificados em seções específicas */
#artigos p{
  text-align: justify;
}

@media (max-width: 900px){
  .carousel-container{
    height: var(--carousel-h-md);
    margin: var(--gap-top) auto 0;
  }
}

/* ======================== 21. VÍDEOS — grade (cards com link) ======================== */
.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

@media (max-width: 900px){
  .video-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .video-grid{
    grid-template-columns: 1fr;
  }
}

.video-card a{
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  background: rgba(255,255,255,0.95);
  border-left: 5px solid #548eed;
  border-radius: 14px;
  padding: .9rem;
  box-shadow: 0 4px 14px rgba(24,100,171,0.08);
  transition: transform .15s ease, box-shadow .2s ease;
}

.video-card a:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24,100,171,0.18);
}

.video-card img{
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.video-title{
  font-weight: 700;
  color: var(--brand);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.video-desc{
  color: #334;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

/* ======================== 22. VÍDEOS — embed (destaque único) ======================== */
.video-embed{
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.video-embed iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(60,60,60,0.09);
}

/* Botões do carrossel */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  transition: background 0.25s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.55);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}
