/* =====================================================
   Espaço Vestcasa no Roldão Atacadista — LP de ofertas
   Paleta extraída dos criativos da campanha:
   azul-marinho Roldão + verde Vestcasa + azul claro + amarelo
   ===================================================== */

:root {
  --navy: #17376E;
  --navy-deep: #0F2A56;
  --blue: #1E63B4;
  --sky: #7FD4F5;
  --green: #2E9B44;
  --green-bright: #4CC768;
  --yellow: #FFD400;
  --paper: #F2F6FC;
  --white: #FFFFFF;
  --ink: #1C2B4A;
  --muted: #5A6B8C;
  --border: #D9E4F5;

  --font-display: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(23, 55, 110, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Assinatura: faixa diagonal tricolor dos criativos ---------- */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    115deg,
    var(--sky) 0 34px,
    var(--blue) 34px 68px,
    var(--yellow) 68px 92px,
    var(--green) 92px 108px
  );
}

/* ---------- Barra de navegação flutuante ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 42, 86, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 212, 245, 0.25);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.topbar.show { transform: translateY(0); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-brand > span[aria-hidden] {
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
}

.topbar-pill { padding: 5px 12px; border-radius: 999px; box-shadow: none; }

.topbar-links {
  display: flex;
  gap: 4px;
}

.topbar-links a {
  color: #DCEBFB;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar-links a:hover {
  background: rgba(127, 212, 245, 0.18);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(127, 212, 245, 0.28), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(46, 155, 68, 0.22), transparent 65%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #1B4487 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding: 48px 20px 56px;
}

/* Entrada suave do hero no carregamento */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-entra {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .hero-logos { animation: hero-entra 0.6s ease-out backwards; }
  .hero-eyebrow { animation: hero-entra 0.6s ease-out 0.15s backwards; }
  .hero h1 { animation: hero-entra 0.6s ease-out 0.25s backwards; }
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.logo-x {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--yellow);
}

.logo-pill {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 42, 86, 0.35);
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.hl-green { color: var(--green-bright); }

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #CFE4FA;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Seções ---------- */
.section {
  padding: 64px 0;
  scroll-margin-top: 64px; /* âncoras não ficam escondidas sob a topbar fixa */
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  color: var(--navy);
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  border-radius: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--sky) 0 34%, var(--yellow) 34% 67%, var(--green) 67% 100%);
}

.section-title.light { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Ofertas ---------- */
.ofertas { background: var(--white); }

.grid-ofertas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-top: 44px;
}

.card-oferta picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-oferta picture img {
  width: 100%;
  transition: transform 0.45s ease;
}

.card-oferta:hover picture {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(23, 55, 110, 0.24);
}

.card-oferta:hover picture img { transform: scale(1.03); }

.oferta-aviso {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
}

/* ---------- Lojas ---------- */
.lojas { background: var(--paper); }

/* Filtro de regiões */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.filtro-chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.filtro-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.filtro-chip.ativo {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.grid-lojas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.card-loja {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(23, 55, 110, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loja-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.loja-pin {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(127, 212, 245, 0.35), rgba(30, 99, 180, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
}

.loja-pin svg {
  width: 21px;
  height: 21px;
  fill: var(--blue);
}

.loja-regiao {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.card-loja {
  position: relative;
  overflow: hidden;
}

.card-loja[hidden] { display: none; }

/* Filete tricolor que surge no topo do card ao passar o mouse */
.card-loja::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky) 0 34%, var(--yellow) 34% 67%, var(--green) 67% 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-loja:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 99, 180, 0.4);
  box-shadow: var(--shadow);
}

.card-loja:hover::before { opacity: 1; }

.card-loja h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.15;
  color: var(--navy);
}

.loja-endereco {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Botão com cantos chanfrados, eco dos cards de preço dos criativos */
.btn-mapa {
  margin-top: auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue), #17458C);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 20px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: gap 0.2s ease, filter 0.2s ease;
}

.btn-mapa:hover {
  filter: brightness(1.15);
  gap: 13px;
}

.btn-mapa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Instagram ---------- */
.instagram {
  background:
    radial-gradient(700px 340px at 12% 110%, rgba(46, 155, 68, 0.35), transparent 65%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}

.instagram-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ig-badge {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 55%, var(--green) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 42, 86, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.ig-badge svg {
  width: 42px;
  height: 42px;
  color: var(--white);
}

.ig-handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--sky);
  letter-spacing: 0.01em;
}

.instagram-sub { color: #CFE4FA; }

.btn-instagram svg {
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  margin-right: 8px;
}

.btn-instagram {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  margin-top: 6px;
  box-shadow: 0 6px 20px rgba(15, 42, 86, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-instagram:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

/* Brilho que atravessa o botão do Instagram */
@media (prefers-reduced-motion: no-preference) {
  .btn-instagram::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -75%;
    width: 50%;
    background: linear-gradient(105deg, transparent, rgba(127, 212, 245, 0.55), transparent);
    transform: skewX(-20deg);
    animation: brilho 4s ease-in-out infinite;
  }

  @keyframes brilho {
    0%, 55% { left: -75%; }
    75%, 100% { left: 125%; }
  }
}

/* ---------- Voltar ao topo ---------- */
.voltar-topo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 42, 86, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.voltar-topo.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.voltar-topo:hover { background: var(--navy); }

.voltar-topo svg {
  width: 20px;
  height: 20px;
}

/* ---------- Detalhes globais ---------- */
::selection {
  background: var(--yellow);
  color: var(--navy-deep);
}

html { scrollbar-color: var(--blue) var(--paper); }

/* ---------- Quadro de atenção (dentro da seção de lojas) ---------- */
.obs-box {
  max-width: 820px;
  margin: 44px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 3px 12px rgba(23, 55, 110, 0.06);
}

.obs-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.obs-titulo svg {
  width: 24px;
  height: 24px;
}

.obs-titulo strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.obs-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obs-box li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

.obs-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #A9C3E4; }

.footer-inner {
  padding: 40px 20px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer .logo-pill { padding: 8px 16px; }

.footer p { max-width: 640px; }

/* ---------- Revelação ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-loja, .btn-instagram { transition: none; }
}

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-ofertas { grid-template-columns: repeat(2, 1fr); }
  .grid-lojas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /* No mobile a barra mostra só as marcas, sem links */
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero-inner { padding: 36px 16px 44px; }
  .hero-logos { gap: 14px; margin-bottom: 28px; }
  .hero-logos .logo-vestcasa { width: 170px; }
  .hero-logos .logo-pill img { width: 120px; }
  .grid-ofertas { grid-template-columns: 1fr; gap: 28px; }
  .grid-lojas { grid-template-columns: 1fr; }
  .stripe { height: 10px; }
}
