/* ============================================================
   AR STORE — Dúvidas Frequentes
   Paleta e tipografia baseadas no tema atual da loja (Nuvemshop)
   ============================================================ */

:root {
  /* Cores da marca (paleta rosa do banner AR STORE) */
  --bg:            #ffffff;
  --text:          #333333;
  --text-soft:     #6b6770;
  --accent:        #e39093;  /* rosa principal do banner — bordas/realces */
  --accent-strong: #b0555a;  /* rosa escurecido p/ contraste (links/textos) */
  --accent-soft:   #f6e4e3;  /* rosa bem claro — fundos suaves */
  --section-bg:    #f7f1f0;  /* neutro quente — seções */
  --line:          #f1e6e6;  /* divisórias suaves */
  --line-strong:   #e6d2d2;
  --whatsapp:      #25d366;
  --whatsapp-text: #0c7a3e;  /* verde escuro p/ texto sobre branco/CTA */
  --note-bg:       #fdf4f4;
  --note-border:   #e8b4b6;

  --radius:   4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(51, 51, 51, .06);
  --shadow-md: 0 8px 28px rgba(170, 80, 85, .12);

  --maxw:      1080px;  /* largura geral */
  --readw:     860px;   /* coluna de leitura (acordeões) */

  --font-serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --font-sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;            /* --font-base do tema */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-strong); }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 400;          /* --title-font-weight do tema */
  line-height: 1.2;
  margin: 0;
  letter-spacing: .2px;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* -------------------- Acessibilidade -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ==================== HEADER ==================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-block: 1.2rem;
  text-align: center;
  position: relative;
}

.brand { display: inline-flex; text-decoration: none; line-height: 0; }
.brand__logo {
  width: clamp(150px, 22vw, 210px);
  height: auto;
}

/* -------------------- Botão hambúrguer (mobile, à esquerda) -------------------- */
.nav-toggle {
  display: none;            /* vira flex no mobile (media query) */
  position: absolute;
  left: clamp(.5rem, 4vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
/* Estilo Nuvemshop: 3 traços finos (1px) — curto, maior no meio, curto */
.nav-toggle__bar {
  display: block;
  height: 1px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle__bar:nth-child(1) { width: 16px; }
.nav-toggle__bar:nth-child(2) { width: 24px; }
.nav-toggle__bar:nth-child(3) { width: 16px; }

/* -------------------- Menu lateral (drawer) -------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--bg);
  z-index: 300;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
  padding: 1.5rem 1.3rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 2px 0 26px rgba(0, 0, 0, .12);
  text-align: left;
}
.drawer__close {
  position: fixed;
  top: .7rem;
  right: .8rem;
  z-index: 310;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: none;
  place-items: center;
}
.drawer__close svg { width: 26px; height: 26px; }

/* Estados abertos */
body.nav-open { overflow: hidden; }
body.nav-open .drawer-overlay { opacity: 1; visibility: visible; }
body.nav-open .drawer { transform: translateX(0); visibility: visible; }
body.nav-open .drawer__close { display: grid; }

/* Busca dentro do drawer */
.drawer__search {
  display: flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding-left: .9rem;
  margin-bottom: 1.6rem;
}
.drawer__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  padding: .75rem 0;
}
.drawer__search input::placeholder { color: var(--text-soft); }
.drawer__search button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drawer__search svg { width: 20px; height: 20px; }

/* Lista de links do drawer */
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav a,
.drawer__nav .drawer__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem .15rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  transition: color .2s ease;
}
.drawer__nav a:hover { color: var(--accent-strong); }
.drawer__current { color: var(--text-soft); }
.drawer__arrow {
  flex: 0 0 auto;
  color: var(--text-soft);
  display: inline-flex;
}
.drawer__arrow svg { width: 22px; height: 14px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a,
.site-nav__current {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  padding: .25rem 0;
  border-bottom: 0;
  transition: color .2s ease;
}
.site-nav a { color: #111111; }
.site-nav a:hover { color: var(--text); }
/* Item da página atual (Dúvidas Frequentes) */
.site-nav__current {
  color: #111111;
  font-weight: 400;
  cursor: default;
}

/* ==================== HERO ==================== */
.page-hero {
  background:
    radial-gradient(120% 140% at 90% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--section-bg);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  padding-block: clamp(2.4rem, 7vw, 4.2rem);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 44px);   /* --h1-huge: 30px mobile / 44px desktop */
  font-weight: 400;
  line-height: 1.1;
}
.page-hero p {
  max-width: 60ch;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 16px;                      /* --font-big */
}

/* ==================== ÍNDICE / QUICK NAV ==================== */
.toc {
  margin: clamp(1.6rem, 5vw, 2.6rem) auto 0;
  max-width: var(--readw);
}
.toc__title {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: .8rem;
  text-align: center;
}
.toc__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc__list a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.toc__list a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ==================== CONTEÚDO FAQ ==================== */
main { padding-block: clamp(2rem, 6vw, 3.4rem); }

.faq-group { max-width: var(--readw); margin: 0 auto; }
.faq-group + .faq-group { margin-top: clamp(2.4rem, 6vw, 3.6rem); }

.faq-group__title {
  font-size: 24px;            /* --h2 do tema */
  font-weight: 400;
  padding-bottom: .7rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--accent);
  scroll-margin-top: 96px;
}

/* ---- Acordeão (details/summary, sem JavaScript) ---- */
.faq {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  margin-bottom: .9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
  scroll-margin-top: 96px;
}
.faq[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.faq__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;            /* remove marcador padrão */
  font-family: var(--font-serif);
  font-size: 18px;             /* --h4 do tema */
  font-weight: 400;
  color: var(--text);
  user-select: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary:hover { background: var(--accent-soft); }

/* Ícone +/- desenhado em CSS */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-block;
  transition: background .2s ease, transform .25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--accent-strong);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq__icon { background: var(--accent); }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq__body {
  padding: 0 1.3rem 1.35rem;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.faq__body p { color: #4a4650; }

/* Listas dentro das respostas */
.faq__body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.faq__body li { margin-bottom: .4rem; color: #4a4650; }
.faq__body > :last-child { margin-bottom: 0; }

/* Caixa de aviso (ATENÇÃO) */
.note {
  display: flex;
  gap: .75rem;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin: 0 0 1rem;
}
.note__icon { flex: 0 0 auto; font-size: 1.1rem; line-height: 1.5; }
.note p { margin: 0; color: #4a4650; }
.note strong { color: var(--text); }

/* Sub-título dentro da resposta */
.faq__body h3 {
  font-size: 16px;
  margin: 1.2rem 0 .7rem;
}

/* Cartões de horário de loja */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.store-card {
  background: var(--section-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}
.store-card h4 {
  font-size: 16px;
  margin-bottom: .5rem;
  color: var(--accent-strong);
}
.store-card dl { margin: 0; }
.store-card dt {
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: .55rem;
}
.store-card dd { margin: .1rem 0 0; color: #4a4650; }

/* ==================== CTA WHATSAPP (em linha) ==================== */
.cta {
  max-width: var(--readw);
  margin: clamp(2.6rem, 7vw, 4rem) auto 0;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 2.6rem);
}
.cta h2 { font-size: 24px; margin-bottom: .5rem; }
.cta p { color: var(--text-soft); margin-bottom: 1.4rem; font-size: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--whatsapp {
  background: var(--whatsapp-text); /* verde escuro: contraste AA com texto branco */
  color: #fff;
  box-shadow: 0 6px 18px rgba(12, 122, 62, .3);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  background: #0a6735;
  color: #fff;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ==================== BOTÃO FLUTUANTE ==================== */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 200;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ==================== RESPONSIVO ==================== */
@media (max-width: 720px) {
  .site-header__inner { padding-block: .9rem; }
  .faq__summary { padding: 1rem 1.05rem; }
  .faq__body { padding-inline: 1.05rem; }

  /* Esconde a navegação em linha e mostra o hambúrguer (menu vira drawer) */
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
}

@media (max-width: 420px) {
  .site-nav a,
  .site-nav__current { font-size: 13px; }
  .toc__list a { font-size: .82rem; padding: .4rem .8rem; }
}

/* Respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

/* Impressão: abre todos os acordeões e remove elementos flutuantes */
@media print {
  .whatsapp-float, .toc, .site-nav, .nav-toggle,
  .drawer, .drawer-overlay, .drawer__close, .skip-link { display: none !important; }
  .faq { box-shadow: none; border-color: #ccc; }
  .faq__body { display: block !important; }
  details > .faq__body { display: block !important; }
}
