/* ================================================
   Dr. Diogo Trevisan — Cortex Centro Neurocirúrgico
   ================================================ */

/* --- Variáveis -------------------------------- */
:root {
  --primary:        #5895B7;
  --primary-dark:   #0072B7;
  --primary-light:  #CBE2EF;
  --dark:           #001D30;
  --dark-2:         #0a2a40;
  --bg:             #F9F9F9;
  --bg-alt:         #F1F1F1;
  --accent:         #D4AA70;
  --text:           #313131;
  --text-muted:     #666;
  --white:          #fff;
  --green-wa:       #25D366;
  --green-wa-dark:  #1ea952;
  --border:         #e0e0e0;

  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Lato', sans-serif;
  --font-accent:    'Dancing Script', cursive;

  --radius:         8px;
  --radius-pill:    99px;
  --shadow:         0 4px 20px rgba(0,0,0,.08);
  --shadow-md:      0 8px 32px rgba(0,0,0,.12);
  --transition:     .3s ease;

  --container:      1200px;
  --section-py:     90px;
}

/* --- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
#page-wrap {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-y;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Tipografia ------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utilitários ------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p  { color: var(--text-muted); max-width: 580px; margin: 0 auto; }
.section-title .eyebrow {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.divider {
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}
.text-left .divider { margin-left: 0; }

/* --- Botões ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-wa {
  background: var(--green-wa);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-wa:hover {
  background: var(--green-wa-dark);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--dark);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  letter-spacing: .02em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav a {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mobile-menu a:hover { background: rgba(255,255,255,.1); }
.mobile-menu .btn-wa { margin-top: 16px; }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(88,149,183,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/dr-diogo.jpg') center top / cover no-repeat;
  opacity: 0.06;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero-content { position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-badge svg { color: var(--accent); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 320px;
}
.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 48px rgba(88,149,183,.35));
}
.hero-stat {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}
.hero-stat span { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.hero-stat-1 { bottom: 40px; left: -24px; }
.hero-stat-2 { top: 40px; right: -24px; }
/* ================================================
   DIFERENCIAIS
   ================================================ */
.diferenciais {
  padding: var(--section-py) 0;
  background: var(--white);
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.diferencial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.diferencial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary);
}
.diferencial-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
  background: var(--white);
  transition: var(--transition);
}
.diferencial-card:hover .diferencial-icon {
  background: var(--primary);
  color: var(--white);
}
.diferencial-card h3 { margin-bottom: 12px; }
.diferencial-card p { color: var(--text-muted); font-size: .95rem; }

/* ================================================
   ESPECIALIDADES
   ================================================ */
.especialidades {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin: -60px 0;
  padding-top: calc(var(--section-py) + 60px);
  padding-bottom: calc(var(--section-py) + 60px);
}
.especialidades .section-title h2 { color: var(--white); }
.especialidades .section-title p  { color: rgba(255,255,255,.6); }
.especialidades .section-title .eyebrow { color: var(--accent); }
.especialidades .divider { background: var(--accent); }

/* Diferenciais dentro da seção escura: mesmo visual dos esp-cards */
.especialidades .diferencial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom-width: 1px;
  text-align: left;
  padding: 32px 24px;
}
.especialidades .diferencial-card:hover {
  background: rgba(88,149,183,.15);
  border-color: var(--primary);
  box-shadow: none;
}
.especialidades .diferencial-icon {
  background: rgba(88,149,183,.1);
  border-color: var(--primary);
  color: var(--primary);
  margin: 0 0 20px;
}
.especialidades .diferencial-card:hover .diferencial-icon {
  background: rgba(88,149,183,.2);
  color: var(--white);
}
.especialidades .diferencial-card h3 { color: var(--white); }
.especialidades .diferencial-card p  { color: rgba(255,255,255,.65); font-size: .9rem; }

/* Accordion icon: mesmo visual dos esp-icon */
.accordion-header .formacao-card-icon {
  background: rgba(88,149,183,.1);
  border-color: var(--primary);
}

.esp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.esp-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}
.esp-card:hover,
details[open].esp-card {
  background: rgba(88,149,183,.15);
  border-color: var(--primary);
}
.esp-card:hover { transform: translateY(-4px); }
.esp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  background: rgba(88,149,183,.1);
}
.esp-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.esp-card ul li {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.esp-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
/* Desktop: summary é decorativo, sem marcador, sem cursor */
details.esp-card > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
  display: block;
}
details.esp-card > summary::-webkit-details-marker { display: none; }
.esp-chevron { display: none; }

/* ================================================
   NEUROCIRURGIÃO
   ================================================ */
.medico {
  padding: var(--section-py) 0;
  background: var(--white);
}
.medico-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.medico-photo {
  position: relative;
}
.medico-photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.medico-photo-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.medico-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-heading);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.medico-badge strong { display: block; font-size: 1.6rem; line-height: 1; }
.medico-badge span   { font-size: .8rem; opacity: .85; }
.medico-content { padding-right: 8px; }
.medico-content .eyebrow {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.medico-content h2 { margin-bottom: 8px; }
.medico-crm {
  font-size: .85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.medico-content > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.timeline {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 8px + 20px);
  background: var(--primary-light);
}
.timeline-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 2px;
}
.timeline-text span { font-size: .85rem; color: var(--text-muted); }

.memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.membership-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: .8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
}

/* --- Separador interno Especialidades → Formação --- */
.subsection-sep {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 64px 0 8px;
}
.subsection-sep::before,
.subsection-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}
.subsection-sep span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  white-space: nowrap;
}
.subsection-note {
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  margin-bottom: 36px;
}

/* ================================================
   ACCORDION (Formação e Certificações)
   ================================================ */
.formacao-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}
.accordion-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}
details[open].accordion-item {
  background: rgba(88,149,183,.15);
  border-color: var(--primary);
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::marker { display: none; }
.accordion-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}
.accordion-chevron {
  transition: transform .3s ease;
  color: var(--accent);
  flex-shrink: 0;
}
details[open] .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 0 24px 20px; }
.accordion-body .formacao-list { gap: 12px; }
.accordion-body .formacao-item {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
}
.accordion-body .formacao-item::before { color: var(--accent); }
.accordion-body .formacao-item strong {
  color: var(--white);
  font-weight: 700;
}

/* ================================================
   FORMAÇÃO cards (usados dentro de .especialidades)
   ================================================ */
.formacao {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.formacao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.formacao-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.formacao-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}
.formacao-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--bg);
}
.formacao-card-header h3 {
  font-size: 1rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.formacao-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.formacao-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.formacao-item::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: -1px;
}
.formacao-item strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ================================================
   CLÍNICA
   ================================================ */
.clinica {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(1) { grid-row: span 2; }

/* ================================================
   DEPOIMENTOS
   ================================================ */
.depoimentos {
  padding: var(--section-py) 0;
  background: var(--white);
}
.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.dep-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.dep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dep-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.dep-stars svg { color: #FFC107; }
.dep-text {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.dep-text::before { content: '"'; }
.dep-text::after  { content: '"'; }
.dep-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dep-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
}
.dep-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dep-name strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 2px;
}
.dep-name span { font-size: .78rem; color: var(--text-muted); }
.google-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}
.google-badge svg { width: 16px; height: 16px; }

/* ================================================
   CTA CENTRAL
   ================================================ */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin: -60px 0;
  padding-top: calc(var(--section-py) + 60px);
  padding-bottom: calc(var(--section-py) + 60px);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 36px; }

/* ================================================
   CONTATO
   ================================================ */
.contato {
  padding: var(--section-py) 0 56px;
  background: var(--white);
}
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.contato-info { }
.contato-info h2 { margin-bottom: 8px; }
.contato-info .eyebrow {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.contato-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.info-row .info-item { flex: 1; min-width: 220px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
  color: var(--dark);
}
.info-item span { font-size: .9rem; color: var(--text-muted); }
.socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark-2);
  padding: 40px 0;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer img { height: 32px; opacity: .7; }
.footer a { color: rgba(255,255,255,.55); transition: var(--transition); }
.footer a:hover { color: var(--white); }
.footer .social-btn {
  width: 36px;
  height: 36px;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.55);
}
.footer .social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,170,112,.1);
}

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.wa-float:hover {
  background: var(--green-wa-dark);
  transform: scale(1.1);
  animation: none;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.75); }
}

/* ================================================
   RESPONSIVO
   ================================================ */
@media (max-width: 1024px) {
  .esp-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-logo-wrap { width: 260px; height: 260px; }
  .hero-stat-1 { left: 0; }
  .hero-stat-2 { right: 0; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-logo-wrap { width: 200px; height: 200px; }
  .hero-stat-1, .hero-stat-2 { display: none; }

  .diferenciais-grid { grid-template-columns: 1fr; gap: 20px; }

  .especialidades { clip-path: none; margin: 0; padding: var(--section-py) 0; }
  .esp-grid { grid-template-columns: 1fr; }

  /* Mobile: esp-cards viram acordeão — idêntico ao formação e certificações */
  .esp-grid { gap: 10px; }
  details.esp-card { padding: 0; overflow: hidden; }
  details.esp-card > summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    pointer-events: auto;
    padding: 18px 24px;
    margin: 0;
    user-select: none;
    list-style: none;
  }
  details.esp-card > summary::-webkit-details-marker { display: none; }
  details.esp-card > summary .esp-icon {
    width: 48px;
    height: 48px;
    border: 3px solid var(--primary);
    margin: 0;
    flex-shrink: 0;
  }
  details.esp-card > summary h3 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
  }
  .esp-chevron {
    display: block;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .3s ease;
  }
  details[open].esp-card .esp-chevron { transform: rotate(180deg); }
  details.esp-card ul { padding: 0 24px 20px; }

  .medico-inner { grid-template-columns: 1fr; gap: 40px; }
  .medico-badge { right: 0; bottom: -16px; }
  .medico-content { padding-right: 0; }

  /* Galeria: slideshow horizontal */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 88%;
    scroll-snap-align: start;
    border-radius: var(--radius);
    display: block !important;
  }
  .gallery-item img { height: 260px; width: 100%; object-fit: cover; }
  .gallery-item:nth-child(1) { grid-row: span 1; }

  /* Depoimentos: slideshow horizontal */
  .dep-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .dep-grid::-webkit-scrollbar { display: none; }
  .dep-card {
    flex: 0 0 calc(100% - 16px);
    scroll-snap-align: start;
  }

  .cta-section { clip-path: none; margin: 0; padding: var(--section-py) 0; }

  .contato-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ================================================
   ANIMAÇÕES ScrollReveal (classe inicial)
   ================================================ */
.sr-hidden { visibility: hidden; }
