/* SERVICES */
#servicos { background: white; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card { background: var(--bg); border-radius: var(--radius); padding: 36px 28px; position: relative; overflow: hidden; transition: transform 0.3s, opacity 0.3s; border: 1px solid rgba(15,38,87,0.06); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--teal), var(--blue)); border-radius: 4px 0 0 4px; }
.service-card:hover { transform: translateY(-6px); opacity: 0.97; }
.service-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue), var(--teal)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.services-cta { text-align: center; margin-top: 48px; }
.services-cta .btn-primary { background: var(--navy); color: white; }

/* SOBRE */
#sobre { background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sobre-visual { position: relative; }
.sobre-card-main { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 24px; padding: 48px 40px; color: white; }
.sobre-card-main h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 16px; }
.sobre-card-main p { opacity: 0.8; line-height: 1.7; font-weight: 300; }
.sobre-float { position: absolute; bottom: -24px; right: -24px; background: var(--teal); color: white; border-radius: 16px; padding: 20px 24px; box-shadow: 0 8px 32px rgba(42,175,192,0.4); }
.sobre-float strong { display: block; font-size: 1.8rem; font-family: var(--font-display); }
.sobre-float span { font-size: 0.78rem; opacity: 0.85; }
.sobre-content .section-header { margin-bottom: 28px; }
.sobre-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.sobre-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.sobre-list li::before { content: '✓'; display: flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: white; border-radius: 50%; font-size: 0.7rem; font-weight: 700; margin-top: 1px; }
.missao-visao { margin-bottom: 8px; }
.mv-item { background: rgba(42,175,192,0.08); border-radius: 12px; padding: 20px 24px; border-left: 3px solid var(--teal); }
.mv-item strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.mv-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* DEPOIMENTOS */
#depoimentos { background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--bg); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(15,38,87,0.06); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 16px; right: 24px; font-family: var(--font-display); font-size: 5rem; color: var(--teal); opacity: 0.2; line-height: 1; }
.stars { color: #f0a500; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; }
.author-info strong { display: block; font-size: 0.9rem; color: var(--navy); }
.author-info span { font-size: 0.78rem; color: var(--text-light); }

/* CONTATO */
#contato { background: linear-gradient(135deg, #0f2657 0%, #1a4db3 100%); text-align: center; position: relative; overflow: hidden; }
#contato::before { content: ''; position: absolute; inset: 0; opacity: 0.05; background-image: linear-gradient(45deg, white 1px, transparent 1px), linear-gradient(-45deg, white 1px, transparent 1px); background-size: 40px 40px; }
#contato .section-title { color: white; }
#contato .section-desc { color: rgba(255,255,255,0.7); margin: 0 auto 48px; }
.contact-box { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact-methods { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.contact-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 12px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.contact-chip:hover { background: rgba(255,255,255,0.2); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 12px; background: #25D366; color: white; padding: 20px 40px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: transform 0.2s, opacity 0.2s; box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.btn-whatsapp:hover { transform: translateY(-3px) scale(1.02); opacity: 0.93; }
.contact-form { margin-top: 48px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 40px; width: 100%; max-width: 700px; text-align: left; }
.contact-form h3 { font-family: var(--font-display); color: white; font-size: 1.25rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; color: white; background: rgba(255,255,255,0.1); transition: border-color 0.2s, background 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group select option { background: #1a4db3; color: white; }
.btn-form-wrapper { display: flex; justify-content: center; margin-top: 12px; }
.btn-form { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--navy), var(--blue), var(--teal)); color: white; border: none; padding: 13px 40px; border-radius: 50px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(15,38,87,0.25); letter-spacing: 0.02em; }
.btn-form:hover:not(:disabled) { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,38,87,0.35); }
.btn-form:disabled { opacity: 0.6; cursor: not-allowed; }


/* Form extras */
.captcha-note { margin: 4px 0 16px; font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.captcha-note a { color: rgba(255,255,255,0.65); }
.form-msg { margin-top: 12px; font-size: 0.88rem; font-weight: 500; text-align: center; }
.form-error { color: #ff8a8a; }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #ff6b6b; }
.form-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 12px; }
.form-success p { color: rgba(255,255,255,0.8); line-height: 1.6; }
.success-sub { margin-top: 8px; font-size: 0.88rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

/* Maps */
.maps-wrapper { margin-top: 56px; width: 100%; max-width: 700px; text-align: left; }
.maps-title { font-family: var(--font-display); color: white; font-size: 1.3rem; margin-bottom: 16px; }
.maps-click-container { position: relative; height: 300px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255,255,255,0.15); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.maps-frame-container { border-radius: 16px; overflow: hidden; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.maps-placeholder { position: relative; height: 300px; }
.maps-load-prompt { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(15,38,87,0.85); color: white; padding: 10px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(4px); white-space: nowrap; }
.maps-click-container:hover .maps-load-prompt { background: var(--teal); }
.maps-gmaps-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: color 0.2s; padding: 12px 0; min-height: 44px; }
.maps-gmaps-link:hover { color: white; }
.maps-address { margin-top: 6px; color: rgba(255,255,255,0.55); font-size: 0.8rem; }

/* Mobile contact */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
}

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.6); text-align: center; padding: 32px 48px; font-size: 0.85rem; }
footer strong { color: white; }
footer a { color: rgba(255,255,255,0.6); display: inline-block; padding: 4px 0; min-height: 44px; line-height: 36px; }

/*
  WHATSAPP FLOAT
  FIX: substituir animação `pulse` box-shadow por opacity+scale.
  box-shadow não é composited → causa non-composited animation warning.
  opacity e transform SÃO composited → rodam na GPU sem afetar CLS/TBT.
*/
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transform: translateZ(0); /* força GPU layer */
  animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1) translateZ(0); }
.wa-float svg { width: 30px; height: 30px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/*
  FIX: pulse agora usa opacity (composited) em vez de box-shadow (não-composited).
  Isso elimina o aviso "Avoid non-composited animations" do Lighthouse.
*/
@keyframes wa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* SCROLL REVEAL */
/* reveal: elementos visíveis por padrão, animação via JS quando suportado */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal { opacity: 0; transform: translateY(20px); }
.js-reveal.visible { opacity: 1; transform: translateY(0); }

/* PERFORMANCE */
#servicos, #sobre, #depoimentos, #contato, footer { content-visibility: auto; contain-intrinsic-size: 0 600px; }
.service-card, .testimonial-card { will-change: transform; }

/* GRID 4 colunas em telas grandes */
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  /* Hamburger button */
  .nav-hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 14px 10px; margin: -14px -10px; z-index: 1002; }
  .nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
  /* nav.scrolled hamburger: linhas permanecem navy pois fundo da nav é sempre branco */

  /* Hamburguer → X */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Menu mobile */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: 75vw; max-width: 300px; height: 100vh;
    background: white;
    padding: 80px 32px 40px;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000; pointer-events: auto;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(15,38,87,0.08); }
  .nav-links a { display: block; padding: 16px 0; font-size: 1rem; color: var(--navy) !important; font-weight: 600; }
  .nav-links .btn-nav { margin-top: 24px; background: var(--blue); color: white !important; text-align: center; border-radius: 50px; padding: 14px 24px; }

  /* Overlay */
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; bottom: 0; right: min(75vw, 300px); background: rgba(0,0,0,0.35); z-index: 998; cursor: pointer; }
  .nav-overlay.open { display: block; }
  section { padding: 72px 24px; }
  #hero { padding: 100px 24px 60px; }
  #sobre { grid-template-columns: 1fr; padding: 72px 24px; gap: 48px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
}