/* ============================================================
   We Love Chile · cabeçalho com mega menu e rodapé do site inteiro (2026-10-09)
   Revisão em vídeo da Laise: B3 (menu pelas categorias do portfólio, Santiago de um
   lado e Atacama do outro) e B36/C31 ("esse footer tá horroroso").
   A marcação sai de scripts/blocos-site.py (gerada de data/passeios.js).
   Carregar POR ÚLTIMO em toda página (depois de wlc-paginas.css, wlc-scrapbook.css ou
   wlc-home-extras.css): este arquivo é o dono do .topo, do .mega e do .rodape.
   O comportamento (abrir, fechar, Esc, menu do celular) mora em wlc-site.js.
   ============================================================ */
:root {
  /* os mesmos valores dos tokens da marca; repetidos aqui porque as páginas simples
     (pilares, 404) não carregam o wlc-scrapbook.css nem o wlc-home-extras.css */
  --s-navy: #1B2A5E; --s-cream: #F3E8D5; --s-papel: #FFFDF8; --s-yellow: #F5B71C; --s-red: #DB3A3D;
  --s-red-label: #C93033; --s-red-deep: #B02026; --s-teal: #0E6A6C; --s-muted: #4A5D8A; --s-eyebrow: #B02E2F;
  --s-deserto-noite: #7A3510; /* o laranja deserto escurecido do hero do Atacama: texto branco 8,96:1 */
  --s-sombra-papel: 0 2px 3px rgba(60,40,20,.18), 0 10px 22px rgba(60,40,20,.20);
}

/* ---------- Cabeçalho ---------- */
.topo { background: var(--s-cream); border-bottom: 1px solid rgba(27,42,94,.14); z-index: 80; }
.topo__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.topo__marca { display: inline-flex; line-height: 1; padding: 10px 0; flex: none; }
.topo__marca img { height: 40px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu__item { position: static; }
.menu__btn, .menu > a {
  font-family: 'Lufga', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 14px; padding: 11px 14px; border-radius: 999px;
  color: var(--s-navy); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: 0; cursor: pointer; text-decoration: none;
}
.menu__btn:hover, .menu > a:hover, .menu__item.aberto .menu__btn { background: rgba(27,42,94,.08); }
.menu__btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menu__item.aberto .menu__btn::after { transform: rotate(-135deg) translateY(-2px); }
.menu > a.topo__cta { background: var(--s-red-label); color: #fff; padding: 12px 22px; min-height: 44px; }
.menu > a.topo__cta:hover { background: var(--s-red-deep); color: #fff; }
.topo__inner { position: relative; }

/* o mega menu: Santiago | Atacama | A gente */
.mega {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, 8px);
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain;
  background: var(--s-papel); border-radius: 26px; border: 3px solid var(--s-navy); box-shadow: 0 30px 70px rgba(27,42,94,.28);
  padding: 16px; display: grid; grid-template-columns: 1.45fr 1.45fr .78fr; gap: 12px; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; z-index: 90;
}
.menu__item.aberto .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__regiao, .mega__gente { border-radius: 18px; padding: 14px 16px 16px; color: #fff; }
.mega__regiao--santiago { background: var(--s-navy); }
.mega__regiao--atacama { background: var(--s-deserto-noite); }
.mega__gente { background: var(--s-teal); }
.mega__cab { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-bottom: 8px; border-bottom: 2px dashed rgba(255,255,255,.28); padding-bottom: 10px; }
.mega__cab img { width: 74px; height: auto; max-width: none; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); transition: transform .2s; }
.mega__cab:hover img { transform: translateY(-3px); }
.mega__cab b { display: block; font-family: 'Chalkiez', 'Lufga', sans-serif; font-weight: 400; font-size: 30px; line-height: 1; }
.mega__cab small { display: block; font-size: 12.5px; font-weight: 700; margin-top: 4px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mega__cats { columns: 2 150px; column-gap: 18px; }
.mega__cat { break-inside: avoid; margin: 0 0 10px; }
.mega__cat h4 { font-family: 'Lufga', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--s-yellow); margin: 6px 0 4px; }
.mega__regiao--atacama .mega__cat h4 { color: #FFE3B8; }
.mega__cat ul { list-style: none; margin: 0; padding: 0; }
.mega__cat a, .mega__gente a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.3; padding: 4px 0; color: #fff; text-decoration: none; }
.mega__cat a:hover, .mega__gente a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__gente h4 { font-family: 'Chalkiez', 'Lufga', sans-serif; font-weight: 400; font-size: 26px; line-height: 1; margin: 2px 0 10px; color: #fff; }
.mega__gente h4.mega__sub { font-size: 20px; margin-top: 14px; }
.mega__ico { width: 18px; height: 18px; flex: none; filter: brightness(0) invert(1); opacity: .92; }
.mega__breve { font-size: 11px; font-weight: 800; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 7px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--s-navy); color: var(--s-cream); font-size: 22px; line-height: 1; border: 0; cursor: pointer; }

@media (max-width: 1100px) { .mega { grid-template-columns: 1fr 1fr; } .mega__gente { grid-column: 1 / -1; columns: 3 180px; } .mega__gente h4 { break-after: avoid; } }
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .menu { display: none; }
  .topo.menu-aberto .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    position: fixed; left: 0; right: 0; top: var(--topo-h, 74px); bottom: 0; background: var(--s-cream); padding: 16px; overflow: auto; z-index: 90;
  }
  .topo.menu-aberto .menu__btn, .topo.menu-aberto .menu > a { width: 100%; justify-content: space-between; background: var(--s-papel); }
  .topo.menu-aberto .menu > a.topo__cta { background: var(--s-red-label); color: #fff; justify-content: center; }
  .topo.menu-aberto .mega { position: static; transform: none; width: auto; max-height: none; overflow: visible; grid-template-columns: 1fr; display: none; margin-top: 8px; padding: 10px; opacity: 1; visibility: visible; transition: none; }
  .topo.menu-aberto .menu__item.aberto .mega { display: grid; }
  .mega__gente { columns: auto; }
}
@media (max-width: 600px) {
  .topo__inner { min-height: 60px; }
  .topo__marca img { height: 32px; }
  .menu-toggle { width: 40px; height: 40px; }
  .mega__cats { columns: 1; }
}

/* ---------- Rodapé: um cartão de scrapbook sobre o amarelo ---------- */
.rodape {
  background-color: var(--s-yellow); color: var(--s-navy); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); margin: 0; position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(27,42,94,.12) 1.4px, transparent 1.6px); background-size: 22px 22px;
}
.rodape p, .rodape li, .rodape a { color: var(--s-navy); font-size: 14.5px; line-height: 1.55; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--s-red-deep); text-decoration: underline; text-underline-offset: 3px; }
.rodape__cartao { position: relative; background: var(--s-papel); border-radius: 26px; box-shadow: 0 22px 50px rgba(27,42,94,.22); padding: 44px 44px 40px; }
.rodape__washi { position: absolute; top: -16px; width: 170px; height: auto; max-width: none; filter: drop-shadow(0 2px 3px rgba(60,40,20,.25)); pointer-events: none; }
.rodape__washi--esq { left: 40px; }
.rodape__washi--dir { right: 40px; }
.rodape__topo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-bottom: 26px; border-bottom: 2px dashed rgba(27,42,94,.18); }
.rodape__logo img { height: 54px; width: auto; display: block; }
.rodape .rodape__frase { font-size: 16px; font-weight: 600; max-width: 46ch; margin: 0; }
.rodape .rodape__wa { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--s-teal); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 #0A4B4C; white-space: nowrap; }
.rodape .rodape__wa:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.rodape__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 28px; padding-right: 190px; }
.rodape__col ul { list-style: none; margin: 0; padding: 0; }
.rodape__col li { margin: 0 0 8px; }
.rodape__col p { margin: 0 0 8px; }
.rodape .rodape__titulo { font-family: 'Chalkiez', 'Lufga', sans-serif; font-weight: 400; font-size: 26px; line-height: 1; color: var(--s-red-deep); margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.rodape__figurinhas { position: absolute; right: 26px; bottom: 26px; width: 180px; height: 200px; pointer-events: none; }
.rodape__figurinhas img { position: absolute; width: 104px; height: auto; max-width: none; filter: drop-shadow(0 6px 10px rgba(27,42,94,.25)); }
.rodape__figurinhas img:nth-child(1) { left: 0; top: 0; }
.rodape__figurinhas img:nth-child(2) { right: 0; top: 46px; }
.rodape__figurinhas img:nth-child(3) { left: 30px; bottom: 0; }
.rodape__selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 0; }
.rodape__selo { display: inline-flex; align-items: center; gap: 12px; background: var(--s-papel); border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: var(--s-sombra-papel); outline: 2px dashed rgba(27,42,94,.22); outline-offset: -7px; }
.rodape__selo span { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.25; font-weight: 600; color: var(--s-muted); }
.rodape__selo b { font-size: 16px; font-weight: 900; color: var(--s-navy); }
.rodape__selo i { width: 38px; height: 38px; border-radius: 50%; flex: none; display: block; }
.rodape__selo--sernatur i { background: linear-gradient(180deg, transparent 0 50%, #D52B1E 50%), linear-gradient(90deg, #0033A0 0 38%, #fff 38%); box-shadow: inset 0 0 0 2px rgba(27,42,94,.25); }
.rodape__selo--reclame i { background: radial-gradient(circle, #fff 0 6px, transparent 6.5px), #0EAA4B; }
.rodape__selo--trip i { background: radial-gradient(circle at 34% 50%, #111 0 3px, #fff 3.5px 7px, transparent 7.5px), radial-gradient(circle at 66% 50%, #111 0 3px, #fff 3.5px 7px, transparent 7.5px), #34E0A1; }
.rodape__selo:hover { text-decoration: none; transform: translateY(-2px); }
.rodape .identificacao-legal { border: 0; margin: 26px 0 0; padding: 0; text-align: center; font-size: 13px; line-height: 1.7; color: var(--s-navy); }
.rodape .identificacao-legal__linha { display: block; margin: 0; font-size: 13px; color: var(--s-navy); }
.rodape .identificacao-legal strong { color: var(--s-navy); }
.rodape .rodape__creditos { text-align: center; font-size: 12.5px; margin: 10px 0 0; }
.rodape .rodape__creditos a { text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }
.rodape .rodape__base { text-align: center; font-size: 12.5px; margin: 10px 0 0; padding: 0; border: 0; }
/* créditos das fotos que as páginas de passeio já tinham (um "details" por página) */
.rodape .creditos-fotos { margin: 14px auto 0; max-width: 900px; font-size: 12.5px; }
.rodape .creditos-fotos a, .rodape .creditos-fotos li { font-size: 12.5px; }

@media (max-width: 960px) {
  .rodape__topo { grid-template-columns: 1fr; gap: 14px; justify-items: start; }
  .rodape__grid { grid-template-columns: 1fr 1fr; padding-right: 0; }
  .rodape__figurinhas { position: static; width: auto; height: auto; display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
  .rodape__figurinhas img { position: static; width: 84px; }
}
@media (max-width: 600px) {
  .rodape { padding-top: 48px; }
  .rodape__cartao { padding: 34px 20px 24px; border-radius: 22px; }
  .rodape__washi { width: 120px; top: -12px; }
  .rodape__washi--esq { left: 18px; } .rodape__washi--dir { right: 18px; }
  .rodape__logo img { height: 42px; }
  .rodape__grid { gap: 22px 16px; }
  .rodape .rodape__titulo { font-size: 23px; }
  .rodape p, .rodape li, .rodape a { font-size: 14px; }
  .rodape__selos { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .mega, .menu__btn::after { transition: none; } }
/* nas páginas com a barra fixa do celular, o fim do rodapé não fica atrás dela */
@media (max-width: 800px) { body:has(.barra-mobile) .rodape { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
