/* Mobile-first: as regras base são para celular; telas maiores ajustam via min-width. */
:root {
  /*
    Cores da marca — VALORES PROVISÓRIOS NEUTROS.
    Troque pelos da identidade da Sampa Feminina (e atualize theme-color em index.html, 404.html e site.webmanifest).
    --brand precisa ter bom contraste com texto branco.
  */
  --brand: #4a4a4a;        /* fundo principal */
  --brand-dark: #333333;   /* faixas escuras (marcas, CTA final, barra fixa) */
  --accent: #222222;       /* texto dos botões brancos */
  --light: #f4f3f1;        /* seções claras */
  --ink: #1c1c1c;          /* texto sobre fundo claro */
  --white: #ffffff;
  --placeholder: #d4d4d4;  /* fundo enquanto a imagem carrega */
  --shadow: rgba(0, 0, 0, 0.28);
  --whats: #1fa855;        /* verde do ícone do WhatsApp nos botões brancos */

  /* Fonte da marca: declare em css/fonts.css e troque o primeiro nome abaixo */
  --font-base: "Fonte da Marca", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 760px;
  --gutter: 20px;
  --header-h: 76px;
  --radius: 18px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: 300;
  color: var(--white);
  background: var(--brand);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.page { position: relative; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
}

.header__inner { display: flex; align-items: center; gap: 14px; }
.header__logo { display: block; padding-block: 8px; }
.header__logo img { width: 96px; height: auto; }

.header__line {
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.header__whats {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.header__whats svg { width: 1.35em; height: 1.35em; flex: none; }

@media (max-width: 359px) {
  .header__whats span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn[hidden] { display: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.97); }

/*
  Botão principal: pílula branca com texto na cor de destaque.
  .btn--whats = CTA de conversão (WhatsApp): mesmo visual do principal + ícone verde.
  Para um botão todo verde, troque o background por #25d366 e a cor do texto por #0b3b1e (contraste AA).
*/
.btn--primary,
.btn--light,
.btn--whats {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn--whats svg { width: 22px; height: 22px; color: var(--whats); }

.btn--ghost,
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

/* Sobre fundo claro, o botão principal vira a cor da marca e o secundário fica escuro, para manter contraste */
.section--light .btn--primary,
.section--light .btn--whats {
  background: var(--brand);
  color: var(--white);
}

.section--light .btn--whats svg { color: currentColor; }

.section--light .btn--ghost {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.55);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.cta-group--center { margin: 36px auto 0; }

/* Microtexto sob o CTA do topo */
.cta-note { margin-top: -6px; font-size: 0.85rem; opacity: 0.8; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-dark); }

.hero__banner { display: block; background: var(--placeholder); }

.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 360;
  object-fit: cover;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 40px;
  text-align: center;
}

.hero__title {
  text-transform: uppercase;
  line-height: 1;
  font-weight: 200;
  font-size: clamp(2.3rem, 11vw, 4.4rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__title strong { font-weight: 800; display: block; }

.hero__lead {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero .cta-group { margin-top: 6px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.trust li { display: flex; flex-direction: column; gap: 2px; font-size: 0.72rem; line-height: 1.3; }
.trust strong { font-size: 0.95rem; }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--light { background: var(--light); color: var(--ink); }
.section--brands { background: var(--brand-dark); padding: 44px 0; }

.section__title {
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 0.6em;
  text-wrap: balance;
}

.section__title strong { font-weight: 800; }
.section__title--center { text-align: center; margin-bottom: 1.2em; }

.section__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.6em;
  text-wrap: pretty;
}

/*
  Carrossel contínuo de logos (SVGs claros).
  O HTML tem 1 lista; o js/main.js cria 5 cópias e liga a animação (.is-animated).
  Sem JS ou com "reduzir movimento", a lista fica parada e rolável.
*/
.marquee {
  overflow-x: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee.is-animated { overflow: hidden; }

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee.is-animated .marquee__track { animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee__list:first-child { padding-left: 56px; }
.marquee.is-animated .marquee__list:first-child { padding-left: 0; }

.marquee__list img { width: auto; height: var(--h, 30px); max-width: none; opacity: 0.95; }

@keyframes marquee { to { transform: translateX(-16.6667%); } }  /* 6 listas no total (1 + 5 cópias) */

/* Galeria dos banners: um embaixo do outro */
.gallery {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 8px auto 0;
  padding: 0 var(--gutter);
}

.gallery__link { position: relative; display: block; border-radius: var(--radius); transition: transform 0.2s ease; }
.gallery__link:active { transform: scale(0.99); }

/* Selo "chamar no WhatsApp" sobre cada banner */
.gallery__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 6px 16px var(--shadow);
}

.gallery__cta svg { width: 18px; height: 18px; color: var(--whats); }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 360;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--placeholder);
  box-shadow: 0 10px 24px var(--shadow);
}

/* Diferenciais */
.benefits { display: grid; gap: 22px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }

.benefits__n {
  flex: none;
  font-size: 1.9rem;
  font-weight: 200;
  line-height: 1;
  color: var(--brand);
  min-width: 2.2ch;
}

.benefits h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.benefits p { font-size: 1rem; line-height: 1.5; }

/* Passos */
.steps { display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }

.steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
}

.steps h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.steps p { font-size: 1rem; line-height: 1.5; }

/* Oferta (bloco opcional, ver comentário no HTML) */
.offer {
  margin-top: 32px;
  padding: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  text-align: center;
}

.offer__tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.offer__text { font-size: 1.2rem; }

/* Fachada */
.facade { margin-bottom: 26px; }

.facade__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2b2b2b;
  border-radius: var(--radius);
}

.facade figcaption { margin-top: 10px; font-size: 0.85rem; text-align: center; opacity: 0.75; }

.address { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-style: normal; }
.address__line { font-size: 1.2rem; line-height: 1.5; }
.address__phone,
.address__hours { font-size: 1rem; }
.address .cta-group { margin-top: 4px; }

.map { margin-top: 26px; border-radius: var(--radius); overflow: hidden; background: #ddd; line-height: 0; }
.map iframe { width: 100%; height: 300px; border: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }

.faq details {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 52px 12px 18px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; line-height: 1.55; }
.faq a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* CTA final */
.final { background: var(--brand-dark); padding: 56px 0; text-align: center; }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final__title { font-size: clamp(1.9rem, 9vw, 3rem); font-weight: 200; text-transform: uppercase; line-height: 1.05; }
.final__title strong { font-weight: 800; }

/* ---------- Rodapé ---------- */
.footer { position: relative; background: var(--brand-dark); }

.footer__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 30% center;
}

.footer__legal {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px max(var(--gutter), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.7));
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 300;
}

.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer__company { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; }
.footer__copy { margin-top: 6px; font-size: 0.7rem; opacity: 0.8; }

/* ---------- Barra fixa (celular) ---------- */
.sticky-cta {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-dark) 96%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 20px var(--shadow);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 10px 16px; }
.sticky-cta .sticky-cta__secondary { flex: none; width: 52px; padding: 0; }  /* "Como chegar" só com ícone */

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  :root { --header-h: clamp(88px, 10vw, 120px); --gutter: 32px; }

  .header__inner { gap: clamp(16px, 3vw, 32px); }
  .header__logo img { width: clamp(110px, 12vw, 130px); }
  .header__whats { font-size: clamp(1rem, 1.6vw, 1.2rem); }

  .hero__content { padding-top: 44px; padding-bottom: 56px; }
  .hero .cta-group { flex-direction: row; max-width: none; justify-content: center; }
  .hero .cta-group .btn { min-width: 220px; }
  .trust li { font-size: 0.85rem; }
  .trust strong { font-size: 1.1rem; }

  .section { padding: 80px 0; }
  .section--brands { padding: 56px 0; }

  .benefits { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
  .footer__img { height: clamp(240px, 24vw, 440px); }
  .map iframe { height: 380px; }

  /* barra fixa só no celular */
  .sticky-cta { display: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  :root { --container: 960px; }

  .btn--primary:hover,
  .btn--light:hover,
  .btn--whats:hover { transform: translateY(-2px); box-shadow: 0 12px 24px var(--shadow); }
  .btn--ghost:hover,
  .btn--outline:hover { background: rgba(255, 255, 255, 0.14); }
  .section--light .btn--primary:hover,
  .section--light .btn--whats:hover { background: var(--brand-dark); }
  .section--light .btn--ghost:hover { background: rgba(0, 0, 0, 0.06); }
  .header__whats:hover { opacity: 0.8; }
  .gallery__link:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}

/* ---------- Banner desktop (composição em vetor + foto) ---------- */
.hero__stage { display: none; }

@media (min-width: 900px) {
  .hero__banner { display: none; }

  .hero__stage { display: block; background: var(--placeholder); overflow: hidden; }

  .hero__stage-inner {
    display: grid;
    --stage-h: clamp(420px, 34vw, 560px);
    grid-template-columns: 1fr calc(var(--stage-h) * 0.806);  /* proporção da foto (870×1080) */
    height: var(--stage-h);
  }

  .hero__stage-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 56px) 24px clamp(28px, 4vw, 56px) max(var(--gutter), calc((100vw - 1280px) / 2 + 48px));
  }

  /* Logos do banner: 80% da altura definida em --h no HTML */
  .hero__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(18px, 2.2vw, 36px); }
  .hero__brands img { width: auto; height: calc(var(--h, 24px) * 0.8); }

  .hero__stage-logo { width: clamp(240px, 24vw, 380px); height: auto; }
  .hero__stage-tag { font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 300; }

  .hero__stage-photo { height: 100%; }
  .hero__stage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%);
    mask-image: linear-gradient(90deg, transparent, #000 14%);
  }
}
