/* ==========================================================================
   Clínica Mergulhar — estilos
   Mobile-first · sem dependências
   ========================================================================== */

:root {
  /* Oceano (marca) */
  --ocean-950: #071d36;
  --ocean-900: #0a2a4f;
  --ocean-800: #0f3d78;
  --ocean-700: #1a4f91;
  --ocean-600: #2563a8;
  --ocean-500: #3a7cc0;
  --ocean-300: #8db5df;
  --ocean-200: #c3dbf1;
  --ocean-100: #e4effa;
  --ocean-50: #f3f8fd;
  --aqua-400: #56bfc9;
  --aqua-300: #8fd6dc;
  --aqua-100: #e0f4f5;
  --sand-50: #fbf8f3;
  --sand-100: #f5ede2;
  --sand-300: #e6d3bb;
  --clay-500: #c07a58;
  --wa: #25d366;

  --ink: #0d2440;
  --text: #34465e;
  --muted: #62748b;
  --line: #dbe7f3;

  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Allura", "Segoe Script", cursive;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 79, .06), 0 4px 12px rgba(10, 42, 79, .05);
  --shadow: 0 18px 40px -18px rgba(10, 42, 79, .28);
  --shadow-lg: 0 30px 70px -24px rgba(7, 29, 54, .45);

  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--aqua-400); outline-offset: 3px; border-radius: 8px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: #fff; color: var(--ocean-800); font-weight: 600;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Tipografia de seção ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ocean-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 4c3-3 5-3 8 0s5 3 8 0 5-3 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 4c3-3 5-3 8 0s5 3 8 0 5-3 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow--light { color: var(--aqua-300); }

.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 14px; }
.section-lead { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); max-width: 58ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn--lg { --h: 56px; padding: 0 1.75rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ocean-800); color: #fff; box-shadow: 0 12px 28px -12px rgba(15, 61, 120, .7); }
.btn--primary:hover { background: var(--ocean-700); }
.btn--light { background: #fff; color: var(--ocean-800); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn--light:hover { background: var(--ocean-50); }
.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { color: var(--ocean-800); background: #fff; border: 1.5px solid var(--ocean-200); }
.btn--outline:hover { border-color: var(--ocean-500); }

.link { color: var(--ocean-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
          backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(13, 36, 64, .06), 0 10px 30px -18px rgba(13, 36, 64, .3);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); transition: box-shadow .35s; }
.header.is-scrolled .brand__mark { box-shadow: none; }
.menu-open .header .brand__mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
/* Logo oficial: versão branca sobre o hero, azul com o cabeçalho sólido */
.brand__word { display: block; width: auto; height: 46px; }
.brand__word--dark { display: none; }
.header.is-scrolled .brand__word--light { display: none; }
.header.is-scrolled .brand__word--dark { display: block; }
.menu-open .header .brand__word--light { display: block; }
.menu-open .header .brand__word--dark { display: none; }

.nav { display: none; }
.nav a {
  position: relative;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  opacity: .88;
  transition: opacity .2s, background-color .2s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.header.is-scrolled .nav a:hover { background: var(--ocean-50); }
.nav a.is-active { opacity: 1; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua-400);
  transform: translateX(-50%);
}

.header__actions { display: flex; align-items: center; gap: 8px; }
.btn--header { display: none; background: #fff; color: var(--ocean-800); }
.header.is-scrolled .btn--header { background: var(--ocean-800); color: #fff; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .25s, border-color .25s;
}
.header.is-scrolled .menu-toggle { background: var(--ocean-50); border-color: var(--line); }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-open .menu-toggle .icon--open { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }

@media (min-width: 560px) {
  .btn--header { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 2px; }
  .menu-toggle { display: none; }
  .brand__mark { width: 50px; height: 50px; }
  .brand__word { height: 56px; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(86, 191, 201, .25), transparent 60%),
    linear-gradient(165deg, var(--ocean-950), var(--ocean-800));
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 34px);
  visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 44px) 34px);
  visibility: visible;
  transition: clip-path .6s var(--ease), visibility 0s;
}
.menu-open .header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header .menu-toggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.menu-open .header .btn--header { display: none; }

.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s var(--ease);
}
.mobile-menu__nav a .icon { opacity: .5; }
.menu-open .mobile-menu__nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: .12s; }
.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .16s; }
.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .2s; }
.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .24s; }
.menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: .28s; }
.menu-open .mobile-menu__nav a:nth-child(6) { transition-delay: .32s; }

.mobile-menu__footer { display: grid; gap: 18px; }
.mobile-menu__meta { display: flex; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.mobile-menu__meta .icon { margin-top: 2px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .2s, transform .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(12px, 3vw, 48px));
  background:
    radial-gradient(1100px 600px at 90% 0%, rgba(143, 214, 220, .38), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(58, 124, 192, .55), transparent 60%),
    linear-gradient(140deg, var(--ocean-950) 0%, var(--ocean-800) 52%, var(--ocean-600) 100%);
}
.hero__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .07) 42%, transparent 47%),
    linear-gradient(112deg, transparent 56%, rgba(255, 255, 255, .05) 60%, transparent 66%),
    linear-gradient(112deg, transparent 72%, rgba(255, 255, 255, .06) 75%, transparent 79%);
  background-size: 200% 100%;
  animation: rays 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rays { to { background-position: 100% 0; } }

.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -24px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 70%);
  animation: rise var(--d) linear infinite;
  animation-delay: var(--delay);
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate3d(14px, -55vh, 0); }
  100% { transform: translate3d(-6px, -115vh, 0); opacity: 0; }
}

/* Cartão com a foto de fundo (formato do layout).
   Celular/tablet: a foto vira uma faixa no topo do cartão e o texto vem abaixo.
   Desktop: a foto cobre o cartão inteiro e o conteúdo fica por cima. */
.hero__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(520px 320px at 100% 100%, rgba(86, 191, 201, .16), transparent 70%),
    var(--ocean-800);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.hero__media { position: relative; aspect-ratio: 6 / 5; }
/* Só a foto de fundo (filho direto); os avatares dos cartões também usam <picture> */
.hero__media > picture { position: absolute; inset: 0; }
.hero__media > picture,
.hero__media > picture > img { display: block; width: 100%; height: 100%; }
.hero__media > picture > img { object-fit: cover; object-position: 50% 55%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 54, .12) 0%, rgba(15, 61, 120, 0) 42%, var(--ocean-800) 100%);
  pointer-events: none;
}

/* Vidro: pill, cartões flutuantes e barra de números */
.pill,
.float-card,
.hero__stats {
  color: #fff;
  background: rgba(8, 22, 40, .3);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
          backdrop-filter: blur(18px) saturate(1.3);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 16px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55);
  animation: floaty 7s ease-in-out infinite;
}
.float-card p { display: flex; flex-direction: column; line-height: 1.25; }
.float-card strong { font-size: .92rem; }
.float-card p span { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.float-card--team { top: 14px; left: 14px; }
.float-card--online { top: 44%; right: 14px; animation-delay: -3.5s; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--ocean-800);
  background: rgba(255, 255, 255, .92);
}
.float-card__icon .icon { width: 21px; height: 21px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.avatars { display: flex; }
.avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .9);
}
.avatars > * + * { margin-left: -11px; }
/* Tamanho fixo de cada avatar (cada um dentro de um <picture>) */
.avatars picture { flex: none; width: 34px; height: 34px; }
.avatars img { max-width: none; }

.hero__content { position: relative; z-index: 1; margin-top: -40px; padding: 0 22px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua-300);
  box-shadow: 0 0 0 4px rgba(143, 214, 220, .25);
}
.pill__sep { opacity: .4; }

.hero__title {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.5rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.hero__title .script {
  display: block;
  font-size: 1.28em;
  line-height: .7;
  color: var(--aqua-300);
  padding-right: .08em;
}
.hero__lead { max-width: 540px; font-size: clamp(1rem, 1.15vw, 1.1rem); color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 14px 14px;
  border-radius: 22px;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .5);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; text-align: center; }
.stat:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
.stat__num { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat__label { max-width: 20ch; font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .78); }

@media (min-width: 480px) {
  .hero__content { padding: 0 32px; }
  .hero__stats { margin: 32px 20px 20px; }
}
@media (min-width: 640px) {
  .hero__card { border-radius: 40px; }
  .hero__media { aspect-ratio: 16 / 10; }
  .float-card--team { top: 20px; left: 20px; }
  .float-card--online { right: 20px; }
}
@media (min-width: 768px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
  .stat:nth-child(n + 3) { border-top: 0; }
}

@media (min-width: 960px) {
  .hero__card {
    display: block;
    padding: clamp(36px, 3.2vw, 48px) clamp(48px, 6.2vw, 88px);
    border-radius: 60px;
    background: var(--ocean-900);
  }
  .hero__media { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; }
  .hero__media > picture > img { object-position: 50% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(7, 29, 54, .72) 0%, rgba(7, 29, 54, .42) 36%, rgba(7, 29, 54, 0) 60%),
      linear-gradient(0deg, rgba(7, 29, 54, .5) 0%, rgba(7, 29, 54, 0) 38%);
  }
  .float-card--team { top: 33%; left: auto; right: 27.5%; }
  .float-card--online { top: 54%; right: 6.5%; }
  .hero__content { margin-top: 0; padding: 0; max-width: 600px; }
  .hero__title { margin: 20px 0 18px; font-size: clamp(3rem, 4.2vw, 5rem); line-height: .98; }
  .hero__stats { margin: 20px 0 0; }
  .stat { padding: 24px 16px; }
}
/* Telas médias: os dois cartões flutuantes ficam na coluna da direita, longe do texto */
@media (min-width: 960px) and (max-width: 1279px) {
  .float-card--team { top: 22%; right: 6.5%; }
  .hero__lead { max-width: 480px; }
}

/* Ondas */
.waves { position: relative; height: clamp(56px, 8vw, 120px); margin-top: clamp(28px, 5vw, 56px); overflow: hidden; }
.waves__layer {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 200%;
  max-width: none;
  height: 100%;
  animation: wave-x 22s linear infinite;
}
.waves__layer--back { fill: rgba(255, 255, 255, .22); animation-duration: 30s; animation-direction: reverse; }
.waves__layer--front { fill: #fff; }
@keyframes wave-x { to { transform: translateX(-50%); } }

.waves--top { margin-top: 0; }
.waves--top .waves__layer { top: -1px; bottom: auto; }
.waves--top .waves__layer--back { fill: rgba(243, 248, 253, .35); }
.waves--top .waves__layer--front { fill: var(--ocean-50); }

/* ---------- Sobre ---------- */
.sobre { overflow: hidden; }
.blob {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--ocean-100), var(--aqua-100));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite;
}
.blob--sobre { width: 560px; height: 560px; right: -180px; top: 8%; opacity: .75; }
@keyframes morph {
  50% { border-radius: 58% 42% 38% 62% / 55% 38% 62% 45%; transform: rotate(8deg); }
}

.sobre__grid { display: grid; gap: clamp(48px, 7vw, 80px); align-items: center; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
.pillar {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pillar:hover { border-color: var(--ocean-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: var(--ocean-700);
  background: var(--ocean-50);
}
.pillar__icon .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.pillar p { margin-top: 4px; font-size: .9rem; line-height: 1.5; color: var(--muted); }

.sobre__media { position: relative; }
.sobre__photo { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--ocean-100); }
.sobre__photo picture { display: block; width: 100%; height: 100%; }
.sobre__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Vidro sobre a foto: mesmo tratamento dos cartões do hero */
.sobre__photo { position: relative; }
.sobre__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(7, 29, 54, .42), transparent);
  pointer-events: none;
}
.sobre__caption,
.badge-rotate {
  position: absolute;
  z-index: 1;
  color: #fff;
  background: rgba(10, 42, 79, .3);
  border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
          backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .55);
}
.sobre__caption {
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
}
.sobre__caption img { width: 40px; height: 40px; }
.sobre__caption p { display: flex; flex-direction: column; line-height: 1.3; }
.sobre__caption strong { color: #fff; font-size: .95rem; }
.sobre__caption span { font-size: .8rem; color: rgba(255, 255, 255, .8); }

.badge-rotate {
  top: -40px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
}
.badge-rotate svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge-rotate text { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; fill: #fff; }
.badge-rotate img { width: 46px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  .pillars { gap: 16px; }
  .pillar { padding: 22px; }
}
@media (min-width: 960px) {
  .sobre__grid { grid-template-columns: 1.05fr .95fr; }
  .sobre__photo { aspect-ratio: 4 / 5; }
  .sobre__photo img { object-position: 46% 30%; }
  .sobre__caption { left: 24px; bottom: 24px; }
  .badge-rotate { top: -44px; right: -36px; width: 132px; height: 132px; }
  .badge-rotate img { width: 52px; height: 52px; }
}

/* ---------- Cuidados ---------- */
.cuidados { background: linear-gradient(180deg, var(--ocean-50), #fff); }
.services { display: grid; gap: 16px; }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ocean-200); }
.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: 22px;
  color: var(--ocean-700);
  background: linear-gradient(135deg, var(--ocean-100), var(--aqua-100));
  transition: background .3s, color .3s;
}
.service__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.service:hover .service__icon { color: #fff; background: linear-gradient(135deg, var(--ocean-700), var(--ocean-500)); }
.service h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.service p { margin-top: 10px; margin-bottom: 22px; font-size: .95rem; color: var(--muted); }

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ocean-700);
  min-height: 44px;
}
.service__link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.service__link:hover .icon { transform: translateX(4px); }
.service .service__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.service--featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(143, 214, 220, .35), transparent 65%),
    linear-gradient(150deg, var(--ocean-900), var(--ocean-700));
}
.service--featured h3 { color: #fff; }
.service--featured p { color: rgba(255, 255, 255, .78); }
.service--featured .service__icon { color: #fff; background: rgba(255, 255, 255, .14); }
.service--featured:hover .service__icon { background: rgba(255, 255, 255, .22); }
.service--featured .service__link { color: var(--aqua-300); }
.service__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ocean-900);
  background: var(--aqua-300);
}

@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Como funciona ---------- */
.steps {
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(800px 500px at 100% 100%, rgba(86, 191, 201, .28), transparent 60%),
    linear-gradient(160deg, var(--ocean-950), var(--ocean-800));
}
.steps__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30c30-20 50-20 60 0s30 20 60 0 50-20 60 0 30 20 60 0' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 240px 60px;
}
.steps .section-title { color: #fff; }
.steps .section-title .script { display: block; margin-top: 8px; font-size: 1.3em; line-height: 1; color: var(--aqua-300); }
.steps .section-lead { color: rgba(255, 255, 255, .75); }
.steps__head .btn { margin-top: 32px; }
.steps__grid { display: grid; gap: 48px; align-items: center; }

.steps__list { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: background-color .3s, transform .3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .1); transform: translateX(4px); }
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ocean-900);
  background: linear-gradient(135deg, #fff, var(--aqua-300));
}
.step h3 { color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.step p { margin-top: 6px; font-size: .95rem; color: rgba(255, 255, 255, .72); }

@media (min-width: 960px) {
  .steps__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* ---------- Equipe ---------- */
.equipe__head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.equipe__head .section-head { margin-bottom: 0; }

.filters {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  scroll-snap-align: start;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ocean-800);
  background: var(--ocean-50);
  border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ocean-300); }
.chip[aria-pressed="true"] { color: #fff; background: var(--ocean-800); border-color: var(--ocean-800); }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.member {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ocean-200); }
.member.is-hidden { display: none; }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ocean-100); }
.member__photo picture { display: block; width: 100%; height: 100%; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(7, 29, 54, .28), transparent);
  pointer-events: none;
}

.member__wa {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease);
}
.member__wa:hover { transform: scale(1.08); }
.member__wa .icon { width: 22px; height: 22px; }

.member__body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.member__reg { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-500); }
.member__name { margin-top: 4px; font-size: 1.02rem; letter-spacing: -.015em; }
.member__role { margin-top: 2px; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.member__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ocean-700);
  text-align: left;
}
.member__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.member:hover .member__more .icon { transform: translateX(4px); }
.member__more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.member__more:focus-visible { outline: none; }
.member:has(.member__more:focus-visible) { outline: 3px solid var(--aqua-400); outline-offset: 3px; }

.team__empty { margin-top: 24px; text-align: center; color: var(--muted); }

@media (min-width: 560px) {
  .team { gap: 18px; }
  .member__body { padding: 18px 20px 20px; }
  .member__name { font-size: 1.15rem; }
  .member__role { font-size: .9rem; }
}
@media (min-width: 768px) {
  .team { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1100px) {
  .team { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .equipe__head { gap: 20px; }
}

/* ---------- Clínica Solidária ---------- */
.solidaria { padding-top: 0; }
.solidaria__card {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30c30-20 50-20 60 0s30 20 60 0 50-20 60 0 30 20 60 0' fill='none' stroke='%23c07a58' stroke-opacity='.1' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 240px 60px,
    linear-gradient(135deg, var(--sand-100), var(--sand-50) 60%, #fff);
  border: 1px solid var(--sand-300);
}
.solidaria .eyebrow { color: var(--clay-500); }
.solidaria__art { position: relative; display: grid; place-items: center; width: 140px; height: 140px; }
.solidaria__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(192, 122, 88, .3); animation: pulse-ring 4s ease-out infinite; }
.solidaria__ring--2 { animation-delay: 2s; }
@keyframes pulse-ring { 0% { transform: scale(.65); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.solidaria__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--clay-500), #d9a07f);
  box-shadow: 0 18px 36px -16px rgba(192, 122, 88, .8);
}
.solidaria__icon .icon { width: 42px; height: 42px; stroke-width: 1.5; }

.checklist { display: grid; gap: 10px; margin-top: 24px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.checklist .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--ocean-600);
  stroke-width: 2.5;
}
.solidaria__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (min-width: 900px) {
  .solidaria__card { grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
  .solidaria__art { width: 220px; height: 220px; margin-left: 12px; }
  .solidaria__icon { width: 128px; height: 128px; }
  .solidaria__icon .icon { width: 56px; height: 56px; }
}

/* ---------- Dúvidas ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; gap: 40px; }
.faq__help {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ocean-50);
  border: 1px solid var(--line);
}
.faq__help-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: var(--ocean-700);
}
.faq__help-icon .icon { width: 24px; height: 24px; }
.faq__help h3 { font-size: 1.05rem; }
.faq__help p { margin-top: 4px; font-size: .92rem; color: var(--muted); }
.faq__help .service__link { margin-top: 6px; }

.faq__list { display: grid; gap: 12px; }
.faq__item {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: var(--ocean-200); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ocean-700);
  background: var(--ocean-50);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: #fff; background: var(--ocean-800); }
.faq__answer { padding: 0 20px 20px; color: var(--muted); }
.faq__answer a { color: var(--ocean-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

@media (min-width: 960px) {
  .faq__grid { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .faq__item summary { padding: 18px 24px; font-size: 1.08rem; }
  .faq__answer { padding: 0 24px 22px; }
}

/* ---------- Contato ---------- */
.contato { background: var(--ocean-50); padding-bottom: clamp(56px, 8vw, 96px); }
.contato__grid { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--ocean-700);
  background: linear-gradient(135deg, var(--ocean-100), var(--aqua-100));
}
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item h3 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-500); }
.contact-item p { margin-top: 4px; font-weight: 500; color: var(--ink); }
.contact-item p a { text-decoration: underline; text-decoration-color: var(--ocean-200); text-underline-offset: 4px; }
.contact-item .service__link { margin-top: 4px; min-height: 36px; }

.hours { display: grid; gap: 4px; margin-top: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 24px; font-size: .95rem; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; color: var(--ink); }

.contato__map {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ocean-100);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.contato__map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

@media (min-width: 960px) {
  .contato__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: stretch; }
}

/* ---------- Rodapé ---------- */
.footer {
  position: relative;
  color: rgba(255, 255, 255, .75);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(58, 124, 192, .45), transparent 65%),
    linear-gradient(180deg, var(--ocean-800), var(--ocean-950));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.cta { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 88px); text-align: center; }
.cta__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.cta__title .script { display: inline-block; font-size: 1.3em; line-height: .8; color: var(--aqua-300); }
.cta__lead { max-width: 48ch; margin: 16px auto 0; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.footer__grid {
  display: grid;
  gap: 32px;
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo { display: block; width: 150px; height: auto; }
.footer__brand p { max-width: 34ch; margin: 16px 0 20px; font-size: .95rem; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer__col h3 { margin-bottom: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer__col a { width: fit-content; transition: color .2s; }
.footer__col a:hover { color: #fff; }

.footer__care {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: .9rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer__care .icon { margin-top: 2px; color: var(--aqua-300); }
.footer__care a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
}

.footer__bottom a {
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.footer__bottom a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(.6) translateY(20px);
  pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .wa-float:hover .wa-float__label { opacity: 1; transform: none; }
}
@media (min-width: 768px) {
  .wa-float { right: 24px; bottom: 24px; }
}

/* ---------- Perfil (dialog) ---------- */
.profile {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.profile::backdrop { background: rgba(7, 29, 54, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.profile[open] { animation: sheet-up .45s var(--ease); }
.profile[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* A folha rola; o botão de fechar fica preso ao dialog (fora da área de rolagem). */
.profile__sheet {
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: #fff;
}
.profile__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}
.profile__close .icon { width: 22px; height: 22px; }
.profile__media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ocean-100); }
.profile__media .member__photo { width: 100%; height: 100%; aspect-ratio: auto; }
.profile__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.profile__content { padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); }
.profile__name { margin-top: 8px; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.profile__role { margin-top: 4px; color: var(--muted); font-weight: 500; }
.profile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile__chips li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ocean-800);
  background: var(--ocean-50);
  border: 1px solid var(--line);
}
.profile__bio { display: grid; gap: 12px; margin-top: 20px; font-size: .98rem; }
.profile__bio strong { color: var(--ink); }
.profile__actions {
  position: sticky;
  bottom: 0;
  margin: 24px -22px 0;
  padding: 16px 22px 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 30%);
}
.profile__actions .btn { width: 100%; }

@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }

@media (min-width: 760px) {
  .profile { width: min(960px, calc(100% - 48px)); margin: auto; }
  .profile[open] { animation: pop .4s var(--ease); }
  .profile__sheet {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    grid-template-rows: minmax(0, 1fr);
    height: min(640px, calc(100dvh - 48px));
    max-height: none;
    overflow: hidden;
    border-radius: 28px;
  }
  .profile__close { top: 16px; right: 16px; }
  .profile__media { aspect-ratio: auto; }
  .profile__content { overflow-y: auto; overscroll-behavior: contain; padding: 44px 40px 0; }
  .profile__actions { margin: 24px -40px 0; padding: 16px 40px 28px; }
  .profile__actions .btn { width: auto; }
}

html.is-locked { overflow: hidden; }

/* Espaço para o botão flutuante não cobrir a última linha do rodapé */
.footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .footer { padding-bottom: 28px; }
  .footer__bottom { padding-right: 88px; }
}

@media (max-width: 959px) {
  .badge-rotate { top: -34px; right: -2px; width: 104px; height: 104px; }
  .badge-rotate img { width: 44px; height: 44px; }
}

/* ---------- Animação de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
