:root {
  --navy: #092c55;
  --blue: #0067a4;
  --ink: #19334d;
  --muted: #465f73;
  --line: #dbe8f1;
  --pale: #edf8ff;
  --green: #087343;
  --whatsapp-blue: #40bdf4;
  --whatsapp-blue-hover: #27a9e6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #008bd1;
  outline-offset: 4px;
}
.wrap {
  width: min(1160px, calc(100% - 72px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 20;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  color: white;
  background: var(--navy);
}
.skip:focus {
  top: 10px;
}
header {
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 27px;
  font-size: 14px;
  font-weight: 650;
}
header nav a:hover,
footer a:hover {
  color: var(--blue);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border-radius: 9px;
  background: var(--navy);
  color: white;
  font-weight: 750;
}
.button:hover {
  background: var(--blue);
}
.small {
  font-size: 13px;
  padding: 10px 14px;
}
.hero {
  background: #f0f9ff;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: 42px 60px;
}
.intro {
  width: min(100%, 830px);
  margin-inline: auto;
  text-align: center;
  padding-block: 20px;
}
.kicker {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.115em;
  font-weight: 800;
  margin-bottom: 14px;
}
h1,
h2 {
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
h1 {
  font-size: clamp(44px, 5.45vw, 76px);
  margin-bottom: 18px;
}
h1 em {
  color: var(--blue);
  font-style: normal;
}
.intro > p:not(.kicker) {
  max-width: 465px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto 24px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px #1a50700c;
}
.quick-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  min-height: 56px;
  font-weight: 750;
  color: var(--navy);
}
.quick-nav a + a {
  border-left: 1px solid var(--line);
}
.quick-nav a:hover {
  color: var(--blue);
}
.quick-nav svg {
  width: 22px;
  height: 22px;
  flex: none;
  order: -1;
  color: var(--blue);
}
.quick-nav span {
  margin-left: auto;
  color: var(--blue);
}
.section {
  padding-block: 64px;
  scroll-margin-top: 18px;
}
h2 {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 25px;
}
.section-title p,
.process p,
.faq p {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 15px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  min-height: 215px;
  scroll-margin-top: 20px;
}
.card:hover,
.card:focus-within,
.card:target {
  background: var(--tint);
  border-color: var(--accent);
}
.symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
}
.symbol svg {
  width: 30px;
  height: 30px;
}
.card h3 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: break-word;
  max-width: 100%;
}
.description {
  color: var(--muted);
  font-size: 14px;
}
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--whatsapp-blue);
  color: var(--navy);
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
}
.action:hover,
.whatsapp-hero:hover {
  background: var(--whatsapp-blue-hover);
}
.action svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.card[data-icon='consultas'] {
  --accent: #2051a3;
  --tint: #f2f7ff;
  --icon-bg: #deebff;
}
.card[data-icon='laboratorio'] {
  --accent: #802b94;
  --tint: #fcf4ff;
  --icon-bg: #f2dcfa;
}
.card[data-icon='imagem'] {
  --accent: #126b86;
  --tint: #eefafd;
  --icon-bg: #d7f1f9;
}
.card[data-icon='cardio'] {
  --accent: #b1244c;
  --tint: #fff3f6;
  --icon-bg: #fbdce5;
}
.card[data-icon='digestivo'] {
  --accent: #99510d;
  --tint: #fff7ec;
  --icon-bg: #fae5c9;
}
.card[data-icon='oftalmo'] {
  --accent: #136d64;
  --tint: #eefaf6;
  --icon-bg: #d9f2e8;
}
.card[data-icon='checkup'] {
  --accent: #475c0d;
  --tint: #f6faea;
  --icon-bg: #e8f1c9;
}
.card[data-icon='outros'] {
  --accent: #4c5193;
  --tint: #f5f5ff;
  --icon-bg: #e7e7fa;
}
.process {
  background: #f0f8fc;
}
.process ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  gap: 26px;
  padding: 0;
  margin: 27px 0 0;
}
.process li {
  border-top: 2px solid #9cd1eb;
  padding-top: 17px;
}
.process b {
  display: block;
  color: var(--blue);
  margin-bottom: 9px;
}
.process h3 {
  margin-bottom: 5px;
  color: var(--navy);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 35px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
}
.faq details p {
  margin-top: 9px;
}
.contact-section {
  margin-bottom: 50px;
}
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #dceffc;
  padding: 32px;
}
.contact-panel h2 {
  color: white;
  font-size: clamp(26px, 3.6vw, 40px);
}
.contact-panel .button {
  flex-shrink: 0;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .bar {
  padding-right: 64px;
}
.whatsapp-hero {
  background: var(--whatsapp-blue);
  color: var(--navy);
}
.whatsapp-float {
  background: var(--green);
  color: white;
}
.whatsapp-icon {
  display: grid;
  place-items: center;
  flex: none;
}
.whatsapp-hero svg {
  width: 21px;
  height: 21px;
}
.whatsapp-float {
  position: fixed;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 50%;
  box-shadow: 0 5px 20px #052c2940;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .wrap {
    width: calc(100% - 44px);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    gap: 22px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .bar {
    min-height: 67px;
    gap: 12px;
  }
  .bar img {
    width: 132px;
  }
  .small {
    font-size: 11px;
    padding: 9px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 21px;
    padding-block: 28px;
  }
  .intro {
    padding-block: 0;
  }
  .intro > p:not(.kicker) {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .hero-actions .button {
    padding: 10px 11px;
    min-height: 44px;
    font-size: 13px;
  }

  .quick-nav {
    margin-top: 14px;
    grid-template-columns: 1fr;
  }
  .quick-nav a {
    padding: 8px 12px;
    min-height: 44px;
    font-size: 14px;
  }
  .quick-nav a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .section {
    padding-block: 43px;
  }
  .grid {
    gap: 9px;
  }
  .card {
    padding: 12px;
    min-height: 197px;
  }
  .card h3 {
    font-size: 15px;
  }
  .description,
  .action {
    font-size: 12px;
  }
  .process ol,
  .faq {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-panel {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    padding: 23px;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}
@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.whatsapp-float {
  background: #15a45a;
  animation: whatsapp-pulse 2.5s ease-out infinite;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #0c8547;
  animation-play-state: paused;
}
@keyframes whatsapp-pulse {
  0%,
  18% {
    box-shadow:
      0 5px 20px #052c2940,
      0 0 0 0 #15a45a66;
  }
  72%,
  100% {
    box-shadow:
      0 5px 20px #052c2940,
      0 0 0 13px #15a45a00;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

.unit-brand {
  display: grid;
  gap: 3px;
  justify-items: start;
}
.unit-brand span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}
@media (max-width: 620px) {
  .unit-brand span {
    font-size: 11px;
  }
}

/* Opening banner and procedure heading */
.hero {
  background: linear-gradient(118deg, #08274d 8%, #0c427d 60%, #075e9e);
}
.hero-grid {
  min-height: 475px;
  padding-block: 55px 69px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(43px, 5vw, 70px);
}
.hero h1 em {
  color: #83d9ff;
}
.hero .kicker {
  color: #a5e4ff;
}
.hero .intro > p:not(.kicker) {
  color: #e0effa;
}
.hero .whatsapp-hero {
  background: var(--whatsapp-blue);
  color: var(--navy);
}
.hero .whatsapp-hero:hover {
  background: var(--whatsapp-blue-hover);
}
#procedimentos .section-title {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 30px;
}
@media (max-width: 620px) {
  .hero-grid {
    min-height: 0;
    padding-block: 37px 26px;
  }
  .hero h1 {
    font-size: clamp(37px, 9.4vw, 50px);
  }
  .hero-actions .whatsapp-hero {
    flex-grow: 1;
  }
}
