:root {
  --primary: #0A4D68;
  --primary-dark: #063A50;
  --secondary: #088395;
  --accent: #05BFDB;
  --bg: #F4F8FA;
  --card: #ffffff;
  --ink: #1A2B34;
  --ink-soft: #5A6F7A;
  --line: #D0DEE6;
  --ok: #0A7A5C;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar {
  background: var(--primary-dark);
  color: #e8f4f8;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(6,58,80,.25);
}
.topbar .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; max-width: 1120px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 1.05rem;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.tagline { margin: 0; font-size: .82rem; color: #a8c5d4; display: none; }
@media(min-width:900px){ .tagline { display: block; flex: 1; text-align: center; } }

.nav-toggle { position: relative; }
.nav-toggle summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.hamburger { width: 24px; height: 24px; }
.fone-mini { font-size: .85rem; }
.nav-dropdown {
  position: absolute; right: 0; top: 110%;
  background: #fff; color: var(--ink);
  border-radius: var(--radius); min-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  padding: 8px; z-index: 60;
}
.nav-dropdown a {
  display: block; padding: 10px 14px; color: var(--ink); border-radius: 8px; text-decoration: none;
  font-size: .92rem;
}
.nav-dropdown a:hover { background: #e8f6f9; color: var(--primary); }
.nav-dropdown .sub-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); padding: 8px 14px 4px; font-weight: 600;
}
@media(min-width:960px){
  .nav-toggle summary .hamburger { display: none; }
  .nav-dropdown {
    position: static; display: flex !important; flex-wrap: wrap; gap: 2px;
    background: transparent; box-shadow: none; padding: 0; min-width: 0;
  }
  .nav-toggle { display: flex; align-items: center; }
  .nav-toggle summary { display: none; }
  .nav-dropdown a { color: #d0e8f0; padding: 8px 10px; font-size: .88rem; }
  .nav-dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav-dropdown .sub-label { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 100%);
  color: #fff; padding: 48px 0 56px;
}
.hero .breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: 12px; }
.hero .breadcrumb a { color: #b8e0ec; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 99px; margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.25; margin: 0 0 14px; font-weight: 700; max-width: 820px;
}
.hero .lede { font-size: 1.08rem; opacity: .92; max-width: 640px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--primary-dark) !important;
  font-weight: 700; padding: 12px 22px; border-radius: 10px; text-decoration: none !important;
  border: none; cursor: pointer; font-size: .95rem;
}
.btn:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent; color: #fff !important;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-primary-solid {
  background: var(--primary); color: #fff !important;
}

main.wrap, main.wrap-wide { padding-top: 32px; padding-bottom: 48px; }
article h2 {
  font-family: var(--serif); color: var(--primary-dark);
  font-size: 1.45rem; margin: 1.6em 0 .5em;
}
article h3 { color: var(--primary); font-size: 1.15rem; margin: 1.2em 0 .4em; }
article p { margin: 0 0 1em; color: var(--ink); }
article ul, article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
article li { margin-bottom: .4em; }

.answer-box {
  background: #e6f4f8; border-left: 4px solid var(--secondary);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
}
.answer-box .label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--secondary); display: block; margin-bottom: 6px;
}

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin: 24px 0;
}
.card-servico {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: box-shadow .2s, border-color .2s;
}
.card-servico:hover { border-color: var(--secondary); box-shadow: 0 8px 24px rgba(8,131,149,.12); }
.card-servico h3 { margin-top: 0; }
.card-servico .icon { font-size: 1.8rem; margin-bottom: 8px; }

.img-content {
  border-radius: var(--radius); overflow: hidden; margin: 24px 0;
  background: linear-gradient(135deg, #0A4D68, #088395);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 32px 24px;
}
.img-content strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.img-content span { opacity: .85; font-size: .9rem; }

.convenios {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0;
}
.convenios span {
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--primary);
}

.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: var(--radius); padding: 32px 28px; margin: 40px 0 20px;
  text-align: center;
}
.cta h2 { color: #fff; margin-top: 0; font-family: var(--serif); }
.cta p { opacity: .9; }
.cta .btn { margin-top: 8px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 28px 0;
}
.stat {
  background: #fff; border-radius: var(--radius); padding: 18px; text-align: center;
  border: 1px solid var(--line);
}
.stat .n { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat .l { font-size: .85rem; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; padding: 14px 18px;
}
.faq summary { font-weight: 600; cursor: pointer; color: var(--primary-dark); }
.faq details[open] summary { margin-bottom: 8px; }

/* Form */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; max-width: 560px;
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--secondary); border-color: var(--secondary);
}
.req { color: #c0392b; }

/* Footer */
.site-footer {
  background: var(--primary-dark); color: #b8cfd9; padding: 40px 0 24px; margin-top: 40px;
  font-size: .9rem;
}
.site-footer a { color: #d0e8f0; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.footer-bottom {
  max-width: 1120px; margin: 28px auto 0; padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; opacity: .8;
}

/* WhatsApp float - LEFT, rectangular, blinking */
.whatsapp-float {
  position: fixed; left: 16px; bottom: 20px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff !important; text-decoration: none !important;
  padding: 12px 18px; border-radius: 12px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  animation: wa-blink 1.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
@keyframes wa-blink {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); transform: scale(1); }
  50% { box-shadow: 0 8px 32px rgba(37,211,102,.75); transform: scale(1.04); }
}
.whatsapp-float:hover { filter: brightness(1.08); animation: none; }

/* Cities hub */
.uf-panel { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.uf-panel summary {
  display: flex; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none;
}
.uf-panel summary::-webkit-details-marker { display: none; }
.uf-sigla {
  background: var(--primary); color: #fff; font-weight: 700; padding: 4px 10px;
  border-radius: 8px; font-size: .85rem;
}
.uf-cidades {
  list-style: none; margin: 0; padding: 8px 16px 18px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px;
  border-top: 1px solid var(--line);
}
.uf-cidades a { display: block; padding: 6px 4px; color: var(--ink-soft); font-size: .9rem; }
.uf-cidades a:hover { color: var(--primary); }
#busca-cidade {
  width: 100%; max-width: 420px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; margin-bottom: 12px;
}
.uf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.uf-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 6px 12px; font-size: .8rem; cursor: pointer;
}
.uf-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Logo institucional */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 48px; width: auto; max-width: 200px; object-fit: contain; display: block; }
@media (max-width: 600px) {
  .logo-img { height: 40px; max-width: 160px; }
}
.topbar .logo-img { filter: none; }


/* Logo marca — contraste no header escuro */
.logo {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .logo-img { height: 42px; max-width: 170px; }
}
.team-avatar, .footer-team img, .author-box img {
  background: #0A4D68;
  border-radius: 50%;
}

.logo { background:#fff !important; padding:6px 10px !important; border-radius:12px !important; }
.logo-img { background:#fff; height:52px; width:auto; max-width:240px; object-fit:contain; }

.logo { background:#fff!important;padding:6px 10px!important;border-radius:12px!important; }
.logo-img { background:#fff;height:48px;width:auto;max-width:210px;object-fit:contain; }


/* Cidades atendidas — estados e cidades */
.comunidades-toolbar { margin-bottom: 20px; }
.comunidades-toolbar input[type=search] {
  width: 100%; max-width: 480px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid #D0DEE6; font-size: 1rem;
}
.hint-estados { margin: 16px 0 8px; color: #5A6F7A; font-size: .95rem; }
.grid-estados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 32px;
}
.estado-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #D0DEE6; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font: inherit; color: inherit;
}
.estado-card:hover, .estado-card.ativo {
  border-color: #088395; box-shadow: 0 4px 14px rgba(8,131,149,.15);
}
.estado-card strong { color: #0A4D68; font-size: 1rem; }
.estado-sigla {
  display: inline-block; background: #0A4D68; color: #fff;
  font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.estado-qtd { font-size: .85rem; color: #5A6F7A; }
.estado-painel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 8px 0 16px;
}
.estado-painel-head h2 { margin: 0; color: #0A4D68; }
.estado-painel-head h2 span { font-weight: 500; color: #5A6F7A; font-size: .9rem; }
.btn-voltar-estados {
  border: 1px solid #088395; background: #fff; color: #0A4D68;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600;
}
.btn-voltar-estados:hover { background: #E8F7FA; }
.uf-cidades {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px;
}
.uf-cidades a {
  display: block; padding: 10px 12px; border-radius: 8px;
  background: #F4FAFB; color: #0A4D68; text-decoration: none; font-weight: 500;
}
.uf-cidades a:hover { background: #D6F0F5; }
.msg-vazia { color: #8A4B08; padding: 16px; background: #FFF8E6; border-radius: 8px; }
