/* ==========================================================================
   Grupo CDC Lab · Landing pages de Check-up (Black November)
   Compartilhado por: checkup-feminino.html · checkup-masculino.html
                      checkup-peso.html · checkup-vitaminas.html
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --navy: #002C69;
  --teal: #1C7887;
  --ink: #12284A;
  --sky: #65C4DF;
  --black: #05080F;
  --dark: #0B1220;
  --mist: #F5F8FA;
  --sky-soft: #E3F3F9;
  --map-bg: #EAF1F5;
  --muted: #5B6B82;
  --dim: #B9C6D6;
  --light: #C9D3E0;
  --pale: #E6ECF3;
  --white: #FFFFFF;

  /* Paleta "Google" (bloco de avaliações) */
  --g-text: #202124;
  --g-muted: #70757A;
  --g-border: #DADCE0;
  --g-blue: #1A73E8;
  --g-star: #FBBC04;

  --font-body: Lato, system-ui, sans-serif;
  --font-google: Roboto, Arial, sans-serif;
  --radius-xl: 40px;

  /* Tema por página (sobrescrito por .theme-* no <body>) */
  --accent: var(--navy);
  --soft: var(--sky-soft);
}

.theme-feminino  { --accent: #B83D5C; --soft: #FBE9ED; }
.theme-masculino { --accent: #1C7887; --soft: #E4F2F4; }
.theme-peso      { --accent: #002C69; --soft: #E3F3F9; }
.theme-vitaminas { --accent: #005025; --soft: #E3F0E8; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

a { color: var(--navy); }
a:not(.btn):hover { color: var(--teal); }

img { display: block; max-width: 100%; }

h1, h2, p, figure, blockquote { margin: 0; }

/* Sprite de ícones repetidos (estrela, check) */
.sr-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--pad { max-width: 1248px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.section { padding: 0 24px 96px; }
.section--hero { padding: 8px 24px 0; }
.section--reviews { background: var(--mist); padding: 88px 24px; }
.section--location { padding: 96px 24px; }
.section--cta { padding: 0 24px 72px; }

.section-title { font-size: 36px; line-height: 1.15; font-weight: 700; color: var(--navy); }
.section-title--lg { font-size: 44px; line-height: 1.1; }

/* ---- Botões e tags ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.btn--primary { min-height: 58px; padding: 0 34px; background: var(--sky); color: var(--navy); font-weight: 900; font-size: 18px; }
.btn--small { min-height: 32px; padding: 0 14px; background: var(--sky); color: var(--navy); font-size: 13px; }
.btn--outline { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 15px; }
.btn--outline-lg { min-height: 52px; padding: 0 28px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 16px; }
.btn--google { min-height: 44px; padding: 0 20px; border: 1px solid var(--g-border); background: var(--white); color: var(--g-blue); font-weight: 500; font-size: 14px; }

.tag { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.tag--outline { border: 1px solid rgba(101, 196, 223, 0.5); color: var(--sky); font-size: 13px; letter-spacing: 1.5px; }
.tag--soft { background: var(--sky-soft); color: var(--teal); font-size: 14px; }

.countdown { color: var(--white); font-variant-numeric: tabular-nums; }

/* ---- Barra superior ------------------------------------------------------ */
.topbar { background: var(--black); color: var(--white); }
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; font-size: 14px;
}
.topbar__brand { font-weight: 900; letter-spacing: 2px; color: var(--sky); }
.topbar__text { color: var(--pale); }
.topbar__timer { color: var(--dim); }

/* ---- Header -------------------------------------------------------------- */
.header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 44px; width: auto; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 700; }
.nav a { color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--teal); }

/* Botão hambúrguer: só aparece no celular */
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid var(--g-border); background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--dark); border-radius: var(--radius-xl); padding: 64px 56px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero__content { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: 60px; line-height: 1.05; font-weight: 700; color: var(--white); letter-spacing: -1px; }
.hero__lead { font-size: 20px; color: var(--light); max-width: 460px; }

.price { display: flex; flex-direction: column; gap: 6px; }
.price__from { font-size: 16px; color: var(--dim); }
.price__row { display: flex; align-items: center; gap: 16px; }
.price__value { font-size: 64px; line-height: 1; font-weight: 900; color: var(--white); }
.price__badge { padding: 6px 12px; border-radius: 10px; background: var(--sky); color: var(--navy); font-size: 20px; font-weight: 900; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__timer, .cta__timer { font-size: 15px; color: var(--dim); }

.hero__media { flex: 1 1 440px; min-width: 0; position: relative; padding: 24px 0 0 24px; }
.hero__dot { position: absolute; top: 0; right: 8%; width: 120px; height: 120px; border-radius: 999px; background: var(--sky); }
.hero__img {
  position: relative; width: 100%; height: 520px; object-fit: cover; object-position: center top;
  border-radius: var(--radius-xl); background: var(--soft);
}
.theme-vitaminas .hero__img { object-position: center; }

/* ---- Faixa animada ------------------------------------------------------- */
.marquee-wrap { overflow: hidden; padding: 28px 0 72px; }
.marquee {
  background: var(--black); transform: rotate(-2deg); width: 110%; margin-left: -5%;
  padding: 16px 0; overflow: hidden; white-space: nowrap; font-size: 18px;
}
.marquee__track { display: inline-flex; animation: bn-marquee 40s linear infinite; }
.marquee__group { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__brand { font-weight: 900; letter-spacing: 3px; color: var(--sky); }
.marquee__text { font-weight: 700; letter-spacing: 2px; color: var(--white); }
.marquee__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--white); }
.marquee__dot--sky { background: var(--sky); }

@keyframes bn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- O que está incluído ------------------------------------------------- */
.card { background: var(--mist); border-radius: var(--radius-xl); padding: 56px 48px; display: flex; flex-direction: column; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); font-size: 16px; color: var(--ink); }
.chip svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- Como funciona ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--sky-soft); }
.step__icon svg { width: 26px; height: 26px; }
.step__title { font-weight: 700; font-size: 20px; color: var(--navy); }
.step__text { font-size: 16px; color: var(--muted); text-wrap: balance; }

/* ---- Avaliações ---------------------------------------------------------- */
.reviews { display: flex; flex-direction: column; gap: 32px; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.reviews__nav { display: flex; gap: 10px; }
.reviews__btn {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border-radius: 999px; border: 1px solid var(--g-border); background: var(--white); color: var(--navy); cursor: pointer;
}
.reviews__btn svg { width: 20px; height: 20px; }

.stars { display: flex; gap: 1px; }
.stars svg { width: 18px; height: 18px; }
.stars--sm svg { width: 14px; height: 14px; }

.gcard {
  font-family: var(--font-google); background: var(--white); border: 1px solid var(--g-border); border-radius: 12px; padding: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.gcard__info { display: flex; flex-direction: column; gap: 4px; }
.gcard__name { font-size: 20px; color: var(--g-text); }
.gcard__rating { display: flex; align-items: center; gap: 8px; }
.gcard__score { font-size: 16px; font-weight: 500; color: var(--g-text); }
.gcard__count { font-size: 14px; color: var(--g-muted); }
.gcard__type { font-size: 13px; color: var(--g-muted); }
.gcard__actions { display: flex; align-items: center; gap: 16px; }
.gcard__logo { height: 28px; width: auto; }

.reviews-track {
  font-family: var(--font-google); display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(380px, 86%); scroll-snap-align: start; background: var(--white); border: 1px solid var(--g-border);
  border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--avatar, var(--g-blue)); color: var(--white); font-weight: 500; font-size: 18px;
}
.review__who { display: flex; flex-direction: column; }
.review__name { font-weight: 500; font-size: 15px; color: var(--g-text); }
.review__meta, .review__date { font-size: 12px; color: var(--g-muted); }
.review__logo { height: 16px; width: auto; margin-left: auto; }
.review__rating { display: flex; align-items: center; gap: 8px; }
.review__text { font-size: 14px; line-height: 1.6; color: var(--g-text); }

/* ---- Localização --------------------------------------------------------- */
.location { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.location__content { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.location__content > .btn { align-self: flex-start; }
.location__list { display: flex; flex-direction: column; gap: 16px; }
.location__item { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--ink); }
.location__item svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; }

.map {
  flex: 1 1 520px; min-width: 0; position: relative; display: block; height: 440px;
  border-radius: var(--radius-xl); overflow: hidden; background: var(--map-bg); text-decoration: none;
}
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 46%; }
.map__label {
  position: absolute; right: 20px; bottom: 18px; padding: 6px 12px; border-radius: 999px; background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 44, 105, 0.16); font-size: 13px; font-weight: 700; color: var(--navy);
}

/* ---- CTA final ----------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; background: var(--dark); border-radius: var(--radius-xl); padding: 64px 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
}
.cta__glow { position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 999px; background: var(--sky); opacity: 0.12; }
.cta__content { position: relative; flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cta__title { font-size: 44px; line-height: 1.1; font-weight: 700; color: var(--white); }
.cta__text { font-size: 18px; color: var(--light); }
.cta__text strong { color: var(--white); }
.cta__action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---- Rodapé -------------------------------------------------------------- */
.footer { display: flex; flex-direction: column; gap: 6px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* ---- Tablet (hero empilhado) --------------------------------------------- */
@media (max-width: 1100px) {
  .hero__img { height: 420px; }
}

/* ---- Celular: primeira dobra enxuta (título, preço, CTA e contagem visíveis
        sem rolar). Imagem do hero, texto da barra e botão do header saem. --- */
@media (max-width: 720px) {
  /* Barra superior: só marca + contagem, em uma linha */
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; font-size: 13px; gap: 6px 16px; }
  .topbar__text, .topbar .btn--small { display: none; }

  /* Header: logo + hambúrguer; menu abre como painel flutuante abaixo do header.
     "Falar no WhatsApp" fica por conta do CTA e de "Contato" */
  .header { position: relative; padding-top: 12px; padding-bottom: 12px; gap: 12px; justify-content: space-between; }
  .header__logo img { height: 34px; }
  .header > .btn--outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 18px;
    background: var(--white); border: 1px solid var(--g-border); border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 44, 105, 0.16); font-size: 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--pale); }
  .nav a:last-child { border-bottom: 0; }

  /* Hero: vira grid; a foto (retrato) fica ao lado do título e do subtítulo,
     sem aumentar a altura da primeira dobra */
  .section--hero { padding: 0 16px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: start;
    column-gap: 14px; row-gap: 12px; padding: 24px 20px; border-radius: 24px;
  }
  .hero__content { display: contents; }
  .hero .tag { grid-column: 1 / -1; justify-self: start; }
  .hero__title { grid-column: 1; grid-row: 2; }
  .hero__lead { grid-column: 1; grid-row: 3; }
  .hero__media { grid-column: 2; grid-row: 2 / 4; padding: 0; }
  .hero__dot { display: none; }
  .hero__img { height: 170px; border-radius: 20px; }
  .price { grid-column: 1 / -1; }
  .hero__actions { grid-column: 1 / -1; }
  .tag--outline { font-size: 11px; letter-spacing: 1px; padding: 5px 12px; }
  .hero .tag__prefix { display: none; } /* barra superior já diz "Black November" */
  .hero__title { font-size: 28px; line-height: 1.1; letter-spacing: -0.5px; }
  .hero__lead { font-size: 14px; line-height: 1.4; }
  .price { gap: 2px; }
  .price__from { font-size: 14px; }
  .price__value { font-size: 44px; }
  .price__badge { font-size: 16px; padding: 4px 10px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn--primary { width: 100%; min-height: 52px; font-size: 17px; }
  .hero__timer { font-size: 13px; }

  /* Faixa */
  .marquee-wrap { padding: 20px 0 48px; }
  .marquee { font-size: 14px; padding: 12px 0; }

  /* Demais seções: gutter de 16px e blocos mais compactos */
  .section { padding: 0 16px 56px; }
  .section--reviews, .section--location { padding: 56px 16px; }
  .section--cta { padding: 0 16px 48px; }
  .section-title { font-size: 26px; }
  .section-title--lg { font-size: 30px; }

  .card { padding: 32px 20px; border-radius: 24px; gap: 20px; }
  .chip { font-size: 14px; padding: 8px 12px; }

  .steps { gap: 28px; }
  .step { align-items: center; text-align: center; }
  .step__text { max-width: 260px; } /* força duas linhas equilibradas */

  .gcard { padding: 20px; }
  .location { gap: 32px; }
  .map { height: 280px; border-radius: 24px; }

  .cta { padding: 32px 20px; border-radius: 24px; gap: 24px; }
  .cta__content { gap: 14px; }
  .cta__title { font-size: 28px; }
  .cta__text { font-size: 16px; }
  .cta__action { width: 100%; }
  .cta__action .btn--primary { width: 100%; min-height: 52px; font-size: 17px; }

  .footer { padding-bottom: 28px; }
}
