/* =============================================
   AVALANCHES — LINKTREE SPA
   Mobile First | Gabarito | Identidade visual
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --green:        #1D6345;
  --green-dark:   #124632;
  --green-soft:   #83A68F;
  --orange:       #EE5F18;
  --orange-dark:  #C94710;
  --orange-soft:  #E28136;
  --cream:        #F8F5EE;
  --beige:        #ECE0C9;
  --yellow:       #FCCA51;
  --red-promo:    #C92820;
  --purple:       #7E227D;
  --purple-dark:  #621A61;
  --white:        #FFFFFF;
  --text:         #2B2118;
  --muted:        #7A6A5D;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,.15);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.20);
  --radius-pill:  100px;
  --radius-card:  16px;
  --radius-img:   12px;
  --transition:   .28s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Gabarito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.app-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 18px;
}

.container--wide {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ── VIEWS / SPA ROUTING ── */
.view {
  display: none;
  min-height: 100dvh;
  animation: fadeIn var(--transition) forwards;
}
.view.active { display: flex; flex-direction: column; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOADING STATE ── */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--beige);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state, .empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.error-state { color: var(--red-promo); }

/* ══════════════════════════════════════════════
   HOME / LINKTREE
══════════════════════════════════════════════ */
#view-inicio {
  background: linear-gradient(160deg, var(--cream) 60%, var(--beige) 100%);
}

.home-header {
  padding: 18px 0 0;
  text-align: center;
}

.logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.15));
}

/* Fallback visual se logo não existir */
.logo-fallback {
  width: 140px;
  height: 140px;
  background: var(--green);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.logo-fallback .logo-letter {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.logo-fallback .logo-name {
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.home-tagline {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  padding: 0 8px;
}

/* ── NAV BUTTONS ── */
.home-nav {
  flex: 1;
  padding: 8px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.btn-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn-menu:hover::after  { background: rgba(255,255,255,.08); }
.btn-menu:active { transform: scale(.97); box-shadow: var(--shadow-sm); filter: brightness(.93); }

.btn-menu--orange  { background: var(--orange); }
.btn-menu--green   { background: var(--green); }
.btn-menu--dark    { background: var(--green-dark); }
.btn-menu--red     { background: var(--red-promo); }
.btn-menu--wpp     { background: #1B8A50; }
.btn-menu--purple  { background: var(--purple); }

.btn-icon {
  position: absolute;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.btn-label { pointer-events: none; }

/* ── HOME FOOTER ── */
.home-footer {
  text-align: center;
  padding: 16px 0 24px;
  font-size: .78rem;
  color: var(--green-soft);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   CABEÇALHO INTERNO (Promoções, Pesquisa, etc)
══════════════════════════════════════════════ */
.inner-header {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.inner-header .container,
.inner-header .container--wide {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-back:hover { background: var(--beige); }
.btn-back:active { background: var(--beige); transform: scale(.93); }
.btn-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inner-header__text { flex: 1; min-width: 0; }
.inner-header__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.inner-header__sub {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════
   PROMOÇÕES
══════════════════════════════════════════════ */
#view-promocoes {
  background: var(--cream);
}
.promocoes-body {
  flex: 1;
  padding: 24px 0 40px;
}

/* Grid das promoções */
.promocoes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .promocoes-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .promocoes-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Card de promoção */
.promo-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.promo-card:active {
  transform: scale(.98);
}

.promo-card__header {
  padding: 16px 16px 12px;
  text-align: center;
}
.promo-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}

/* Cores adaptadas para cards com fundo claro */
.promo-card--light .promo-card__title { color: var(--text); }
.promo-card--light .promo-card__price { color: var(--green-dark); }
.promo-card--light .promo-card__benefit { color: var(--orange-dark); }
.promo-card--light .promo-card__desc { color: var(--muted); }

.promo-card__img-box {
  margin: 0 12px;
  background: var(--white);
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-card__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cream);
  color: var(--muted);
}
.promo-card__img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .4;
}
.promo-card__img-placeholder span {
  font-size: .75rem;
  font-weight: 600;
  opacity: .5;
}

.promo-card__info {
  padding: 12px 16px 0;
  text-align: center;
}
.promo-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.promo-card__benefit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .02em;
}
.promo-card__desc {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
  line-height: 1.4;
}

.promo-card__footer {
  padding: 14px 16px 16px;
}
.btn-resgatar {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--purple);
  color: var(--white);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-resgatar:hover  { background: var(--purple-dark); }
.btn-resgatar:active { transform: scale(.96); }

/* ══════════════════════════════════════════════
   DETALHE DA PROMOÇÃO (RESGATE)
══════════════════════════════════════════════ */
#view-detalhe {
  background: var(--cream);
}
.detalhe-body {
  flex: 1;
  padding: 28px 18px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.detalhe-card {
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detalhe-card__color-bar {
  height: 8px;
}

.detalhe-card__body {
  padding: 24px 20px;
}

.detalhe-card__img-wrap {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detalhe-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detalhe-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.detalhe-card__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 20px;
}
.detalhe-card__benefit {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 20px;
}
.detalhe-card__desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.detalhe-card__regra {
  font-size: .82rem;
  color: var(--muted);
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Aviso de resgate */
.aviso-resgate {
  background: var(--yellow);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.aviso-resgate svg {
  width: 28px;
  height: 28px;
  fill: var(--text);
  flex-shrink: 0;
}
.aviso-resgate p {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* Botões do detalhe */
.detalhe-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-voltar-promo {
  height: 50px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid var(--beige);
  transition: background var(--transition), transform var(--transition);
}
.btn-voltar-promo:hover  { background: var(--beige); }
.btn-voltar-promo:active { transform: scale(.97); }

.btn-pedir-detalhe {
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-pedir-detalhe svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}
.btn-pedir-detalhe:hover  { background: var(--orange-dark); }
.btn-pedir-detalhe:active { transform: scale(.97); }

/* ══════════════════════════════════════════════
   PESQUISA DE OPINIÃO
══════════════════════════════════════════════ */
#view-pesquisa {
  background: var(--cream);
}
.pesquisa-body {
  flex: 1;
  padding: 28px 0 48px;
}
.pesquisa-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pergunta-bloco {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.pergunta-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 16px;
}
.pergunta-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
}

.tipo-atendimento-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-tipo-atendimento {
  min-height: 132px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--text);
  border: 2px solid var(--beige);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-tipo-atendimento:hover {
  border-color: var(--green-soft);
  background: rgba(29,99,69,.06);
}

.btn-tipo-atendimento.selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(29,99,69,.24);
}

.tipo-atendimento-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(29,99,69,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tipo-atendimento-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-tipo-atendimento.selected .tipo-atendimento-icon {
  background: rgba(255,255,255,.18);
}

.tipo-atendimento-label {
  font-size: 1rem;
  font-weight: 800;
}

.tipo-atendimento-texto {
  font-size: .74rem;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 600;
}

.btn-tipo-atendimento.selected .tipo-atendimento-texto {
  color: rgba(255,255,255,.76);
}

.pesquisa-perguntas {
  display: none;
  flex-direction: column;
  gap: 32px;
}

.pesquisa-perguntas.visible {
  display: flex;
  animation: fadeIn .24s ease forwards;
}

/* Rating 1-5 */
.rating-group {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.rating-label-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-rating {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--cream);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 800;
  border: 2px solid var(--beige);
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.btn-rating:hover {
  border-color: var(--green-soft);
  background: rgba(29,99,69,.06);
  color: var(--green);
}
.btn-rating.selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(29,99,69,.3);
}

/* NPS 0-10 */
.nps-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.btn-nps {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 800;
  border: 2px solid var(--beige);
  transition: all .18s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.btn-nps:hover {
  border-color: var(--orange-soft);
  color: var(--orange);
  background: rgba(238,95,24,.06);
}
.btn-nps.selected {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(238,95,24,.3);
}

/* Estrelas (star_1_5) */
.star-group {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-star {
  width: 52px;
  height: 52px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.btn-star:active { transform: scale(1.05); }

.btn-star svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill .12s ease, transform .12s ease;
}

.btn-star.hovered svg,
.btn-star.selected svg {
  fill: var(--yellow);
  stroke: var(--yellow);
  transform: scale(1.12);
}

/* Textarea */
.textarea-pesquisa {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 2px solid var(--beige);
  background: var(--cream);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition);
  line-height: 1.5;
}
.textarea-pesquisa:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.textarea-pesquisa::placeholder { color: var(--muted); }

/* Botão enviar */
.btn-enviar {
  height: 58px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  width: 100%;
  box-shadow: 0 4px 20px rgba(29,99,69,.3);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-enviar:hover  { background: var(--green-dark); box-shadow: 0 4px 24px rgba(29,99,69,.4); }
.btn-enviar:active { transform: scale(.97); }
.btn-enviar:disabled {
  background: var(--green-soft);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

/* Erro inline pesquisa */
.pesquisa-erro {
  background: rgba(201,40,32,.1);
  color: var(--red-promo);
  border: 1.5px solid rgba(201,40,32,.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 600;
  display: none;
}
.pesquisa-erro.visible { display: block; }

/* ══════════════════════════════════════════════
   TELA OBRIGADO
══════════════════════════════════════════════ */
#view-obrigado {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  align-items: center;
  justify-content: center;
}
.obrigado-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  flex: 1;
  gap: 0;
}

.obrigado-icon {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: popIn .5s cubic-bezier(.175,.885,.32,1.275) forwards;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.obrigado-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.obrigado-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.obrigado-sub {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 40px;
}

.obrigado-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.btn-inicio-obrigado {
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--green-dark);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-inicio-obrigado:hover  { background: var(--cream); }
.btn-inicio-obrigado:active { transform: scale(.97); }

.btn-promo-obrigado {
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.35);
  transition: all var(--transition);
}
.btn-promo-obrigado:hover  { background: rgba(255,255,255,.25); }
.btn-promo-obrigado:active { transform: scale(.97); }

/* ══════════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ── RESPONSIVIDADE DESKTOP ── */
@media (min-width: 600px) {
  .btn-menu { height: 66px; font-size: 1.1rem; }
  .promo-card__title { font-size: 1.2rem; }
  .detalhe-card__title { font-size: 1.7rem; }
  .detalhe-card__price { font-size: 2.2rem; }
  .btn-rating { font-size: 1.2rem; }
}

/* ══════════════════════════════════════════════
   MODAL FUNCIONAMENTO
══════════════════════════════════════════════ */
.func-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fadeIn var(--transition) forwards;
}
@media (min-width: 600px) {
  .func-overlay { align-items: center; padding: 20px; }
}

.func-card {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .28s cubic-bezier(.4,0,.2,1) forwards;
}
@media (min-width: 600px) {
  .func-card { border-radius: 20px; max-height: 85dvh; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.func-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1.5px solid var(--beige);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.func-card__title {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
}
.func-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background var(--transition);
  flex-shrink: 0;
}
.func-close:hover { background: var(--beige); }
.func-close svg { width: 16px; height: 16px; }

.func-card__body { padding: 20px; }

/* Status aberto/fechado */
.func-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  font-size: .95rem; font-weight: 700; margin-bottom: 20px;
}
.func-status--aberto { background: rgba(29,99,69,.1); color: var(--green); }
.func-status--fechado { background: rgba(201,40,32,.1); color: var(--red-promo); }
.func-status__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: currentColor;
  animation: pulse 2s infinite;
}
.func-status--fechado .func-status__dot { animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

/* Tabela de horários */
.func-section-title {
  font-size: .8rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px;
}
.func-horarios { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.func-hora-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 10px;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.func-hora-row--hoje {
  background: var(--green); color: var(--white); font-weight: 800;
}
.func-hora-row:not(.func-hora-row--hoje) { background: var(--cream); }
.func-hora-row__dia { text-transform: capitalize; }
.func-hora-row__horas { font-variant-numeric: tabular-nums; }

/* Endereço */
.func-endereco {
  background: var(--cream); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.func-endereco svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; margin-top: 2px; }
.func-endereco p { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.4; }

/* Botões do modal */
.func-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.btn-func-mapa {
  height: 48px; border-radius: var(--radius-pill);
  background: var(--green); color: var(--white);
  font-family: inherit; font-size: .9rem; font-weight: 800;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-func-mapa svg { width: 18px; height: 18px; fill: var(--white); }
.btn-func-mapa:hover  { background: var(--green-dark); }
.btn-func-mapa:active { transform: scale(.97); }

.func-end-linhas {
  display: flex; flex-direction: column; gap: 2px;
  font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.4;
}

.btn-func-waze {
  height: 48px; border-radius: var(--radius-pill);
  background: #33CCFF; color: #1a1a1a;
  font-family: inherit; font-size: .9rem; font-weight: 800;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-func-waze svg { width: 18px; height: 18px; fill: currentColor; }
.btn-func-waze:hover  { background: #1ab8e8; }
.btn-func-waze:active { transform: scale(.97); }

.btn-func-wpp {
  height: 48px; border-radius: var(--radius-pill);
  background: #1B8A50; color: var(--white);
  font-family: inherit; font-size: .9rem; font-weight: 800;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-func-wpp svg { width: 18px; height: 18px; fill: var(--white); }
.btn-func-wpp:hover  { background: #146b3e; }
.btn-func-wpp:active { transform: scale(.97); }

/* Garantir boa leitura em telas muito pequenas */
@media (max-width: 360px) {
  .btn-nps { width: 38px; height: 38px; font-size: .85rem; }
  .btn-menu { height: 56px; font-size: .95rem; }
  .home-header { padding: 32px 0 16px; }
}
