/* ==========================================================
   Instituições Positivas — theme.css (Premium System)
   Mobile-first | High-contrast | Refined spacing & typography
========================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --bg0:#070712;
  --bg1:#0b0b16;
  --bg2:#0f1022;

  --text:#F3F0FF;
  --muted:rgba(243,240,255,.74);

  --accent:#7c3aed;
  --accent2:#a855f7;

  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);

  --card:rgba(255,255,255,.045);
  --card2:rgba(255,255,255,.065);

  --shadow: 0 22px 70px rgba(0,0,0,.60);
  --shadow2: 0 14px 40px rgba(0,0,0,.42);

  --radius:16px;
  --radius2:22px;

  --max: 1160px;
  --pad: 18px;

  --h1: clamp(2.05rem, 4.4vw, 3.25rem);
  --h2: clamp(1.65rem, 3.2vw, 2.35rem);
  --p: 1.02rem;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height:1.55;
  letter-spacing:-0.012em;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(1100px 720px at 85% 10%, rgba(168,85,247,.12), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 35%, var(--bg2));
  overflow-x:hidden;
}

h1,h2,h3{ text-rendering:optimizeLegibility; }
p{ font-size:var(--p); color:rgba(243,240,255,.82); margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{
  left:16px; top:16px;
  background:#000; color:#fff;
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:12px 16px;
  border-radius: 999px;

  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: rgba(243,240,255,.92);

  font-weight: 800;
  letter-spacing:-0.01em;

  cursor:pointer;
  user-select:none;
  white-space:nowrap;

  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: var(--stroke2);
}
.btn:active{ transform: translateY(0); }
.btn:focus{
  outline:2px solid rgba(168,85,247,.50);
  outline-offset:2px;
}

.btn-primary{
  background:
    radial-gradient(120% 180% at 20% 10%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(135deg, rgba(124,58,237,.98), rgba(168,85,247,.78));
  border-color: rgba(168,85,247,.30);
  box-shadow: 0 18px 44px rgba(124,58,237,.26);
}
.btn-primary:hover{
  box-shadow: 0 24px 60px rgba(124,58,237,.32);
}

/* ---------- Header / Nav ---------- */
.nav{
  position:sticky;
  top:0;
  z-index:999;
  background: rgba(7,7,18,.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-logo{
  width:40px; height:40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  object-fit:cover;
  background: rgba(255,255,255,.04);
}
.mark{
  width:40px; height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(124,58,237,.98), rgba(168,85,247,.78));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(124,58,237,.20);
}
.brand .title{
  font-weight: 900;
  line-height:1.05;
  letter-spacing:-0.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand small{
  display:block;
  margin-top:2px;
  font-weight:700;
  font-size:.82rem;
  opacity:.70;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.menu{ display:none; }
.nav-cta{ display:none; }

.icon-only{
  width:44px; height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.icon-only:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.ico{ width:20px; height:20px; opacity:.92; }

.burger{
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.burger span{
  width:18px; height:2px;
  background: rgba(243,240,255,.92);
  position:relative;
  display:block;
}
.burger span::before,.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px; height:2px;
  background: rgba(243,240,255,.92);
}
.burger span::before{ top:-6px; }
.burger span::after{ top:6px; }

.mobile-menu{ display:none; padding:10px 0 14px; }
.mobile-menu.open{ display:block; }
.mobile-menu a{
  display:block;
  padding:14px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  margin-top:10px;
  font-weight:800;
  opacity:.94;
}
.mobile-menu a:hover{ background: rgba(255,255,255,.06); opacity:1; }

/* DESKTOP: remove lacuna (menu encosta no CTA) */
@media (min-width: 980px){
  :root{ --pad: 22px; }

  .nav-inner{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:18px;
  }

  .menu{
    display:flex;
    margin-left:auto;           /* empurra o menu para a direita */
    justify-content:flex-end;   /* não centraliza */
    gap:16px;
    font-weight:750;
    color: rgba(243,240,255,.84);
  }

  .menu a{
    padding:10px 12px;
    border-radius: 999px;
    opacity:.90;
    transition: background .16s ease, transform .16s ease, opacity .16s ease;
  }
  .menu a:hover{
    background: rgba(255,255,255,.06);
    transform: translateY(-1px);
    opacity:1;
  }

  .nav-cta{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left: 12px;          /* distância curta e elegante */
    justify-content:flex-end;
  }

  .burger, .mobile-menu{ display:none !important; }
}

/* ---------- Sections ---------- */
section{ padding: 82px 0; }
.section-head{ text-align:center; margin-bottom: 26px; }
.section-head h2{
  font-size: var(--h2);
  margin:0 0 10px;
  line-height:1.12;
  letter-spacing:-0.02em;
}
.lead{
  margin:0 auto;
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- HERO (desktop + mobile image option) ---------- */
.hero{
  position:relative;
  min-height: clamp(580px, 78vh, 920px);
  display:flex;
  align-items:center;
  padding: 110px 0 76px;
  overflow:hidden;
  isolation:isolate;
}

/* Background desktop */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.10) brightness(1.06);
  z-index:-2;
}

/* Overlay */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 620px at 20% 20%, rgba(124,58,237,.16), transparent 62%),
    radial-gradient(900px 620px at 80% 20%, rgba(168,85,247,.10), transparent 64%),
    linear-gradient(180deg, rgba(7,7,18,.10) 0%, rgba(7,7,18,.34) 45%, rgba(7,7,18,.88) 100%),
    linear-gradient(90deg, rgba(7,7,18,.46) 0%, rgba(7,7,18,.22) 55%, rgba(7,7,18,.10) 100%);
  z-index:-1;
}

/* Card */
.hero__content{
  width:100%;
  max-width: 760px;
  margin-left:auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 160% at 30% 10%, rgba(255,255,255,.10), transparent 50%),
    rgba(7,7,18,.44);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* Desktop: sobe levemente a copy */
@media (min-width: 980px){
  .hero__content{ transform: translateY(-10px); }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(243,240,255,.84);
  font-weight: 850;
  font-size: .92rem;
  letter-spacing:-0.01em;
}

.hero h1{
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing:-0.03em;
  margin: 14px 0 12px;
}
.sub{
  margin:0 0 18px;
  max-width: 62ch;
  color: rgba(243,240,255,.82);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Mobile: usa imagem exclusiva se existir, e melhora o foco */
@media (max-width: 520px){
  .hero{
    min-height: 660px;
    padding: 92px 0 56px;
    align-items:flex-end;
  }
  .hero::before{
    background-image: var(--hero-bg-mobile, var(--hero-bg));
    background-position: 22% center; /* melhor pra rostos */
  }
  .hero__content{
    margin-left:0;
    padding: 20px;
    border-radius: 22px;
    transform:none;
  }
}

/* ---------- Panels / About ---------- */
.panel{
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: var(--card);
  box-shadow: var(--shadow2);
}
.panel__inner{ padding:22px; }
.panel__inner p{
  margin:0 0 14px;
  color: rgba(243,240,255,.78);
  font-weight:650;
}
.panel__inner p:last-child{ margin-bottom:0; }

/* ---------- Services / Team ---------- */
.services-grid,
.team-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  margin-top: 18px;
}

.card,
.person{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 200% at 30% 0%, rgba(255,255,255,.06), transparent 45%),
    rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  padding: 18px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.card:hover,
.person:hover{
  transform: translateY(-2px);
  background:
    radial-gradient(120% 200% at 30% 0%, rgba(255,255,255,.08), transparent 45%),
    rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.16);
}

.card h3{
  margin:0 0 10px;
  font-size: 1.08rem;
  line-height:1.25;
  letter-spacing:-0.01em;
}
.card p{ margin:0; color: rgba(243,240,255,.74); font-weight:650; }

.person strong{
  display:block;
  font-size:1.06rem;
  letter-spacing:-0.01em;
}
.person span{
  display:block;
  margin-top:6px;
  color: rgba(243,240,255,.68);
  font-weight:750;
  font-size:.95rem;
}

@media (min-width: 900px){
  .services-grid{ grid-template-columns: repeat(3, 1fr); }
  .team-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contact ---------- */
.contact-form{
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 200% at 30% 0%, rgba(255,255,255,.06), transparent 45%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding: 18px;
  display:grid;
  gap:12px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(243,240,255,.92);
  outline:none;
  transition: border-color .16s ease, background .16s ease;
  font-weight:650;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(168,85,247,.46);
  background: rgba(0,0,0,.28);
}
.contact-form textarea{ min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.footer{
  padding: 52px 0 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.footer-top{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-mark{
  width:38px; height:38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.98), rgba(168,85,247,.78));
  border:1px solid rgba(255,255,255,.12);
}
.footer-brand strong{ letter-spacing:-0.01em; }
.footer-brand small{ display:block; opacity:.70; font-weight:700; margin-top:2px; }

.footer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footer-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight:800;
  opacity:.92;
}
.footer-link:hover{ opacity:1; background: rgba(255,255,255,.08); }
.footer-ico{ width:18px; text-align:center; opacity:.9; }

.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  padding:18px 0;
}

.footer-col h4{
  margin:0 0 10px;
  letter-spacing:-0.01em;
}
.footer-col p{
  margin:0;
  color: rgba(243,240,255,.70);
  font-weight:650;
}
.footer-col a{
  display:block;
  padding:6px 0;
  color: rgba(243,240,255,.84);
  font-weight:750;
}
.footer-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: rgba(243,240,255,.74);
  font-weight:650;
  padding:6px 0;
}

.footer-bottom{
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  color: rgba(243,240,255,.58);
  font-weight:700;
  font-size:.92rem;
}

@media (min-width: 980px){
  .footer-top{ flex-direction:row; align-items:center; justify-content:space-between; }
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce){
  .btn, .menu a, .icon-only, .card, .person{ transition:none; }
  .btn:hover, .menu a:hover, .icon-only:hover, .card:hover, .person:hover{ transform:none; }
}

/* ==========================================================
   Premium polish pack (append)
========================================================== */

/* More breathing room + section separation */
section{ padding: 96px 0; }
@media (max-width: 520px){ section{ padding: 74px 0; } }

.section-head{ margin-bottom: 34px; }
.section-head h2{ margin-bottom: 12px; }
.lead{ max-width: 68ch; opacity: .92; }

/* Subtle dividers */
.section-divider{
  height: 1px;
  width: min(980px, 100%);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

/* HERO: more premium card and composition */
.hero__content{
  border-radius: 30px;
  background:
    radial-gradient(130% 170% at 30% 8%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(7,7,18,.52), rgba(7,7,18,.36));
  border: 1px solid rgba(255,255,255,.12);
}

@media (min-width: 980px){
  .hero__content{ transform: translateY(-16px); }
}

/* Kicker refinement */
.kicker{
  padding: 10px 16px;
  border-color: rgba(255,255,255,.12);
}

/* Trust bullets under hero copy */
.trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.trust span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(243,240,255,.82);
  font-weight: 750;
  font-size: .92rem;
}
.trust .dot{
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(168,85,247,.9);
  box-shadow: 0 0 0 4px rgba(168,85,247,.15);
}

/* Cards: add icon zone + better hierarchy */
.card{
  padding: 20px;
  border-radius: 20px;
}
.card .icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(130% 160% at 30% 10%, rgba(255,255,255,.10), transparent 55%),
    rgba(255,255,255,.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
  margin-bottom: 12px;
  font-weight: 900;
}
.card h3{ font-size: 1.12rem; margin-bottom: 8px; }
.card p{ opacity:.92; }

/* Team: avatar placeholder */
.person{
  display:flex;
  gap:14px;
  align-items:center;
}
.avatar{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 160% at 30% 10%, rgba(255,255,255,.10), transparent 55%),
    rgba(255,255,255,.05);
  object-fit: cover;
  flex: 0 0 auto;
}


/* Contact: split layout (form + guarantees) */
.contact-wrap{
  max-width: 980px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 980px){
  .contact-wrap{ grid-template-columns: 1.2fr .8fr; align-items:start; }
}

.sidecard{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 200% at 30% 0%, rgba(255,255,255,.06), transparent 45%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.sidecard h4{
  margin:0 0 10px;
  letter-spacing:-0.01em;
}
.sidecard ul{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.sidecard li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: rgba(243,240,255,.78);
  font-weight: 650;
}
.badge{
  width: 22px; height:22px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  flex: 0 0 auto;
}

/* Local Map section container */
.map-shell{
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.04);
}
.map-shell iframe{
  width:100%;
  height: 380px;
  border:0;
  display:block;
}
@media (max-width: 520px){
  .map-shell iframe{ height: 320px; }
}
/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0,0,0,.55);
}
.whatsapp-float svg{
  width: 28px;
  height: 28px;
}

@media (max-width: 520px){
  .whatsapp-float{
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
/* ---------- Metrics ---------- */
.metrics-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  margin-top: 26px;
}
.metric{
  border-radius: 22px;
  padding: 22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 160% at 30% 10%, rgba(255,255,255,.08), transparent 55%),
    rgba(255,255,255,.04);
  box-shadow: 0 14px 38px rgba(0,0,0,.38);
}
.metric strong{
  display:block;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing:-0.02em;
  margin-bottom: 6px;
}
.metric span{
  color: rgba(243,240,255,.78);
  font-weight: 650;
}

@media (min-width: 980px){
  .metrics-grid{ grid-template-columns: repeat(4,1fr); }
}



