/* MARANTIS — Elegant legal / compliance website
   Tema: Branco + Azul (ajustado completo)
   Fonte: Libre Baskerville
*/

/* ===== FONTE (LIBRE BASKERVILLE) ===== */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");

/* ===== THEME (BRANCO + AZUL) ===== */
:root{
  --bg:#ffffff;
  --bg2:#f5f8ff;

  --card: rgba(0,94,255,.06);
  --card2: rgba(0,94,255,.10);

  --line: rgba(0,94,255,.18);
  --line2: rgba(0,94,255,.28);

  --text:#0f172a;           /* azul bem escuro (quase preto) */
  --muted: rgba(15,23,42,.72);
  --muted2: rgba(15,23,42,.52);

  --accent:#005eff;
  --accent2:#003bb5;

  --shadow: 0 20px 60px rgba(2, 12, 27, .10);
  --shadow2: 0 10px 24px rgba(2, 12, 27, .10);

  --radius: 22px;
  --radius2: 14px;
  --max: 1200px;

  --topbar-h: 78px;
}

*{box-sizing:border-box}
html,body{height:100%}

/* ===== BODY / FUNDO CLARO ===== */
body{
  margin:0;
  font-family: "Libre Baskerville", ui-serif, Georgia, "Times New Roman", Times, serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(0,94,255,.10), transparent 60%),
    radial-gradient(700px 400px at 90% 20%, rgba(0,94,255,.08), transparent 55%),
    radial-gradient(900px 700px at 80% 100%, rgba(0,94,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button{font:inherit}

.container{max-width:var(--max); margin:0 auto; padding:0 22px}
.section{padding:72px 0}
.section.tight{padding:52px 0}
.section-header{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:26px}
.kicker{
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--muted2);
}
.h2{
  margin:8px 0 0;
  font-weight:700;
  font-size:36px;
  line-height:1.15;
}
.p{color:var(--muted); line-height:1.7; margin:12px 0 0}

/* ===== HEADER / NAV (BRANCO) ===== */
.topbar{
  position:sticky; top:0; z-index:2000;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex; align-items:center; gap:12px;
}

.brand-mark{
  width:36px !important;
  height:36px !important;
  border-radius:12px !important;

  background: rgba(0,94,255,.06)
    url("/assets/img/favicon.ico")
    no-repeat !important;

  background-size: 150% !important;
  background-position: center center !important;

  border:1px solid var(--line) !important;
}

.brand-name{font-weight:800; letter-spacing:.08em;}
.brand-sub{font-size:12px; color:var(--muted2); margin-top:2px}
.brand-text{display:flex; flex-direction:column; line-height:1}

.navlinks{display:flex; align-items:center; gap:18px}
.navlinks a{
  color:var(--muted);
  padding:10px 10px;
  border-radius:12px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease;
}
.navlinks a:hover{
  color:var(--accent);
  background: rgba(0,94,255,.08);
  transform: translateY(-1px);
}
.navlinks a.active{
  color:var(--accent2);
  background: rgba(0,94,255,.12);
  border:1px solid rgba(0,94,255,.25);
}

/* CTA do topo (azul) */
.cta{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,94,255,.35);
  background:
    radial-gradient(120px 60px at 30% 20%, rgba(0,94,255,.18), transparent 70%),
    linear-gradient(135deg, rgba(0,94,255,.18), rgba(255,255,255,.85));
  color:var(--accent2);
  box-shadow: var(--shadow2);
  transition: transform .2s ease, border .2s ease, background .2s ease;
}
.cta:hover{
  transform: translateY(-2px);
  border-color: rgba(0,94,255,.55);
}

.menu-btn{
  display:none;
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,94,255,.06);
  color:var(--text);
}

.mobile-panel{
  display:none;
  padding: 0 0 16px;
}
.mobile-panel a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  color:var(--muted);
}
.mobile-panel a:hover{background: rgba(0,94,255,.08); color:var(--accent2)}

/* ===== HERO ===== */
.hero{ padding: 34px 0 42px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}

.hero-card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(0,94,255,.04));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.hero-copy{ padding: 34px 34px 28px; }

.hero-title{
  margin:10px 0 0;
  font-size: 44px;
  line-height:1.08;
  letter-spacing: -0.02em;
  font-weight: 700; /* serif fica melhor sem 800 */
}
.hero-title .gold{color: var(--accent)}
.hero-sub{
  margin:14px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
  max-width: 62ch;
}

.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--text);
  transition: transform .2s ease, background .2s ease, border .2s ease, color .2s ease;
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(0,94,255,.06);
  border-color: rgba(0,94,255,.30);
  color: var(--accent2);
}
.btn.primary{
  border-color: rgba(0,94,255,.45);
  background:
    radial-gradient(120px 60px at 30% 20%, rgba(0,94,255,.20), transparent 70%),
    linear-gradient(135deg, rgba(0,94,255,.18), rgba(255,255,255,.92));
  color: var(--accent2);
}

.hero-meta{display:flex; gap:16px; flex-wrap:wrap; margin-top:22px}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,94,255,.06);
  color: var(--muted);
  font-size:13px;
}

.dot{
  width:8px; height:8px; border-radius:99px;
  background: rgba(0,94,255,.90);
  box-shadow: 0 0 0 4px rgba(0,94,255,.15);
}

/* ===== SLIDER ===== */
.hero-slider{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.slider{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(0,94,255,.04);
  min-height: 360px;
}

.slide{
  position:absolute; inset:0;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .9s ease;
}

.slide.active{ opacity:1; transform: scale(1.0); }

.slide::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,20,50,.55), rgba(0,20,50,.10) 55%, rgba(0,20,50,.55));
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(.98) contrast(1.02);
}

.slider-controls{
  position:absolute;
  left:12px; right:12px; bottom:12px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  z-index:3;
}

.ctrl{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.18);
  color: #ffffff;
  padding:10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.ctrl:hover{transform: translateY(-1px); background: rgba(255,255,255,.26)}

.dots{display:flex; gap:8px; align-items:center}
.dots button{
  width:10px; height:10px; border-radius:99px;
  border:none; cursor:pointer;
  background: rgba(255,255,255,.45);
  transition: transform .2s ease, background .2s ease;
}
.dots button.active{background: rgba(0,94,255,.95); transform: scale(1.15)}

/* ===== GRID / CARDS ===== */
.grid{ display:grid; gap:16px; }
.grid.cols-2{grid-template-columns: repeat(2, 1fr)}
.grid.cols-3{grid-template-columns: repeat(3, 1fr)}
.grid.cols-4{grid-template-columns: repeat(4, 1fr)}

.card{
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(0,94,255,.04));
  box-shadow: 0 12px 30px rgba(2,12,27,.10);
  padding:18px;
  position:relative;
  overflow:hidden;
  transition: transform .25s ease, border .25s ease, background .25s ease, box-shadow .25s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:180px; height:180px;
  background: radial-gradient(circle at 30% 30%, rgba(0,94,255,.16), transparent 62%);
  transform: rotate(20deg);
  pointer-events:none;
}

.card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,94,255,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(0,94,255,.06));
  box-shadow: 0 24px 60px rgba(2,12,27,.14);
}

.card h3{margin:0; font-size:16px; letter-spacing:.02em}
.card p{margin:10px 0 0; color:var(--muted); line-height:1.65; font-size:14px}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,94,255,.30);
  background: rgba(0,94,255,.10);
  color: var(--accent2);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* ===== LISTAS / CHECK ===== */
.list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.list li{
  display:flex; gap:10px; align-items:flex-start;
  color: var(--muted);
  line-height:1.55;
  font-size:14px;
}

.check{
  width:18px; height:18px;
  border-radius:6px;
  border:1px solid rgba(0,94,255,.35);
  background: rgba(0,94,255,.10);
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:2px;
  flex:0 0 auto;
}
.check svg{width:12px; height:12px; fill: rgba(0,94,255,.95)}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}

/* SOBRE: bloco da imagem */
.image-slot{
  min-height: unset;
  height: 320px;
}

.image-slot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot .hint{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:10px;
  color: var(--muted2);
  text-align:center;
  padding:24px;
}
.image-slot .hint strong{color: var(--text)}
.image-slot img{width:100%; height:100%; object-fit:cover}

.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 28px 0;
}

/* ===== PRICING ===== */
.pricing{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}

.price{ padding:20px; }
.price .title{display:flex; justify-content:space-between; align-items:center; gap:10px}
.price .title h3{margin:0}
.price .tag{font-size:12px; color:var(--muted2)}
.price ul{margin:14px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.price li{color:var(--muted); line-height:1.55; font-size:14px}

/* ===== FOOTER (CLARO) ===== */
.footer{
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,94,255,.04);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap:18px;
}

.footer h4{
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted2);
}

.footer a{color:var(--muted)}
.footer a:hover{color:var(--accent2)}
.footer p{margin:10px 0 0; color:var(--muted); line-height:1.7; font-size:14px}
.small{margin-top:26px; color:var(--muted2); font-size:12px}

.social{display:flex; gap:10px; margin-top:14px}
.iconbtn{
  width:40px; height:40px;
  border-radius:14px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  background: rgba(0,94,255,.06);
  transition: transform .2s ease, background .2s ease, border .2s ease;
}
.iconbtn:hover{
  transform: translateY(-2px);
  background: rgba(0,94,255,.10);
  border-color: rgba(0,94,255,.30);
}
.iconbtn svg{width:18px; height:18px; fill: var(--accent2)}

/* ===== FORM ===== */
.form{ display:grid; gap:12px; }

.input, .textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding:12px 14px;
  outline:none;
  transition: border .2s ease, background .2s ease;
}

.input:focus, .textarea:focus{
  border-color: rgba(0,94,255,.55);
  background: rgba(0,94,255,.05);
}

.textarea{min-height:130px; resize:vertical}
.note{color:var(--muted2); font-size:12px; line-height:1.6}

/* ===== TOAST ===== */
.toast{
  position:fixed;
  right:18px; bottom:18px;
  width:min(360px, calc(100% - 36px));
  padding:14px 14px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  display:none;
  z-index:100;
}
.toast strong{display:block; margin-bottom:6px}
.toast p{margin:0; color:var(--muted); line-height:1.6; font-size:13px}

.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .slider{min-height: 300px}
  .grid.cols-4{grid-template-columns: repeat(2, 1fr)}
  .grid.cols-3{grid-template-columns: repeat(2, 1fr)}
  .split{grid-template-columns: 1fr}
  .pricing{grid-template-columns: repeat(2, 1fr)}
  .footer-grid{grid-template-columns: 1fr 1fr}
  .navlinks{display:none}
  .menu-btn{display:inline-flex; align-items:center; justify-content:center}
  .mobile-panel{display:block}
}
@media (max-width: 560px){
  .hero-title{font-size: 36px}
  .grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns: 1fr}
  .pricing{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
}

/* ===== V4: Hero full background slider with text overlay ===== */
.hero-full{padding: 34px 0 34px;}
.hero-bg{
  position:relative;
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: rgba(0,94,255,.04);
}

.hero-slider-bg{
  min-height: 520px;
  border-radius: var(--radius);
  border:none;
}

/* overlay forte p/ legibilidade */
.hero-slider-bg .slide::after{
  background:
    linear-gradient(90deg, rgba(0,20,50,.75), rgba(0,20,50,.25) 58%, rgba(0,20,50,.70)),
    linear-gradient(180deg, rgba(0,20,50,.25), rgba(0,20,50,.65));
}

.hero-overlay{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  padding: 34px;
  pointer-events:none;
}
.hero-overlay-inner{
  pointer-events:auto;
  max-width: 640px;
}
.hero-overlay .hero-title{font-size: 48px;}
.hero-overlay .hero-sub{font-size: 16px;}

.hero-bg .slider-controls{left:16px; right:16px; bottom:16px;}

@media (max-width: 980px){
  .hero-overlay{padding: 22px;}
  .hero-slider-bg{min-height: 460px;}
  .hero-overlay .hero-title{font-size: 40px;}
}
@media (max-width: 560px){
  .hero-slider-bg{min-height: 420px;}
  .hero-overlay .hero-title{font-size: 34px;}
}

/* ===== V5: Home hero only (text over slider), header visible ===== */
.hero-overlay-center{
  justify-content:center;
  text-align:center;
}
.hero-overlay-center .hero-overlay-inner{ max-width: 900px; }
.hero-overlay-center .kicker{ margin: 0 auto; }

.hero-overlay-center .hero-title{
  margin-top: 12px;
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.hero-overlay-center .hero-sub{
  margin: 16px auto 0;
  max-width: 60ch;
  color: rgba(255,255,255,.88);
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.no-controls .slider-controls{display:none !important;}

/* ===== V11: Correções de navegação e imagens ===== */
html, body { height: 100%; }
body{
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}
main{ flex: 1 0 auto; }
.footer{
  flex-shrink:0;
  width:100%;
  margin-top:auto;
  padding: 30px 0;
  overflow:hidden;
}
.footer .container{ width:min(1160px, 92vw); margin:0 auto; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap:24px; align-items:flex-start; }
@media (max-width: 980px){
  .footer{ padding: 22px 0; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Evita "bolas" e elementos vazando de containers de imagem */
.image-slot{
  overflow:hidden;
  border-radius: 22px;
  border: 1px dashed var(--line2);
  background: rgba(0,94,255,.03);
}
.image-slot img{ display:block; width:100%; height:100%; object-fit:cover; }

/* ===== V12: Home com 1 hero (slider único) + Sobre sem vazamento ===== */
.hero-bleed{ padding: 34px 0 34px; position:relative; }
.hero-slider-full{
  min-height: 640px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: rgba(0,94,255,.04);
}
.hero-slider-full .slide::after{
  background:
    linear-gradient(90deg, rgba(0,20,50,.70), rgba(0,20,50,.20) 58%, rgba(0,20,50,.62)),
    linear-gradient(180deg, rgba(0,20,50,.22), rgba(0,20,50,.62));
}
.hero-bleed .hero-overlay{ position:absolute; inset:0; }
.hero-bleed .container{ position:relative; }
.hero-bleed .hero-overlay-center{ justify-content:center; text-align:center; padding: 34px; }
.hero-bleed .hero-overlay-inner{ max-width: 900px; }
.no-controls .slider-controls{ display:none !important; }

/* Segurança extra: qualquer card com imagem não deixa nada vazar */
.hero-card, .card, .image-slot{ overflow:hidden; }

/* ===== V14: Header fixo/visível + slider evidente ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 2000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}

main{ padding-top: 10px; }

@media (max-width: 720px){
  :root{ --topbar-h: 70px; }
}
