/* ===========================
   Dr. José Henrique — Urologia
   Design adaptado de brauliobrandao.com.br (dark mode)
   =========================== */

:root {
  --fundo-base: #0e151d;
  --fundo-alt: #102746;
  --fundo-card: #172b3f;
  --fundo-card-hover: #1d3650;
  --fundo-footer: #102746;
  --cor-primaria: #1872be;
  --cor-primaria-hover: #105b9b;
  --cor-acento: #88ab46;
  --cor-acento-hover: #6f8e36;
  --cor-verde-profundo: #49672f;
  --cor-dourada: #c99a45;
  --azul-nevoa: #dcecf8;
  --verde-salvia: #e6eed8;
  --fundo-claro: #f4f8fa;
  --texto-escuro: #182532;
  --branco: #ffffff;
  --texto-principal: #f0f0f0;
  --texto-secundario: #aebdca;
  --borda: #294157;
  --borda-acento: #88ab46;

  --max-width: 1160px;
  --gap-col: 70px;
  --radius-card: 12px;
  --radius-btn: 6px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
  --section-pad: 100px;
  --header-viewport: clamp(72px, 10svh, 108px);
  --ticker-viewport: clamp(40px, 5svh, 52px);
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --gap-col: 32px; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--texto-principal);
  background: var(--fundo-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

section { padding: var(--section-pad) 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--branco);
  text-wrap: balance;
}

h1 { font-size: clamp(46px, 6vw, 78px); }
h2 { font-size: clamp(38px, 4.5vw, 58px); }
h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 750; }

@media (max-width: 768px) {
  h1 { font-size: clamp(42px, 12vw, 58px); }
  h2 { font-size: clamp(34px, 9vw, 44px); }
}

p { color: var(--texto-secundario); }

.eyebrow {
  display: inline-block;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--cor-acento);
  margin-bottom: 16px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header.center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  margin-top: 16px;
  font-size: 18px;
}

/* ===== Buttons ===== */
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary,
.cta-band .btn-dark {
  background: var(--cor-acento);
  color: var(--branco);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(136, 171, 70, 0.38);
}
.btn-primary::after,
.cta-band .btn-dark::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -60% auto -60% -35%;
  width: 24%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  animation: button-shine 3.4s ease-in-out infinite;
}
.btn-primary:hover,
.cta-band .btn-dark:hover {
  background: var(--cor-acento-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 39, 70, 0.2);
}
@keyframes button-shine {
  0%, 42% { left: -35%; }
  72%, 100% { left: 120%; }
}

.btn-ghost {
  background: transparent;
  color: var(--cor-acento);
  border: 1.5px solid var(--cor-acento);
}
.btn-ghost:hover { background: var(--cor-acento); color: var(--branco); }

.btn-dark {
  background: var(--fundo-base);
  color: var(--branco);
}
.btn-dark:hover { background: var(--cor-primaria-hover); }

.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-viewport);
  background: #102746;
  border-bottom: 1px solid var(--borda);
  transition: box-shadow 0.2s ease;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }

.navbar-inner {
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img { height: 44px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.navbar-links a {
  color: var(--branco);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.navbar-links a:hover { color: var(--cor-acento); }
.navbar .navbar-cta {
  background: var(--cor-primaria);
}
.navbar .navbar-cta:hover {
  background: var(--cor-primaria-hover);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--branco);
}

.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  background: #102746;
  border-top: 1px solid var(--borda);
  padding: 16px 24px;
  gap: 16px;
}
.navbar-mobile-menu a { color: var(--branco); font-size: 15px; }
.navbar-mobile-menu .btn-primary {
  background: var(--cor-primaria);
}
.navbar-mobile-menu .btn-primary:hover {
  background: var(--cor-primaria-hover);
}
.navbar-mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .navbar-links, .desktop-only { display: none; }
  .navbar-toggle { display: flex; }
}

/* ===== Hero (full-bleed photo) ===== */
.hero {
  position: relative;
  background: #102746;
  height: calc(100svh - var(--header-viewport) - var(--ticker-viewport));
  min-height: 500px;
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: clamp(44px, 6vh, 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text {
  max-width: 620px;
  margin-right: auto;
  text-align: left;
}
.hero h1 {
  font-size: 64px;
  margin-bottom: 20px;
}

@media (min-width: 901px) and (max-width: 1440px) {
  .hero h1 {
    font-size: 54px;
  }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--texto-secundario);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--texto-secundario);
  max-width: 420px;
}

.hero-photo-wrap {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
}
.hero-photo-wrap img,
.hero-photo-wrap .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #102746 0%, rgba(16,39,70,0.88) 22%, rgba(16,39,70,0.35) 48%, transparent 68%);
  pointer-events: none;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #102746 0%, rgba(16,39,70,0.45) 25%, transparent 48%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    height: calc(100svh - var(--header-viewport) - var(--ticker-viewport));
    min-height: 520px;
    padding: 24px 0 30px;
    display: flex;
    align-items: center;
  }
  .hero-photo-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
  }
  .hero-photo-wrap::before {
    background: linear-gradient(to right, rgba(16,39,70,.62), rgba(16,39,70,.12));
  }
  .hero-photo-wrap::after {
    background: linear-gradient(to top, #102746 3%, rgba(16,39,70,.92) 32%, rgba(16,39,70,.18) 74%, transparent 100%);
  }
  .hero-inner {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 0;
  }
  .hero-text {
    max-width: 620px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 2;
    padding-top: 0;
  }
  .hero h1 {
    font-size: clamp(34px, 8.6vw, 48px);
    line-height: 1.02;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* No celular, mantém o rosto livre e concentra a mensagem na base do banner. */
@media (max-width: 600px) {
  .hero {
    padding: 20px 0 38px;
  }

  .hero-photo-wrap img {
    height: calc(100% + 52px);
    object-position: 55% top;
    transform: translateY(-52px);
  }

  .hero-inner {
    align-items: flex-end;
  }

  .hero-text {
    width: 100%;
    max-width: none;
  }

  .hero .eyebrow {
    max-width: 92%;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.04;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 14px;
  }

  .hero-photo-wrap::after {
    background: linear-gradient(
      to top,
      #102746 8%,
      rgba(16,39,70,.98) 39%,
      rgba(16,39,70,.48) 58%,
      rgba(16,39,70,.05) 76%,
      transparent 100%
    );
  }
}

.hero .btn-primary {
  background: var(--cor-primaria);
}
.hero .btn-primary:hover {
  background: var(--cor-primaria-hover);
}

/* ===== Ticker ===== */
.ticker {
  height: var(--ticker-viewport);
  background: var(--cor-primaria);
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  color: var(--branco);
  padding-right: 12px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Diagnóstico (2 col) ===== */
.diagnostico { background: var(--fundo-alt); }
.diagnostico-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-col);
  align-items: start;
}
.diagnostico-inner .section-header { margin-bottom: 0; max-width: none; }
.diagnostico-text p { font-size: 17px; margin-bottom: 20px; }
.diagnostico-text .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .diagnostico-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Tecnologia / Diferenciais grid ===== */
.tecnologia {
  background:
    radial-gradient(circle at 92% 12%, rgba(136,171,70,.15), transparent 30%),
    linear-gradient(145deg, #102746 0%, #17385d 100%);
  color: var(--branco);
}
.tecnologia-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 48px;
}
.tecnologia-intro h2 {
  color: var(--branco);
  margin: 10px 0 0;
  max-width: 650px;
}
.tecnologia-intro > p {
  color: rgba(246,248,242,.78);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}
.tecnologia .eyebrow { color: #b7cf7a; }
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  overflow: hidden;
}
.beneficio-card {
  background: rgba(11, 31, 55, .72);
  border: 0;
  border-radius: 0;
  padding: 34px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  min-height: 230px;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
}
.beneficio-card:hover {
  background: rgba(31, 71, 111, .92);
  transform: none;
}
.beneficio-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.36);
}
.beneficio-card .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(183,207,122,.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.beneficio-card .icon svg { width: 20px; height: 20px; color: var(--cor-acento); }
.beneficio-card h3 {
  color: var(--branco);
  font-size: 19px;
  margin: 4px 0 12px;
}
.beneficio-card p {
  color: rgba(246,248,242,.72);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 700px) {
  .tecnologia-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .beneficios-grid { grid-template-columns: 1fr; }
  .beneficio-card { min-height: 0; padding: 26px 24px; }
}

/* ===== Especialidades (tabs) ===== */
.especialidades { background: var(--fundo-alt); }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--borda);
  padding-bottom: 24px;
}
.tab-item {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  color: var(--texto-secundario);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-item:hover { border-color: var(--borda-acento); color: var(--texto-principal); }
.tab-item.active {
  background: var(--cor-acento);
  border-color: var(--cor-acento);
  color: var(--branco);
}

.tab-content-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-col);
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #b9cc98;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(64, 85, 47, 0.12);
}
.tab-content-panel.active { display: grid; }
.tab-content-panel h3 { font-size: 30px; margin-bottom: 16px; }
.tab-content-panel p { font-size: 17px; }
.tab-content-panel .photo-placeholder { border-radius: var(--radius-card); }
.specialty-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(16, 39, 70, 0.18);
}

@media (max-width: 900px) {
  .tab-content-panel { grid-template-columns: 1fr; padding: 20px; }
  .tab-content-panel .photo-placeholder { order: -1; }
}

/* ===== Sobre o médico ===== */
.sobre { background: var(--fundo-base); }
.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-col);
  align-items: center;
}
.sobre-tagline {
  color: var(--cor-acento);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
}
.sobre-text p { font-size: 17px; margin-bottom: 24px; }
.formacao-list { margin-bottom: 28px; }
.formacao-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--texto-secundario);
  font-size: 16px;
}
.formacao-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cor-acento);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sobre-photo {
  position: relative;
}
.sobre-photo .stats-grid {
  margin-top: 12px;
}
.sobre-photo .stat-item {
  padding: 18px 20px;
  border: 1px solid rgba(136, 171, 70, .28);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat-item .stat-num {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--branco);
  display: block;
}
.stat-item .stat-label { font-size: 14px; color: var(--texto-secundario); }

@media (max-width: 900px) {
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-photo { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ===== Depoimentos ===== */
.depoimentos { background: var(--fundo-alt); }
.depoimentos .section-header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.depoimentos .section-header h2 { color: var(--branco); }
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 6px 0 20px;
}
.depoimentos .carousel-viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.depoimentos-grid.carousel-track,
#artigos .artigos-grid.carousel-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  will-change: transform;
}
.depoimentos-grid.carousel-track {
  padding-left: 4vw;
}
.depoimentos-grid.carousel-track .depoimento-card {
  flex: 0 0 clamp(310px, 34vw, 440px);
}
.depoimento-card {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: 22px;
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-card);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.depoimento-card:hover { border-color: var(--borda-acento); transform: translateY(-4px); }
.depoimento-card .quote-mark {
  display: none;
}
.depoimento-card p.texto {
  color: var(--texto-principal);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  margin: 18px 0 26px;
  flex: 1;
  order: 2;
}
.depoimento-card .autor {
  font-weight: 700;
  color: var(--branco);
  font-size: 15px;
  order: 3;
}
.depoimento-card .fonte { font-size: 13px; color: var(--texto-secundario); }
.depoimento-card .fonte { order: 4; }
.depoimento-card .estrelas {
  color: var(--cor-dourada);
  font-size: 15px;
  letter-spacing: 2px;
  order: 1;
  margin: 0;
}

@media (max-width: 900px) {
  .depoimentos-grid { grid-template-columns: 1fr; }
  .depoimentos .section-header { text-align: left; margin-bottom: 34px; }
  .depoimentos-grid.carousel-track .depoimento-card {
    flex-basis: min(82vw, 360px);
  }
  .depoimento-card {
    min-height: 250px;
    padding: 26px 24px;
  }
}

/* ===== Artigos / Notícias cards ===== */
.artigos { background: var(--fundo-base); }
.artigos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.artigo-card {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
#artigos .artigos-grid.carousel-track .artigo-card {
  flex: 0 0 clamp(286px, 30vw, 350px);
}
.manual-carousel-shell {
  position: relative;
  margin-inline: 58px;
}
.manual-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.manual-carousel::-webkit-scrollbar { display: none; }
#artigos .artigos-grid.manual-carousel-track {
  display: flex;
  width: max-content;
  align-items: stretch;
}
#artigos .artigos-grid.manual-carousel-track .artigo-card {
  flex: 0 0 clamp(286px, 30vw, 350px);
  scroll-snap-align: start;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #102746;
  box-shadow: none;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}
.carousel-arrow:hover {
  background: transparent;
  color: var(--cor-primaria);
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow-prev {
  left: -56px;
}
.carousel-arrow-next {
  right: -56px;
}
.artigo-card:hover { border-color: var(--borda-acento); transform: translateY(-4px); }
.artigo-card .photo-placeholder { border-radius: 0; }
.article-cover {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.artigo-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.artigo-tag {
  font-family: 'Manrope', 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cor-acento);
  margin-bottom: 10px;
}
.artigo-card h3 { font-size: 19px; margin-bottom: 10px; }
.artigo-card p.resumo { font-size: 14px; margin-bottom: 16px; flex: 1; }
.artigo-card .artigo-data { font-size: 12px; color: var(--texto-secundario); margin-bottom: 14px; }
.artigo-card .leia-mais { color: var(--cor-acento); font-weight: 600; font-size: 14px; }

.artigos-cta { text-align: center; margin-top: 48px; }

@media (max-width: 900px) {
  .artigos-grid { grid-template-columns: 1fr; }
  .depoimentos-grid.carousel-track .depoimento-card,
  #artigos .artigos-grid.carousel-track .artigo-card {
    flex-basis: min(84vw, 340px);
  }
  #artigos .artigos-grid.manual-carousel-track .artigo-card {
    flex-basis: min(84vw, 340px);
  }
  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 42px;
  }
  .manual-carousel-shell {
    margin-inline: 34px;
  }
  .carousel-arrow-prev {
    left: -38px;
  }
  .carousel-arrow-next {
    right: -38px;
  }
}

/* ===== Article page (artigo-N.html) ===== */
.article-page {
  min-height: 100vh;
  background: #f4f8fa;
}
.article-page-header {
  background: #102746;
  padding-top: 64px;
  padding-bottom: 24px;
}
.article-back-link {
  display: inline-block;
  color: var(--cor-acento);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.article-tag {
  font-family: 'Manrope', 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cor-acento);
}
.article-readtime { font-size: 13px; color: var(--texto-secundario); }
.article-page-header h1 { font-size: 42px; margin-bottom: 16px; color: var(--branco); }
.article-byline { font-size: 14px; color: var(--texto-secundario); }

.article-cover-full {
  background: var(--fundo-card);
  border: 1px dashed var(--borda);
  border-radius: var(--radius-card);
  color: var(--texto-secundario);
  font-size: 14px;
  text-align: center;
  padding: 60px 24px;
  margin-bottom: 40px;
}
.article-cover-full.article-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  margin-top: 30px;
  padding: 0;
  border: 0;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: block;
}
.article-content h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #102746;
}
.article-content p { font-size: 17px; margin-bottom: 20px; color: #587083; }
.article-content ul { margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.article-content li {
  position: relative;
  padding-left: 22px;
  color: #587083;
  font-size: 16px;
}
.article-content li::before { content: '▸'; position: absolute; left: 0; color: var(--cor-acento); }

.article-disclaimer {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #c8dce8;
  background: var(--branco);
  border-radius: var(--radius-card);
  font-size: 13px;
  color: #587083;
}

.article-cta-box {
  margin-top: 40px;
  padding: 32px;
  background: var(--branco);
  border: 1px solid var(--borda-acento);
  border-radius: var(--radius-card);
  text-align: center;
}
.article-cta-box h3 { margin-bottom: 12px; color: #102746; }
.article-cta-box p { margin-bottom: 20px; }

.article-cta-robotica {
  background:
    linear-gradient(115deg, rgba(16, 39, 70, 0.94), rgba(16, 39, 70, 0.74)),
    url('/assets/artigo-robotica.jpg') center 42% / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 42px rgba(16, 39, 70, 0.2);
}

.article-cta-robotica h3,
.article-cta-robotica p {
  color: var(--branco);
}

.article-cta-robotica .btn-primary {
  background: var(--cor-acento);
  color: var(--branco);
}

.article-cta-robotica .btn-primary:hover {
  background: var(--cor-acento-hover);
}

@media (max-width: 700px) {
  .article-page-header h1 { font-size: 30px; }
}

/* ===== CTA intermediário / final ===== */
.cta-band {
  background: var(--cor-acento);
  text-align: center;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.8); }
.cta-band h2, .cta-band p { color: var(--branco); }
.cta-band p { opacity: 0.9; font-size: 18px; max-width: 620px; margin: 16px auto 32px; }

.cta-final { background: var(--fundo-alt); text-align: center; }
.cta-final h2 { font-size: 56px; }
.cta-final p { font-size: 18px; max-width: 560px; margin: 16px auto 32px; }

@media (max-width: 768px) {
  .cta-final h2 { font-size: 34px; }
}

/* ===== Localização ===== */
.localizacao { background: var(--fundo-alt); }
.localizacao-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.local-card {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.local-card:hover { border-color: var(--borda-acento); transform: translateY(-4px); }
.local-card .photo-placeholder { border-radius: 0; }
.location-map {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.local-card-body { padding: 26px; }
.local-label {
  font-family: 'Manrope', 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cor-acento);
  margin-bottom: 8px;
  display: block;
}
.local-card h3 { margin-bottom: 8px; }
.local-card address { font-style: normal; color: var(--texto-secundario); font-size: 15px; margin-bottom: 18px; }

@media (max-width: 800px) {
  .localizacao-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq { background: var(--fundo-base); }
.faq-list {
  border-top: 1px solid var(--borda);
  width: 100%;
  max-width: none;
}
.faq-item { border-bottom: 1px solid var(--borda); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
}
.faq-question span.q-text {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--branco);
  text-align: justify;
  text-align-last: left;
}
.faq-toggle-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--cor-acento);
  color: var(--cor-acento);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-toggle-icon { transform: rotate(135deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  width: 100%;
  max-width: none;
  padding-bottom: 22px;
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
}

/* ===== Footer ===== */
footer {
  background: var(--fundo-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo img { height: 40px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--texto-secundario); max-width: 280px; }
.footer-col h4, .footer-col h5 { color: var(--branco); font-size: 15px; margin-bottom: 16px; }
.footer-divider { border-top: 1px solid var(--borda); margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a,
.footer-col ul li span { color: var(--texto-secundario); font-size: 14px; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--cor-acento); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  padding-top: 24px;
  font-size: 13px;
  color: var(--texto-secundario);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(246, 248, 242, 0.72);
  max-width: 720px;
}
.footer-credits {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-credit-link {
  color: rgba(246, 248, 242, 0.72);
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.footer-credit-link:hover {
  color: var(--cor-acento);
}
.footer-legal-links a {
  transition: color 0.2s ease;
}
.footer-legal-links a:hover {
  color: var(--cor-acento);
}

/* ===== Páginas legais ===== */
.legal-page {
  min-height: 100vh;
  background: var(--fundo-claro);
  color: var(--texto-escuro);
}
.legal-hero {
  padding: 76px 0 58px;
  background: #102746;
}
.legal-hero .eyebrow {
  margin-bottom: 14px;
}
.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 64px);
}
.legal-hero p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(246, 248, 242, 0.76);
  font-size: 16px;
}
.legal-content {
  max-width: 860px;
  padding-top: 72px;
  padding-bottom: 88px;
}
.legal-content .legal-updated {
  color: #587083;
  font-size: 14px;
  margin-bottom: 38px;
}
.legal-content section {
  padding: 0;
  margin-bottom: 38px;
}
.legal-content h2 {
  color: #102746;
  font-size: clamp(25px, 3vw, 34px);
  margin-bottom: 14px;
}
.legal-content p,
.legal-content li {
  color: #41586a;
  font-size: 16px;
  line-height: 1.75;
}
.legal-content p + p {
  margin-top: 14px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
}
.legal-content li + li {
  margin-top: 8px;
}
.legal-content a {
  color: var(--cor-primaria);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content .legal-note {
  padding: 20px 22px;
  border-left: 4px solid var(--cor-acento);
  border-radius: 8px;
  background: var(--verde-salvia);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-credits {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-credit-link { white-space: normal; }
  .legal-hero { padding: 56px 0 42px; }
  .legal-content { padding-top: 52px; padding-bottom: 68px; }
  .legal-content p,
  .legal-content li { font-size: 14px; }
}

/* ===== Photo placeholder (generic) ===== */
.photo-placeholder {
  background: var(--fundo-card);
  border: 1px dashed var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-secundario);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  width: 100%;
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse 2.2s infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float .tooltip { display: none; }
.whatsapp-float::after {
  content: 'Agendar Consulta';
  position: absolute;
  right: 70px;
  background: var(--fundo-card);
  color: var(--branco);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover::after { opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Variações cromáticas da marca ===== */
.diagnostico,
.sobre,
.cta-final {
  background: var(--fundo-alt);
}

.diagnostico .eyebrow,
.sobre .eyebrow,
.depoimentos .eyebrow,
.cta-final .eyebrow {
  color: var(--cor-dourada);
}

.sobre .stat-num {
  color: var(--cor-dourada);
}

.artigos,
.faq {
  background: var(--fundo-claro);
}

.artigos h2,
.artigos h3,
.faq h2,
.faq .faq-question span.q-text {
  color: var(--texto-escuro);
}

.artigos .section-header p,
.artigo-card p.resumo,
.artigo-card .artigo-data,
.faq .section-header p,
.faq-answer p {
  color: #587083;
}

.artigo-card {
  background: var(--branco);
  border-color: #cbdce7;
  box-shadow: 0 10px 28px rgba(16, 39, 70, 0.08);
}

.especialidades {
  --gradient-x: 12%;
  --gradient-y: 12%;
  background:
    radial-gradient(circle at var(--gradient-x) var(--gradient-y), rgba(136,171,70,.42), rgba(136,171,70,.16) 24%, transparent 46%),
    linear-gradient(145deg, var(--azul-nevoa) 0%, #e9f1df 48%, #d5e6bf 100%);
}

.especialidades h2,
.especialidades h3,
.especialidades .tab-content-panel p {
  color: var(--texto-escuro);
}

.especialidades .section-header p {
  color: #526347;
}

.especialidades .tabs-nav {
  border-color: #bed09f;
}

.especialidades .tab-item {
  background: var(--cor-verde-profundo);
  border-color: var(--cor-verde-profundo);
  color: var(--branco);
  box-shadow: 0 5px 14px rgba(73, 103, 47, 0.16);
}

.especialidades .tab-item:hover {
  background: #5f7d3a;
  border-color: #5f7d3a;
  color: var(--branco);
  transform: translateY(-1px);
}

.especialidades .tab-item.active {
  background: var(--cor-acento);
  border-color: var(--cor-acento);
  color: #102746;
  box-shadow: 0 7px 18px rgba(136, 171, 70, 0.26);
}

.depoimentos {
  background: var(--cor-verde-profundo);
}

.depoimento-card {
  background: var(--fundo-claro);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 12px 30px rgba(9, 19, 30, 0.2);
}

.depoimento-card p.texto,
.depoimento-card .autor {
  color: var(--texto-escuro);
}

.depoimento-card .fonte {
  color: #617282;
}

.depoimento-card .quote-mark,
.depoimento-card .estrelas {
  color: var(--cor-dourada);
}

.cta-band {
  background: var(--cor-verde-profundo);
}

.cta-band .eyebrow {
  color: #f2d797;
}

.localizacao {
  --gradient-x: 12%;
  --gradient-y: 12%;
  background:
    radial-gradient(circle at var(--gradient-x) var(--gradient-y), rgba(24, 114, 190, .46), rgba(24, 114, 190, .2) 25%, transparent 48%),
    linear-gradient(145deg, #d9eaf6 0%, #c6dfef 52%, #b6d5e9 100%);
}

.localizacao h2,
.localizacao h3 {
  color: var(--texto-escuro);
}

.localizacao .eyebrow {
  color: var(--cor-verde-profundo);
}

.localizacao .section-header p,
.local-card address {
  color: #587083;
}

.local-card {
  background: var(--branco);
  border-color: #bed4e4;
  box-shadow: 0 10px 28px rgba(16, 39, 70, 0.08);
}

.local-card .photo-placeholder,
.artigo-card .photo-placeholder {
  background: #e8f1f6;
  border-color: #bed4e4;
  color: #587083;
}

.faq-list,
.faq-item {
  border-color: #cadbe6;
}

.faq-toggle-icon {
  border-color: var(--cor-primaria);
  color: var(--cor-primaria);
}

.artigo-card .leia-mais,
.artigo-tag,
.local-label {
  color: var(--cor-primaria);
}

/* ===== Ritmo cromático entre as seções ===== */
.diagnostico {
  background: var(--azul-nevoa);
}

.diagnostico h2 {
  color: var(--texto-escuro);
}

.diagnostico .eyebrow {
  color: var(--cor-primaria);
}

.diagnostico-text p {
  color: #587083;
}

.diagnostico .btn-ghost {
  color: var(--cor-primaria);
  border-color: var(--cor-primaria);
}

.diagnostico .btn-ghost:hover {
  background: var(--cor-primaria);
  color: var(--branco);
}

.cta-band {
  background: var(--cor-verde-profundo);
}

.cta-final {
  background:
    linear-gradient(135deg, rgba(24, 114, 190, .92), rgba(16, 39, 70, .94)),
    url('/assets/foto-robotica.jpg') center 42% / cover no-repeat;
}

.cta-final .eyebrow {
  color: #f7d995;
}

.cta-final h2,
.cta-final p {
  color: var(--branco);
}

.cta-final .btn-primary {
  background: var(--branco);
  color: #102746;
}

.cta-final .btn-primary:hover {
  background: var(--azul-nevoa);
  color: #102746;
}

.diagnostico h2 {
  color: #102746;
}

/* Azul-marinho institucional nos títulos das seções claras */
.diagnostico .section-header h2,
.especialidades .section-header h2,
.especialidades .tab-content-panel h3,
.artigos .section-header h2,
.localizacao .section-header h2,
.faq .section-header h2,
.faq .faq-question .q-text {
  color: #102746;
}

.diagnostico-text p {
  text-align: justify;
  text-align-last: left;
}

.cta-band .btn-dark {
  background: var(--cor-acento);
  color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.cta-band .btn-dark:hover {
  background: var(--cor-acento-hover);
}

.sobre-photo img {
  display: block;
}

.sobre-photo .stat-num {
  font-size: clamp(20px, 2.3vw, 30px);
}

.sobre-photo .stat-label {
  color: rgba(246, 248, 242, 0.84);
  font-size: 12px;
  line-height: 1.3;
}

/* ===== Escala padronizada dos textos de apoio ===== */
.hero-subtitle,
.diagnostico-text p,
.tecnologia-intro > p,
.especialidades .section-header p,
.especialidades .tab-content-panel p,
.sobre-text > p:not(.sobre-tagline),
.formacao-list li,
.depoimento-card p.texto,
.cta-band .container > p,
.localizacao .section-header p,
.cta-final .container > p {
  font-size: 16px;
}

@media (max-width: 900px) {
  .hero-subtitle,
  .diagnostico-text p,
  .tecnologia-intro > p,
  .especialidades .section-header p,
  .especialidades .tab-content-panel p,
  .sobre-text > p:not(.sobre-tagline),
  .formacao-list li,
  .depoimento-card p.texto,
  .cta-band .container > p,
  .localizacao .section-header p,
  .cta-final .container > p {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .sobre-photo .stats-grid {
    gap: 7px;
  }

  .sobre-photo .stat-item {
    padding: 10px;
    border-radius: 12px;
  }

  .sobre-photo .stat-num {
    font-size: 18px;
  }

  .sobre-photo .stat-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .whatsapp-float { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Hero page (noticias) ===== */
.page-hero {
  background: #102746;
  padding-top: 72px;
  padding-bottom: 30px;
  text-align: center;
}
.page-hero .section-header { margin: 0 auto; }
.page-hero .section-header p { font-size: 17px; }

/* Rodapé dos artigos: quatro áreas na mesma linha em telas amplas */
.article-page .footer-grid {
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 800px) {
  .article-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .article-page .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Escala dos títulos principais em notebooks */
@media (min-width: 901px) and (max-width: 1440px) {
  h1,
  h2,
  .hero h1,
  .cta-final h2 {
    font-size: 54px;
  }
}
