/* =========================================================================
   Hotel Sesc Manacapuru — Interface de TV (1920×1080)
   Identidade visual conforme o Manual da marca. v2.3.0
   Interação: controle remoto (setas/OK), ponteiro do Smart Remote e mouse.
   ========================================================================= */

/* O manual grafa "HEADIGN PRO TRIAL"; o nome real da fonte é Heading Pro.
   Enquanto a licença de embedding não é confirmada pela Assessoria de
   Comunicação do Sesc, os arquivos não são distribuídos e vale o fallback. */
@font-face { font-family: "HeadingPro";   src: url("../../fonts/HeadingPro.ttf");   font-display: swap; }
@font-face { font-family: "KanopiBrazil"; src: url("../../fonts/KanopiBrazil.ttf"); font-display: swap; }

:root {
  /* Paleta institucional — Manual de ID Visual, p.10 */
  --verde-900: #0d1f0d;
  --verde-800: #132a13;   /* fundo oficial */
  --verde-700: #1a3a1a;
  --verde-600: #31572c;
  --verde-500: #4f772d;
  --verde-400: #90a955;
  --verde-100: #ecf39e;
  --ouro-700:  #b57e10;
  --ouro-500:  #cda035;
  --ouro-300:  #f9df7b;
  --ouro-100:  #fff3a6;
  --ambar:     #ffae02;
  --alerta:    #950b09;   /* somente alertas — nunca como cor de interface */
  --texto:     #f6f3e4;
  --linha:     rgba(236, 243, 158, 0.16);
  --grad-ouro: linear-gradient(180deg, var(--ouro-100) 0%, var(--ouro-300) 30%, var(--ouro-500) 70%, var(--ouro-700) 100%);
  /* Kanopi Brazil é o lettering da palavra "manacapuru" na marca — nunca
     corpo de texto. A 3 m de distância seria ilegível. */
  --fonte-display:   "HeadingPro", "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --fonte-texto:     "HeadingPro", "Archivo", "Segoe UI", system-ui, sans-serif;
  --fonte-lettering: "KanopiBrazil", cursive;
  --transicao: .16s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 1920px; height: 1080px;
  overflow: hidden;
  background: var(--verde-800);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 28px;
}

/* Padronagem oficial (folhas do buriti) em marca-d'água */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='120' viewBox='0 0 140 120'><g fill='%23ecf39e' fill-opacity='0.05'><path d='M70 14c-3 0-5 8-5 16 0 10 3 22 5 30 2-8 5-20 5-30 0-8-2-16-5-16z'/><path d='M52 22c-4 2-3 12 1 20 4 9 11 16 15 20-1-8-3-19-8-27-4-8-6-14-8-13z'/><path d='M88 22c4 2 3 12-1 20-4 9-11 16-15 20 1-8 3-19 8-27 4-8 6-14 8-13z'/><path d='M36 34c-3 3 0 11 6 17 6 7 15 11 20 13-3-7-8-15-14-21-6-6-10-11-12-9z'/><path d='M104 34c3 3 0 11-6 17-6 7-15 11-20 13 3-7 8-15 14-21 6-6 10-11 12-9z'/></g></svg>");
  background-size: 140px 120px;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(1400px 420px at 50% -14%, rgba(205, 160, 53, 0.13), transparent 65%);
  pointer-events: none;
}

.grad-ouro {
  background: var(--grad-ouro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ouro-300);
}

/* Ícones de traço: herdam a cor do texto do componente */
svg.n-ico, svg.w-icon, svg.h-ico, svg.sv-ico, svg.vm-ico, svg.p-ico {
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* Elementos acionáveis */
.nav-item, .day-tab, .app-btn { cursor: pointer; user-select: none; }

/* ---------------- Cabeçalho ---------------- */
header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 40px;
  padding: 34px 64px 22px;
}

.brand { display: flex; align-items: center; gap: 26px; }
.brand .logo { width: 118px; height: 94px; display: block; }
.brand h1 {
  font-family: var(--fonte-display);
  font-size: 46px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; line-height: 1;
}
.brand .sub {
  font-family: var(--fonte-display);
  font-size: 21px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--verde-400); margin-top: 8px;
}

.head-right { margin-left: auto; display: flex; align-items: center; gap: 36px; }

.clock { text-align: right; }
.clock .time {
  font-family: var(--fonte-display);
  font-size: 76px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 2px;
}
.clock .date { font-size: 23px; color: var(--verde-100); margin-top: 6px; opacity: .85; }

.weather {
  display: flex; align-items: center; gap: 22px;
  background: var(--verde-700);
  border: 1px solid var(--linha);
  border-radius: 20px;
  padding: 16px 28px;
  min-width: 370px;
}
.weather .w-icon { width: 64px; height: 64px; color: var(--ouro-300); }
.weather .w-temp {
  font-family: var(--fonte-display);
  font-size: 56px; font-weight: 700; line-height: 1;
}
.weather .w-city {
  font-size: 17px; color: var(--verde-400); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px;
}
.weather .w-info { font-size: 21px; color: var(--verde-100); line-height: 1.4; opacity: .9; }
.weather .w-info b { color: var(--texto); }

/* ---------------- Corpo ---------------- */
main {
  position: relative; z-index: 2;
  display: flex; gap: 40px;
  padding: 10px 64px 0;
  height: 798px;
}

nav { width: 384px; display: flex; flex-direction: column; gap: 13px; }

.nav-item {
  display: flex; align-items: center; gap: 18px;
  padding: 21px 26px;
  border-radius: 16px;
  background: var(--verde-700);
  border: 3px solid transparent;
  font-size: 27px; font-weight: 600;
  color: var(--verde-100);
  transition: border-color var(--transicao), background var(--transicao),
              color var(--transicao), transform var(--transicao);
}
.nav-item .n-ico { width: 32px; height: 32px; }
.nav-item.active { background: var(--verde-600); color: var(--texto); border-color: rgba(205,160,53,.35); }
.nav-item.focused,
.nav-item:hover {
  border-color: var(--ouro-500);
  background: var(--verde-600);
  color: var(--ouro-100);
  transform: translateX(6px);
}

section.pane { flex: 1; display: none; overflow: hidden; }
section.pane.active { display: block; animation: entra .22s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pane h2 {
  font-family: var(--fonte-display);
  font-size: 42px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 6px;
}
.pane .sub { color: var(--verde-400); font-size: 24px; margin-bottom: 24px; }

/* ---------------- Início: banner rotativo ---------------- */
.hero {
  position: relative;
  border-radius: 24px; height: 100%;
  overflow: hidden; border: 1px solid var(--linha);
  background: var(--verde-700);
}

/* Camadas do banner: fotos alternando com crossfade + movimento suave */
.hero-banner { position: absolute; inset: 0; }
.hero-banner .hb {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
  will-change: transform, opacity;
}
.hero-banner .hb.show { opacity: 1; animation: kenburns 16s ease-out forwards; }
.hero-banner .hb:nth-child(even).show { animation-name: kenburns-b; }

.hero .hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,42,19,.96) 0%, rgba(19,42,19,.78) 52%, rgba(19,42,19,.28) 100%),
              linear-gradient(transparent 70%, rgba(13,31,13,.65) 100%);
}
.hero .hero-body {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 0 56px; max-width: 62%;
}
.hero .evento {
  font-family: var(--fonte-display);
  font-size: 40px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; line-height: 1.15; max-width: 22ch;
}
.hero .estados { font-size: 22px; letter-spacing: 3px; color: var(--verde-400); font-weight: 700; }
.hero .msg { color: var(--verde-100); font-size: 27px; max-width: 46ch; line-height: 1.55; }
.hero .hint {
  margin-top: 10px; color: var(--ouro-300); font-size: 22px;
  display: flex; align-items: center; gap: 10px;
}
.hero .h-ico { width: 24px; height: 24px; }

/* Legenda da foto atual do banner */
.hero-tag {
  position: absolute; right: 34px; bottom: 66px;
  max-width: 34%;
  background: rgba(13, 31, 13, 0.82);
  border: 1px solid var(--linha);
  border-left: 5px solid var(--ouro-500);
  border-radius: 0 12px 12px 0;
  padding: 14px 22px;
  font-family: var(--fonte-display);
  font-size: 24px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ouro-100);
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-tag.show { opacity: 1; transform: translateY(0); }

/* Indicadores do banner */
.hero-dots {
  position: absolute; right: 34px; bottom: 30px;
  display: flex; gap: 10px;
}
.hero-dots .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(236, 243, 158, 0.3);
  transition: background .4s ease, transform .4s ease;
}
.hero-dots .dot.on { background: var(--ouro-300); transform: scale(1.3); }

/* ---------------- Programação ---------------- */
.day-tabs { display: flex; gap: 12px; margin-bottom: 22px; }
.day-tab {
  font-family: var(--fonte-display);
  padding: 12px 22px; border-radius: 12px; font-size: 24px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--verde-700); color: var(--verde-100);
  border: 3px solid transparent;
  transition: border-color var(--transicao), background var(--transicao), color var(--transicao);
}
.day-tab:hover { border-color: var(--ouro-500); color: var(--ouro-100); }
.day-tab.active { background: var(--grad-ouro); color: var(--verde-900); }
.day-tab.active:hover { color: var(--verde-900); }
.day-tab.focused { border-color: var(--ouro-100); }

.sched { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow: hidden; }
.sched-item {
  display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 6px 26px;
  background: var(--verde-700); border: 1px solid var(--linha);
  border-left: 6px solid var(--ouro-500);
  border-radius: 0 16px 16px 0; padding: 22px 28px;
}
.sched-item .s-hora {
  font-family: var(--fonte-display);
  font-size: 30px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.sched-item .s-tit  { font-size: 29px; font-weight: 700; }
.sched-item .s-local { grid-column: 2; color: var(--verde-400); font-size: 23px; }

/* ---------------- Refeições e orientações ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--verde-700); border: 1px solid var(--linha);
  border-top: 5px solid var(--verde-500);
  border-radius: 0 0 18px 18px; padding: 28px 30px;
}
.card .c-nome {
  font-size: 22px; color: var(--verde-400); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
}
.card .c-hora {
  font-family: var(--fonte-display);
  font-size: 46px; font-weight: 700; margin: 10px 0 8px; letter-spacing: 1px;
}
.card .c-loc { color: var(--verde-100); font-size: 22px; line-height: 1.4; opacity: .9; }

.phones { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 44px; }
.phone-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  border-bottom: 1px dashed var(--linha); padding: 13px 4px;
}
.phone-row .p-nome { color: var(--verde-100); font-size: 25px; opacity: .9; }
.phone-row .p-num  { font-size: 27px; font-weight: 800; color: var(--ouro-300); text-align: right; }

/* ---------------- Serviços do hotel ---------------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--verde-700); border: 1px solid var(--linha);
  border-radius: 16px; padding: 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.service .sv-ico { width: 44px; height: 44px; color: var(--ouro-300); }
.service .sv-nome {
  font-family: var(--fonte-display);
  font-size: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.service .sv-desc { color: var(--verde-100); font-size: 20px; line-height: 1.35; opacity: .85; }

/* ---------------- Streaming ---------------- */
.apps { display: flex; gap: 26px; margin-top: 10px; }
.app-btn {
  width: 330px; height: 205px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--verde-700); border: 3px solid var(--linha);
  font-size: 29px; font-weight: 700;
  transition: border-color var(--transicao), transform var(--transicao);
}
.app-btn .a-logo {
  width: 82px; height: 82px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 900; color: #fff;
  font-family: var(--fonte-display);
}
.app-btn.focused, .app-btn:hover { border-color: var(--ouro-500); transform: scale(1.04); }
.apps-note { margin-top: 26px; color: var(--verde-100); font-size: 23px; max-width: 62ch; line-height: 1.5; opacity: .9; }
.apps-note b { color: var(--ambar); }

/* ---------------- Vídeo institucional ---------------- */
.video-wrap {
  background: var(--verde-900); border-radius: 20px; overflow: hidden;
  width: 100%; height: 620px; position: relative;
  border: 1px solid var(--linha);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-missing {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(150deg, var(--verde-700), var(--verde-900));
  color: var(--verde-100); font-size: 25px; text-align: center; padding: 40px;
}
.video-missing .vm-ico { width: 64px; height: 64px; color: var(--verde-400); }
.video-missing b { color: var(--ouro-300); }

/* ---------------- Rodapé ---------------- */
footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 86px; display: flex; align-items: center; gap: 24px;
  padding: 0 64px;
  background: rgba(13, 31, 13, 0.94);
  border-top: 1px solid var(--linha);
}
.foot-label {
  flex: none;
  font-family: var(--fonte-display);
  background: var(--grad-ouro); color: var(--verde-900);
  font-weight: 800; font-size: 21px; letter-spacing: 2px;
  padding: 8px 18px; border-radius: 8px; text-transform: uppercase;
}
.ticker { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker span {
  display: inline-block; padding-left: 100%;
  animation: ticker 35s linear infinite;
  font-size: 26px; color: var(--verde-100);
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------- Apresentação dinâmica (slides) ----------------
   Tipos: foto (Ken Burns), texto, video e info (gerado com dados do dia).
   Animações usam apenas transform/opacity — leves para o hardware da TV. */
#slideshow { position: fixed; inset: 0; z-index: 50; display: none; background: var(--verde-900); cursor: none; }
#slideshow.on { display: block; }

.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s 1.2s;
  display: flex; align-items: flex-end; overflow: hidden;
}
.slide.show { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }

/* Foto com movimento Ken Burns (zoom/deslocamento lentos, alternando direção) */
.slide .s-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  transform: scale(1); will-change: transform;
}
.slide.show .s-bg { animation: kenburns 14s ease-out forwards; }
.slide:nth-child(even).show .s-bg { animation-name: kenburns-b; }
@keyframes kenburns   { from { transform: scale(1)    translate(0,0);      } to { transform: scale(1.12) translate(1.5%, -1%); } }
@keyframes kenburns-b { from { transform: scale(1.12) translate(-1.5%,1%); } to { transform: scale(1)    translate(0,0);       } }

/* Legenda que sobe suavemente após a foto aparecer */
.slide .s-cap {
  position: relative; width: 100%; padding: 60px 84px 96px;
  background: linear-gradient(transparent, rgba(13, 31, 13, 0.94));
  transform: translateY(36px); opacity: 0;
  transition: transform .9s ease .35s, opacity .9s ease .35s;
}
.slide.show .s-cap { transform: translateY(0); opacity: 1; }
.slide .s-cap h3 {
  font-family: var(--fonte-display);
  font-size: 60px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.slide .s-cap p { font-size: 30px; color: var(--verde-100); margin-top: 10px; max-width: 46ch; }

/* Slide de vídeo institucional dentro da sequência */
.slide.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Slide de texto institucional */
.slide.texto { align-items: center; justify-content: center; background: var(--verde-800); }
.slide.texto .s-txt {
  max-width: 1100px; text-align: center; padding: 60px;
  border-top: 3px solid var(--ouro-500); border-bottom: 3px solid var(--ouro-500);
  transform: scale(.96); opacity: 0;
  transition: transform 1s ease .2s, opacity 1s ease .2s;
}
.slide.texto.show .s-txt { transform: scale(1); opacity: 1; }
.slide.texto h3 {
  font-family: var(--fonte-display);
  font-size: 64px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 26px;
}
.slide.texto p { font-size: 33px; color: var(--verde-100); line-height: 1.6; }

/* Slide de informações do dia (gerado automaticamente com os dados atuais) */
.slide.info { align-items: center; justify-content: center; background: var(--verde-800); }
.slide.info .s-info {
  width: 1560px; transform: translateY(24px); opacity: 0;
  transition: transform .9s ease .25s, opacity .9s ease .25s;
}
.slide.info.show .s-info { transform: translateY(0); opacity: 1; }
.s-info .si-titulo {
  font-family: var(--fonte-display);
  font-size: 56px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  text-align: center; margin-bottom: 8px;
}
.s-info .si-sub { text-align: center; color: var(--verde-400); font-size: 26px; margin-bottom: 40px; }
.s-info .si-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; }
.s-info .si-box {
  background: var(--verde-700); border: 1px solid var(--linha);
  border-radius: 20px; padding: 34px 38px;
}
.s-info .si-box h4 {
  font-family: var(--fonte-display);
  font-size: 26px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--verde-400); margin-bottom: 20px;
}
.s-info .si-linha {
  display: flex; gap: 22px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--linha); font-size: 26px;
}
.s-info .si-linha:last-child { border-bottom: 0; }
.s-info .si-hora { font-family: var(--fonte-display); font-weight: 700; min-width: 150px; letter-spacing: 1px; }
.s-info .si-clima { display: flex; align-items: center; gap: 24px; margin-top: 6px; }
.s-info .si-clima .w-icon { width: 84px; height: 84px; color: var(--ouro-300); }
.s-info .si-clima .si-temp { font-family: var(--fonte-display); font-size: 84px; font-weight: 700; }
.s-info .si-clima .si-desc { font-size: 26px; color: var(--verde-100); line-height: 1.45; }

/* Indicadores de progresso da apresentação */
#slide-dots {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 6;
  display: flex; justify-content: center; gap: 14px;
}
#slide-dots .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(236, 243, 158, 0.28);
  transition: background .4s ease, transform .4s ease;
}
#slide-dots .dot.on { background: var(--ouro-300); transform: scale(1.35); }

#slide-bar {
  position: absolute; left: 0; bottom: 0; z-index: 6;
  height: 6px; width: 0; background: var(--grad-ouro);
}
#slide-bar.run { transition: width linear; }

.slide-clock { position: absolute; top: 44px; right: 72px; text-align: right; z-index: 5; }
.slide-clock .time {
  font-family: var(--fonte-display);
  font-size: 84px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.slide-clock .w { font-size: 28px; color: var(--ouro-300); font-weight: 700; margin-top: 4px; }
.slide-logo { position: absolute; top: 44px; left: 72px; width: 130px; z-index: 5; }

/* ---------------- Diagnóstico ---------------- */
#diag {
  position: fixed; inset: 80px 200px; z-index: 90; display: none;
  background: rgba(13, 31, 13, 0.97); border: 1px solid var(--ouro-500);
  border-radius: 18px; padding: 40px; overflow: hidden;
}
#diag.on { display: block; }
#diag h3 { color: var(--ouro-300); font-size: 30px; margin-bottom: 16px; font-family: var(--fonte-display); letter-spacing: 1px; }
#diag pre { font-size: 19px; color: var(--texto); line-height: 1.5; white-space: pre-wrap; font-family: monospace; }
