:root{
  --bg:#fafafa;
  --card:#ffffff;
  --text:#1a1a1a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#3b82f6;
  --brand2:#60a5fa;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
  --radius: 12px;
  --max: 1200px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  line-height:1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(200%) brightness(0.9);
  z-index: -2;
  pointer-events: none;
}

body::after{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,250,250,.7);
  z-index: -1;
  pointer-events: none;
}

html::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59,130,246,.25);
  z-index: -1;
  pointer-events: none;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 24px}
@media (max-width: 768px){
  .container{padding:0 16px}
}

.site-header{
  position:sticky; top:0; z-index:50;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom:1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:-.02em; font-size:18px; color:var(--text); text-decoration:none}
.logo-img{width:80px; height:80px; object-fit:contain; display:block; background:transparent; mix-blend-mode:normal}
.logo-text{font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight:700; letter-spacing:-0.03em; color:#1e3a8a; font-size:28px; text-transform:none}
.nav-links{display:flex; gap:8px; align-items:center}
.nav-links a{padding:10px 16px; border-radius:8px; color:var(--muted); font-size:15px; transition:all .2s; font-weight:500}
.nav-links a:hover{background:rgba(0,0,0,.04); color:var(--text); transform: translateY(-1px)}

@media (max-width: 768px){
  .logo-img{width:56px; height:56px}
  .logo-text{font-size:20px}
  .nav-links{flex-wrap:wrap; gap:4px}
  .nav-links a{padding:8px 12px; font-size:14px}
  .btn-small{padding:8px 16px; font-size:13px}
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 24px; border-radius:8px; font-weight:600; font-size:15px;
  border:none;
  background: var(--brand);
  color: #fff !important;
  transition: all .2s;
  cursor: pointer;
}
.btn:hover{background: #2563eb; color: #fff !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,.4);}
.btn:active{transform: translateY(0);}
.btn-small{padding:10px 20px; font-size:14px}

main{padding:60px 0 40px}
.section{padding: 32px 0}
.section + .section{margin-top: 24px}
.section-head{
  text-align:center; 
  margin-bottom: 0; 
  max-width: var(--max); 
  margin-left: auto; 
  margin-right: auto;
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  box-shadow: none;
  padding: 32px 24px 24px;
  margin-bottom: 0;
}
.section-head h2{margin: 0 0 12px; font-size: 36px; font-weight: 700; letter-spacing:-.03em; line-height:1.2}
.section-head .muted{font-size: 17px; color: var(--muted)}
@media (max-width: 768px){
  .section-head{padding: 24px 16px 20px}
  .section-head h2{font-size: 28px}
  .section-head .muted{font-size: 15px}
}
.muted{color:var(--muted); opacity: .8}

/* Texto maior em secções específicas */
.text-large .muted,
.text-large p.muted,
.text-large ul.muted,
.text-large li{
  font-size: 22px;
  line-height: 1.8;
}
@media (max-width: 768px){
  .text-large .muted,
  .text-large p.muted,
  .text-large ul.muted,
  .text-large li{
    font-size: 18px;
  }
}

.hero{
  display:grid; grid-template-columns: 1.2fr 1fr; gap:48px;
  align-items: stretch;
  margin-bottom: 0;
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px){
  .hero{
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }
}

.form-compact{
  max-width: 600px;
  padding: 32px !important;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.form-title{
  font-size: 20px;
  margin-bottom: 8px;
}

.form-subtitle{
  font-size: 14px;
  margin-bottom: 16px;
}

.form-compact-fields{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-field-group{
  display: flex;
  flex-direction: column;
}

.form-compact-fields label{
  margin-bottom: 6px;
}

.form-compact-fields textarea,
.form-compact-fields .btn,
.form-compact-fields [data-form-status]{
  grid-column: span 2;
}

.form-compact-fields label{
  font-size: 13px;
}

.form-compact-fields input,
.form-compact-fields select,
.form-compact-fields textarea{
  padding: 10px;
  font-size: 14px;
}

.form-compact-fields textarea{
  min-height: 80px;
}

.form-compact-fields .btn{
  padding: 10px 16px;
  font-size: 14px;
}

.form-compact-fields [data-form-status]{
  font-size: 12px;
}

@media (max-width: 768px){
  .form-compact{
    padding: 16px !important;
  }
  .form-title{
    font-size: 18px;
    margin-bottom: 6px;
  }
  .form-subtitle{
    font-size: 13px;
    margin-bottom: 12px;
  }
  .form-compact-fields{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-compact-fields label,
  .form-compact-fields textarea,
  .form-compact-fields select,
  .form-compact-fields .btn,
  .form-compact-fields [data-form-status]{
    grid-column: span 1;
  }
  .form-compact-fields label{
    font-size: 12px;
    margin-bottom: 4px;
  }
  .form-compact-fields input,
  .form-compact-fields select,
  .form-compact-fields textarea{
    padding: 8px 12px;
    font-size: 14px;
  }
  .form-compact-fields textarea{
    min-height: 70px;
  }
  .form-compact-fields .btn{
    padding: 10px 20px;
    font-size: 14px;
  }
}
@media (max-width: 900px){ 
  .hero{grid-template-columns:1fr !important; gap:32px} 
}

.h1{font-size:52px; line-height:1.1; margin:0 0 20px; letter-spacing:-.05em; font-weight:800; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}
.lead{font-size:20px; color:var(--muted); margin:0 0 32px; line-height:1.6; font-weight:400}
.lead ul{list-style:none; padding-left:0; margin:0 0 32px}
.lead ul li{margin:0 0 12px; line-height:1.6}
@media (max-width: 768px){
  .h1{font-size:36px; margin:0 0 16px}
  .lead{font-size:18px; margin:0 0 24px}
  .lead ul{margin:0 0 24px}
  .lead ul li{margin:0 0 10px}
}

.card{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover{
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* Containers externos devem ser azuis */
.section.card{
  background: rgb(239, 246, 255);
}

/* Cards que são containers externos (contêm image-text-grid ou grid-3) devem ser azuis */
.card.section-bg,
.section.card,
.card:has(.image-text-grid){
  background: rgb(239, 246, 255);
}

/* Cards dentro de hero devem ser brancos (caixa interior) */
.hero .card{
  background: rgba(255,255,255,.95) !important;
}

/* image-text-grid dentro de cards deve ser branco */
.card .image-text-grid,
.section.card .image-text-grid{
  background: rgba(255,255,255,.95);
}

/* Grid-3 quando está diretamente dentro de section sem container específico */
.section > .grid-3{
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 768px){
  .section > .grid-3{
    padding: 16px;
  }
}

/* Cards dentro de containers azuis devem ser brancos */
.card .card,
.section-head + .grid-3 .card,
.section.card .grid-3 .card,
.section > .grid-3 .card,
.grid-3 .card{
  background: rgba(255,255,255,.95);
}
.card:hover{box-shadow: var(--shadow-lg); transform: translateY(-2px);}
.card-pad{padding:32px}
@media (max-width: 768px){
  .card{padding: 16px}
  .card-pad{padding: 16px}
  .card.section-bg{padding: 20px 16px}
  .section-head + .grid-3 .card{padding: 16px}
  .models-container{padding: 16px !important}
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  margin-top: 0;
  align-items: stretch;
}

.grid-3 .card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-3 .card > *:not(.service-image-wrapper){
  flex-shrink: 0;
}

.section-head + .grid-3{
  margin-top: 0;
  padding-top: 0;
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 0 24px 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.section-head + .grid-3 .card{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
  padding: 24px;
}

@media (max-width: 900px){
  .section-head + .grid-3 .card:first-child,
  .section-head + .grid-3 .card:last-child{
    border-radius: 0 0 var(--radius) var(--radius);
  }
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; gap: 20px; }
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border-radius:20px;
  border:none;
  background: rgba(37,99,235,.08);
  color: var(--brand);
  font-size:13px;
  font-weight:500;
  margin-bottom: 16px;
}

.h2{font-size:28px; margin:0 0 16px; font-weight:700; letter-spacing:-.03em; line-height:1.3; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}
.h3{font-size:18px; margin:0 0 8px; font-weight:600; line-height:1.4; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}
@media (max-width: 768px){
  .h2{font-size:24px; margin:0 0 12px}
  .h3{font-size:16px}
}

ul{margin:16px 0 0; padding-left:20px}
li{margin:8px 0; color:var(--muted); line-height:1.6}

label{font-size:14px; color:var(--text); font-weight:500; margin-bottom:6px; display:block}
input, textarea, select{
  width:100%;
  padding:12px 16px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.1);
  background: #fff;
  color: var(--text);
  outline: none;
  font-size:15px;
  font-family: inherit;
  transition: all .2s;
}
textarea{min-height:120px; resize: vertical}
input:focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
@media (max-width: 768px){
  input, textarea, select{
    padding:10px 12px;
    font-size:14px;
  }
  textarea{min-height:100px}
}

.review-top{
  display:flex; gap:12px; align-items:center;
  margin-bottom: 16px;
}
.avatar{
  width:48px; height:48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(14,165,233,.08));
  display:flex; align-items:center; justify-content:center;
  font-weight:600; font-size:18px; color: var(--brand);
  flex-shrink: 0;
}
.review-name{ margin:0; font-weight:600; font-size:16px; }
.review-meta{ margin:4px 0 0; font-size: 13px; color: var(--muted); }
.review-text{ margin: 0; line-height: 1.6; color: var(--text); font-size:15px; }

.faq{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  margin-top: 0;
}

@media (max-width: 768px) {
  .faq{
    grid-template-columns: 1fr;
  }
}

.section-head + .faq{
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 0 24px 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.section-head + .faq .faq-item{
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 20px 0;
}

.section-head + .faq .faq-item:not(:last-child){
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.faq-item{
  background:#fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.faq-item:hover{border-color: rgba(0,0,0,.1);}
.faq-item summary{
  cursor:pointer;
  font-weight:600;
  font-size:16px;
  list-style:none;
  padding-right: 24px;
  position: relative;
}
.faq-item summary::after{
  content: '+';
  position: absolute;
  right: 0;
  font-size: 20px;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after{
  content: '−';
}
.faq-item p{ margin: 16px 0 0; color: var(--muted); line-height:1.6; font-size:15px; }

/* Footer */
.site-footer{
  background: var(--brand);
  color: rgba(255,255,255,.9);
  margin-top: 100px;
}
.footer-grid{
  padding: 64px 0 48px;
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-brand{
  max-width: 400px;
}
.footer-logo{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing:-.02em;
}
.footer-brand .muted{
  color: rgba(255,255,255,.6);
  font-size:15px;
  line-height:1.6;
  margin-bottom: 20px;
}
.footer-col h4{
  margin: 0 0 16px;
  font-size: 14px;
  font-weight:600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.95);
}
.footer-col a, .footer-social a{
  display:block;
  color: rgba(255,255,255,.65);
  text-decoration:none;
  margin: 10px 0;
  font-size:15px;
  transition: color .2s;
}
.footer-col a:hover, .footer-social a:hover{
  color: #fff;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.footer-bottom-inner{
  display:flex;
  gap: 24px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer .btn{
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
}
.site-footer .btn:hover{
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.4);
  color: #fff !important;
}
.site-footer .muted{
  color: rgba(255,255,255,.5);
  font-size:14px;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }
}
@media (max-width: 768px){
  .footer-grid{ 
    grid-template-columns: 1fr; 
    gap: 32px; 
    padding: 48px 0 32px;
  }
  .footer-brand{
    max-width: 100%;
  }
  .footer-bottom{
    padding: 20px 0;
  }
  .footer-bottom-inner{ 
    flex-direction: column; 
    text-align: center; 
    gap: 16px;
  }
  .footer-bottom-inner p{
    margin: 0;
  }
  .footer-col{
    margin-bottom: 8px;
  }
}

.hero-media{
  width:100%;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img{
  display:block; 
  width:100%; 
  height:100%;
  object-fit:cover;
}
@media (max-width: 768px){
  .hero-media{
    aspect-ratio: 4 / 3;
    min-height: auto;
    height: auto;
  }
}

.icon-wrapper{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37,99,235,.08);
  margin-bottom: 16px;
  color: var(--brand);
}

.icon-wrapper.icon-image{
  padding: 12px;
  background: rgba(37,99,235,.05);
}

.icon-wrapper.icon-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

form{display:grid; gap:16px}

.section-bg{
  position: relative;
  overflow: hidden;
}

.section-bg::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.section-bg[style*="--bg-img"]::before{
  background-image: var(--bg-img);
}

.section-bg > *{
  position: relative;
  z-index: 1;
}

.service-image-large{
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px){
  .service-image-large{
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
  }
}

.service-image-wrapper{
  margin-top: auto;
  padding-top: 24px;
}

.content-image{
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  margin: 0;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.content-image-small{
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.content-image-vertical{
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px){
  .content-image,
  .content-image-small{
    aspect-ratio: 1 / 1;
    min-height: auto;
    height: auto;
  }
  .content-image-vertical{
    aspect-ratio: 4 / 3;
    min-height: auto;
    height: auto;
  }
}

.form-narrow{
  max-width: 500px;
}

.image-text-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin: 32px 0;
}

.image-text-grid:not(.section-head + *){
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

/* image-text-grid dentro de cards deve ser branco (caixa interior) */
.card .image-text-grid,
.section.card .image-text-grid,
.card.section-bg .image-text-grid{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section-unified{
  background: rgb(239, 246, 255);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.form-section-unified .form-compact{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  padding: 32px !important;
  max-width: 600px;
  margin: 0;
}

.card.form-compact{
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

.image-text-grid .content-image{
  margin: 0;
}

@media (max-width: 900px){
  .image-text-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .image-text-grid{padding: 16px; gap: 20px}
  .form-section-unified{padding: 16px}
  .card .image-text-grid{padding: 12px; gap: 16px}
}

/* Additional refinements */
.review{ padding: 28px; }
#reviews .section-head{ text-align: left; margin-left: 0; margin-right: 0; }
#reviews .section-head h2{ font-size: 32px; }
