/* =====================================================================
   Preciso Contratar Serviços — Tema Institucional
   Direção visual inspirada em rfoservicesllc.com.br: navy + dourado,
   Playfair Display nos títulos, DM Sans no corpo, header com blur ao
   rolar, cards com hover elevado, seções com "reveal" ao rolar a página.
===================================================================== */

:root {
  --navy:    #0f2744;
  --navy2:   #173561;
  --navy-deep: #08192f;
  --gold:    #c8933a;
  --gold2:   #e8b04b;
  --cream:   #f9f5ef;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --white:   #ffffff;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  margin: 0;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
#main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all .35s ease;
}
#main-header.scrolled {
  /* Sem backdrop-filter — Firefox no Linux trava feio com blur num elemento
     fixed que fica recompondo o tempo todo enquanto rola/interage (achado
     real, sintoma exato: cursor do mouse engasgando, não só a página).
     rgba mais opaco no lugar do blur. */
  background: rgba(15, 39, 68, .97);
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}
#main-header.top {
  background: linear-gradient(180deg, rgba(15,39,68,.78) 0%, transparent 100%);
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .3rem 0;
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gold2);
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.cta-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  padding: .65rem 1.5rem;
  border-radius: 3px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap;
  display: inline-block;
  border: none; cursor: pointer;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,147,58,.45); filter: brightness(1.08); }

.cta-btn-outline {
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600; font-size: .85rem; letter-spacing: .03em;
  padding: .6rem 1.4rem; border-radius: 3px;
  transition: background .2s;
}
.cta-btn-outline:hover { background: rgba(255,255,255,.1); }

#mobile-menu {
  display: none;
  background: rgba(15,39,68,.99);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block; padding: .75rem 1.5rem;
  color: rgba(255,255,255,.85); font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .15s, background .15s;
}
#mobile-menu a:hover { color: var(--gold2); background: rgba(200,147,58,.08); }

/* ===== HERO SLIDER ===== */
#hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,25,47,.8) 0%, rgba(15,39,68,.58) 60%, rgba(0,0,0,.35) 100%);
}
.hero-content { position: relative; z-index: 10; }
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s, transform .3s; border: none; padding: 0; }
.dot.active { background: var(--gold2); transform: scale(1.3); }

/* ===== SEÇÕES — elementos comuns ===== */
.section-tag {
  display: inline-block;
  background: rgba(200,147,58,.12);
  border: 1px solid rgba(200,147,58,.35);
  color: var(--gold);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  padding: .3rem .85rem; border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.divider-gold { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 2px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== CARDS DE SERVIÇO ===== */
.service-card {
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 8px;
  padding: 2rem 1.5rem; text-align: center; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(15,39,68,.13); border-color: rgba(200,147,58,.4); }
.service-card .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,147,58,.12), rgba(200,147,58,.22));
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
  transition: background .3s;
}
.service-card:hover .icon-wrap { background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.service-card:hover .icon-wrap svg { stroke: var(--navy) !important; }

/* ===== CARDS DE DETALHE DE SERVIÇO ===== */
.detail-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.detail-card .photo-wrap { overflow: hidden; height: 220px; }
.detail-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.detail-card:hover .photo-wrap img { transform: scale(1.06); }
.contact-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: .65rem 1.4rem; border-radius: 3px;
  transition: background .2s, transform .2s;
}
.contact-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* ===== TESTEMUNHOS ===== */
.testi-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.testi-slide { flex: 0 0 100%; padding: 0 1rem; }
@media (min-width: 768px)  { .testi-slide { flex: 0 0 50%; } }
@media (min-width: 1024px) { .testi-slide { flex: 0 0 33.3333%; } }
.testi-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(15,39,68,.07);
}
.testi-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.stars { color: var(--gold); }

/* ===== FAQ ===== */
.faq-item { background: #fff; border-radius: 8px; border: 1px solid rgba(0,0,0,.07); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-chevron { transition: transform .3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ===== CONTATO ===== */
.form-input {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12); border-radius: 5px;
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
  background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,147,58,.15); }
.submit-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy); font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  padding: .9rem 2.5rem; border: none; border-radius: 4px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,147,58,.4); }
.info-card { background: var(--navy); color: #fff; border-radius: 8px; padding: 2rem; }
.info-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(200,147,58,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.captcha-box { border: 2px dashed rgba(0,0,0,.15); border-radius: 5px; padding: 1rem 1.25rem; background: #fafafa; font-size: .8rem; color: var(--muted); text-align: center; }

/* ===== FOOTER ===== */
footer { background: var(--navy-deep); color: rgba(255,255,255,.7); }
footer h4 { color: #fff; }
.footer-link { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .2s; }
.footer-link:hover { color: var(--gold2); }
.social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.social-icon:hover { background: var(--gold); transform: translateY(-3px); }

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
#wa-btn {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  background: #25d366; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
  animation: pulse-wa 2.5s infinite;
}
#wa-btn:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.65); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 38px rgba(37,211,102,.75); }
}

/* ===== CARDS "CADASTRE-SE" ===== */
.escolha-card {
  background: #fff; border-radius: 10px; border: 1px solid rgba(0,0,0,.07);
  padding: 2.5rem; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.escolha-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(15,39,68,.15); border-color: rgba(200,147,58,.4); }

/* ===== PÁGINAS DE TEXTO (Termos / Privacidade) ===== */
.pagina-texto h2 { color: var(--navy); font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; }
.pagina-texto p, .pagina-texto li { color: var(--text); line-height: 1.7; margin-bottom: .75rem; }
.pagina-texto ul { padding-left: 1.4rem; list-style: disc; }

/* ===== MAPA ===== */
#map-iframe { border-radius: 6px; overflow: hidden; }

/* ===== MODAL DO APP (Login / Cadastro / Recuperar senha) =====
   Abre o App (build Web, mesmo domínio via subpath /app) por cima da
   página do site, num iframe, sem sair do contexto institucional. */
.app-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  /* Sem backdrop-filter de propósito: Firefox no Linux tem problema sério de
     performance com blur num overlay full-viewport que fica recalculando
     por baixo do iframe carregando (achado real — chegava a quase travar o
     navegador). rgba mais escuro compensa a falta do blur. */
  background: rgba(8,25,47,.78);
  display: none;
  align-items: center; justify-content: center;
  padding: 0;
}
.app-modal-overlay.open { display: flex; }
.app-modal-box {
  position: relative;
  background: var(--cream);
  width: 100%; height: 100%;
  max-width: 480px; max-height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
@media (min-width: 640px) {
  .app-modal-box { width: 92vw; max-width: 900px; height: 90vh; max-height: 820px; border-radius: 16px; }
}
.app-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15,39,68,.85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
}
.app-modal-close:hover { background: var(--navy); }
.app-modal-iframe { width: 100%; height: 100%; border: 0; display: block; }
.app-modal-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; background: var(--cream);
}
