/* ==========================================================================
   Drogaria Show Popular — estilos
   Paleta extraída da logo original (vermelho médio dos pixels da marca: #DC0E10;
   fundo da logo: #0C1014). Amarelo só em pequenos detalhes.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --red: #dc0e10;        /* vermelho da marca; texto branco sobre ele = contraste 5,1:1 */
  --red-dark: #b30a0c;   /* hover / pressionado */
  --red-soft: #fdecec;
  --yellow: #ffc21a;     /* só detalhes gráficos, nunca texto sobre branco */
  --ink: #0c1014;        /* mesma cor de fundo da logo */
  --gray-800: #2b3036;   /* texto sobre fundo claro */
  --gray-600: #4a5058;
  --gray-100: #f4f5f6;
  --line: #e3e5e8;
  --white: #ffffff;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --header-h: 82px;
  --focus: var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }

h1, h2, h3 { line-height: 1.18; color: var(--ink); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.05rem, 6.2vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 62ch; }

/* Foco visível — anel escuro em fundo claro, amarelo em fundo escuro/vermelho */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark { --focus: var(--yellow); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 200;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: .7rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.5rem;
  font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--white { background: var(--white); color: var(--red-dark); }
.btn--white:hover { background: var(--red-soft); color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn--outline { background: var(--white); color: var(--red-dark); border-color: var(--red); }
.btn--outline:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row .btn { flex: 1 1 100%; }

/* ---------- Cabeçalho (fundo = cor da logo, para a logo se integrar sem alteração) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  border-bottom: 3px solid var(--red);
}
.site-header__bar {
  min-height: var(--header-h); padding-block: .55rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7); border-radius: 10px;
  min-height: 46px; padding: 0 .9rem; font: 500 .95rem var(--font); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-bottom: 3px solid var(--red);
  padding: .5rem 1.25rem 1.25rem;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a:not(.btn) {
  display: block; padding: .85rem .25rem; color: var(--white); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav li a:not(.btn):hover { color: var(--yellow); }
.nav .btn { width: 100%; margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--red); color: var(--white);
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3.5rem, 9vw, 6rem);
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero__text { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__slogan {
  display: flex; align-items: center; gap: .7rem; margin: 2.2rem 0 0;
  font-weight: 500; font-size: 1rem; max-width: 40ch;
}
.hero__slogan::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 100% 7px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 7px 100% no-repeat;
}
.hero__inner { position: relative; z-index: 1; }

/* Motivo decorativo: cruz grande em tom sobre tom + cruz amarela pequena (referência à cruz da marca) */
.hero__cross { position: absolute; pointer-events: none; z-index: 0; }
.hero__cross--lg { width: 250px; height: 250px; right: -105px; bottom: -105px; }
.hero__cross--lg::before, .hero__cross--lg::after {
  content: ""; position: absolute; background: rgba(255,255,255,.11); border-radius: 18px;
}
.hero__cross--lg::before { left: 36%; top: 0; width: 28%; height: 100%; }
.hero__cross--lg::after { top: 36%; left: 0; height: 28%; width: 100%; }
.hero__cross--sm { width: 34px; height: 34px; right: 14%; bottom: 2.2rem; display: none; }
.hero__cross--sm::before, .hero__cross--sm::after {
  content: ""; position: absolute; background: var(--yellow); border-radius: 3px;
}
.hero__cross--sm::before { left: 36%; top: 0; width: 28%; height: 100%; }
.hero__cross--sm::after { top: 36%; left: 0; height: 28%; width: 100%; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--gray-100); }
.section__head { margin-bottom: 2.2rem; }
.section__lead { font-size: 1.1rem; color: var(--gray-600); max-width: 60ch; }

/* Diferenciais */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.feature {
  padding: 1.5rem; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
}
.feature__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--red); color: var(--white);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature p { margin: 0; color: var(--gray-600); }

/* Quem somos */
.about { display: grid; gap: 2rem; }
.about__slogan {
  margin: 0; padding: .2rem 0 .2rem 1.1rem; border-left: 6px solid var(--yellow);
  font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.3; color: var(--ink);
}

/* Entregas */
.delivery {
  display: grid; gap: 1.75rem;
  background: var(--red); color: var(--white);
  border-radius: 22px; padding: clamp(1.5rem, 5vw, 3.25rem);
}
.delivery h2 { color: var(--white); }
.delivery__lead { font-weight: 500; font-size: 1.1rem; }
.delivery__card { background: var(--white); color: var(--gray-800); border-radius: var(--radius); padding: 1.5rem; }
.delivery__card h3 { margin-bottom: .9rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 16px; height: 16px;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 5px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 5px 100% no-repeat;
}
.delivery__art { margin: 0; }
.delivery__art img { width: 100%; height: auto; border-radius: var(--radius); }

/* Como comprar */
.steps { list-style: none; counter-reset: passo; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: passo; position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.6rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(passo); position: absolute; left: 1.2rem; top: 1.25rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: var(--white); font-weight: 700;
}
.steps strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.msg-box { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 1.4rem; }
.msg-box__label { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.msg-box blockquote { margin: 0 0 1rem; font-style: normal; }
.msg-box .note { font-size: .92rem; color: var(--gray-600); margin: 1rem 0 0; }

/* Localização */
.location { display: grid; gap: 1.75rem; }
.address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.4rem; }
.address strong { display: block; color: var(--ink); font-size: 1.25rem; }
.map-box {
  position: relative; min-height: 340px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box__msg { max-width: 38ch; }
.map-box__msg p { font-size: .95rem; color: var(--gray-600); }
.map-fallback { font-size: .95rem; color: var(--gray-600); margin-top: .9rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.25rem;
  font-weight: 700; color: var(--ink); position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--red); }
.faq__body { padding: 0 1.25rem 1.2rem; color: var(--gray-600); }
.faq__body p:last-child { margin-bottom: 0; }

/* Chamada final */
.band { background: var(--red); color: var(--white); text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.band h2 { color: var(--white); }
.band p { font-size: 1.15rem; max-width: 46ch; margin-inline: auto; margin-bottom: 1.8rem; }
.band .btn-row { justify-content: center; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #d8dbde; padding-block: 3rem 6rem; border-top: 3px solid var(--red); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { height: 96px; width: auto; margin-bottom: .75rem; }
.footer-brand p { margin: 0; font-weight: 700; color: var(--white); }
.footer-col h2 { font-size: 1rem; color: var(--white); margin-bottom: .7rem; }
.footer-col p, .footer-col address { margin: 0 0 .5rem; font-style: normal; }
.cnpj { font-weight: 700; color: var(--white); font-size: 1.05rem; letter-spacing: .02em; }
.footer-legal {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .9rem; display: grid; gap: .5rem;
}
.footer-legal p { margin: 0; }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 56px; min-width: 56px; padding: 0 1.1rem; justify-content: center;
  background: var(--red); color: var(--white); text-decoration: none; font-weight: 700;
  border: 3px solid var(--white); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(12,16,20,.35);
}
.wa-float:hover { background: var(--red-dark); color: var(--white); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { display: none; }
.wa-float { --focus: var(--ink); }

/* ---------- Páginas de texto (privacidade / 404) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc__title { padding-bottom: 1.2rem; margin-bottom: 1.6rem; border-bottom: 4px solid var(--red); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: .4rem; }
.doc .meta { color: var(--gray-600); font-size: .95rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.doc th { background: var(--gray-100); color: var(--ink); }
.doc .callout { background: var(--red-soft); border-left: 6px solid var(--red); padding: 1rem 1.2rem; border-radius: 8px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 700; color: var(--red); line-height: 1; margin: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .wa-float span { display: inline; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 0 1 auto; }
  .hero__cross--lg { width: 380px; height: 380px; right: -60px; top: -50px; bottom: auto; }
  .hero__cross--sm { display: block; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav {
    display: block; position: static; background: transparent; border: 0; padding: 0;
  }
  .nav ul { display: flex; align-items: center; gap: .15rem; }
  .nav li a:not(.btn) { border: 0; padding: .6rem .7rem; font-size: .95rem; border-radius: 8px; }
  .nav .btn { width: auto; margin: 0 0 0 .75rem; min-height: 46px; padding-inline: 1.1rem; font-size: .95rem; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
  .delivery { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.6rem 1.4rem 1.4rem; }
  .steps li::before { left: 1.4rem; top: 1.3rem; }
  .location { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
  .map-box { min-height: 420px; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; }
  .site-footer { padding-bottom: 4rem; }
  .hero__cross--lg { width: 520px; height: 520px; right: 1%; top: 50%; margin-top: -260px; }
  .hero__cross--sm { right: 4%; bottom: auto; top: 16%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Sprite de ícones: não ocupa espaço */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.doc-wrap { max-width: 78ch; }
.footer-legal .credit { color: #d8dbde; }
.footer-legal .credit strong { color: var(--white); }
