/* ============================================================
   Milton Vieira — Site de Campanha
   Convertido fielmente a partir do PSD original (1920×4334)
   ============================================================ */

:root{
  --blue-bright:   #0a6fd8;
  --blue-mid:      #0b5cc4;
  --blue-navy:     #0a3a68;
  --blue-deep:     #06213e;
  --blue-footer:   #0a2749;
  --blue-label:    #004995;
  --light-blue:    #53a4ff;
  --yellow:        #ffcb22;
  --green-whats:   #22c35e;
  --green-whats-2: #1ea952;
  --bg-light:      #fafafa;
  --ink:           #14181f;
  --ink-soft:      #4a5262;
  --white:         #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-script:  'Kaushan Script', cursive;

  --container: 1680px;
  --edge: clamp(20px, 5vw, 96px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
h1,h2,h3{ margin:0; }
section{ position: relative; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------------------------------- */
/* Scroll reveal (JS toggles .is-visible)                     */
/* ---------------------------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
}
.reveal[data-reveal="left"]{ transform: translateX(-40px); }
.reveal.is-visible{ opacity:1; transform: translate(0,0); }

.reveal-line{
  display:block;
  opacity:0;
  transform: translateY(22px);
  animation: line-in .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--d, 0s) + .15s);
}
@keyframes line-in{ to{ opacity:1; transform:translateY(0); } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--edge);
  display: flex;
  background: rgba(6, 26, 48, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled{
  background: rgba(6, 26, 48, 0.98);
  padding: 12px var(--edge);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.header-inner{
  width:100%;
  max-width: 1600px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.logo img{ height: 22px; width:auto; }

.main-nav{
  display:flex;
  gap: clamp(20px, 3vw, 44px);
  margin-left: auto;
  margin-right: 32px;
}
.main-nav a{
  color:#fff;
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 500;
  font-family: var(--font-body);
  opacity: .92;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background: var(--yellow);
  transition: width .25s ease;
}
.main-nav a:hover{ opacity:1; }
.main-nav a:hover::after{ width:100%; }

.btn-whats-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(180deg, var(--green-whats), var(--green-whats-2));
  color:#fff;
  font-weight:600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(34,195,94,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-whats-pill:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(34,195,94,.45); }
.btn-whats-pill:active{ transform: translateY(0); }

.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px; height:36px;
  background:none; border:none; cursor:pointer;
  padding:0;
}
.menu-toggle span{ display:block; height:2px; width:100%; background:#fff; border-radius:2px; transition:.3s; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, #0a6fd8 0%, #0b5cc4 45%, #06213e 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-photo-wrap{
  position: absolute;url(https://127.0.0.1:56106/static/artifacts/8e53e02c-f127-4fd4-a4d5-389bd36516b5/.user_uploaded/media_1788148039408.png?csrf%3Df16044c2-1187-4db0-af79-fb9b5ecb682f)
  inset: 0;
  width: min(60%, 1150px);
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 78%, transparent 100%);
}
.hero-photo{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 25% 40%;
  animation: ken-burns 22s ease-in-out infinite alternate;
}
@keyframes ken-burns{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.08) translate(-1%, -1%); }
}
.hero-content{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge) 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-title-img{
  max-width: 640px;
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-26px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}
.deco-strip{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: auto;
  z-index: 3;
  object-fit: cover;
}

@media (max-width: 860px){
  .hero{ min-height: 92vh; align-items: flex-end; padding-bottom: 64px; }
  .hero-photo-wrap{
    width: 100%;
    opacity: .36;
    mask-image: linear-gradient(180deg, black 40%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, black 40%, transparent 90%);
  }
  .hero-photo{ object-position: 50% 25%; }
  .hero-content{ justify-content: center; margin-left: 0; padding-bottom: 20px; }
  .hero-title-img{ max-width: 90vw; transform: none; }
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community{ background: var(--bg-light); padding: clamp(60px, 9vw, 130px) var(--edge); }
.community-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.community-photo-col{
  display: flex;
  justify-content: center;
}
.community-photo-col img{
  max-width: 80%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 45px -15px rgba(10,58,104,.3);
  transition: transform .5s ease;
}
.community-photo-col:hover img{ transform: scale(1.015) rotate(-0.3deg); }

.eyebrow{
  color: var(--blue-label);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 21px);
  margin: 0 0 14px;
  letter-spacing: .2px;
}
.community-text-col h2{
  font-size: clamp(1.6rem, 2.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -.2px;
}
.body-text{
  font-size: clamp(15px, 1.56vw, 30px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 46ch;
}
.btn-primary{
  display: inline-block;
  background: var(--blue-bright);
  color: #fff;
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 21px);
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 24px -6px rgba(10,111,216,.5);
}
.btn-primary:hover{ transform: translateY(-3px); background: var(--blue-mid); box-shadow: 0 16px 30px -8px rgba(10,111,216,.6); }

@media (max-width: 820px){
  .community-inner{ grid-template-columns: 1fr; }
  .community-photo-col{ order: -1; }
}

/* ============================================================
   LEGACY / 30 ANOS SECTION
   ============================================================ */
.legacy{
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px var(--edge);
}
.legacy-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
}
.legacy-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,28,.62), rgba(6,15,28,.88));
  z-index: 1;
}
.legacy-content{
  position: relative; z-index: 2;
  text-align: center;
  max-width: min(92vw, 1600px);
  margin: 0 auto;
}
.legacy-title{
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2.8rem, 7.2vw, 8.5rem);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: .5px;
}
.legacy-script{
  display: block;
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: none;
  font-size: 1.08em;
  margin-top: 4px;
}
.legacy-script .yellow{ color: #ffcb22; }
.legacy-script .blue{ color: #38bdf8; }

.legacy-buttons{
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(90vw, 560px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.glass-btn{
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 21px);
  padding: 16px 36px;
  border-radius: 999px;
  border: 1.8px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  letter-spacing: .3px;
  transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.glass-btn:hover{
  background: rgba(255,255,255,.22);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* ============================================================
   FINAL CTA (Arte Limpa do PSD sem botões)
   ============================================================ */
.final-cta{
  background: #1b60c9;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.final-banner-wrap{
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.final-banner-img{
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--blue-footer);
  padding: 40px var(--edge) 34px;
  text-align:center;
}
.footer-nav{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: clamp(18px, 4vw, 36px);
  margin-bottom: 22px;
}
.footer-nav a{
  color:#fff;
  font-weight:600;
  font-size: 14px;
  opacity:.92;
  transition: opacity .2s ease;
}
.footer-nav a:hover{ opacity:1; text-decoration: underline; text-underline-offset:4px; }
.footer-legal{
  color: rgba(255,255,255,.55);
  font-size: 11.5px;
  margin: 4px 0;
  letter-spacing: .2px;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whats-float{
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height:58px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green-whats), var(--green-whats-2));
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  box-shadow: 0 10px 26px rgba(34,195,94,.5);
  z-index: 90;
  animation: pulse-ring 2.6s ease-in-out infinite;
}
.whats-float:hover{ transform: scale(1.08); }
@keyframes pulse-ring{
  0%{ box-shadow: 0 10px 26px rgba(34,195,94,.5), 0 0 0 0 rgba(34,195,94,.5); }
  70%{ box-shadow: 0 10px 26px rgba(34,195,94,.5), 0 0 0 16px rgba(34,195,94,0); }
  100%{ box-shadow: 0 10px 26px rgba(34,195,94,.5), 0 0 0 0 rgba(34,195,94,0); }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 780px){
  .menu-toggle{ display:flex; order: 3; }
  .btn-whats-pill{ display:none; }
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--blue-deep);
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    gap: 30px;
    padding: 40px var(--edge);
    margin: 0;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
    z-index: 95;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 20px; }
}

/* ============================================================
   PROJETOS DE LEI / PROPOSTAS
   ============================================================ */
.projects-section{
  background: var(--white);
  padding: clamp(60px, 8vw, 120px) var(--edge);
}
.projects-container, .about-container{
  max-width: var(--container);
  margin: 0 auto;
}
.section-head{
  margin-bottom: clamp(30px, 4vw, 48px);
}
.section-title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  color: var(--blue-navy);
  line-height: 1;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.section-sub{
  font-size: clamp(15px, 1.2vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0;
}
.filter-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.filter-pill{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: var(--white);
  color: var(--blue-navy);
  cursor: pointer;
  transition: all .25s ease;
}
.filter-pill:hover{
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}
.filter-pill.active{
  background: var(--blue-navy);
  border-color: var(--blue-navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10,58,104,.2);
}
.proj-count{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.proj-grid{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.proj-card{
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.proj-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(10,58,104,.12);
  border-color: var(--blue-bright);
}
@media(min-width: 820px){
  .proj-card{ grid-template-columns: 1fr 1fr; }
}
.proj-tech{
  padding: clamp(20px, 2.5vw, 30px);
  background: var(--white);
}
.proj-impact{
  padding: clamp(20px, 2.5vw, 30px);
  background: #f4f8fc;
  border-top: 1px solid #e2e8f0;
}
@media(min-width: 820px){
  .proj-impact{ border-top: none; border-left: 1px solid #e2e8f0; }
}
.proj-tag-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.proj-pl{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: var(--blue-bright);
  letter-spacing: .3px;
}
.proj-cat{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(10,111,216,.1);
  color: var(--blue-bright);
  padding: 4px 12px;
  border-radius: 999px;
}
.proj-tech h4{
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  color: var(--blue-navy);
  margin: 0 0 10px;
  line-height: 1.3;
}
.proj-tech p{
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.proj-impact-label{
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #c49400;
  margin-bottom: 10px;
}
.proj-impact p{
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}
.proj-hidden{ display: none !important; }
.show-more-wrap{
  text-align: center;
  margin-top: 36px;
}

/* ============================================================
   QUEM SOU EU / SOBRE
   ============================================================ */
.about-section{
  background: var(--bg-light);
  padding: clamp(60px, 8vw, 120px) var(--edge);
}
.bio-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
@media(min-width: 860px){
  .bio-grid{ grid-template-columns: 0.85fr 1.15fr; }
}
.bio-photo-wrap{
  display: flex;
  justify-content: center;
}
.bio-photo{
  max-width: 440px;
  width: 100%;
  background: transparent;
  filter: drop-shadow(0 18px 32px rgba(6,33,62,.22));
}
.bio-text-wrap p{
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.bio-text-wrap strong{
  color: var(--blue-navy);
  font-weight: 700;
}
.bio-cta-wrap{
  margin-top: 30px;
}

