/*
 * Autor: Marcelo
 * Projeto: Saber Viver Internações
 * Arquivo: CSS autônomo da presell (uma dobra, domínio externo).
 */

:root {
  --ink: #1c140f;
  --gold: #e8a15a;
  --wa: #25d366;
  --serif: "Montserrat", "Segoe UI", sans-serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #10221d;
  color: white;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, p { margin: 0; }
h1 {
  font-family: var(--serif);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 em { font-style: italic; font-weight: 520; }
.icon { width: 1.15rem; height: 1.15rem; display: block; flex: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fffdf9;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--wa { background: var(--wa); color: #07321a; box-shadow: 0 10px 24px rgb(37 211 102 / 0.28); }
.btn--wa:hover { background: #1ebe5d; }
.btn--light {
  background: rgb(255 253 249 / 0.14);
  color: white;
  border-color: rgb(255 255 255 / 0.35);
  backdrop-filter: blur(8px);
}

.ac {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ac__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.ac__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  animation: ac-zoom 16s ease-out both;
}
.ac__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(12 18 16 / 0.28) 0%, rgb(12 18 16 / 0.45) 42%, rgb(10 16 14 / 0.88) 78%, rgb(8 12 11 / 0.96) 100%);
}
@keyframes ac-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.ac__top, .ac__main, .ac__foot {
  width: min(720px, calc(100% - 1.5rem));
  margin-inline: auto;
}
.ac__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
}
.ac__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: white;
  background: rgb(12 10 9 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.8rem 0.28rem 0.28rem;
  backdrop-filter: blur(8px);
}
.ac__brand img { width: 42px; height: 42px; }
.ac__brand strong { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.ac__call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.08);
  font-weight: 700;
  font-size: 0.92rem;
}
.ac__main { margin-top: auto; padding-bottom: 0.4rem; }
.ac__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.ac__title {
  font-size: clamp(2.05rem, 1rem + 5.2vw, 4.2rem);
  max-width: 12ch;
}
.ac__title em { color: #f0c08a; }
.ac__lead { margin-top: 0.7rem; max-width: 36ch; color: #efe6dc; font-size: 1rem; }
.ac__actions { display: grid; gap: 0.55rem; margin-top: 1rem; }
.ac__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: #efe6dc;
  font-size: 0.86rem;
  font-weight: 650;
}
.ac__facts li { display: inline-flex; align-items: center; gap: 0.35rem; }
.ac__foot {
  padding: 0.8rem 0 calc(0.7rem + env(safe-area-inset-bottom));
  color: #cbbbaa;
  font-size: 0.75rem;
}
.ac__foot p { margin: 0.15rem 0; }
.ac__foot a { color: #f0c08a; }

.wa-widget {
  position: fixed;
  z-index: 60;
  right: 0.8rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom));
}
.wa-fab {
  position: relative;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgb(18 140 70 / 0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab__icon { width: 32px; height: 32px; }
.wa-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d2e;
  color: white;
  border: 2px solid white;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.wa-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 1.4rem));
  border-radius: 22px;
  overflow: hidden;
  background: #efeae2;
  box-shadow: 0 22px 60px rgb(0 0 0 / 0.28);
  transform-origin: 90% 100%;
  animation: wa-in 0.28s ease;
}
.wa-panel[hidden] { display: none; }
@keyframes wa-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.wa-panel__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  background: #075e54;
  color: white;
}
.wa-panel__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.12);
}
.wa-panel__mark .icon { width: 22px; height: 22px; }
.wa-panel__name { font-weight: 700; letter-spacing: -0.02em; }
.wa-panel__status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.92;
  margin-top: 0.1rem;
}
.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffb2;
  box-shadow: 0 0 0 3px rgb(125 255 178 / 0.2);
}
.wa-panel__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.wa-panel__body {
  min-height: 148px;
  padding: 0.95rem 0.85rem 0.4rem;
  background:
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 0.35), transparent 40%),
    linear-gradient(#efeae2, #e7e0d6);
}
.wa-bubble {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.75rem 0.4rem;
  background: white;
  color: #1c140f;
  border-radius: 6px 16px 16px 16px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
}
.wa-bubble p { font-size: 0.94rem; line-height: 1.4; color: inherit; }
.wa-bubble time {
  display: block;
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.68rem;
  color: #8a8178;
}
.wa-panel__footer { padding: 0.35rem 0.75rem 0.85rem; background: #efeae2; }
.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 999px;
  background: var(--wa);
  color: #07321a;
  text-decoration: none;
  font-weight: 750;
}
.wa-cta .icon { width: 1.2rem; height: 1.2rem; }
.wa-micro { margin: 0.45rem 0 0; text-align: center; color: #6f675f; font-size: 0.78rem; }

@media (min-width: 800px) {
  .ac__actions { display: flex; flex-wrap: wrap; }
  .ac__main { padding-bottom: 1.2rem; }
  .ac__title { max-width: 14ch; }
}
@media (min-width: 900px) {
  .wa-widget { right: 1.3rem; bottom: 1.3rem; }
}
@media (max-height: 700px) {
  .ac__title { font-size: clamp(1.7rem, 1rem + 3vw, 2.4rem); }
  .ac__lead { font-size: 0.92rem; }
  .ac__facts { display: none; }
  .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac__bg img { animation: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
