@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root{
  --navy-900:#171730;
  --blue-600:#3A65A9;
  --blue-300:#81B6E3;
  --teal-400:#66C5DF;
  --lime-400:#D4DB53;
  --slate-500:#5C6872;
  --gray-200:#D5D5D5;
  --white:#FFFFFF;

  --bg-page:var(--white);
  --bg-sunken:#F4F5F6;
  --bg-inverse:var(--navy-900);
  --surface:var(--white);
  --border:var(--gray-200);

  --text-primary:var(--navy-900);
  --text-on-dark:var(--white);
  --text-muted:var(--slate-500);
  --text-on-dark-muted:rgba(255,255,255,0.72);

  --font-display:'Baloo 2',ui-rounded,'Segoe UI',sans-serif;
  --font-sans:'Lato',Arial,sans-serif;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;
  --radius-sm:6px; --radius-md:10px; --radius-lg:16px; --radius-pill:999px;

  --shadow-card:0 4px 16px rgba(23,23,48,0.08);
  --shadow-elevated:0 12px 32px rgba(23,23,48,0.14);
  --container-max:1180px;

  color-scheme: light;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg-page);
  color:var(--text-primary);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-900);
  margin:0;
  text-wrap:balance;
}
p{margin:0;}
a{color:var(--blue-600);text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
:focus-visible{outline:3px solid var(--blue-300);outline-offset:2px;}

.wrap{max-width:var(--container-max);margin:0 auto;padding:0 var(--space-5);}
@media (min-width:900px){ .wrap{padding:0 var(--space-7);} }

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--lime-400);color:var(--navy-900);
  font-family:var(--font-sans);font-weight:900;font-size:12px;letter-spacing:0.06em;
  text-transform:uppercase;padding:6px 16px;border-radius:var(--radius-pill);
}
.eyebrow.on-light{background:rgba(58,101,169,0.1);color:var(--blue-600);}

/* ---------- Header ---------- */
header.site{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px var(--space-5);
  max-width:var(--container-max);margin:0 auto;
}
@media (min-width:900px){ .nav-row{padding:12px var(--space-7);} }
.logo-link{display:flex;align-items:center;gap:10px;padding:8px;margin:-8px;border-radius:var(--radius-md);}
.logo-mark{height:64px;width:auto;}
@media (min-width:900px){ .logo-mark{height:92px;} }
nav.links{display:none;gap:var(--space-6);align-items:center;font-weight:700;font-size:16.5px;}
@media (min-width:800px){ nav.links{display:flex;} }
nav.links a{color:var(--text-primary);border-bottom:2px solid transparent;padding-bottom:4px;transition:border-color .15s;}
nav.links a:hover, nav.links a.active{border-color:var(--lime-400);}
.nav-cta{display:none;}
@media (min-width:800px){ .nav-cta{display:inline-flex;} }

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-sans);font-weight:700;font-size:15px;letter-spacing:0.01em;
  padding:13px 28px;border-radius:var(--radius-pill);border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px);}
.btn-primary{background:var(--navy-900);color:var(--white);}
.btn-primary:hover{background:#232349;}
.btn-accent{background:var(--lime-400);color:var(--navy-900);}
.btn-accent:hover{box-shadow:0 8px 20px rgba(212,219,83,0.45);}
.btn-outline{background:transparent;border-color:var(--navy-900);color:var(--navy-900);}
.btn-outline:hover{background:rgba(23,23,48,0.06);}
.btn-outline-light{background:transparent;border-color:rgba(255,255,255,0.55);color:var(--white);}
.btn-outline-light:hover{background:rgba(255,255,255,0.1);}

/* hamburger */
.burger{display:flex;background:none;border:none;padding:8px;}
@media (min-width:800px){ .burger{display:none;} }
.burger svg{width:26px;height:26px;color:var(--navy-900);}
#mobile-menu{
  display:none;flex-direction:column;gap:2px;background:var(--white);
  border-top:1px solid var(--border);padding:var(--space-4) var(--space-5) var(--space-5);
}
#mobile-menu.open{display:flex;}
#mobile-menu a{padding:12px 4px;font-weight:700;color:var(--text-primary);border-bottom:1px solid var(--bg-sunken);}
#mobile-menu a.active{color:var(--blue-600);}
#mobile-menu .btn{margin-top:10px;}

/* ---------- Hero (home) ---------- */
.hero{
  position:relative;overflow:hidden;
  background:var(--navy-900);color:var(--white);
  padding:var(--space-7) 0 var(--space-8);
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(115deg, rgba(23,23,48,0.94) 30%, rgba(23,23,48,0.72) 100%), var(--hero-pattern);
  background-size:cover;background-position:center;
  opacity:0.9;
}
.hero-inner{position:relative;display:flex;flex-direction:column;gap:var(--space-6);}
.hero-copy{display:flex;flex-direction:column;gap:var(--space-6);max-width:920px;}
.hero h1{
  color:var(--white);font-size:clamp(32px,4.8vw,52px);line-height:1.1;font-weight:700;
  max-width:900px;
}
.hero p.lead{
  color:var(--text-on-dark-muted);font-size:19px;max-width:640px;margin-top:var(--space-3);
}
.hero-ctas{display:flex;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-2);}

/* ---------- Stats strip (dark extension of the hero) ---------- */
.stats-strip{
  position:relative;overflow:hidden;background:var(--navy-900);
  padding:var(--space-7) 0;
}
.stats-strip::before{
  content:"";position:absolute;inset:0;
  background-image:var(--hero-pattern);background-size:cover;background-position:center;
  opacity:0.05;pointer-events:none;
}
.stats-strip-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);}
.stat-block{
  padding:0 var(--space-6);display:flex;flex-direction:column;gap:10px;
  transition:transform .2s ease;
}
.stat-block:hover{transform:translateY(-4px);}
.stat-block:first-child{padding-left:0;}
@media (min-width:761px){
  .stat-block:not(:first-child){border-left:1px solid rgba(255,255,255,0.14);}
}
.stat-bar{width:32px;height:4px;border-radius:2px;background:var(--accent,var(--lime-400));}
.stat-num{
  font-family:var(--font-display);font-size:clamp(38px,4.4vw,52px);line-height:1;
  color:var(--accent,var(--lime-400));font-variant-numeric:tabular-nums;
}
.stat-label{font-size:14px;color:var(--text-on-dark-muted);max-width:240px;}
@media (max-width:760px){
  .stats-strip-grid{grid-template-columns:1fr;gap:var(--space-6);}
  .stat-block{padding:0;}
  .stat-block:not(:first-child){border-left:none;border-top:1px solid rgba(255,255,255,0.14);padding-top:var(--space-5);}
}

/* ---------- Client logo strip ---------- */
.logo-strip{background:var(--bg-sunken);padding:var(--space-8) 0;border-bottom:1px solid var(--border);}
.logo-strip-label{
  font-size:12.5px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:var(--space-5);
}
.logo-strip-track{
  overflow-x:hidden;overflow-y:visible;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.logo-strip-row{display:flex;align-items:center;gap:var(--space-8);width:max-content;animation:logo-scroll 34s linear infinite;}
.logo-pill{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);height:152px;width:168px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;padding:6px;
  overflow:visible;
}
.logo-pill img{
  max-height:132px;max-width:240px;width:auto;height:auto;object-fit:contain;
  filter:grayscale(1);opacity:0.72;transition:filter .2s ease,opacity .2s ease;
}
.logo-pill:hover img{filter:grayscale(0);opacity:1;}
.logo-pill:hover{z-index:2;}
.logo-pill img.logo-sm{max-height:46px;max-width:140px;}
.logo-pill img.logo-md{max-height:104px;max-width:210px;}
@keyframes logo-scroll{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .logo-strip-row{animation:none;flex-wrap:wrap;width:auto;} }

/* ---------- Page header (subpages) ---------- */
.page-header{
  position:relative;overflow:hidden;background:var(--navy-900);color:var(--white);
  padding:var(--space-7) 0 var(--space-8);
}
.page-header::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(115deg, rgba(23,23,48,0.94) 30%, rgba(23,23,48,0.78) 100%), var(--hero-pattern);
  background-size:cover;background-position:center;opacity:0.9;
}
.page-header-inner{position:relative;max-width:920px;}
.page-header h1{color:var(--white);font-size:clamp(32px,4.8vw,52px);margin-top:var(--space-4);max-width:900px;line-height:1.1;}
.page-header p{color:var(--text-on-dark-muted);font-size:19px;margin-top:var(--space-3);max-width:640px;}
.crumb{font-size:13px;color:var(--text-on-dark-muted);}
.crumb a{color:var(--white);font-weight:700;}
.crumb span{margin:0 6px;opacity:0.6;}

/* ---------- Section shells ---------- */
section{padding:var(--space-9) 0;}
.section-head{max-width:640px;margin-bottom:var(--space-7);}
.section-head h2{font-size:clamp(28px,3.4vw,38px);margin-top:var(--space-3);}
.section-head p{color:var(--text-muted);margin-top:var(--space-3);font-size:17px;}
.section-sunken{background:var(--bg-sunken);}
.section-dark{background:var(--navy-900);color:var(--white);}
.section-dark .section-head h2{color:var(--white);}
.section-dark .section-head p{color:var(--text-on-dark-muted);}

/* ---------- Service cards (home teaser) ---------- */
.grid-services{display:grid;grid-template-columns:1fr;gap:var(--space-5);}
@media (min-width:700px){ .grid-services{grid-template-columns:repeat(2,1fr);} }
.service-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-elevated);}
.service-card-img{height:148px;background-size:cover;background-position:center;position:relative;}
.service-card-img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(23,23,48,0.05),rgba(23,23,48,0.32));
}
.service-icon{
  width:52px;height:52px;border-radius:var(--radius-md);
  background:var(--white);color:var(--blue-600);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  position:relative;z-index:2;margin:-26px 0 0 20px;
  box-shadow:var(--shadow-card);
}
.service-icon svg{width:26px;height:26px;}
.service-card-body{padding:14px 24px 24px;display:flex;flex-direction:column;gap:var(--space-3);}
.service-card h3{font-size:21px;}
.service-card p{color:var(--text-muted);font-size:15.5px;}
.services-more{margin-top:var(--space-6);}

/* ---------- Service detail sections (o-que-fazemos page) ---------- */
.service-detail-list{display:flex;flex-direction:column;}
.service-detail{padding:var(--space-8) 0;border-bottom:1px solid var(--border);}
.service-detail:last-child{border-bottom:none;}
.service-detail-top{
  display:grid;grid-template-columns:1fr;gap:var(--space-6);align-items:center;
}
@media (min-width:900px){ .service-detail-top{grid-template-columns:1fr 380px;} }
.service-detail-photo{
  height:240px;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
  background-size:cover;background-position:center;
}
.service-detail-num{
  font-family:var(--font-display);color:var(--gray-200);font-size:15px;font-weight:700;
  letter-spacing:0.04em;margin-bottom:var(--space-2);text-transform:uppercase;
}
.service-detail h3{font-size:clamp(24px,3vw,32px);margin-bottom:var(--space-3);}
.service-detail-lead{color:var(--text-muted);font-size:18px;line-height:1.6;max-width:680px;}

/* Process / timeline */
.process{margin-top:var(--space-7);}
.process-grid{
  display:grid;
  grid-template-columns:repeat(var(--cols,4),minmax(190px,1fr));
  grid-template-rows:auto auto;
  column-gap:var(--space-5);row-gap:0;
  overflow-x:auto;padding-bottom:var(--space-2);
}
.process-card{
  grid-row:1;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);padding:var(--space-5);height:100%;
}
.process-card h4{font-family:var(--font-display);color:var(--blue-600);font-size:16px;line-height:1.3;margin-bottom:var(--space-2);}
.process-card p{color:var(--text-muted);font-size:13.5px;line-height:1.55;}
.process-connector{grid-row:2;position:relative;display:flex;flex-direction:column;align-items:center;padding-top:var(--space-5);}
.process-connector::before{
  content:"";position:absolute;top:calc(var(--space-5) + 6px);left:-12px;right:-12px;height:2px;background:var(--border);
}
.process-connector:first-child::before{left:50%;}
.process-connector:last-child::before{right:50%;}
.process-dot{width:14px;height:14px;border-radius:50%;background:var(--blue-600);position:relative;z-index:1;box-shadow:0 0 0 4px var(--white);}
.process-label{margin-top:var(--space-2);font-weight:700;font-size:13px;color:var(--navy-900);text-align:center;}

/* ---------- Why us ---------- */
.why-text{display:flex;flex-direction:column;gap:var(--space-5);max-width:760px;}
.why-text p{color:var(--text-on-dark-muted);font-size:19px;line-height:1.65;}
.why-text p b{color:var(--white);font-weight:700;}

/* ---------- Testimonials ---------- */
.grid-testi{display:grid;grid-template-columns:1fr;gap:var(--space-5);align-items:start;}
@media (min-width:760px){ .grid-testi{grid-template-columns:repeat(3,1fr);} }
.testi-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:var(--space-6);box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:var(--space-5);
}
.testi-quote{font-size:15px;color:var(--text-primary);line-height:1.65;}
.testi-quote::before{content:"\201C";color:var(--blue-300);font-family:var(--font-display);font-size:32px;line-height:0;display:inline-block;vertical-align:-6px;margin-right:2px;}
.testi-person{display:flex;align-items:center;gap:12px;margin-top:auto;}
.avatar{
  width:44px;height:44px;border-radius:50%;background:var(--navy-900);color:var(--white);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;
  flex-shrink:0;font-size:15px;
}
.testi-person b{display:block;font-size:14.5px;color:var(--navy-900);}
.testi-person span{display:block;font-size:13px;color:var(--text-muted);}

/* ---------- Team ---------- */
.grid-team{display:grid;grid-template-columns:1fr;gap:var(--space-6);}
@media (min-width:640px){ .grid-team{grid-template-columns:repeat(2,1fr);} }
.team-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);text-align:left;
  display:flex;flex-direction:column;padding:var(--space-6);
}
.team-photo{
  position:relative;width:112px;height:112px;border-radius:var(--radius-lg);overflow:hidden;
  background:linear-gradient(160deg,var(--navy-900) 0%,#232349 100%);
  margin-bottom:var(--space-4);flex-shrink:0;
}
.team-photo img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center top;
}
.team-body{display:flex;flex-direction:column;gap:var(--space-1);flex:1;}
.team-card h3{font-size:20px;}
.team-role{color:var(--blue-600);font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:0.04em;margin-top:2px;}
.team-card p.bio{color:var(--text-muted);font-size:14.5px;margin-top:var(--space-3);}
.team-card a.li{
  display:inline-flex;align-items:center;gap:6px;margin-top:var(--space-4);font-size:13.5px;font-weight:700;color:var(--navy-900);
}
.team-card a.li svg{width:16px;height:16px;color:var(--blue-600);}
.about-intro{max-width:720px;margin-bottom:var(--space-8);}
.about-intro p{color:var(--text-muted);font-size:17.5px;margin-top:var(--space-4);}
.about-intro p+p{margin-top:var(--space-3);}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg,var(--blue-600),var(--navy-900));
  border-radius:var(--radius-lg);padding:var(--space-7);color:var(--white);
  display:flex;flex-direction:column;gap:var(--space-5);align-items:flex-start;
}
@media (min-width:800px){ .cta-banner{flex-direction:row;align-items:center;justify-content:space-between;} }
.cta-banner h3{color:var(--white);font-size:26px;max-width:520px;}
.cta-banner p{color:rgba(255,255,255,0.8);margin-top:var(--space-2);max-width:460px;}

/* ---------- Contact ---------- */
.contact-shell{
  display:grid;grid-template-columns:1fr;gap:var(--space-7);
}
@media (min-width:900px){ .contact-shell{grid-template-columns:1fr 1.1fr;align-items:start;} }
.contact-info h2{font-size:clamp(26px,3.2vw,34px);}
.contact-info p{color:var(--text-muted);margin-top:var(--space-3);font-size:16.5px;max-width:420px;}
.contact-detail{display:flex;gap:12px;align-items:flex-start;margin-top:var(--space-5);}
.contact-detail svg{width:20px;height:20px;color:var(--blue-600);flex-shrink:0;margin-top:2px;}
.contact-detail b{display:block;font-size:14px;color:var(--navy-900);}
.contact-detail span{font-size:14px;color:var(--text-muted);}

form.contact-form{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:var(--space-6);box-shadow:var(--shadow-elevated);display:flex;flex-direction:column;gap:var(--space-4);
}
.field{display:flex;flex-direction:column;gap:6px;}
.field label{font-size:13.5px;font-weight:700;color:var(--navy-900);}
.field input,.field textarea{
  font-family:var(--font-sans);font-size:15px;padding:12px 14px;border-radius:var(--radius-md);
  border:1.5px solid var(--border);background:var(--white);color:var(--text-primary);
}
.field input:focus,.field textarea:focus{border-color:var(--blue-300);outline:none;box-shadow:0 0 0 3px rgba(129,182,227,0.35);}
.field textarea{resize:vertical;min-height:100px;}
.row-2{display:grid;grid-template-columns:1fr;gap:var(--space-4);}
@media (min-width:520px){ .row-2{grid-template-columns:1fr 1fr;} }
.consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--text-muted);}
.consent input{margin-top:3px;}
.form-note{font-size:12.5px;color:var(--text-muted);}
#form-success{
  display:none;background:rgba(212,219,83,0.22);border:1px solid var(--lime-400);
  border-radius:var(--radius-md);padding:14px 16px;font-size:14px;color:var(--navy-900);font-weight:700;
}
#form-success.show{display:block;}

/* ---------- Footer ---------- */
footer.site{background:var(--navy-900);color:var(--white);padding:var(--space-8) 0 var(--space-6);}
.footer-top{display:flex;flex-direction:column;gap:var(--space-6);}
@media (min-width:800px){ .footer-top{flex-direction:row;justify-content:space-between;align-items:flex-start;} }
.footer-logo{height:30px;filter:brightness(0) invert(1);margin-bottom:var(--space-3);}
.footer-tag{color:var(--text-on-dark-muted);font-size:14px;max-width:280px;}
.footer-cols{display:flex;gap:var(--space-8);flex-wrap:wrap;}
.footer-col h4{color:var(--white);font-size:13px;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:var(--space-3);}
.footer-col a{display:block;color:var(--text-on-dark-muted);font-size:14px;padding:5px 0;}
.footer-col a:hover{color:var(--white);}
.footer-bottom{
  margin-top:var(--space-7);padding-top:var(--space-5);border-top:1px solid rgba(255,255,255,0.14);
  display:flex;flex-direction:column;gap:var(--space-3);font-size:13px;color:var(--text-on-dark-muted);
}
@media (min-width:700px){ .footer-bottom{flex-direction:row;justify-content:space-between;} }

@media (prefers-reduced-motion: reduce){ *{transition:none!important;} }
