@charset "UTF-8";
/* =========================================================================
   BASE HOSPITALAR | SHOPPING DA SAÚDE — estilos do site público
   ========================================================================= */

:root {
  /* Identidade visual oficial Base Hospitalar: roxo-azulado + ciano */
  --teal-900: #1D1D5F;
  --teal-800: #232475;
  --teal-700: #2C2D92;
  --teal-600: #0090C7;
  --teal-500: #00ADEF;
  --mint-100: #EAF7FD;
  --mint-200: #CFF0FB;
  --mint-300: #9FE0F6;
  --ink: #1A1B3D;
  --ink-2: #3D3E63;
  --ink-3: #63647F;
  --bg: #FBFCFE;
  --line: #E3E5F0;
  --amber-500: #E8A23C;
  --white: #ffffff;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29,29,95,.06);
  --shadow: 0 12px 32px -18px rgba(29,29,95,.35);
  --shadow-lg: 0 24px 56px -24px rgba(29,29,95,.4);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font: 'Inter', system-ui, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 4.5rem; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.body-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal-900); margin: 0 0 .6rem; line-height: 1.18; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--teal-600);
  margin-bottom: .75rem;
}
.eyebrow--center { display: flex; justify-content: center; text-align: center; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--soft { background: var(--mint-100); }
.section__title { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section__title--left { text-align: left; margin: 0 0 1rem; }

/* ------------------------------- Reveal on scroll ------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 24px -12px rgba(37,211,102,.6); }
.btn--whatsapp:hover { background: #1EBE59; }
.btn--outline-teal { background: transparent; border-color: var(--teal-700); color: var(--teal-800); }
.btn--outline-teal:hover { background: var(--mint-100); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ------------------------------- Trust strip ------------------------------ */
.trust-strip { background: var(--teal-900); color: #cdeae7; overflow: hidden; }
.trust-strip__track {
  display: flex; gap: 2.5rem; padding: .55rem 1.5rem; font-size: .8125rem; font-weight: 600;
  white-space: nowrap; animation: trust-scroll 26s linear infinite;
}
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------- Header ---------------------------------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(251,253,252,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .9rem 1.5rem; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--teal-900); }
.logo__img { height: 2.6rem; width: auto; display: block; }

.nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.nav a:hover { color: var(--teal-700); }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9375rem; white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2.35rem; height: 2.35rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 1.15rem; height: 2px; margin: 0 auto; background: var(--teal-900); border-radius: 2px; }

/* ---------------------------------- Hero ------------------------------------ */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, var(--mint-100), var(--bg) 70%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.5rem 0 2rem; }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--teal-800); }
.hero__stats span { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }

.hero__media { position: relative; }
.hero__photo-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; background: var(--teal-900); }
.hero__photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge { position: absolute; left: -.5rem; bottom: -1rem; background: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow); padding: .65rem 1.15rem; font-weight: 700; font-size: .8125rem; color: var(--teal-800); }

/* -------------------------------- Categories -------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat-tile {
  display: flex; flex-direction: column; gap: .85rem; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-300); }
.cat-tile__icon { width: 3rem; height: 3rem; border-radius: 12px; background: var(--mint-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; }
.cat-tile__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cat-tile h3 { margin: 0; }
.cat-tile__link { font-size: .8125rem; font-weight: 700; color: var(--teal-700); }

/* --------------------------------- Feature ---------------------------------- */
.feature { background: var(--teal-900); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature__text .eyebrow { color: var(--mint-300); }
.feature__text h2 { color: #fff; }
.feature__text p { color: rgba(255,255,255,.78); }
.feature__media { display: flex; align-items: center; justify-content: center; }
.feature__media__mark {
  width: 100%; aspect-ratio: 16/11; border-radius: var(--r-lg); background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.feature__media__mark img { width: 100%; height: 100%; object-fit: contain; padding: 1.75rem; }

/* -------------------------------- Product grid ------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.35rem; display: flex; flex-direction: column; gap: .65rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card[hidden] { display: none; }
.product-card__badge {
  position: absolute; top: .85rem; right: .85rem; background: var(--amber-500); color: #fff;
  font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: .25rem .55rem; border-radius: var(--r-pill);
}
.product-card__mark {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); overflow: hidden;
}
.product-card__mark img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.product-card__brand { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.product-card h3 { font-size: .9375rem; margin: 0; min-height: 2.4em; }
.product-card .btn { margin-top: auto; }
.grid-note { text-align: center; color: var(--ink-3); font-size: .8125rem; margin: 2rem 0 0; }

/* -------------------------------- Reviews ------------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review-card__stars { color: var(--amber-500); font-size: 1rem; margin-bottom: .6rem; letter-spacing: .1em; }
.review-card p { font-style: italic; color: var(--ink); margin-bottom: .85rem; }
.review-card__author { font-size: .8125rem; color: var(--ink-3); }
.reviews-cta { text-align: center; margin-top: 2rem; }

/* ----------------------------------- About ------------------------------------ */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.about__photo-mark {
  aspect-ratio: 4/3.4; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--mint-300); box-shadow: var(--shadow);
}
.about__photo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-list { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.info-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.info-list__icon { flex: none; }
.info-list a { text-decoration: none; color: var(--teal-700); font-weight: 700; }

/* ------------------------------- Social proof -------------------------------- */
.social-proof { background: linear-gradient(160deg, var(--teal-800), var(--teal-900)); color: #fff; padding: 3.5rem 0; text-align: center; }
.social-proof__inner { max-width: 640px; margin: 0 auto; }
.social-proof__icon { font-size: 2rem; margin-bottom: .75rem; }
.social-proof h2 { color: #fff; margin-bottom: 1.5rem; }

/* -------------------------------- Location ----------------------------------- */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.location__address { font-size: 1.0625rem; color: var(--ink); margin-bottom: 1.5rem; }
.location__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; border: 1px solid var(--line); }

/* -------------------------------- Final CTA ----------------------------------- */
.final-cta { background: var(--teal-900); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.final-cta__inner { max-width: 560px; margin: 0 auto; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }

/* ---------------------------------- Footer ------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 3.5rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.footer__logo-img { height: 2.4rem; width: auto; }
.footer__brand p { margin: 0; font-size: .875rem; }
.footer__col strong { display: block; color: #fff; font-family: var(--font-head); margin-bottom: .75rem; font-size: .9375rem; }
.footer__col p { margin: 0 0 .4rem; font-size: .875rem; }
.footer__col a { text-decoration: none; color: inherit; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; text-align: center; font-size: .8125rem; }

/* ------------------------------ Floating WhatsApp -------------------------------- */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); text-decoration: none;
}
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* ----------------------------------- Modal --------------------------------------- */
/* Overlay comum (não <dialog>), para o modal aparecer no replay do Clarity. */
.lead-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: rgba(29,29,95,.55);
}
.lead-overlay[hidden] { display: none; }
body.lead-modal-open { overflow: hidden; }
.lead-modal {
  width: min(480px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; margin: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.lead-overlay.is-open .lead-modal { animation: lead-in .22s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lead-skip { margin-top: .65rem; }
.lead-skip-note { margin: .75rem 0 0; text-align: center; font-size: .8125rem; color: var(--ink-3); }
/* Aviso de promoções: destaca o ganho de quem preenche o cadastro. */
.lead-promo {
  display: flex; align-items: flex-start; gap: .7rem; margin: 0 0 1.1rem; padding: .85rem 1rem;
  background: #FDF1D6; border-radius: var(--r); font-size: .875rem; line-height: 1.45; color: var(--ink);
}
.lead-promo strong { display: block; }
.lead-promo__icon { flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem; fill: none; stroke: #B7791F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem 0; }
.modal__head h2 { margin: 0; font-size: 1.15rem; }
.modal__close { background: var(--mint-100); border: none; border-radius: var(--r-pill); width: 2.1rem; height: 2.1rem; font-size: 1.2rem; color: var(--ink-2); cursor: pointer; }
.modal__body { padding: 1.1rem 1.6rem 1.6rem; }
.modal__lead { color: var(--ink-3); font-size: .875rem; margin-bottom: 1.1rem; }

.field { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.field input, .field select {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal-600); outline-offset: 1px; }
.field-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .8125rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.1rem; }
.field-check input { margin-top: .2rem; }
.field-check a { color: var(--teal-700); font-weight: 700; }
.honeypot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.form-error { background: #FBEAEA; color: #B23A3A; border-radius: var(--r-sm); padding: .7rem .9rem; font-size: .8125rem; font-weight: 600; margin-bottom: 1rem; }

/* ------------------------------------ Utility ------------------------------------- */
.text-teal { color: var(--teal-600); }

/* ========================================= MOBILE ================================== */
@media (max-width: 980px) {
  .hero__inner, .feature__inner, .about, .location { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Fechado com display:none (e não fora da tela), senão o celular ganha rolagem/zoom horizontal. */
  .nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff; box-shadow: -18px 0 40px -20px rgba(29,29,95,.35); padding: 5.5rem 1.75rem 2rem; z-index: 65; }
  .nav.is-open { display: block; animation: nav-in .22s ease; }
  /* backdrop-filter faria o header virar o contêiner do menu fixo (menu com a altura do header). */
  .header { backdrop-filter: none; background: #fff; }
  .nav-toggle { position: relative; z-index: 70; }
  /* Só opacidade: deslizar com transform faria o celular dar zoom para fora durante a animação. */
  @keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }
  .nav ul { flex-direction: column; gap: 1.1rem; }
  .header__phone { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .header__inner { padding: .75rem 1rem; gap: .6rem; }
  .logo__img { height: 2.15rem; }
  .header__actions .btn-label { display: none; }
  .header__actions .btn { padding: .7rem; border-radius: 50%; box-shadow: none; }
  .header__actions .icon { width: 1.3em; height: 1.3em; }
}

@media (max-width: 640px) {
  /* minmax(0, 1fr): sem isso, palavras longas alargam a coluna além da tela. */
  .cat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .cat-tile { padding: 1.25rem 1rem; overflow-wrap: anywhere; hyphens: auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 2.75rem 0; }
  .hero__stats { gap: 1.25rem; }
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 3.15rem; height: 3.15rem; }
}
