/* ==========================================================================
   LP Internação — Hospital Santa Mônica
   Complementa o design system (doe-hsm.css), que deve ser carregado antes.
   Metodologia BEM · mobile-first
   ========================================================================== */

.lp-internacao {
  --header-h: 87px;
  --hsm-teal-dark: #1a4548;
  --hsm-green-hover: #4dbb77;
}
.lp-internacao section[id] { scroll-margin-top: var(--header-h); }

.lp-internacao .tag { font-size: .95rem; color: var(--hsm-green-cta); } /* o verde do design system dá só 2,5:1 sobre branco */
.lp-internacao .tag--light { color: #fff; }

/* CTAs: WhatsApp em verde e "Ligamos para você" em teal (.btn--primary) */
.lp-internacao .btn--whatsapp { color: #fff; background: var(--hsm-green-400); }
.lp-internacao .btn--whatsapp:hover { color: #fff; background: var(--hsm-green-hover); }

.cta-note { flex: none; width: 100%; margin: 4px 0 0; font-size: .9375rem; font-weight: 400; line-height: 1.4; color: var(--hsm-ink); }
.band .cta-note { color: #fff; text-align: center; }
.band .btn--primary { color: var(--hsm-teal-dark); background: #fff; } /* o teal do botão sumiria no fundo escuro da faixa */
.band .btn--primary:hover { background: var(--hsm-green-100); }
.band:not(.band--center) .cta-note { width: 0; min-width: 100%; } /* a nota acompanha a largura dos botões, sem alargar a coluna */
.actions--center .cta-note { text-align: center; }
@media (max-width: 767px) {
  .cta-note { text-align: center; }
}

/* Header
   ========================================================================== */
/* Cabeçalho fluido: ocupa a largura da tela, sem o limite de 1200px do .container */
.lp-internacao .header__inner {
  flex-wrap: nowrap;
  max-width: none;
  padding-top: 0;
  padding-inline: clamp(var(--gutter), 3vw, 64px);
}
.header__logo { flex: 0 0 auto; } /* o logo mantém o tamanho do design system; quem cede espaço é o menu */

.header__quick { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hsm-ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__call i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.125rem;
  color: var(--hsm-teal-dark);
  background: var(--hsm-green-100);
  border-radius: 50%;
}
.header__call-number,
.header__whatsapp { display: none; }
.lp-internacao .btn--sm { min-height: 44px; }
@media (min-width: 600px) {
  .header__call i { display: none; }
  .header__call-number { display: inline; }
}
@media (min-width: 900px) {
  .header__whatsapp { display: inline-flex; white-space: nowrap; }
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--hsm-teal-900);
  background: none;
  border: 0;
  cursor: pointer;
}

/* Celular e tablet: menu aberto como painel abaixo do header */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  padding: 12px var(--gutter) 24px;
  overflow-y: auto;
  background: var(--hsm-surface);
  border-bottom: 1px solid var(--hsm-line);
  box-shadow: var(--shadow-raised);
}
.menu.is-open { display: block; }
/* Celular: menu aberto ocupa toda a altura da tela */
@media (max-width: 899px) {
  .menu { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); box-shadow: none; }
  html:has(.menu.is-open) { overflow: hidden; }
}

.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__list .nav__link {
  padding: 14px 0;
  font-size: 1rem;
  color: var(--hsm-ink);
  background: none;
  border-bottom: 1px solid var(--hsm-line);
  border-radius: 0;
}
.menu__list .nav__link[aria-current="true"] { color: var(--hsm-green-cta); }

.menu__actions { display: grid; gap: 12px; }
.menu__phone {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 4px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hsm-ink);
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 1320px) {
  .menu-toggle,
  .header__quick { display: none; }
  .menu {
    position: static;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    align-self: stretch;
    gap: 16px; /* igual ao gap do .header__inner, para o menu ficar exatamente no centro */
    max-height: none;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .menu__list { display: flex; align-self: stretch; gap: 2px; margin-inline: auto; } /* centralizado entre o logo e o telefone */
  .menu__list li { display: flex; }
  .menu__list .nav__link {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: .9375rem;
    color: var(--hsm-ink);
    border: 0;
    border-block: 3px solid transparent; /* a linha de cima mantém o texto centralizado */
    border-radius: 0;
  }
  .menu__list .nav__link:hover { color: var(--hsm-green-cta); }
  .menu__list .nav__link[aria-current="true"] { color: var(--hsm-green-cta); background: none; border-bottom-color: var(--hsm-green-400); }
  .menu__actions { display: flex; align-items: center; gap: 12px; }
  .menu__phone { padding: 0; }
  .menu__cta { white-space: nowrap; }
}

/* Celular deitado: header mais baixo para sobrar tela */
@media (max-height: 480px) {
  .lp-internacao { --header-h: 65px; }
  .lp-internacao .header__inner { min-height: 64px; }
  .lp-internacao .header__logo img { width: 130px; }
}

/* Hero
   ========================================================================== */
.lp-internacao .hero__lead { max-width: 52ch; margin-bottom: 1.75rem; }
.lp-internacao .hero__actions { margin-top: 2.25rem; }
.hero__actions .cta-note { margin-top: 8px; }
.hero__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-weight: 600; line-height: 1.4; color: var(--hsm-ink); }
.hero__list li { display: flex; align-items: flex-start; gap: 10px; }
.hero__list li::before {
  content: "\f00c"; /* check */
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-family: "Font Awesome 6 Free";
  font-size: .6875rem;
  font-weight: 900;
  color: #fff;
  background: var(--hsm-green-400);
  border-radius: 50%;
}

/* Celular: texto antes do vídeo, como no protótipo */
@media (max-width: 899px) {
  .lp-internacao .hero { padding: 24px 0 0; }
  .lp-internacao .hero__media { order: 0; padding-bottom: 0; }
}

/* Desktop: o hero preenche a primeira dobra */
@media (min-width: 900px) {
  .lp-internacao .hero__media { width: calc(50% - 130px); } /* mais respiro entre o texto e a foto */
  .lp-internacao .hero__inner {
    min-height: min(calc(100vh - var(--header-h)), 760px);
    min-height: min(calc(100svh - var(--header-h)), 760px);
  }
}

/* Cabeçalho de seção
   ========================================================================== */
.section-head { display: grid; gap: 1rem; margin: 0 0 3rem; }
.section-head .section__title { margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: end; align-items: last baseline; } /* título e texto terminam na mesma linha de base */
}
.section-head .section__lead { margin: 0; }

/* Tratamentos
   ========================================================================== */
.treat-grid { display: grid; gap: 24px; }
@media (min-width: 800px) {
  .treat-grid { grid-template-columns: repeat(3, 1fr); }
}

.treat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hsm-surface);
  border: 2px solid var(--hsm-line);
  border-radius: var(--radius-md);
}
.treat__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.treat__body { padding: 24px; }
.treat__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; } /* mesmo tamanho do .pillar__title */
.treat__text { margin: 0; color: var(--hsm-muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chips__item {
  padding: 9px 18px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hsm-green-600);
  background: var(--hsm-green-100);
  border-radius: var(--radius-pill);
}

/* Faixa de chamada (mesmo degradê do design system; o tom escuro fica sob o texto)
   ========================================================================== */
.band {
  padding: var(--section-y) 0;
  color: #fff;
  background: var(--hsm-teal-dark);
}
.band__inner { display: grid; gap: 28px; align-items: center; }
.band__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
}
.band__lead { margin: .75rem 0 0; font-size: 1.125rem; } /* mesmo tamanho do .section__lead */
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1000px) {
  .band:not(.band--center) .band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
}

.band--center { text-align: center; }
.band--center .band__inner { justify-items: center; gap: 0; }
.band--center .band__title { max-width: 20em; font-weight: 600; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.band--center .band__actions { justify-content: center; margin-top: 2rem; }

@media (max-width: 599px) {
  .band__actions { flex-direction: column; width: 100%; }
  .band__actions .btn { width: 100%; }
}

/* Quem somos
   ========================================================================== */
.about { display: grid; gap: var(--stack-gap); align-items: start; }

.about__quote { margin: 0 0 3rem; }
.about__quote-mark { display: block; margin-bottom: 1rem; font-size: 3rem; line-height: 1; color: var(--hsm-green-500); }
.about__title { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.25; }
.about__author { display: flex; align-items: center; gap: 12px; font-size: .9375rem; line-height: 1.4; color: var(--hsm-muted); }
.about__author img { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

.about__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-lg);
}

.about__image--video { display: block; border: 0; border-radius: 8px; }

.about__content > p { color: var(--hsm-muted); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .about__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.pillars { margin-top: 2rem; border-top: 1px solid var(--hsm-line); }
.pillar { padding: 24px 0; border-bottom: 1px solid var(--hsm-line); }
.pillar:last-child { border-bottom: 0; }
.pillar__title { margin-bottom: .375rem; font-size: 1.25rem; font-weight: 700; }
.pillar__text { margin: 0; color: var(--hsm-muted); }

/* Galeria
   ========================================================================== */
/* Continua o fundo de "Quem somos", por isso sem respiro no topo */
.gallery-section { padding-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-block: 0;
  list-style: none;
}
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.gallery__item:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 2 colunas: a última foto ocupa a linha inteira, como na referência */

@media (min-width: 600px) {
  /* 3 fotos por linha em grade de 6 colunas; uma última linha incompleta se expande e não deixa buraco */
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .gallery__item,
  .gallery__item:last-child:nth-child(odd) { grid-column: span 2; }
  .gallery__item:last-child:nth-child(3n + 2),
  .gallery__item:nth-last-child(2):nth-child(3n + 1) { grid-column: span 3; }
  .gallery__item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .gallery__item:last-child:nth-child(3n + 1) img { aspect-ratio: 21 / 9; } /* foto sozinha na linha: formato panorâmico, para não ficar gigante */
}

/* Par de botões
   ========================================================================== */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.actions--center { justify-content: center; margin-top: 2.5rem; }
@media (max-width: 767px) {
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
}

/* Planos de saúde
   ========================================================================== */
.slider {
  --per-page: 1;
  --rows: 1;
  --slider-gap: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.slider--logos { --per-page: 4; --rows: 2; }
@media (min-width: 768px) {
  .slider { --slider-gap: 16px; gap: 20px; }
  .slider--logos { --per-page: 5; --rows: 1; }
  .slider--cards { --per-page: 2; }
}
@media (min-width: 1100px) {
  .slider--cards { --per-page: 3; }
}
@media (min-width: 1440px) {
  .slider--cards { --per-page: 4; }
  .slider--logos { --per-page: 6; }
}
@media (min-width: 1920px) {
  .slider--cards { --per-page: 5; }
  .slider--logos { --per-page: 8; }
}
/* Celular: cards de terapia ocupam a largura toda; navegação por swipe e pontos */
@media (max-width: 767px) {
  .slider--cards { grid-template-columns: minmax(0, 1fr); }
  .slider--cards .slider__arrow { display: none; }
}

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), 1fr);
  grid-auto-columns: calc((100% - var(--slider-gap) * (var(--per-page) / var(--rows) - 1)) / (var(--per-page) / var(--rows)));
  gap: var(--slider-gap);
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px; /* acompanha o padding, para o encaixe não deslocar a 1ª página */
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.logos__item {
  height: 96px;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--hsm-surface);
  border: 1px solid var(--hsm-line);
  border-radius: var(--radius-md);
}
.logos__item img { width: 100%; height: 100%; padding: 12px 16px; object-fit: contain; }
@media (min-width: 768px) {
  .logos__item img { padding: 16px 28px; }
}

.slider__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--hsm-green-600);
  background: var(--hsm-green-100);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}
.slider__arrow:hover { background: #d7ecdb; }

.slider__dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 2px; }
.slider__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  margin-block: -10px; /* área de toque maior sem afastar os pontos do carrossel */
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.slider__dot::before {
  content: "";
  width: 24px;
  height: 4px;
  background: var(--hsm-line);
  border-radius: 2px;
  transition: background-color .2s;
}
.slider__dot[aria-current="true"]::before { background: var(--hsm-green-cta); }

/* Terapias e atividades
   ========================================================================== */
/* Fluido: mesma largura e margens do header e do rodapé */
#terapias .container,
#planos .container,
.lp-internacao .gallery { max-width: none; padding-inline: clamp(var(--gutter), 3vw, 64px); }
.terapias__title { margin-bottom: 2.5rem; font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); }
@media (min-width: 900px) {
  .terapias__title { text-align: center; }
}

.therapy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  scroll-snap-align: start;
  background: var(--hsm-surface);
  border: 2px solid var(--hsm-line);
  border-radius: var(--radius-md);
}
.therapy__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  color: var(--hsm-green-600);
  background: var(--hsm-green-100);
  border-radius: 50%;
}
.therapy__title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.therapy__text { margin: 0; color: var(--hsm-muted); }

/* FAQ
   ========================================================================== */
.faq-split { display: grid; gap: var(--stack-gap); align-items: start; }
.faq-split__intro .section__lead { margin: 0; }
/* Desktop: título e texto lado a lado; o acordeão ocupa toda a largura, para as perguntas longas caberem em 1 linha */
@media (min-width: 900px) {
  .faq-split__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .faq-split__intro .section__title { margin: 0; }
}

.faq__answer p + p { margin-top: .75em; }

.plans { margin: 1rem 0 0; padding-left: 1.25em; list-style: disc; } /* mesma fonte do corpo da resposta */
.plans li::marker { color: var(--hsm-green-500); }
.plans li { padding: 2px 0; break-inside: avoid; }
@media (min-width: 600px) {
  .plans { columns: 2; column-gap: 24px; }
}
@media (min-width: 900px) {
  .plans { columns: 3; }
}

/* Localização
   ========================================================================== */
.location { display: grid; background: var(--hsm-bg); }
.location__content { padding: var(--section-y) var(--gutter); }
.location__address { margin-bottom: 1.5rem; font-style: normal; font-size: 1.0625rem; line-height: 1.7; color: var(--hsm-muted); }
.location__address strong { color: var(--hsm-ink); }
.location__map { min-height: 320px; background: var(--hsm-bg); }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (min-width: 900px) {
  .location { grid-template-columns: 1fr 1fr; }
  .location__content {
    align-self: center;
    padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
    padding-right: 64px;
  }
  .location__map, .location__map iframe { min-height: 440px; }
}

/* Footer
   ========================================================================== */
/* Rodapé fluido: mesma largura e mesmas margens laterais do cabeçalho */
.footer__grid {
  display: grid;
  gap: var(--stack-gap);
  max-width: none;
  padding-inline: clamp(var(--gutter), 3vw, 64px);
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: auto minmax(0, 340px); justify-content: space-between; gap: 48px 80px; } /* como no header: marca à esquerda, demais colunas à direita */
  .footer__legal { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: auto minmax(0, 340px) minmax(0, max-content); gap: 56px; }
  .footer__legal { grid-column: auto; }
}
@media (min-width: 1280px) {
  /* mais respiro entre o logo do hospital e o selo */
  .footer__grid { grid-template-columns: auto minmax(0, 388px) minmax(0, 420px); }
  .footer__ona { margin-left: 48px; }
}
/* Logo e selo na mesma caixa de altura: os textos abaixo começam na mesma linha */
@media (min-width: 800px) {
  .footer__logo,
  .footer__ona-seal { height: 73px; object-fit: contain; object-position: left center; }
}

.footer__brand { display: grid; gap: 16px; justify-items: start; }
.lp-internacao .footer { color: var(--hsm-ink); background: var(--hsm-surface); }
@media (max-width: 799px) {
  .lp-internacao .footer { padding-bottom: 96px; } /* folga para o WhatsApp flutuante não cobrir o texto legal */
}
.footer__logo { width: 165px; } /* mesmo tamanho do logo do header */
@media (min-width: 768px) {
  .footer__logo { width: 180px; }
}
.lp-internacao .footer__address,
.lp-internacao .footer__legal { color: var(--hsm-muted); }
.lp-internacao .footer__link { color: var(--hsm-green-600); }
.footer__address strong, .footer__phone { color: var(--hsm-ink); font-weight: 700; }
.footer__phone { text-decoration: none; }
@media (max-width: 899px) {
  .footer__phone { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__link { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer__ona-seal { width: 165px; margin-bottom: 16px; } /* mesmo espaço do .footer__brand */
.footer__ona-title { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; color: var(--hsm-ink); }
.footer__ona-text { margin: 0; color: var(--hsm-muted); }
.footer__legal p { margin: 0 0 .5rem; }
.footer__legal p:last-of-type { margin-bottom: 0; }

/* Redes sociais: só os ícones, na mesma cor da home do site */
.social { display: flex; flex-wrap: wrap; gap: 4px; margin: -12px 0 .75rem -12px; padding: 0; list-style: none; }
.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: var(--hsm-teal-dark);
  text-decoration: none;
  border-radius: 50%;
  transition: color .2s, background-color .2s;
}
.social__link:hover { color: var(--hsm-green-cta); background: var(--hsm-green-100); }

/* WhatsApp flutuante (mesmo padrão do site)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40; /* abaixo do header e do menu */
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 2.25rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: var(--hsm-green-400);
  border-radius: 50%;
  box-shadow: var(--shadow-raised);
  transition: transform .2s, background-color .2s;
}
.whatsapp-float:hover { color: #fff; background: var(--hsm-green-hover); transform: scale(1.05); }
@media (max-width: 899px) {
  .whatsapp-float { transition: opacity .2s, transform .2s, background-color .2s; }
  /* no celular, os botões do hero já fazem esse papel; assim o flutuante não cobre o conteúdo */
  .whatsapp-float.is-waiting { opacity: 0; visibility: hidden; transform: translateY(8px); }
}
