/* ============================================================
   GUARUS PLAZA SHOPPING · PÁGINA DE LINKS (link na bio)
   Linha contida: papel quente, fios finos, cor da marca só em detalhe.
   Fachada à esquerda, índice de links no meio, cinema à direita.
   Esta página mora fora de site/ e não vai no deploy do site; os assets
   em assets/ são cópias dos de site/assets/.
   ============================================================ */

:root {
  --bg: #faf7f8;   /* mesmo fundo do site */
  --surface: #ffffff;
  --ink: #1d1714;
  --ink-soft: #4d433d;
  --muted: #6e635c;
  --line: rgba(29, 23, 20, .12);
  --line-strong: rgba(29, 23, 20, .26);
  --accent: #1A5C89;

  /* creme da marca: o "Guarus" do hero e os botões sobre fundo escuro */
  --cream: #F3EAD8;
  --cream-soft: rgba(243, 234, 216, .74);
  --cream-faint: rgba(243, 234, 216, .5);
  --cine-bg: #10202c;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-tema="escuro"] {
  --bg: #12100f;
  --surface: #1a1715;
  --ink: #efe8e1;
  --ink-soft: #c2b7ae;
  --muted: #9a8f87;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --accent: #83C3EF;
  --cine-bg: #0c1820;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.travado { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon.glyph { fill: currentColor; stroke: none; }

.only-dark { display: none; }
:root[data-tema="escuro"] .only-light { display: none; }
:root[data-tema="escuro"] .only-dark { display: block; }

/* ---------- ESTRUTURA ---------- */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.icon-btn:hover { background: var(--surface); border-color: var(--ink); }

.wordmark-logo { height: 26px; width: auto; }

.grid {
  flex: 1;
  display: grid;
  gap: 16px;
  align-content: start;
}

/* ---------- BOTÕES ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn .icon { font-size: 17px; }
.btn--cream { background: var(--cream); color: #1d1714; }
.btn--cream:hover { background: #fff; }
.btn--line { color: var(--cream); border: 1px solid rgba(243, 234, 216, .38); }
.btn--line:hover { border-color: var(--cream); background: rgba(243, 234, 216, .08); }

/* ---------- COLUNA 1 · FACHADA ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: #1d1714;
  aspect-ratio: 4 / 5;
  color: var(--cream);
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
}

.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 11, 9, .92) 0%, rgba(14, 11, 9, .66) 40%, rgba(14, 11, 9, .14) 74%, rgba(14, 11, 9, .22) 100%);
}

.hero-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.claim {
  max-width: 13ch;
  font-size: clamp(34px, 9.6vw, 44px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--cream);
  text-wrap: balance;
}
.lede {
  margin-top: -8px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cream-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px 0 12px;
  font-size: 13px;
  color: var(--cream);
  background: rgba(14, 11, 9, .42);
  border: 1px solid rgba(243, 234, 216, .2);
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-faint); flex: none; }
.status-txt { font-weight: 500; }
.status-sub { color: var(--cream-soft); }
.status-sub:not(:empty)::before { content: "·"; margin-right: 8px; color: var(--cream-faint); }
.status[data-estado="aberto"] .status-dot { background: #7fd49c; }
.status[data-estado="fechando"] .status-dot { background: #f0cf5a; }
.status[data-estado="fechado"] .status-dot { background: #e98b80; }

.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-social { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; gap: 8px; }
.hero-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-size: 17px;
  color: var(--cream);
  background: rgba(14, 11, 9, .46);
  border: 1px solid rgba(243, 234, 216, .2);
  border-radius: 50%;
  transition: background .3s var(--ease);
}
.hero-social a:hover { background: rgba(14, 11, 9, .7); }

/* ---------- COLUNA 2 · ÍNDICE DE LINKS ---------- */

.index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}

.row-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  font-size: 28px;
  color: var(--accent);
}
.row-ico .icon { stroke-width: 1.3; }
.row-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }

.row-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  transition: transform .45s var(--ease);
}
.row-desc { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 40ch; }
.row-simbolo { width: 18px; height: auto; }

.row-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  font-size: 17px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.row:hover .row-title { transform: translateX(6px); }
.row:hover .row-go { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- COLUNA 3 · CINEMA ---------- */

.cine {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 22px 22px;
  border-radius: var(--r);
  background: var(--cine-bg);
  color: var(--cream);
}

.cine-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cine-title { font-size: 26px; }
.cine-marca { height: 22px; width: auto; opacity: .9; }

.cine-posters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
.cine-posters li { display: flex; flex-direction: column; min-width: 0; }
.cine-poster { display: flex; flex-direction: column; gap: 4px; }
.cine-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(243, 234, 216, .06);
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.cine-poster:hover img { transform: translateY(-3px); filter: brightness(1.06); }
.cine-film {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cine-dia { margin-top: 8px; font-size: 11.5px; color: var(--cream-faint); }

/* horários: cada um é um botão de compra */
.cine-horas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cine-horas a {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  border: 1px solid rgba(243, 234, 216, .3);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cine-horas a:hover { background: var(--cream); color: #1d1714; border-color: var(--cream); }

.cine-lead { font-size: 17px; line-height: 1.45; color: var(--cream-soft); max-width: 30ch; }
.cine-meta { margin-top: 14px; font-size: 13px; color: var(--cream-faint); }
/* com os pôsteres carregados, o texto de apoio sai: os horários já dizem tudo */
.cine-static.compacto { display: none; }

.cine-cta { width: 100%; margin-top: auto; }

/* No celular a foto fica limpa em cima e se funde num fundo sólido.
   Hero compacto: a primeira dobra mostra horário, título, as duas ações
   e já o começo da lista de links. */
@media (max-width: 999px) {
  .hero { aspect-ratio: auto; display: flex; flex-direction: column; }
  .hero-img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 11; object-position: 62% 50%; }
  .hero-veil { display: none; }
  .hero-body {
    position: relative;
    inset: auto;
    margin-top: -64px;
    padding: 0 20px 20px;
    gap: 18px;
    background: linear-gradient(180deg, rgba(29, 23, 20, 0) 0, rgba(29, 23, 20, .92) 40px, #1d1714 64px);
  }
  .hero-meta { padding-top: 0; }
  .hero-actions { flex-wrap: nowrap; margin-top: 2px; }
  .hero-actions .btn { flex: 1; padding: 0 14px; }
}

/* No celular o cinema sobe pra logo depois do hero (é o que muda toda
   semana) e fica compacto; os links vêm em seguida. */
@media (max-width: 999px) {
  .hero { order: 1; }
  .cine { order: 2; gap: 16px; padding: 20px 20px 18px; }
  .index { order: 3; }
  .cine-title { font-size: 22px; }
  .cine-marca { height: 19px; }
  .cine-cta { min-height: 42px; font-size: 13.5px; }
}

/* No celular os pôsteres correm de lado, em vez de uma coluna comprida. */
@media (max-width: 999px) {
  .cine-posters {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px 4px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .cine-posters::-webkit-scrollbar { display: none; }
  .cine-posters li { scroll-snap-align: start; }
}

/* ---------- RODAPÉ ---------- */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.foot-credit { display: inline-flex; align-items: center; gap: 8px; }

.foot-social { display: flex; gap: 10px; }
.foot-social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  font-size: 18px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.foot-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.bfive {
  display: block;
  width: 81px;
  height: 14px;
  color: var(--ink);
  background: currentColor;
  -webkit-mask: url("assets/img/bfive-logo.svg") no-repeat center / contain;
  mask: url("assets/img/bfive-logo.svg") no-repeat center / contain;
  opacity: .7;
  transition: opacity .3s;
}
.bfive:hover { opacity: 1; }

/* ---------- MENU ---------- */

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(14, 11, 9, .45);
}

.menu {
  position: fixed;
  z-index: 21;
  top: 14px; left: 14px;
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  padding: 18px 22px 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(14, 11, 9, .45);
  animation: abre .35s var(--ease);
}

@keyframes abre {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.menu-title { font-size: 16px; font-weight: 500; }
.menu-title em { font-style: normal; color: var(--muted); }

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.menu-row:last-child { border-bottom: 0; }

.menu-left { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 500; }
.menu-left .icon { font-size: 18px; color: var(--muted); }
.menu-right { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.menu-right small { font-size: 12px; }
.menu-right .icon { font-size: 16px; transition: transform .35s var(--ease); }
.menu-row:hover .menu-right .icon { transform: translateX(3px); }

/* ---------- DESKTOP ---------- */

@media (min-width: 1000px) {
  .page { padding: 0 28px 20px; }
  .topbar { padding: 20px 0; }

  .grid {
    grid-template-columns: 1.3fr 1fr .82fr;
    gap: 28px;
    align-content: stretch;
    min-height: 620px;
  }

  .hero { aspect-ratio: auto; }
  .hero-img { object-position: 56% 48%; }
  .hero-body { padding: 0 40px 36px; gap: 26px; }
  .hero-social { top: 20px; right: 20px; }
  .claim { font-size: clamp(48px, 4.4vw, 72px); max-width: 12ch; }
  .lede { font-size: clamp(16px, 1.2vw, 18px); }

  /* o índice divide a altura da coluna; cinema já tem o painel ao lado */
  .row { flex: 1; padding: 18px 2px; }
  .row-title { font-size: clamp(24px, 2vw, 30px); }
  .row { gap: 24px; }
  .row-ico { width: 40px; font-size: 34px; }

  .cine { padding: 28px 26px 24px; }

  .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 0 4px; }
  .foot-social { grid-column: 2; grid-row: 1; }
  .foot-legal { grid-column: 1; grid-row: 1; }
  .foot-credit { grid-column: 3; grid-row: 1; justify-self: end; }

  .menu { top: 76px; left: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LINKS COMO BLOCOS: mesmo azul-noite do painel do cinema,
   texto em creme, seta em círculo creme cheio. Hero, links e
   cinema viram três peças escuras da mesma família.
   ============================================================ */

.index { border-top: 0; gap: 10px; }

.row {
  gap: 16px;
  padding: 20px 18px 20px 20px;
  border-bottom: 0;
  border-radius: var(--r);
  background: var(--cine-bg);
  color: var(--cream);
  transition: background .35s var(--ease);
}
.row:hover { background: #16293a; }
:root[data-tema="escuro"] .row { background: #13222d; }
:root[data-tema="escuro"] .row:hover { background: #182b38; }

.row-title { font-size: 21px; color: var(--cream); }
.row-desc { color: var(--cream-soft); font-size: 13.5px; }
.row-ico { width: 30px; font-size: 26px; color: #83C3EF; }
.row-ico .icon { stroke-width: 1.4; }

.row-go {
  width: 42px; height: 42px;
  color: #1d1714;
  background: var(--cream);
  border: 0;
}
.row:hover .row-go { background: #fff; color: #1d1714; border-color: transparent; }
.row:hover .row-title { transform: none; }
.row .row-go .icon { transition: transform .35s var(--ease); }
.row:hover .row-go .icon { transform: translateX(2px); }

@media (min-width: 1000px) {
  .index { gap: 14px; }
  .row { padding: 28px 28px 28px 30px; gap: 24px; }
  .row-title { font-size: clamp(24px, 1.9vw, 30px); }
  .row-desc { font-size: 14.5px; }
  .row-ico { width: 40px; font-size: 34px; }
  .row-go { width: 50px; height: 50px; font-size: 19px; }
}

/* Desktop: blocos altos viram ficha, ícone e seta no topo, texto embaixo. */
@media (min-width: 1000px) {
  .row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    padding: 26px 26px 28px 30px;
  }
  .row-ico { grid-column: 1; grid-row: 1; justify-self: start; place-items: start; }
  .row-go { grid-column: 2; grid-row: 1; }
  .row-text { grid-column: 1 / -1; grid-row: 2; align-self: end; gap: 8px; }
  .row-desc { max-width: 36ch; }
}

/* Seta dos blocos: círculo translúcido em vez de creme cheio; acende no hover. */
.row-go {
  width: 38px; height: 38px;
  font-size: 17px;
  color: var(--cream);
  background: rgba(243, 234, 216, .09);
  border: 1px solid rgba(243, 234, 216, .14);
}
.row-go .icon { stroke-width: 1.9; }
.row:hover .row-go { background: var(--cream); color: #1d1714; border-color: var(--cream); }

@media (min-width: 1000px) {
  .row-go { width: 44px; height: 44px; font-size: 18px; }
}

/* Sem viúva: títulos equilibrados, textos sem palavra sozinha na última linha.
   O &nbsp; entre as duas últimas palavras no HTML cobre navegador antigo. */
.row-title, .claim, .cine-title { text-wrap: balance; }
.row-desc, .lede, .cine-lead, .cine-film { text-wrap: pretty; }

.btn { white-space: nowrap; }
@media (max-width: 380px) {
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 0 10px; gap: 7px; font-size: 13.5px; }
}

/* ---------- CARROSSEL DO CINEMA (desktop) ---------- */

.cine-info, .cine-dots { display: none; }

@media (min-width: 1000px) {
  .cine { overflow: hidden; gap: 18px; }

  /* palco: vai de borda a borda do painel, pra os vizinhos saírem cortados */
  .cine-posters {
    position: relative;
    display: block;
    margin: 6px -26px 0;
    aspect-ratio: 100 / 111;
  }
  .cine-posters li {
    position: absolute;
    top: 0;
    left: 50%;
    width: 74%;
    transform: translateX(-50%);
    transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease);
    will-change: transform;
  }
  .cine-posters li > :not(.cine-poster), .cine-posters .cine-film { display: none; }
  .cine-posters img { margin: 0; border-radius: 12px; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7); }
  .cine-poster:hover img { transform: none; filter: none; }

  .cine-posters li[data-pos="centro"] { z-index: 3; }
  .cine-posters li[data-pos="esq"],
  .cine-posters li[data-pos="dir"] { z-index: 2; filter: blur(3px) brightness(.5) saturate(.8); cursor: pointer; }
  .cine-posters li[data-pos="esq"] { transform: translateX(calc(-50% - 80%)) scale(.8); }
  .cine-posters li[data-pos="dir"] { transform: translateX(calc(-50% + 80%)) scale(.8); }
  .cine-posters li[data-pos="esq"]:hover,
  .cine-posters li[data-pos="dir"]:hover { filter: blur(1.5px) brightness(.7); }
  .cine-posters li[data-pos="fora"] { z-index: 1; opacity: 0; transform: translateX(-50%) scale(.6); pointer-events: none; }

  .cine-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 92px;
    animation: entra .6s var(--ease);
  }
  .cine-info[hidden] { display: none; }
  .cine-info-title { font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
  .cine-info-title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .cine-info .cine-dia { margin-top: 6px; }
  .cine-info .cine-horas { justify-content: center; margin-top: 10px; }

  .cine-dots { display: flex; justify-content: center; gap: 6px; }
  .cine-dots[hidden] { display: none; }
  .cine-dots button {
    width: 6px; height: 6px; padding: 0;
    border: 0; border-radius: 999px;
    background: rgba(243, 234, 216, .3);
    cursor: pointer;
    transition: width .5s var(--ease), background .5s var(--ease);
  }
  .cine-dots button[aria-current="true"] { width: 20px; background: var(--cream); }
}

@keyframes entra {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
