/* Dr. Augusto Troncoso — Gastroenterologia
   Mobile first: os estilos base são para celular; tablet e desktop
   entram por min-width (600px, 900px e 1140px). */

:root {
  --navy1: #0a0e1a;
  --navy2: #1c2436;
  --navyAlt: #141926;
  --navyFooter: #060911;
  --gold: #c9a24b;
  --gold2: #b8933a;
  --cream: #f5f5f0;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(56px, 8vw, 110px);
  --header-h: 64px;
  --gold-grad: linear-gradient(135deg, var(--gold), var(--gold2));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--navy1);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 600; text-wrap: pretty; }
p { text-wrap: pretty; }

.page {
  background: linear-gradient(180deg, var(--navy1), var(--navy2) 40%, var(--navy1) 100%);
  overflow-x: hidden;
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ringSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } 40% { transform: scale(1); } 55% { transform: scale(1.15); } }
@keyframes titleShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes auroraDrift { 0%, 100% { background-position: 15% 25%; } 50% { background-position: 85% 75%; } }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0.0), 0 8px 22px -10px rgba(201,162,75,0.45); } 50% { box-shadow: 0 0 0 6px rgba(201,162,75,0.14), 0 10px 28px -8px rgba(201,162,75,0.6); } }
@keyframes ctaGlowDark { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,14,26,0.0), 0 8px 22px -10px rgba(10,14,26,0.5); } 50% { box-shadow: 0 0 0 6px rgba(10,14,26,0.14), 0 10px 28px -8px rgba(10,14,26,0.6); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Seções entram com fade ao aparecer na tela (só quando o JS está ativo) */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: fadeInUp 0.9s ease both; }

/* ---------- Componentes compartilhados ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.badge--dark { border-color: rgba(10, 14, 26, 0.35); color: var(--navy1); }

.section-title {
  font-size: clamp(24px, 6.4vw, 38px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.75);
  margin: 0 0 28px;
}

/* No celular os botões principais ocupam a largura (alvo de toque maior) */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 52px;
  text-decoration: none;
  text-align: center;
  border-radius: 100px;
  font-weight: 700;
  padding: 15px 28px;
  font-size: 15px;
  background: var(--gold-grad);
  color: var(--navy1);
  cursor: pointer;
  user-select: none;
  animation: ctaGlow 2.8s ease-in-out infinite;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:active,
.nav__cta:active { transform: translateY(0) scale(0.95); filter: brightness(0.94); transition: transform 0.08s ease; }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn--navy { background: var(--navy1); color: var(--gold); animation-name: ctaGlowDark; }
.btn--navy:focus-visible { outline-color: var(--navy1); }
.center .btn,
.presentation__body .btn,
.location__head .btn { margin-inline: auto; }

.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(201, 162, 75, 0.35) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.dot-grid--dark { background-image: radial-gradient(rgba(10, 14, 26, 0.25) 1px, transparent 1.5px); }

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 180% 180%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { width: 36px; height: 36px; flex: none; mix-blend-mode: screen; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand__tag {
  font-size: 8.5px;
  letter-spacing: 1.8px;
  color: rgba(245, 245, 240, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

.hamburger {
  display: flex;
  flex: none;
  background: none;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 18px; height: 2px;
  background: var(--gold);
  display: block;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile: painel que desce abaixo do header */
.nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--navy1);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { display: flex; animation: menuIn 0.25s ease both; }
.nav__link {
  display: block;
  padding: 15px 4px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  border-bottom: 1px solid rgba(201, 162, 75, 0.12);
  transition: color 0.2s ease;
}
.nav__link:active { color: var(--gold); }
.nav__cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--gold-grad);
  color: var(--navy1);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  animation: ctaGlow 2.8s ease-in-out infinite;
  transition: transform 0.18s ease, filter 0.18s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 28px) var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.9s ease both;
  background: radial-gradient(ellipse 900px 560px at 100% 10%, rgba(201, 162, 75, 0.09), transparent 60%);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero__particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__particles canvas { display: block; }

.hero__content {
  width: 100%;
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.hero .badge {
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: 0.9px;
  margin-bottom: 18px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.badge__city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-grad);
  color: var(--navy1);
  font-weight: 800;
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  margin: -3px -8px -3px 0;
}
.hero__title {
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero__lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.75);
  max-width: 480px;
  margin: 0 0 26px;
}
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__seal { display: flex; align-items: center; gap: 10px; }
.hero__seal-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.hero__seal-text { font-size: 12.5px; line-height: 1.4; color: rgba(245, 245, 240, 0.7); }

.hero__media {
  order: -1;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 20px 20px 28px 6px;
}
.hero__frame {
  position: absolute;
  top: 0; right: 0;
  width: calc(100% - 6px);
  height: calc(100% - 20px);
  border: 1.5px solid rgba(201, 162, 75, 0.5);
  border-radius: 26px;
}
.hero__glow {
  position: absolute;
  top: -40px; left: -20px;
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.4), transparent 70%);
  filter: blur(24px);
}
.hero__ring {
  position: absolute;
  bottom: 2px; right: 0;
  width: 56px; height: 56px;
  border: 1.5px dashed rgba(201, 162, 75, 0.45);
  border-radius: 50%;
  animation: ringSpin 18s linear infinite;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.care-card {
  position: absolute;
  left: 0; bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 25, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5);
  animation: floatCard 4.5s ease-in-out infinite;
}
.care-card__icon { flex: none; width: 20px; height: 20px; transform-origin: center; animation: heartBeat 2.2s ease-in-out infinite; }
.care-card__body { line-height: 1.3; }
.care-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(90deg, var(--cream), var(--gold), var(--cream));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 3.5s linear infinite;
}
.care-card__sub { font-size: 11px; color: rgba(245, 245, 240, 0.6); }

/* ---------- Faixa de especialidades ---------- */
.strip { overflow: hidden; padding: 14px 0; background: linear-gradient(120deg, var(--gold), var(--gold2)); }
.strip__text {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0 var(--gutter);
  font-size: 11px;
  letter-spacing: 1.4px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--navy1);
  text-align: center;
  margin: 0;
}
/* Separador "·" no fim de cada item: ao quebrar linha, nenhuma linha começa com ponto */
.strip__text span:not(:last-child)::after { content: "·"; margin-left: 14px; }

/* ---------- Apresentação ---------- */
.presentation {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 162, 75, 0.10), transparent 70%),
    linear-gradient(180deg, #0f1422 0%, #151b2b 45%, #0f1422 100%);
  padding: clamp(56px, 9vw, 120px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.presentation__rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.55), transparent);
  pointer-events: none;
}
.gallery {
  /* Celular: fotos em faixa deslizável com "espiada" da próxima */
  display: flex;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter) 4px;
  list-style: none;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 min(76%, 300px);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.presentation__body {
  max-width: 640px;
  text-align: center;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Condições tratadas ---------- */
.gold-section {
  padding: var(--section-y) var(--gutter);
  background: linear-gradient(150deg, var(--gold), var(--gold2));
  position: relative;
  overflow: hidden;
}
.gold-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}
.gold-section .section-title { color: var(--navy1); }
.conditions__title { margin-bottom: 12px; }
.conditions__sub { font-size: 14.5px; line-height: 1.6; color: rgba(10, 14, 26, 0.7); margin: 0; }

/* Cards de destaque dos exames */
.exams {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}
.exam-card {
  background: linear-gradient(160deg, #0a0e1a, #1c2436);
  border: 1px solid rgba(201, 162, 75, 0.55);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 24px 48px -20px rgba(10, 14, 26, 0.6);
  transition: transform 0.25s ease;
}
.exam-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.exam-card__icon svg { width: 22px; height: 22px; }
.exam-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.exam-card__tag { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.exam-card__title { font-size: 20px; line-height: 1.3; margin: 0; color: var(--cream); }
.exam-card__text { font-size: 14px; line-height: 1.6; color: rgba(245, 245, 240, 0.72); margin: 0; }
.exam-card__link { margin-top: 6px; align-self: flex-start; font-size: 14px; }

/* No celular os cards ficam compactos: ícone à esquerda, texto à direita */
.conditions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}
.condition {
  background: var(--navyAlt);
  border: 1px solid rgba(201, 162, 75, 0.16);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.condition__icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.condition__title { font-size: 15.5px; line-height: 1.35; margin: 0; color: var(--cream); align-self: center; }
.condition__text { font-size: 13.5px; line-height: 1.55; color: rgba(245, 245, 240, 0.68); margin: 0; }
.center { text-align: center; position: relative; z-index: 1; }

/* ---------- Frase de destaque ---------- */
.tagline {
  background: linear-gradient(120deg, var(--navy1), var(--navy2));
  padding: 28px var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.25);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}
.tagline p {
  margin: 0 auto;
  max-width: 34ch;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 4.4vw, 21px);
  line-height: 1.4;
  color: var(--gold);
  letter-spacing: 0.2px;
}

/* ---------- Consultas / Exames ---------- */
.services {
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 162, 75, 0.15), transparent 55%),
    linear-gradient(160deg, var(--cream), #ece7da);
  padding: var(--section-y) var(--gutter);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--navy1);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 20px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card h3 { font-size: 21px; line-height: 1.3; margin: 0 0 18px; color: var(--gold); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(245, 245, 240, 0.85);
}
.checklist svg { flex-shrink: 0; margin-top: 2px; }
.link-cta {
  display: inline-block;
  padding: 6px 0 2px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
}

/* ---------- Sobre ---------- */
.about {
  padding: var(--section-y) var(--gutter);
  background: linear-gradient(180deg, rgba(20, 25, 38, 0) 0%, rgba(20, 25, 38, 0.6) 50%, rgba(20, 25, 38, 0) 100%);
}
.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.about__media { width: 100%; max-width: 440px; }
.about__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 22px;
  border: 1px solid rgba(201, 162, 75, 0.3);
}
.about__content { width: 100%; max-width: 600px; }
.about__content .text:not(:last-of-type) { margin-bottom: 16px; }

/* ---------- Localização ---------- */
.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.location__head { max-width: 680px; text-align: center; position: relative; z-index: 1; }
.location__text { color: rgba(10, 14, 26, 0.75); }
.location__map { width: 100%; max-width: 1280px; position: relative; z-index: 1; }
.location__frame { border: 1.5px solid var(--navy1); border-radius: 18px; padding: 5px; overflow: hidden; }
.location__frame iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 14px;
  display: block;
  filter: grayscale(0.3) contrast(1.1);
}

/* ---------- FAQ ---------- */
.faq {
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 162, 75, 0.07), transparent 50%),
    linear-gradient(165deg, var(--navyAlt), #10141f);
  padding: var(--section-y) var(--gutter);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.faq .aurora {
  opacity: 0.4;
  background-image: radial-gradient(circle, rgba(201, 162, 75, 0.13), transparent 60%);
  animation: auroraDrift 30s ease-in-out infinite;
}
.faq__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.faq__head .section-title { margin: 0; }
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--navy1);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item.is-open { border-color: rgba(201, 162, 75, 0.45); }
.faq__q { margin: 0; font: inherit; }
.faq__toggle {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--cream);
}
.faq__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 14px; }
.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: transform 0.2s;
}
.faq__toggle[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
/* A altura aberta é calculada no JS (scrollHeight); este valor é o fallback */
.faq__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__item.is-open .faq__panel { max-height: 400px; }
.faq__panel p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(245, 245, 240, 0.7);
}

/* ---------- Rodapé ---------- */
.footer {
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.05), transparent 60%), var(--navyFooter);
  /* espaço extra embaixo para o botão flutuante não cobrir o copyright */
  padding: 48px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer .aurora {
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(201, 162, 75, 0.12), transparent 60%);
  animation: auroraDrift 36s ease-in-out infinite;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 36px;
}
.footer__brand { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.footer__heading { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; font-weight: 400; }
.footer__text { font-size: 14px; line-height: 2; color: rgba(245, 245, 240, 0.65); margin: 0; font-style: normal; }
.footer__text a { color: inherit; text-decoration: none; padding: 4px 0; }
.footer__tagline { line-height: 1.7; color: rgba(245, 245, 240, 0.6); max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.btn-whatsapp {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  background: var(--gold-grad);
  color: var(--navy1);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.footer__copy {
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.15);
  padding-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.45);
  margin: 0;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 200;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}
.wa-float svg { width: 28px; height: 28px; }
/* No celular o botão flutuante aparece só depois que o CTA do topo sai da tela */
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }
.wa-float { transition: transform 0.25s ease, opacity 0.25s ease; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================
   Tablet (≥ 600px)
   ====================================================== */
@media (min-width: 600px) {
  :root { --header-h: 72px; }

  .badge { font-size: 12px; letter-spacing: 1.2px; padding: 7px 16px; margin-bottom: 20px; }
  .text { font-size: 15.5px; margin-bottom: 32px; }
  .btn { display: inline-flex; width: auto; max-width: none; min-height: 0; padding: 15px 30px; font-size: 14.5px; }
  .btn--lg { padding: 16px 32px; font-size: 15px; }

  .brand { gap: 12px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 9px; letter-spacing: 2px; }

  .hero { padding-top: calc(var(--header-h) + 44px); gap: 40px; }
  .hero .badge { flex-wrap: nowrap; gap: 8px; padding: 7px 16px; font-size: 12px; letter-spacing: 1.2px; margin-bottom: 22px; }
  .badge__city { margin-right: -10px; }
  .hero__title { font-size: clamp(32px, 5.2vw, 44px); line-height: 1.18; margin-bottom: 22px; }
  .hero__lead { font-size: 16px; margin-bottom: 32px; }
  .hero__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
  .hero__media { padding: 32px 32px 40px 8px; }
  .hero__frame { width: calc(100% - 8px); height: calc(100% - 32px); border-radius: 30px; }
  .hero__ring { width: 70px; height: 70px; bottom: 6px; right: -10px; }
  .hero__photo { aspect-ratio: auto; height: clamp(420px, 60vw, 540px); border-radius: 28px; }
  .care-card { left: -24px; bottom: 24px; gap: 12px; padding: 14px 18px; border-radius: 16px; }
  .care-card__icon { width: 24px; height: 24px; }
  .care-card__title { font-size: 13.5px; }
  .care-card__sub { font-size: 11.5px; }

  .strip { padding: 16px 0; }
  .strip__text { font-size: 13px; letter-spacing: 2px; gap: 10px 18px; }
  .strip__text span:not(:last-child)::after { margin-left: 18px; }

  .gallery__item { border-radius: 22px; }

  .gold-section__head { margin-bottom: 56px; }
  .conditions__sub { font-size: 15px; }
  .conditions__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
  .exams { gap: 22px; margin-bottom: 22px; }
  .exam-card { padding: clamp(26px, 3vw, 36px); gap: 20px; border-radius: 22px; }
  .exam-card__icon { width: 56px; height: 56px; border-radius: 16px; }
  .exam-card__icon svg { width: 26px; height: 26px; }
  .exam-card__body { gap: 10px; }
  .exam-card__title { font-size: clamp(20px, 2vw, 24px); }
  .exam-card__text { font-size: 14.5px; line-height: 1.65; }

  .tagline { padding: 34px var(--gutter); }
  .tagline p { max-width: none; }

  .service-card { padding: clamp(30px, 3vw, 44px); border-radius: 22px; }
  .service-card h3 { font-size: 24px; margin-bottom: 22px; }
  .checklist { gap: 16px; margin-bottom: 28px; }

  .about__photo { aspect-ratio: auto; height: clamp(340px, 50vw, 460px); border-radius: 24px; }

  .location { gap: 44px; }
  .location__frame { border-radius: 20px; padding: 6px; }
  .location__frame iframe { height: clamp(320px, 38vw, 460px); border-radius: 16px; }

  .faq__head { margin-bottom: 48px; }
  .faq__list { gap: 14px; }
  .faq__item { border-radius: 16px; }
  .faq__toggle { padding: 22px 26px; font-size: 15.5px; gap: 16px; }
  .faq__icon { width: 26px; height: 26px; }
  .faq__panel p { padding: 0 26px 22px; }

  .footer { padding: clamp(48px, 6vw, 72px) var(--gutter) 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; margin-bottom: 40px; }
  .footer__heading { font-size: 13px; margin-bottom: 14px; }
  .footer__text { font-size: 13.5px; }
  .socials a { width: 38px; height: 38px; }
  .btn-whatsapp { min-height: 0; padding: 12px 22px; font-size: 13.5px; }

  .wa-float { bottom: 26px; right: 26px; width: 58px; height: 58px; }
  .wa-float.is-hidden { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* Galeria em 3 colunas a partir de 760px */
@media (min-width: 760px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* ======================================================
   Desktop (≥ 900px)
   ====================================================== */
@media (min-width: 900px) {
  .section-title { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 20px; }

  .hero {
    padding: clamp(120px, 14vw, 160px) var(--gutter) 48px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(32px, 5vw, 64px);
  }
  .hero__content { flex: 1 1 480px; min-width: 300px; width: auto; }
  .hero__title { font-size: clamp(32px, 4.2vw, 50px); }
  .hero__lead { font-size: clamp(15px, 1.4vw, 17px); }
  .hero__media { flex: 1 1 420px; min-width: 300px; max-width: 560px; width: auto; will-change: transform; }
  .hero__photo { height: clamp(360px, 42vw, 540px); }

  .conditions__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
  .exams { grid-template-columns: repeat(2, 1fr); }
  .condition { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 18px; }
  .condition__title { font-size: 16.5px; line-height: 1.4; align-self: auto; }
  .condition__text { font-size: 14px; line-height: 1.6; }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .about__inner { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: clamp(32px, 5vw, 64px); }
  .about__media { flex: 1 1 340px; min-width: 260px; width: auto; }
  .about__photo { height: clamp(340px, 34vw, 460px); }
  .about__content { flex: 1 1 420px; min-width: 300px; width: auto; }

  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ======================================================
   Menu completo (≥ 1140px)
   ====================================================== */
@media (min-width: 1140px) {
  .header { gap: 40px; padding: clamp(14px, 2vw, 20px) var(--gutter); }
  .brand__name { font-size: clamp(14px, 1.6vw, 17px); }
  .hamburger { display: none; }
  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: clamp(16px, 2.5vw, 32px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    animation: none;
  }
  .nav__link { display: inline; padding: 0; border: 0; font-size: 14px; }
  .nav__cta { margin-top: 0; min-height: 0; padding: 10px 22px; font-size: 14px; }
}

/* Efeitos de hover só em dispositivos com mouse (evita "hover preso" no toque) */
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
  .btn:active { transform: translateY(0) scale(0.95); filter: brightness(0.94); }
  .nav__link:hover { color: var(--gold); opacity: 1; }
  .nav__cta:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
  .nav__cta:active { transform: translateY(0) scale(0.95); filter: brightness(0.94); }
  .exam-card:hover { transform: translateY(-6px); }
  .condition:hover { transform: translateY(-6px); border-color: rgba(201, 162, 75, 0.5); }
  .service-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 75, 0.6); }
  .footer__text a:hover { color: var(--gold); }
  .btn-whatsapp:hover { transform: translateY(-2px) scale(1.03); }
  .wa-float:hover { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
