/* =========================================================
   Clínica São Geraldo — Dr. Daniel F. Sousa
   Paleta extraída da logomarca
   ========================================================= */
:root {
  --teal: #00bcc9;        /* cruz – turquesa claro */
  --teal-600: #0e9aa7;    /* cruz – turquesa escuro / "CLÍNICA" */
  --petrol: #1b7a99;      /* azul petróleo das artes */
  --navy: #0d3470;        /* "SÃO GERALDO" */
  --navy-900: #081f45;
  --ink: #16233b;
  --muted: #5b6b82;
  --line: #e3ebf3;
  --bg: #ffffff;
  --bg-soft: #f2f8fb;
  --bg-teal: #e6f8fa;
  --wpp: #25d366;

  --grad: linear-gradient(135deg, var(--teal) 0%, var(--petrol) 55%, var(--navy) 100%);
  --grad-text: linear-gradient(90deg, var(--teal-600), var(--navy));

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(13, 52, 112, .28);
  --shadow-sm: 0 8px 24px -12px rgba(13, 52, 112, .25);
  --ff-head: "Sora", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--navy-900); } /* fundo do "elástico" do celular igual ao rodapé */
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-light { background: linear-gradient(90deg, #5fe3ec, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  font-family: var(--ff-head); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { font-size: 1.15em; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(14, 154, 167, .8); background-size: 150% 150%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(14, 154, 167, .9); background-position: 100% 0; }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
.btn--white:hover { transform: translateY(-2px); color: var(--teal-600); }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Tag (títulos de seção – tema 3) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em; border-radius: 999px;
  background: var(--bg-teal); color: var(--teal-600);
  font: 600 .78rem/1 var(--ff-head); text-transform: uppercase; letter-spacing: .08em;
}
.tag svg { font-size: .9em; }
.tag--light { background: rgba(255, 255, 255, .12); color: #8ef0f6; }

.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head .tag { margin-bottom: 18px; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section__head--light p { color: rgba(255, 255, 255, .75); }
.section__head--light .section__title { color: #fff; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }

/* ---------- Topbar (tema 1) ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar__right { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; transition: color .2s; }
.topbar__item svg { color: var(--teal); }
a.topbar__item:hover { color: #fff; }
.topbar__social { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .18); }
.topbar__right > .topbar__item + .topbar__item { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .18); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(13, 52, 112, .35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { width: 190px; height: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px; font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-600); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-teal); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero (tema 2 + arte da clínica) ---------- */
.hero {
  position: relative; overflow: hidden; padding: 70px 0 0; isolation: isolate;
  background: var(--navy-900) url("../img/hero-poster.webp") center / cover no-repeat;
}
.hero__video { position: absolute; inset: 0; z-index: -2; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video video.is-playing { opacity: 1; }
.hero__overlay {   /* véu com as cores da marca para garantir leitura */
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 500px at 78% 45%, rgba(0, 188, 201, .28), transparent 65%),
    linear-gradient(90deg, rgba(8, 31, 69, .92) 0%, rgba(8, 31, 69, .74) 45%, rgba(13, 52, 112, .38) 100%);
}
.hero::after {   /* linha turquesa de transição para a faixa */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero__content { align-self: center; padding-bottom: 70px; }
.hero__content .tag { margin-bottom: 22px; }
.hero__title { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__lead { font-size: 1.2rem; color: rgba(255, 255, 255, .85); margin-bottom: 36px; white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; align-self: end; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.hero__glow {   /* halo de luz para destacar a cruz sobre o fundo escuro */
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 130%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .34) 0%, rgba(0, 188, 201, .22) 32%, transparent 65%);
}
.hero__symbol {   /* cruz da logomarca */
  position: absolute; left: 50%; top: 50%; width: min(520px, 104%); height: auto;
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
  animation: symbol-float 9s ease-in-out infinite;
}
.hero__doctor { position: relative; z-index: 2; display: block; margin-bottom: -1px; width: min(460px, 92%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--ff-head); color: var(--navy); font-size: .92rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-teal); color: var(--teal-600); font-size: 1.3rem; }
.float-card__icon--navy { background: var(--navy); color: #fff; }
.hero__media .float-card { bottom: 12%; right: -4%; }


/* ---------- Marquee (tema 3) ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font: 600 clamp(1.1rem, 2vw, 1.5rem) var(--ff-head); white-space: nowrap; letter-spacing: -.01em; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .7); }
.marquee__track i {
  width: 18px; height: 18px; flex-shrink: 0; background: var(--teal);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}

/* ---------- Features (tema 1/2) ---------- */
.features { padding: 80px 0 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-teal); color: var(--teal-600); font-size: 1.7rem; transition: .3s;
}
.feature:hover .feature__icon { background: var(--grad); color: #fff; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; padding: 0 60px 60px 0; }
.about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 3.4; }
.about__img--main img { object-position: 60% 20%; }
.about__img--small {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4;
  border: 6px solid #fff;
}
.about__img--small img { object-position: center 15%; }
.about__badge {
  position: absolute; left: -18px; bottom: 90px; background: var(--grad); color: #fff;
  padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.about__badge strong { display: block; font: 800 1.6rem/1 var(--ff-head); letter-spacing: .04em; }
.about__badge span { font-size: .8rem; opacity: .9; line-height: 1.3; display: block; margin-top: 4px; }
.about__content .tag { margin-bottom: 18px; }
.about__content .section__title { margin-bottom: 20px; }
.about__content > p { color: var(--muted); margin-bottom: 16px; }
.about__content > p strong { color: var(--navy); }
.checklist { display: grid; gap: 12px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg {
  width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--bg-teal); color: var(--teal-600); margin-top: 1px;
}
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

/* ---------- Missão ---------- */
.mission { background: var(--navy-900); color: #fff; overflow: hidden; }
.mission::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(0, 188, 201, .22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(27, 122, 153, .35), transparent 60%);
}
.mission__deco { position: absolute; right: -80px; bottom: -80px; font-size: 420px; color: rgba(255, 255, 255, .03); }
.mission .container { position: relative; }
.mission__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mcard {
  position: relative; padding: 36px 30px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s, background .3s, border-color .3s;
}
.mcard:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(0, 188, 201, .5); }
.mcard__num { position: absolute; top: 24px; right: 28px; font: 800 2.6rem/1 var(--ff-head); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); }
.mcard__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); font-size: 1.6rem; margin-bottom: 22px; }
.mcard h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.mcard p { color: rgba(255, 255, 255, .72); font-size: .95rem; }


/* ---------- Serviços ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; overflow: hidden; padding: 36px 32px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, color .35s; isolation: isolate;
}
.service::before {  /* overlay em gradiente no hover (tema 1) */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .4s;
}
.service::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  clip-path: polygon(37% 0, 63% 0, 63% 37%, 100% 37%, 100% 63%, 63% 63%, 63% 100%, 37% 100%, 37% 63%, 0 63%, 0 37%, 37% 37%);
  background: var(--bg-teal); z-index: -1; transition: .4s;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: #fff; }
.service:hover::before { opacity: 1; }
.service:hover::after { background: rgba(255, 255, 255, .1); transform: scale(1.3); }
.service__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem;
  background: var(--grad); color: #fff; margin-bottom: 24px; transition: .35s; box-shadow: 0 10px 20px -10px rgba(14, 154, 167, .8);
}
.service:hover .service__icon { background: #fff; color: var(--teal-600); }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; transition: color .35s; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; transition: color .35s; }
.service:hover h3, .service:hover p { color: #fff; }
.service__link { display: inline-flex; align-items: center; gap: 6px; font: 600 .9rem var(--ff-head); color: var(--teal-600); transition: gap .3s, color .35s; }
.service__link:hover { gap: 12px; }
.service:hover .service__link { color: #fff; }
.service__badge {
  position: absolute; top: 22px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 .72rem var(--ff-head); text-transform: uppercase; letter-spacing: .06em;
}
.service--featured { border-color: rgba(0, 188, 201, .5); box-shadow: var(--shadow-sm); }

/* ---------- Check-up ---------- */
.checkup { padding: 110px 0 40px; }
.checkup__box {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
  background: var(--grad); border-radius: 36px; padding: 70px; color: #fff; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(13, 52, 112, .6);
}
.checkup__box::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.checkup__content { position: relative; }
.checkup__content .tag { margin-bottom: 18px; }
.checkup__title { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.checkup__title span { display: block; font-size: .5em; font-weight: 600; color: #b9f5f9; letter-spacing: -.01em; margin-top: 8px; }
.checkup__content > p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; max-width: 520px; }
.checkup__list { display: grid; gap: 14px; margin-bottom: 34px; }
.checkup__list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
  transition: background .3s, transform .3s;
}
.checkup__list li:hover { background: rgba(255, 255, 255, .16); transform: translateX(6px); }
.checkup__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 1.3rem; flex-shrink: 0; }
.checkup__list strong { font-family: var(--ff-head); display: block; margin-bottom: 2px; }
.checkup__list p { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.checkup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.checkup__media { position: relative; padding: 0 0 30px 30px; }
.checkup__media::before {  /* moldura deslocada */
  content: ""; position: absolute; inset: 30px 30px 0 0; border-radius: 28px; border: 2px solid rgba(255, 255, 255, .35);
}
.checkup__photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #eef3f5;
  box-shadow: 0 30px 60px -25px rgba(8, 31, 69, .7);
}
.checkup__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .8s ease; }
.checkup__media:hover .checkup__photo img { transform: scale(1.04); }
.checkup__sign {
  position: absolute; left: 0; bottom: 60px; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--navy);
}
.checkup__sign-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; }
.checkup__sign strong { display: block; font: 700 .95rem/1.2 var(--ff-head); }
.checkup__sign small { color: var(--muted); font-size: .8rem; }

/* ---------- A Clínica ---------- */
.clinic__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.clinic__intro .tag { margin-bottom: 18px; }
.clinic__intro .section__title { margin-bottom: 18px; }
.clinic__intro > p { color: var(--muted); }
.clinic__intro .checklist { margin-bottom: 30px; }
.video-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-align: left;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform .6s; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 31, 69, .8), rgba(8, 31, 69, .1)); }
.video-card:hover img { transform: scale(1.06); }
.video-card__play {
  position: absolute; z-index: 1; left: 28px; top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal-600); font-size: 1.5rem;
}
.video-card__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: ping 2s ease-out infinite; }
.video-card__label { position: absolute; z-index: 1; left: 110px; top: 50%; transform: translateY(-50%); color: #fff; }
.video-card__label strong { display: block; font: 700 1.15rem var(--ff-head); }
.video-card__label small { opacity: .8; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { position: relative; border-radius: 16px; overflow: hidden; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item > span {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, rgba(0, 188, 201, .75), rgba(13, 52, 112, .85)); opacity: 0; transition: opacity .35s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover > span, .gallery__item:focus-visible > span { opacity: 1; }

/* ---------- Blog ---------- */
.blog { background: var(--bg-soft); }
.blog__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.blog__media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.blog__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.blog__quote {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 22px 24px; border-radius: 18px;
  background: rgba(13, 52, 112, .88); color: #fff; backdrop-filter: blur(8px);
}
.blog__quote p { font: 600 1.05rem/1.45 var(--ff-head); margin-bottom: 8px; }
.blog__quote span { color: #8ef0f6; font-size: .85rem; }
.blog__content .tag { margin-bottom: 18px; }
.blog__content .section__title { margin-bottom: 20px; }
.blog__content > p { color: var(--muted); margin-bottom: 16px; }
.blog__content > p strong { color: var(--navy); }
.blog__sub { font-size: 1.1rem; margin: 26px 0 16px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.benefit {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .95rem;
  transition: border-color .3s, transform .3s;
}
.benefit:hover { border-color: var(--teal); transform: translateY(-3px); }
.benefit span { font: 800 1.1rem var(--ff-head); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog__content .btn { margin-top: 10px; }

/* ---------- FAQ (tema 2) ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__intro .tag { margin-bottom: 18px; }
.faq__intro .section__title { margin-bottom: 16px; }
.faq__intro > p { color: var(--muted); margin-bottom: 30px; }
.faq__help { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 18px; background: var(--bg-teal); transition: transform .3s; }
.faq__help:hover { transform: translateY(-3px); }
.faq__help-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--wpp); color: #fff; font-size: 1.5rem; }
.faq__help small { display: block; color: var(--muted); font-size: .8rem; }
.faq__help strong { font: 700 1.1rem var(--ff-head); color: var(--navy); }
.accordion { display: grid; gap: 14px; }
.acc { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.acc[open] { box-shadow: var(--shadow-sm); border-color: rgba(0, 188, 201, .45); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font: 600 1.05rem var(--ff-head); color: var(--navy);
}
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-teal); color: var(--teal-600); flex-shrink: 0; transition: transform .3s, background .3s, color .3s; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.acc__body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--grad); color: #fff; padding: 70px 0; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 500px; height: 500px; right: -120px; top: -120px;
  clip-path: polygon(37% 0, 63% 0, 63% 37%, 100% 37%, 100% 63%, 63% 63%, 63% 100%, 37% 100%, 37% 63%, 0 63%, 0 37%, 37% 37%);
  background: rgba(255, 255, 255, .07);
}
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.info-card > span:last-child { min-width: 0; }
.contact__info { display: grid; gap: 14px; grid-template-rows: auto auto auto auto 1fr; }
.info-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }
.info-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.35rem; flex-shrink: 0; }
.info-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.info-card strong { font: 600 1.05rem/1.35 var(--ff-head); color: var(--navy); }
.map { border-radius: 18px; overflow: hidden; min-height: 240px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }

.form { padding: 40px; border-radius: 26px; background: var(--bg-soft); border: 1px solid var(--line); }
.form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form__hint { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font: 600 .85rem var(--ff-head); color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 188, 201, .15); }
.field.is-invalid input { border-color: #d64545; }
.form__error { color: #c23434; font-size: .9rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-top: 80px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer__logo {
  display: inline-block; padding: 16px 22px; margin-bottom: 22px; border-radius: 18px; background: #fff;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .5); transition: transform .3s;
}
.footer__logo:hover { transform: translateY(-3px); }
.footer__logo img { width: 200px; height: auto; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: background .3s, transform .3s;
}
.footer__social a:hover { background: var(--grad); transform: translateY(-3px); }
.footer__brand p { max-width: 300px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--teal); padding-left: 4px; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { color: var(--teal); margin-top: 5px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5);
}
.footer__dev { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .5); transition: color .2s; white-space: nowrap; }
.footer__dev img { height: 15px; width: auto; opacity: .85; transition: opacity .2s; }
.footer__dev:hover { color: #fff; }
.footer__dev:hover img { opacity: 1; }

/* ---------- Flutuantes ---------- */
.wpp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; height: 60px; min-width: 60px; border-radius: 999px;
  display: flex; align-items: center; background: var(--wpp); color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  overflow: hidden; transition: transform .3s;
}
.wpp-float svg { width: 60px; height: 30px; }
.wpp-float__label { max-width: 0; white-space: nowrap; font-weight: 600; font-size: .92rem; transition: max-width .4s ease, padding .4s ease; }
.wpp-float:hover { transform: translateY(-3px); }
.wpp-float:hover .wpp-float__label { max-width: 240px; padding-right: 22px; }
.wpp-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ring 2.4s ease-out infinite; }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-600); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 31, 69, .92); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox__stage img, .lightbox__stage video { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
@keyframes symbol-float { 0%, 100% { transform: translate(-50%, -52%) rotate(0deg); } 50% { transform: translate(-50%, -55%) rotate(-2deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .hero__lead { font-size: 1.05rem; }
}
@media (max-width: 1100px) {
  .nav__link { padding: 10px 9px; font-size: .9rem; }
  .nav__link::after { left: 9px; right: 9px; }
  .header__logo img { width: 160px; }
}
@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .section { padding: 80px 0; }
  .header__cta { display: none; }
  .topbar__inner > .topbar__item, .topbar__social { display: none; }
  .topbar__inner { justify-content: center; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 16px 20px 24px;
    box-shadow: 0 20px 30px -20px rgba(13, 52, 112, .35); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { display: flex; margin-top: 18px; width: 100%; }

  .hero { padding: 40px 0 0; }
  .hero__content { padding-bottom: 0; }
  .hero__overlay {
    background:
      radial-gradient(500px 400px at 50% 80%, rgba(0, 188, 201, .3), transparent 65%),
      linear-gradient(180deg, rgba(8, 31, 69, .88) 0%, rgba(8, 31, 69, .78) 55%, rgba(13, 52, 112, .6) 100%);
  }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__content { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { min-height: 0; max-width: 400px; margin: 10px auto 0; width: 100%; }
  .hero__media .float-card { right: 0; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .clinic__grid, .blog__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .about__media { max-width: 600px; margin: 0 auto; width: 100%; }
  .faq__intro { position: static; }
  /* títulos dos blocos centralizados em telas menores */
  .about__content, .clinic__intro, .blog__content, .faq__intro, .checkup__content { text-align: center; }
  .checkup__list li { text-align: left; }
  .checkup__actions { justify-content: center; }
  .about__content > p, .clinic__intro > p, .blog__content > p { text-align: left; }
  .checklist { justify-items: start; }
  .checklist li { text-align: left; }
  .about__actions { justify-content: center; }
  .benefit { text-align: left; }
  .blog__media { max-width: 480px; margin: 0 auto; width: 100%; }
  .mission__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .checkup__box { grid-template-columns: 1fr; padding: 50px 40px; gap: 40px; }
  .checkup__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 460px; }
}
@media (max-width: 640px) {
  .topbar__inner > .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__right { gap: 16px; font-size: .8rem; }
  .topbar__social { display: none; }
  .header__logo img { width: 150px; }
  .topbar { display: none; }
  .hero { padding: 36px 0 0; }
  .hero__content .tag { margin-bottom: 16px; }
  .hero__title { font-size: 2.9rem; margin-bottom: 14px; }
  .hero__lead { font-size: 1.05rem; margin-bottom: 26px; white-space: normal; text-wrap: balance; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__media { max-width: 290px; }
  .hero__media .float-card { right: auto; left: -14px; bottom: 16%; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card__icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .float-card strong { font-size: .8rem; } .float-card small { font-size: .7rem; }
  .features__grid, .mission__grid, .services__grid, .benefits, .form__row { grid-template-columns: 1fr; }
  .about__media { padding: 0 30px 40px 0; }
  .about__badge { left: -6px; bottom: 60px; padding: 12px 16px; }
  .about__badge strong { font-size: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery__item:last-child { grid-column: span 2; }
  .checkup__box { padding: 40px 22px; border-radius: 26px; }
  .checkup__media { padding: 0 0 20px 20px; }
  .checkup__media::before { inset: 20px 20px 0 0; }
  .checkup__sign { bottom: 40px; }
  .checkup__actions .btn { width: 100%; }
  .video-card { aspect-ratio: 16 / 10; }
  .form { padding: 26px 20px; }
  .cta__inner { text-align: center; justify-content: center; }
  .cta p { margin: 0 auto; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact li { font-size: clamp(.8rem, 3.7vw, .95rem); white-space: nowrap; }
  /* no fim da página os botões flutuantes saem para não cobrir o rodapé */
  .wpp-float, .to-top.is-visible { transition: opacity .35s, visibility .35s, transform .35s; }
  body.at-end .wpp-float, body.at-end .to-top { opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none; }
  .info-card { padding: 16px; gap: 14px; }
  .info-card strong { font-size: clamp(.88rem, 4vw, 1.05rem); overflow-wrap: anywhere; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: clamp(.7rem, 3.1vw, .8rem); }
  .footer__bottom > span:first-child { white-space: nowrap; }
  .wpp-float { right: 16px; bottom: 16px; }
  .to-top { right: 24px; bottom: 88px; }
}

@media (max-width: 349px) {
  .footer__bottom > span:first-child, .footer__contact li { white-space: normal; }
}
