:root{
  --bg: #ffffff;
  --text: #0c1220;
  --muted: #5a667b;
  --card: #f2f2f5;
  --accent: #5b3df6;
  --border: rgba(12,18,32,.12);
  --shadow: 0 12px 40px rgba(12,18,32,.12);
  --radius: 18px;
  --container: 1200px;

  /* Header sizes (desktop) */
  --header-h: 132px;        /* alto no topo */
  --header-h-small: 72px;   /* baixo ao rolar */
  --logo-h: 88px;           /* logo no topo */
  --logo-h-small: 44px;     /* logo ao rolar */
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--container), calc(100% - 48px)); margin:0 auto; }

main{ padding-top:0; }

/* ===========================
   HEADER
   =========================== */

.header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;

  /* topo: transparente */
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  transition:
    background .25s ease,
    border-color .25s ease,
    -webkit-backdrop-filter .25s ease,
    backdrop-filter .25s ease;
}

/* Altura real fica na "inner" */
.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content: space-between;
  transition: height .22s ease;
}

/* Marca */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand img{
  height: var(--logo-h);
  width:auto;
  transition: height .22s ease, transform .22s ease, opacity .22s ease;
}

/* Menu */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:600;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--accent);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(91,61,246,.25);
}

.btn-ghost{ background: rgba(255,255,255,.1); }

/* Ao rolar: vidro + header menor */
.header.is-scrolled{
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header.is-scrolled .header-inner{
  height: var(--header-h-small);
}

.header.is-scrolled .brand img{
  height: var(--logo-h-small);
}

/* opcional: quando passar mais, fica mais "branco" */
.header.is-scrolled.is-strong{
  background: rgba(255,255,255,.88);
}

/* ===========================
   HERO
   =========================== */

.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;

  /* como o header é fixed e o main tem padding 0,
     o hero precisa empurrar o conteúdo para baixo do header */
  padding-top: var(--header-h);
  padding-bottom: 80px;

  overflow:hidden;
}

/* imagem do hero */
/* HERO: fundo + filtros */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/assets/img/hero/banner-principal.jpeg");
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
  z-index:0;
}

/* HERO: overlay azul + faixa clara pro texto */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;

  /* 2 camadas: (1) faixa clara à esquerda (2) filtro azul geral */
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.78) 22%,
      rgba(255,255,255,.28) 60%,
      rgba(255,255,255,0) 100%
    ),
    linear-gradient(180deg,
      rgba(79,70,229,.22),
      rgba(79,70,229,.45)
    );
}

/* garante que o conteúdo fique acima */
.hero-content{ position:relative; z-index:1; }




.hero-content{
  position:relative;
  width:100%;
  z-index: 1;

  /* um respiro interno pro texto */
  padding: 46px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:40px;
  align-items:end;
}

.hero h1{
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -1px;
  margin:0 0 12px;
}

.hero p{
  margin:0 0 22px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(12,18,32,.82);
  max-width: 52ch;
}

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ===========================
   SEÇÕES
   =========================== */

.section{ padding: 78px 0; }

.section-title{
  font-size: clamp(34px, 3.4vw, 54px);
  letter-spacing:-.8px;
  margin:30px 0 18px;
}

.section-subtitle{
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #0f172a;
}

.section-lead{
  font-size: 20px;
  line-height: 1.65;
  color: rgba(12,18,32,.85);
  max-width: 78ch;
}

.center{ text-align:center; }

/* ===========================
   MOSAIC
   =========================== */

.mosaic{ padding: 0; }
.mosaic-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.mosaic-item{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.mosaic-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(79,70,229,.25),
    rgba(79,70,229,.45)
  );
  pointer-events: none;
}

.mosaic-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .4s ease;
}
.mosaic-item:hover img{ transform: scale(1.04); }

/* ===========================
   SPLIT / CARD
   =========================== */

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items:center;
}

.card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===========================
   SERVICES
   =========================== */

.services{ background: #e7e5ea; }

.services-grid{
  margin-top: 34px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 54px;
}

.service{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items:start;
}

.service .icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(0,0,0,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
}

.service .icon svg{
  width: 26px;
  height: 26px;
  display:block;
  color: var(--accent); /* sólido roxo */
}

.service h3{ margin:0 0 8px; font-size: 24px; }
.service p{ margin:0; color: rgba(12,18,32,.74); line-height:1.6; }

/* ===========================
   CAROUSEL
   =========================== */

.carousel-wrap{
  margin-top: 26px;
  position:relative;
}

/* janela com altura fixa (evita "slide gigante") */
.carousel{
  display:flex;
  gap: 22px;
  overflow:hidden;
  scroll-behavior:smooth;
  padding: 10px 0;

  height: clamp(420px, 62vh, 620px);
}

.carousel-slide{
  flex: 0 0 66%;
  height: 100%;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 44px rgba(12,18,32,.12);
  background: #fff;
  padding: 10px;
}

.carousel-click{
  width:100%;
  height:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor: zoom-in;

  display:flex;
  align-items:center;
  justify-content:center;
}

.carousel-click img{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position:center;
  background: #fff;
  border-radius: 14px;
}

/* NAV (posicionamento dos botões) */
.carousel-nav{
  position:absolute;
  inset: 0;
  pointer-events:none;
}

/* Botões: seta sólida (não círculo) e meio dentro/meio fora */
.carousel-btn{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;

  border: none;
  background: transparent;
  cursor:pointer;
  z-index: 10;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* área clicável maior, mas visual só a seta */
.carousel-btn::before{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 12px 28px rgba(12,18,32,.18);
  opacity: 0;
  transition: opacity .18s ease;
}

/* SVG seta sólida preta */
.carousel-btn svg{
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #000;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
  position: relative;
}

.carousel-btn:hover::before{ opacity: 1; }
.carousel-btn:hover{ transform: translateY(-50%) scale(1.06); }
.carousel-btn:active{ transform: translateY(-50%) scale(.97); }

/* metade dentro/metade fora */
.carousel-btn.prev{ left: -18px; }
.carousel-btn.next{ right: -18px; }

/* ===========================
   LIGHTBOX
   =========================== */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.lightbox.is-open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
}

.lightbox-panel{
  position: absolute;
  inset: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 18px;
}

.lightbox-figure{
  margin:0;
  width: min(1200px, 96vw);
  height: min(82vh, 900px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.lightbox-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.lightbox-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.lightbox-close svg{
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
}

.lightbox-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.28);
  box-shadow: 0 14px 30px rgba(0,0,0,.26);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, background .18s ease;
}

.lightbox-arrow svg{
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-arrow:hover{ background: rgba(0,0,0,.40); }
.lightbox-arrow:active{ transform: translateY(-50%) scale(.98); }

.lightbox-arrow.prev{ left: 14px; }
.lightbox-arrow.next{ right: 14px; }

/* ===========================
   CTA / FOOTER
   =========================== */

.cta{
  text-align:center;
  padding: 92px 0 110px;
}

.cta h2{
  margin:0 0 10px;
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing:-.8px;
}

.cta p{
  margin:0 auto 22px;
  max-width: 70ch;
  color: rgba(12,18,32,.78);
  font-size: 18px;
  line-height:1.6;
}

.footer{
  padding: 28px 0 48px;
  border-top: 1px solid rgba(0,0,0,.08);
  color: rgba(12,18,32,.65);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.small{ font-size: 14px; }

/* ===========================
   RESPONSIVO
   =========================== */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }

  .mosaic-grid{ grid-template-columns: 1fr 1fr; }
  .carousel-slide{ flex-basis: 88%; }
  .carousel{ height: clamp(340px, 55vh, 520px); }
}

@media (max-width: 560px){
  :root{
    --header-h: 78px;
    --header-h-small: 60px;
    --logo-h: 46px;
    --logo-h-small: 38px;
  }

  .container{ width: calc(100% - 28px); }
  .nav{ gap:10px; }
  .btn{ padding:9px 12px; }

  .mosaic-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }

  /* botões do carrossel um pouco menos pra fora no mobile */
  .carousel-btn.prev{ left: -10px; }
  .carousel-btn.next{ right: -10px; }
}

/* Hero: no celular, conteúdo alinhado no rodapé */
@media (max-width: 560px){
  .hero{
    min-height: 100svh;                /* melhor que 100vh no mobile (Safari) */
    padding-top: 0;                    /* evita empurrar o conteúdo pra baixo */
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    align-items: flex-end;             /* joga o hero-content pro “rodapé” */
  }

  .hero-content{
    width: 100%;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom));
    /* se quiser o texto mais “colado” ainda, diminua o padding acima */
  }

  /* se seu hero-grid estiver em 1 coluna no mobile, mantém tudo alinhado embaixo */
  .hero-grid{
    align-items: end;
  }
}

/* ===========================
   CARROSSEL → GALERIA MOBILE
   =========================== */

@media (max-width: 768px){

  .carousel{
    display: block;
    height: auto !important;
    overflow: visible;
  }

  .carousel-slide{
    flex: none;
    width: 100%;
    height: auto;
    margin-bottom: 22px;
    padding: 0;
  }

  .carousel-click{
    height: auto;
    display: block;
  }

  .carousel-click img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,.15);
  }

  /* some com as setas no mobile */
  .carousel-btn{
    display: none !important;
  }

  /* some com a navegação do carrossel */
  .carousel-nav{
    display: none;
  }
}
.no-scroll { overflow: hidden !important; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.lightbox.is-open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}

.lightbox-panel{
  position:absolute;
  inset: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-figure{
  margin:0;
  width: min(1200px, 96vw);
  height: min(86vh, 900px);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.lightbox-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

@media (max-width: 560px){
  .lightbox-panel{ inset: 10px; }
  .lightbox-close{ width: 40px; height: 40px; }
}

/* ===========================
   Lightbox: aumentar área clicável do botão fechar (mobile)
   =========================== */

.lightbox-close{
  /* mantém o visual, mas dá um target maior */
  width: 56px;
  height: 56px;
  top: 16px;
  right: 16px;

  /* garante que fica acima da imagem */
  z-index: 10;

  /* melhora toque no iOS */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* aumenta o "hit area" sem aumentar o botão visualmente */
.lightbox-close::before{
  content: "";
  position: absolute;
  inset: -14px;          /* <<< aumenta a área clicável */
  border-radius: 999px;
  background: transparent;
}

/* evita o svg “roubar” clique */
.lightbox-close svg{
  pointer-events: none;
}

/* no mobile, deixa ainda mais confortável */
@media (max-width: 768px){
  .lightbox-close{
    width: 60px;
    height: 60px;
    top: 12px;
    right: 12px;
  }
  .lightbox-close::before{
    inset: -18px;
  }
}
