/* Reset básico e variáveis */
*{box-sizing:border-box}
:root{
  --bg: #eef3fb;
  --panel: #e7eefc;
  --panel-2:#edf2ff;
  --text:#0f172a;
  --muted:#6b7280;
  --brand:#5b87ff;
  --brand-2:#8fb3ff;
  --shadow: 0 20px 40px rgba(0,0,0,.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: #eef3fb url('assets/bg-fundo.jpg') center top repeat-y;
  background-size: 100% auto;
}


/* Helpers */
.container{width:min(1160px, 92%); margin-inline:auto}
.sr-only{position:absolute;left:-9999px}
.muted{color:var(--muted)}
.btn{
  display:inline-block;
  padding:14px 22px;
  border-radius:14px;
  font-weight:600;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
  border:1px solid transparent;
}
.btn.small{padding:10px 16px;font-size:.9rem}
.btn-grad{
  background: linear-gradient(180deg, #6aa6ff, #517dff);
  color:#fff;
  box-shadow: 0 10px 24px rgba(81,125,255,.35);
}
.btn-grad:hover{transform:translateY(-1px)}
.btn-outline{
  border-color:#bcd0ff;
  color:#2b4c9f;
  background:#f7fbff;
}
.btn-outline:hover{background:#fff}
.chip{
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#eef3ff;
  color:#3a63d0;
  font-weight:600;
  font-size:.85rem;
  border:1px solid #dbe7ff;
}

/* Header */
.SiteHeader{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.nav{
  height:64px; display:flex; align-items:center; justify-content:space-between;
}
.brand{font-weight:800; letter-spacing:.5px}
.menu a{
  font-weight:600; font-size:.95rem; color:#3b4a6b; text-decoration:none; margin-left:18px; padding:10px 12px; border-radius:10px;
}
.menu a.active,.menu a:hover{background:#ebf1ff;color:#284aa3}

/* Hero */
.Hero{padding:72px 0}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap:40px;
}
.hero-copy h1{
  font-size:28px; line-height:1.25; margin:0 0 14px;
}
.hero-copy p{color:var(--muted); margin:0 0 22px}
.hero-image-wrap{position:relative}
.hero-image{
  width:100%; height:auto; display:block; border-radius:24px;
  box-shadow: var(--shadow);
}

/* ===== Menu responsivo / hambúrguer ===== */
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle{
  display: none;                     /* escondido no desktop */
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle:focus-visible{ outline: 2px solid #92b0ff; outline-offset: 2px; }

.nav-toggle .bar{
  position: absolute; left: 12px; right: 12px;
  height: 2px; background: #2b3a5b; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease;
}
.nav-toggle .bar:nth-child(1){ top: 14px; }
.nav-toggle .bar:nth-child(2){ top: 21px; }
.nav-toggle .bar:nth-child(3){ top: 28px; }

/* Estado "aberto" vira X */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Desktop mantém como estava */
.menu a{
  font-weight:600; font-size:.95rem; color:#3b4a6b; text-decoration:none; margin-left:18px; padding:10px 12px; border-radius:10px;
}
.menu a.active,.menu a:hover{ background:#ebf1ff; color:#284aa3; }

/* ===== Mobile ===== */
@media (max-width: 960px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }

  /* menu como painel deslizante */
  .menu{
    position: fixed;
    top: 64px;          /* abaixo do header */
    right: 0;
    left: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    display: grid;
    gap: 4px;
    padding: 12px;
    transition: opacity .18s ease, transform .18s ease;
  }
  .menu a{
    margin: 0;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 1rem;
  }

  /* estado aberto */
  .menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* trava scroll do body quando menu aberto (classe adicionada via JS) */
  body.nav-open{ overflow: hidden; }
}


/* Tray (cards) */
.Tray{padding:40px 0 64px}
.tray-card{
  background: radial-gradient(120% 120% at 10% -30%, #ffffff 10%, #e9efff 60%, #e4ecff 100%);
  border-radius: var(--radius-xl);
  padding:28px; box-shadow: var(--shadow); position:relative;
}
.tray-header h2{margin:10px 0 24px; font-size:24px}
.tray-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:18px;
}
.tray-item{
  background: linear-gradient(180deg, #f7faff, #e8efff);
  border:1px solid #dfe7ff;
  padding:20px; border-radius:18px; box-shadow:0 8px 14px rgba(0,0,0,.04);
}
.tray-item .icon{
  width:24px; height:24px; border-radius:10px; background:#edf2ff; border:1px solid #d9e5ff; margin-bottom:8px;
}
.tray-item h3{margin:0 0 8px; font-size:18px}
.tray-item p{margin:0; color:var(--muted); font-size:.98rem}

/* Projetos */
.Projetos{padding:64px 0}
.two-col{display:grid; grid-template-columns: .95fr 1.05fr; gap:40px; align-items:start}
.callout{
  background: linear-gradient(180deg, #f8fbff, #eaf0ff);
  border:1px solid #dfe7ff;
  padding:24px; border-radius:20px; box-shadow: var(--shadow);
}
.callout h2{margin:10px 0 12px; font-size:22px}
.leis h3{margin:6px 0 14px}
.bullets{margin:0; padding:0 0 0 18px}
.bullets li{margin:8px 0; color:#3b4962}

/* ===== notícias / vídeos ===== */
.Noticias{padding:40px 0 64px}
.sec-head{margin-bottom:16px}
.sec-head.left{text-align:left}
.sec-head h2{margin:8px 0 0}

/* cabeçalho com botão */
.head-flex .title-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.head-flex h2{margin:0; font-size:22px}

/* --- grid responsivo --- */
/* desktop: 5 colunas */
.video-grid.five-wide{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:16px;
}

/* cada vídeo vertical */
.video-grid.five-wide .video-slot{
  width:100%;
  aspect-ratio: 9 / 16;       /* formato vertical */
  display:block;
  border-radius:16px;
  box-shadow: var(--shadow);
  background:#000;
  object-fit: cover;          /* preenche, pode cortar */
}

/* tablet: 3 colunas */
@media (max-width:1080px){
  .video-grid.five-wide{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:14px;
  }
}

/* MOBILE */
@media (max-width:720px){
  .video-grid.five-wide{
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px; /* só espaço HORIZONTAL entre colunas */
    padding: 0 8px;
    margin-bottom: 0; /* não deixa “buraco” após a grade */
  }

  /* cada <video> é .video-slot */
  .video-grid.five-wide .video-slot{
    width: calc(50% - 6px);   /* 2 colunas */
    height: 300px;    /* vídeo vertical */
    object-fit: contain;      /* não corta */
    background:#000;
    border-radius:16px;

    margin-bottom: 20px;     /* >>> espaço entre as LINHAS <<< */
  }

  /* Remove a margem dos itens da ÚLTIMA LINHA:*/
  .video-grid.five-wide .video-slot:last-child{
    margin-bottom: 0;
  }
  .video-grid.five-wide .video-slot:nth-last-child(2){
    margin-bottom: 0;
  }

  .Noticias{ padding-bottom: 12px; }
  .Galeria{ padding-top: 12px; }

  .btn.mobile-only{
    padding: 5px 30px;   /* mais alto e largo */
    font-size: 0.9rem;      /* aumenta fonte */
    text-align: center;
  }
}













/* Galeria */
.Galeria{padding:24px 0 72px}
.galeria-grid{
  margin-top:10px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
}
.gal-item{width:100%; height:180px; object-fit:cover; border-radius:16px; box-shadow: var(--shadow)}

/* Carrossel da Galeria */
.carousel {
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  animation: slide 20s linear infinite;
}
.gal-item {
  width: calc((100% - 48px) / 4); /* 4 imagens por vez */
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

/* Animação que move para a esquerda */
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsivo: no mobile mostra 2 por vez */
@media (max-width: 720px){
  .gal-item { width: calc((100% - 16px) / 2); }
}


/* Contato */
.Contato {
  padding: 24px 0 72px;
}

.contato-card {
  position: relative;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 500px;         /* altura do retângulo */

}

/* IMAGEM como conteúdo */
.contato-img {
  position: absolute;
  top: -25%;
  left: var(--img-left, -15%);   /* controla posição horizontal */
  height: 140%;               /* ocupa toda a altura do card */
  width: auto;                /* mantém proporção */
}

/* BOTÃO */
.contato-cta {
  position: absolute;
  bottom: 70px;
  left: 60%;
  z-index: 2;
}

/* Responsivo celular */
@media (max-width: 768px){
  .Contato {
    padding: 16px 0 32px;
  }

  .contato-card {
    min-height: 600px;
    aspect-ratio: auto;
  }

  /* Aqui troca a imagem só no mobile */
  .contato-img {
    content: url("assets/contato-hero-mobile.png"); /* sua imagem mobile */
    position: absolute;
    top: 45%; 
    left: 50%;
    height: 90%;
    width: 100%;
    transform: translate(-50%, -50%);
  }
  
  .contato-cta{
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    text-align: center;
    padding: 14px 0;
    border-radius: 16px;
    font-size: 1rem;
  }

  .contato-cta:hover {
    transform: translate(-50%, -1px);
  }
}


/* ===== CONTATO — ajustes para tablets ===== */
@media (min-width: 769px) and (max-width: 1080px){
  .Contato {
    padding: 24px 0 56px;   /* respiro intermediário */
  }

  .contato-card {
    min-height: 420px;      /* menor que desktop (500px), maior que mobile (350px) */
    aspect-ratio: 16 / 9;   /* proporção de retângulo largo */
  }

  .contato-img {
    position: absolute;
    top: 50%; 
    left: 35%;
    height: 125%;    /* cresce proporcionalmente */
    width: 130%;
    transform: translate(-50%, -50%); /* centraliza o crescimento */
  }

  .contato-cta {
    left: 75%;
    bottom: 30px;           
    transform: translateX(-50%);
    width: auto;          
    padding: 12px 24px;
    font-size: 1rem;
    text-align: center;
  }

  .contato-cta:hover {
    transform: translate(-50%, -1px); /* mantém no centro e só sobe 1px */
  }
}



/* ===== Footer (com correções) ===== */
.Footer{
  padding-top:24px;
  background: linear-gradient(180deg, #f6f9ff, #eef3ff);
  isolation: isolate; /* evita interferência de stacking externo */
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr 1.2fr;
  gap:24px;
  padding:12px 0 24px;
}

.foot-col h4{ margin:6px 0 10px; }
.links{ list-style:none; margin:0; padding:0; }
.links li{ margin:8px 0; }
.links a{ text-decoration:none; color:#334155; }

.subfooter{
  border-top:1px solid #e2e8f0;
  padding:14px 0 22px;
  text-align:center;
  color:#64748b;
}

.btn-go-top{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:#f0f5ff;
  border:1px solid #d6e3ff;
  text-decoration:none;
  color:#2b4c9f;
  font-weight:600;
  margin-bottom:10px;
}

/* ===== Ícones sociais 2x2 (sem transform) ===== */
.social-grid{
  display:grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 25px;         /* vertical, horizontal */
  list-style:none;
  padding:0;
  margin:0;              /* começa encostado à esquerda */
  justify-content:start; /* alinha à esquerda */
  position:relative;
  z-index:0;
  margin-left:3px;     /* mova mais/menos conforme desejar */
}

.social-grid li a{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:40px;        /* tamanho dos ícones */
  color:#000000;         /* cor normal */
  text-decoration:none;
  transition: transform .2s ease, color .2s ease;
}

.social-grid li a:hover{
  transform: scale(1.1);
  color:#517dff;         /* cor ao passar o mouse */
}

/* Mapa */
.map .map-box{
  position:relative;
  width:100%;
  height:260px;          /* escolha única de altura */
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#e8edf8;
  z-index:10;            /* acima de colunas vizinhas */
}

.map .map-box iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  z-index:11;            /* garante clique por cima de qualquer overlay */
  pointer-events:auto;
}


/* ===== Footer – Responsivo ===== */

/* ---------- Tablet: 2 colunas ---------- */
@media (max-width:1080px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;   /* 2 colunas */
    gap: 20px;
  }

  /* deixa cada bloco confortável no tablet */
  .foot-col h4{ margin: 4px 0 10px; }

  /* mapa um pouco mais baixo no tablet */
  .map .map-box{ height: 220px; }
}

/* ---------- Mobile: 1 coluna (pilha) ---------- */
@media (max-width:720px){
  .Footer{ padding-top: 16px; }

  .footer-grid{
    grid-template-columns: 1fr;       /* 1 coluna */
    gap: 16px;
    padding: 8px 0 16px;
  }

  /* Links maiores para toque */
  .links li a{
    display: inline-block;
    padding: 10px 0;                  /* alvo de toque maior */
  }

  /* Social: centraliza e ajusta tamanho */
  .social-grid{
    grid-template-columns: repeat(2, auto);  /* 2x2 */
    gap: 8px 24px;
    justify-content: center;          /* centraliza no mobile */
    margin-left: 0;                   /* remove offset do desktop */
  }
  .social-grid li a{ font-size: 36px; }       /* levemente menor no mobile */

  /* Mapa mais baixo em telas pequenas */
  .map .map-box{ height: 200px; }

  /* Subfooter mais compacto */
  .subfooter{
    padding: 12px 0 18px;
  }
  .btn-go-top{ margin-bottom: 8px; }
}


/* Responsivo Geral*/
@media (max-width: 1080px){
  .hero-grid{grid-template-columns: 1fr; text-align:center}
  .hero-copy{order:2}
  .hero-image-wrap{order:1}
  .contato-card{grid-template-columns:1fr}
  .contato-illustration{position:static; width:80%; margin:-20px auto 0; display:block}
  .contato-copy{margin-left:0; text-align:center}
  .two-col{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .tray-grid{grid-template-columns:1fr}
  .video-grid{grid-template-columns:1fr; grid-template-rows: 200px 200px 200px 200px 200px}
  .galeria-grid{grid-template-columns:1fr 1fr}
}


/*Modal*/
.modal{
  position: fixed; inset: 0; z-index: 999;
  display: none;
}
.modal.is-open{ display: block; }
.modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}
.modal__dialog{
  position: relative; z-index: 1;
  width: min(720px, 92vw);
  margin: 10vh auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  padding: 22px 20px;
}
.modal__title{ margin: 0 0 12px; font-size: 20px; }
.modal__content{ color:#475569; line-height:1.6; max-height:60vh; overflow:auto; }
.modal__close{
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: 22px; cursor: pointer;
}
.modal__close:hover{ background:#fff; }

/* deixa os cards clicáveis */
.tray-item {
  cursor: pointer;               /* mostra mãozinha */
  transition: transform .2s ease, box-shadow .2s ease;
}
.tray-item:hover {
  transform: translateY(-4px);   /* leve efeito no hover */
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
