/* ============================================================
   NEUROLAGO — Folha de estilo principal
   Paleta: azul-petróleo (lago) + água + dourado discreto
   Para mudar as cores do site inteiro, altere apenas as
   variáveis abaixo.
   ============================================================ */

:root {
  --petrol: #0F4C56;        /* cor principal (azul-petróleo) */
  --petrol-dark: #0A333B;   /* versão escura, fundos */
  --aqua: #2E8C96;          /* destaque secundário */
  --aqua-soft: #E4F0F1;     /* fundos suaves */
  --gold: #B98A2F;          /* detalhe premium (usar pouco) */
  --ink: #14282E;           /* texto principal */
  --slate: #4A5E63;         /* texto secundário */
  --mist: #F2F6F7;          /* fundo de seções alternadas */
  --paper: #FFFFFF;         /* fundo padrão */
  --whatsapp: #1EA952;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, Segoe UI, sans-serif;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 76, 86, 0.10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;             /* impede qualquer rolagem lateral no celular */
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--petrol-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead { font-size: 1.2rem; color: var(--slate); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 20px rgba(30,169,82,.35); }
.btn-whatsapp:hover { box-shadow: 0 10px 26px rgba(30,169,82,.45); color:#fff; }
.btn-outline { background: transparent; color: var(--petrol); border: 2px solid var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: #fff; }
.btn-light { background: #fff; color: var(--petrol); }
.btn-light:hover { color: var(--petrol-dark); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #E3EBEC;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--petrol-dark);
}
.brand-name span { color: var(--aqua); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--petrol);
  border-bottom-color: var(--gold);
}
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--petrol);
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--petrol-dark) 0%, var(--petrol) 55%, #14606C 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M60 480 C 180 420, 260 500, 380 430 S 600 380, 720 300 S 850 180, 880 90'/%3E%3Cpath d='M20 300 C 140 260, 240 320, 360 260 S 560 200, 700 160'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.10'%3E%3Ccircle cx='380' cy='430' r='5'/%3E%3Ccircle cx='720' cy='300' r='6'/%3E%3Ccircle cx='360' cy='260' r='5'/%3E%3Ccircle cx='700' cy='160' r='6'/%3E%3Ccircle cx='880' cy='90' r='4'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 0;
  max-width: 720px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: #D8E8EA; margin-bottom: 34px; }
.hero .eyebrow { color: #E9C778; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 26px; font-size: .95rem; color: #B8D2D6; }

/* ---------- Divisor sináptico (assinatura visual) ---------- */
.synapse {
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='46' viewBox='0 0 1200 46'%3E%3Cpath d='M0 23 H520' stroke='%232E8C96' stroke-opacity='.35' stroke-width='1.5'/%3E%3Cpath d='M680 23 H1200' stroke='%232E8C96' stroke-opacity='.35' stroke-width='1.5'/%3E%3Ccircle cx='560' cy='23' r='4' fill='%232E8C96'/%3E%3Ccircle cx='600' cy='23' r='6' fill='%23B98A2F'/%3E%3Ccircle cx='640' cy='23' r='4' fill='%232E8C96'/%3E%3C/svg%3E") center no-repeat;
}

/* ---------- Seções ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--slate); margin-top: 12px; }

/* ---------- Cards de especialidades ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid #E3EBEC;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--aqua-soft);
  color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; flex: 1; }
.card .card-link { margin-top: 16px; font-weight: 800; color: var(--petrol); }

/* ---------- Blocos lado a lado ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .visual {
  background: linear-gradient(150deg, var(--aqua-soft), #fff);
  border: 1px solid #DCE9EA;
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lista com marcadores próprios ---------- */
.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--slate);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--aqua-soft);
  border: 3px solid var(--aqua);
}
.check-list li strong { color: var(--ink); }

/* ---------- Médicos ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.doctor-card {
  background: #fff;
  border: 1px solid #E3EBEC;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doctor-photo {
  height: 300px;
  background: linear-gradient(160deg, var(--petrol), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.doctor-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.doctor-initials {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: rgba(255,255,255,.9);
}
.doctor-info { padding: 24px; }
.doctor-info h3 { margin-bottom: 4px; }
.doctor-info .crm {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
  text-transform: uppercase;
}
.doctor-info p { color: var(--slate); font-size: .96rem; margin-top: 12px; }

/* ---------- Bio detalhada (página Os Médicos) ---------- */
.bio { margin-bottom: 64px; }
.bio h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 26px 0 10px;
}
.bio ul { list-style: none; }
.bio ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--slate);
}
.bio ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--aqua);
}

/* ---------- Números / confiança ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  text-align: center;
}
.stat { padding: 28px 16px; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--petrol);
  line-height: 1;
}
.stat .label { color: var(--slate); margin-top: 10px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid #E3EBEC;
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  color: var(--petrol-dark);
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--aqua);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 20px; color: var(--slate); }

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--petrol-dark), var(--petrol));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #CDE2E5; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.post-card {
  background: #fff;
  border: 1px solid #E3EBEC;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s;
}
.post-card:hover { transform: translateY(-4px); }
.post-thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(150deg, var(--aqua-soft), var(--mist));
  display: flex; align-items: center; justify-content: center;
  color: var(--aqua);
  font-size: 2.4rem;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-body h3 { margin-bottom: 10px; }
.post-body h3 a { color: var(--petrol-dark); }
.post-body p { color: var(--slate); font-size: .96rem; flex: 1; }
.post-body .card-link { margin-top: 14px; font-weight: 800; color: var(--petrol); }

/* ---------- Artigo (post individual) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article header { margin-bottom: 36px; }
.article h1 { margin-bottom: 14px; }
.article .article-meta { color: var(--slate); font-size: .95rem; }
.article h2 { margin: 44px 0 16px; }
.article h3 { margin: 32px 0 12px; }
.article p { margin-bottom: 18px; color: #2C3E43; }
.article ul, .article ol { margin: 0 0 18px 24px; color: #2C3E43; }
.article li { margin-bottom: 8px; }
.article .disclaimer {
  background: var(--aqua-soft);
  border-left: 4px solid var(--aqua);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: .95rem;
  color: var(--slate);
  margin: 36px 0;
}
.article .author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 44px;
}
.article .author-box .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--petrol), var(--aqua));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.article .author-box p { margin: 0; font-size: .93rem; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-item { margin-bottom: 24px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-item p { color: var(--slate); }
.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--petrol-dark);
  color: #B8D2D6;
  padding: 60px 0 30px;
  margin-top: 76px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 800;
}
.site-footer a { color: #CDE2E5; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  font-size: .85rem;
  color: #86A8AD;
  line-height: 1.7;
}

/* ---------- Botão flutuante WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30,169,82,.5);
  transition: transform .15s;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split .visual { min-height: 240px; }
}

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: block; }

  /* Menu mobile: usa display none/flex — nunca cria rolagem lateral */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    width: min(320px, 86vw);
    z-index: 60;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 26px;
    gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
    overflow-y: auto;
  }
  .main-nav.open {
    display: flex;
    animation: navIn .22s ease;
  }
  @keyframes navIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  /* Alvos de toque generosos */
  .main-nav a {
    padding: 14px 4px;
    font-size: 1.08rem;
    border-bottom: 1px solid #EDF3F4;
  }
  .main-nav a.active { border-bottom-color: var(--gold); }
  .nav-cta {
    margin: 18px 0 0;
    justify-content: center;
    border-bottom: none !important;
  }

  .header-inner { height: 64px; }
  .brand-name { font-size: 1.25rem; }
  .brand img { height: 38px; }

  body { font-size: 1rem; }
  .section { padding: 52px 0; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 32px; }

  .hero-inner { padding: 52px 0; }
  .hero .lead { font-size: 1.08rem; }
  .hero-note { font-size: .88rem; }

  .cards-grid, .doctor-grid, .post-grid { gap: 16px; }
  .card { padding: 24px 20px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 20px 8px; }
  .stat .num { font-size: 2.2rem; }

  .cta-band { padding: 40px 22px; border-radius: 12px; }

  .map-frame { min-height: 300px; }

  .article .article-meta { font-size: .88rem; }
  .article .author-box { flex-direction: column; align-items: flex-start; }

  .site-footer { padding: 44px 0 26px; margin-top: 52px; }
  .footer-grid { gap: 28px; margin-bottom: 28px; }

  .float-whatsapp { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

/* Telas bem pequenas: botões ocupam a largura toda (mais fáceis de tocar) */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
}
