:root {
  --ink: #061827;
  --navy: #071b2d;
  --navy-2: #0d2942;
  --navy-3: #123755;
  --blue: #86a8c0;
  --blue-2: #d9e8f1;
  --paper: #f4f8fb;
  --paper-2: #ffffff;
  --white: #ffffff;
  --muted: #647386;
  --line: rgba(7, 27, 45, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --green: #20b762;
  --green-dark: #12884b;
  --radius: 8px;
  --container: 1180px;
  --display: "Newsreader", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--navy); }
[id] { scroll-margin-top: 88px; }
body {
  min-width: 320px;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 24, 39, 0.9), rgba(6, 24, 39, 0.55));
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
  animation: headerDrop 720ms cubic-bezier(.2,.8,.2,1) both;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 158px;
}
.brand img {
  width: 148px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}
.nav a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--blue-2); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(7, 27, 45, 0.98) 0%, rgba(7, 27, 45, 0.9) 38%, rgba(7, 27, 45, 0.45) 68%, rgba(7, 27, 45, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 27, 45, 0.2) 0%, rgba(7, 27, 45, 0.95) 100%),
    url("../assets/brand/banner-hero.jpg");
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  animation: heroImageSettle 1400ms cubic-bezier(.2,.8,.2,1) 120ms both;
}
.hero::after {
  content: "Prudencor";
  position: absolute;
  left: clamp(1rem, 4vw, 4rem);
  bottom: -0.18em;
  z-index: -2;
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 15rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: 0;
  pointer-events: none;
  animation: watermarkRise 1200ms cubic-bezier(.2,.8,.2,1) 500ms both;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 22%, rgba(134, 168, 192, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(134, 168, 192, 0.15), transparent 24%),
    linear-gradient(115deg, transparent 0 57%, rgba(255, 255, 255, 0.08) 57.1% 57.35%, transparent 57.45%);
}
.hero-grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: end;
  gap: 36px;
  padding: 152px 0 86px;
}
.hero-content {
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}
h1 {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(2.55rem, 4.4vw, 4rem);
  line-height: 1.02;
}
.hero-copy {
  max-width: 520px;
  margin-top: 20px;
  color: #d3dfeb;
  font-size: clamp(0.91rem, 1.08vw, 1.01rem);
  line-height: 1.72;
}
.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 900ms cubic-bezier(.2,.8,.2,1) both;
}
.hero .eyebrow { animation-delay: 120ms; }
.hero h1 { animation-delay: 230ms; }
.hero-copy { animation-delay: 360ms; }
.hero-actions { animation-delay: 500ms; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active,
.nav-cta:active,
.whatsapp-float:active {
  transform: translateY(0) scale(0.98);
}
.button-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}
.button-primary:hover { background: var(--blue-2); }
.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.button-secondary:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.12); }
.button-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(32, 183, 98, 0.26);
}
.button-whatsapp:hover { background: var(--green-dark); }
.button-dark {
  background: var(--navy);
  color: var(--white);
}
.button-dark:hover { background: var(--navy-3); }
.section {
  position: relative;
  padding: 96px 0;
}
.section-paper { background: var(--paper-2); }
.section-soft-blue { background: var(--paper); }
.section-navy {
  background:
    radial-gradient(circle at 80% 0%, rgba(134, 168, 192, 0.16), transparent 32%),
    linear-gradient(180deg, var(--navy) 0%, #061522 100%);
  color: var(--white);
}
.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  line-height: 0.98;
}
.section-navy .section-head h2 { color: var(--white); }
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}
.section-navy .section-head p { color: #c9d8e6; }

.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
}
.feature {
  min-height: 230px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 45, 0.08);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.feature:first-child {
  background: var(--white);
  color: var(--ink);
}
.feature h3 {
  font-family: var(--display);
  font-size: 1.52rem;
  line-height: 1.1;
  font-weight: 500;
}
.feature p {
  margin-top: 14px;
  color: var(--muted);
}
.feature:first-child p { color: var(--muted); }
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(7, 27, 45, 0.12);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.doctor-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid rgba(7, 27, 45, 0.08);
  box-shadow: 0 18px 46px rgba(7, 27, 45, 0.09);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), box-shadow 0.32s ease;
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 68px rgba(7, 27, 45, 0.15);
}
.doctor-photo {
  aspect-ratio: 4 / 5.05;
  overflow: hidden;
  background: #e9eef2;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.doctor-card:hover .doctor-photo img { transform: scale(1.04); }
.doctor-card:hover .doctor-photo.marco img { transform: scale(1.04); }
.doctor-card:hover .doctor-photo.bruno img { transform: scale(1.04); }
.doctor-photo.marco img { object-position: center; transform-origin: center; }
.doctor-photo.bruno img { object-position: center; transform-origin: center; }
.doctor-photo.murillo img { object-position: 50% 40%; }
.doctor-photo.luciane img { object-position: 50% 38%; }
.doctor-info {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 22px;
  text-align: center;
}
.doctor-info h3 {
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.18;
  font-weight: 600;
  white-space: nowrap;
}
.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 14px;
}
.doctor-tags span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f1f7;
  color: var(--navy-2);
  font-size: 0.76rem;
  font-weight: 700;
}
.doctor-rqe {
  margin-bottom: 14px;
  color: #596b7d;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
}
.doctor-rqe strong { color: var(--navy); }
.doctor-summary {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: justify;
  text-align-last: left;
}
.doctor-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}
.doctor-info .button {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.doctor-info .button-outline {
  width: auto;
  align-self: center;
  padding: 0 4px;
}
.button-outline {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}
.button-outline:hover {
  background: transparent;
  color: var(--navy-3);
  box-shadow: none;
}
.button-outline::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.button-outline:hover::after { transform: translateX(4px) rotate(45deg); }

.exams-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.exams-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.exam-card {
  min-height: 245px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(7, 27, 45, 0.18);
}
.exam-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.exam-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(7, 27, 45, 0.92) 100%);
}
.exam-card:hover img { transform: scale(1.05); opacity: 0.75; }
.exam-card div {
  position: relative;
  z-index: 1;
  padding: 22px;
}
.exam-card h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}
.exam-card p {
  margin-top: 6px;
  color: #d6e1ec;
  font-size: 0.94rem;
}

.reviews-carousel {
  --review-gap: 18px;
  --review-viewport: min(var(--container), calc(100vw - 44px));
  --review-width: calc((var(--review-viewport) - (2 * var(--review-gap))) / 3);
  overflow: hidden;
  padding: 2px 0 28px;
  background: var(--white);
}
.reviews-track {
  display: flex;
  gap: var(--review-gap);
  width: max-content;
}
.reviews-track.is-looping {
  animation: reviewsSlide 96s linear infinite;
}
.reviews-carousel:hover .reviews-track {
  animation-play-state: paused;
}
.reviews-set {
  display: flex;
  gap: var(--review-gap);
  flex: none;
}
.review {
  flex: 0 0 var(--review-width);
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: none;
  transition: border-color 0.28s ease;
}
.review:hover {
  border-color: rgba(7, 27, 45, 0.22);
}
.stars {
  color: #fbbc04;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.review p {
  flex: 1;
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.35;
}
.review footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.reviews-action {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}
.google-review-link {
  width: 66px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px 0 0;
  align-items: center;
  gap: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(7, 27, 45, 0.13);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
  transition: width 0.32s cubic-bezier(.2,.8,.2,1), gap 0.3s ease, padding 0.3s ease, border-color 0.24s ease, transform 0.24s ease;
}
.google-review-link:hover,
.google-review-link:focus-visible {
  width: 278px;
  grid-template-columns: 48px 1fr 18px;
  gap: 12px;
  padding-right: 17px;
  border-color: rgba(134, 168, 192, 0.7);
  transform: translateY(-2px);
}
.google-review-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.google-review-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
}
.google-review-mark svg {
  width: 26px;
  height: 26px;
}
.google-review-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  opacity: 0;
  transform: translateX(-7px);
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.24s ease;
}
.google-review-copy strong {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}
.google-review-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
}
.google-review-arrow {
  color: var(--blue);
  font-size: 1rem;
  opacity: 0;
  transform: translate(-6px, 5px);
  transition: opacity 0.18s ease, transform 0.25s ease;
}
.google-review-link:hover .google-review-copy,
.google-review-link:focus-visible .google-review-copy,
.google-review-link:hover .google-review-arrow,
.google-review-link:focus-visible .google-review-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.social-band {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 18%, rgba(134, 168, 192, 0.19), transparent 30%),
    linear-gradient(110deg, var(--navy), var(--navy-2));
}
.social-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
}
.social-intro h2 {
  margin-top: 14px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.55vw, 3.55rem);
  font-weight: 500;
  line-height: 1.01;
}
.social-intro p {
  max-width: 27rem;
  margin-top: 18px;
  color: #c9d8e6;
  line-height: 1.72;
}
.social-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.clinic-social {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(134, 168, 192, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.clinic-social:hover,
.clinic-social:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(134, 168, 192, 0.62);
  background: rgba(134, 168, 192, 0.11);
}
.clinic-social:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.clinic-social svg,
.clinic-social img {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(134, 168, 192, 0.13);
  color: var(--blue-2);
  object-fit: contain;
}
.clinic-social span:not(.external-arrow) {
  display: grid;
  gap: 2px;
}
.clinic-social strong {
  font-size: 0.97rem;
  font-weight: 600;
}
.clinic-social small {
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 500;
}
.external-arrow {
  color: var(--blue);
  font-size: 1.05rem;
  transition: transform 0.24s ease;
}
.clinic-social:hover .external-arrow,
.clinic-social:focus-visible .external-arrow {
  transform: translate(2px, -2px);
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px 26px;
  align-items: center;
}
.convenio {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  opacity: 0.78;
  transition: transform 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
}
.convenio:hover {
  transform: translateY(-3px);
  opacity: 1;
  filter: saturate(1.08);
}
.convenio img {
  max-height: 48px;
  max-width: 128px;
  width: auto;
  object-fit: contain;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: stretch;
}
.contact-card {
  min-height: 460px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
}
.contact-card .section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.04;
}
.contact-card .section-head p {
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.contact-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-item strong,
.contact-item a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.map-frame {
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: grayscale(0.2) contrast(1.02);
}

#contato { padding: 76px 0; }

.footer {
  background: #04111d;
  color: #7f92a5;
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 38px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  color: #9dafbf;
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}
.footer-legal,
.footer-links {
  display: contents;
}
.footer-links {
  justify-content: center;
}
.footer-separator {
  color: rgba(157, 175, 191, 0.46);
}
.footer-links a {
  color: #9dafbf;
  text-decoration: underline;
  text-decoration-color: rgba(157, 175, 191, 0.34);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-links a:hover {
  color: #d5e1ec;
  text-decoration-color: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(32, 183, 98, 0.32);
  animation: whatsappIn 800ms cubic-bezier(.2,.8,.2,1) 900ms both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 48px rgba(32, 183, 98, 0.42);
}
.whatsapp-float svg { width: 30px; height: 30px; }

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 780ms cubic-bezier(.2,.8,.2,1), transform 780ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageSettle {
  from { transform: scale(1.09); filter: saturate(0.82); }
  to { transform: scale(1.04); filter: saturate(1); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes watermarkRise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes whatsappIn {
  from { opacity: 0; transform: translateY(18px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes reviewsSlide {
  to { transform: translateX(calc(-50% - (var(--review-gap) / 2))); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
  .reviews-carousel {
    overflow: visible;
  }
  .reviews-track {
    width: auto;
    animation: none;
  }
  .reviews-set:first-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .review {
    flex-basis: auto;
  }
  .reviews-set[aria-hidden="true"] {
    display: none;
  }
}

@media (hover: none) {
  .google-review-link {
    width: min(100%, 278px);
    grid-template-columns: 48px 1fr 18px;
    gap: 12px;
    padding-right: 17px;
  }
  .google-review-copy,
  .google-review-arrow {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; align-items: end; }
  .feature-row,
  .exams-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .exams-grid { grid-template-columns: repeat(2, 1fr); }
  .convenios-grid { grid-template-columns: repeat(4, 1fr); }
  .social-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .header-inner { min-height: 64px; }
  .brand img { width: 138px; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px 18px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.open { display: grid; }
  .nav a { padding: 14px 0; }
  .nav-cta { margin-top: 8px; color: var(--navy); }
  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    color: var(--white);
  }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(7, 27, 45, 0.9) 0%, rgba(7, 27, 45, 0.92) 55%, rgba(7, 27, 45, 0.98) 100%),
      url("../assets/brand/banner-hero.jpg");
    background-position: 60% 0;
  }
  .hero-grid { min-height: 92svh; padding: 118px 0 44px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.35rem); }
  .hero-actions .button,
  .contact-actions .button { width: 100%; }
  .section { padding: 66px 0; }
  .section-head h2 { font-size: clamp(2.15rem, 13vw, 3.1rem); }
  .doctors-grid,
  .exams-grid { grid-template-columns: 1fr; }
  .reviews-carousel {
    --review-viewport: calc(100vw - 28px);
    --review-width: calc(100vw - 50px);
    padding-bottom: 20px;
  }
  .social-directory { grid-template-columns: 1fr; }
  .clinic-social { min-height: 82px; }
  .google-review-link {
    width: min(100%, 278px);
    grid-template-columns: 48px 1fr 18px;
    gap: 12px;
    padding-right: 17px;
  }
  .google-review-copy,
  .google-review-arrow {
    opacity: 1;
    transform: none;
  }
  .convenios-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .convenio { min-height: 58px; }
  .convenio img { max-height: 42px; max-width: 138px; }
  .contact-card { padding: 24px; }
  .contact-card .section-head h2 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .contact-card .section-head p { font-size: 0.84rem; line-height: 1.5; }
  .map-frame,
  .map-frame iframe { min-height: 360px; height: 360px; }
  .footer { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .reviews-set:first-child {
    grid-template-columns: 1fr;
  }
}
