@font-face {
  font-family: "ScaniaHeadline";
  src: url("../fonts/ScaniaSansHeadlineV2-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ScaniaSans";
  src: url("../fonts/ScaniaSansV2-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ScaniaSans";
  src: url("../fonts/ScaniaSansV2-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #041e42;
  --ink: #07111c;
  --card: #10243f;
  --orange: #e35205;
  --blue: #0096ff;
  --white: #ffffff;
  --muted: #c9d3de;
  --soft: #8e97a3;
  --line: #1e3a5c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "ScaniaSans", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--orange);
  z-index: 30;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker.como-escrito { text-transform: none; letter-spacing: 0.02em; }
h1, h2, h3 { font-family: "ScaniaHeadline", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 78px); line-height: 0.92; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; }
h3 { font-size: 22px; }

.hero {
  position: relative;
  min-height: max(640px, 86vh);
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1a4d78;
  background-image: url("../img/kv.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;
}
.hero-copy { position: relative; z-index: 2; width: max-content; max-width: calc(100% - 80px); padding: 88px 0 72px 56px; }
.hero-copy p { color: var(--muted); max-width: 40rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-acoes .btn { margin-top: 8px; }
.hero h1 {
    text-transform: uppercase;
    line-height: 0.92;
    white-space: nowrap;
    font-size: clamp(40px, 3.6vw, 86px);
}
.frase { color: var(--white) !important; font-size: 17px; line-height: 1.45; margin: 14px 0 0; max-width: 36rem; }
.hero-foto { display: none; }
.logo-topo {
  position: absolute;
  top: calc(34 / 1440 * 100vw);
  right: calc(35 / 1440 * 100vw);
  width: calc(51 / 1440 * 100vw);
  height: auto;
  z-index: 3;
}
.logo-base {
  display: none;
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}
.logo-base img { height: 26px; width: auto; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border: 0;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.btn.sec { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.azul { background: var(--navy); color: var(--white); border: 1px solid #24558f; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.55; cursor: default; }

section { padding: 64px 0; }
.contadores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contador, .card {
  background: var(--card);
  padding: 18px 18px 20px;
}
.contador strong, .numero {
  display: block;
  font-family: "ScaniaHeadline", sans-serif;
  font-size: 42px;
  line-height: 1;
  margin: 8px 0 4px;
}
.contador span, .nota { color: var(--soft); font-size: 14px; }
.assuntos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  background: var(--navy);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
}

.grade-tipos, .grade-dias, .passos, .admin-grade {
  display: grid;
  gap: 12px;
}
.grade-tipos { grid-template-columns: repeat(4, 1fr); }
.tipo, .passo, .dia {
  background: var(--card);
  padding: 16px;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
a.tipo { display: block; text-decoration: none; color: inherit; }
.tipo.ativo, .slot.ativo { outline: 2px solid var(--orange); }
.tipo small, .passo small, .dia small { color: var(--muted); display: block; margin-top: 8px; }
.passos { grid-template-columns: repeat(5, 1fr); }
.passo b { color: var(--orange); display: block; margin-bottom: 8px; }

.agenda { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.agenda-mais { margin-top: 8px; }
.dia h3 { font-size: 18px; margin-bottom: 12px; }
.slot {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.slot.ocupado { cursor: default; color: var(--muted); }
.slot.ancora { box-shadow: inset 3px 0 0 var(--blue); }
.slot.livre { box-shadow: inset 3px 0 0 var(--orange); }
.slot small { display: block; color: var(--soft); margin-top: 4px; }

form.reserva, .bloco-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 18px;
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.largo { grid-column: 1 / -1; }
label { color: var(--muted); font-size: 14px; }
input, select, textarea {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 12px;
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.checks { display: grid; gap: 10px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.check input { width: 18px; min-width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.check span { min-width: 0; }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.aviso {
  background: #3a1206;
  color: var(--white);
  padding: 12px 14px;
  margin: 12px 0;
}
.aviso:empty { display: none; }
.ok { background: #0c2a22; }
.tarja {
  background: var(--orange);
  color: var(--white);
  padding: 10px 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.lado {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 28px;
  align-items: center;
  margin: 8px 0 12px;
}
.lado img { width: 100%; height: auto; }
.termo { max-width: 760px; }
.termo h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 28px; }
.termo h3 { margin-top: 18px; }
.termo p, .termo li { color: var(--muted); }
.rodape {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.rodape-marca { max-width: 28rem; line-height: 1.45; }
.rodape nav { display: flex; gap: 16px; flex-wrap: wrap; }
.redes { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.redes a { display: flex; align-items: center; line-height: 0; }
.redes img { width: auto; height: 40px; max-width: none; }
.topo {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  background: var(--navy);
  border: 2px solid var(--orange);
  border-radius: 8px;
  display: grid;
  place-items: center;
  z-index: 40;
  text-decoration: none;
  touch-action: manipulation;
}
.topo img { width: 22px; height: auto; }
.caixa {
  background: var(--card);
  border-left: 4px solid var(--orange);
  padding: 18px 18px 8px;
  margin: 18px 0;
}
.oculto { display: none; }

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 28px 0 8px;
}
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.admin-nav a {
  color: var(--white);
  text-decoration: none;
  background: var(--card);
  padding: 8px 12px;
}
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th, .tabela td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela th { color: var(--soft); font-weight: 700; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login form { width: min(420px, 100%); background: var(--card); padding: 28px; display: grid; gap: 12px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.foto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.foto-grid figure { margin: 0; background: var(--card); }
.foto-grid img { width: 100%; height: 180px; object-fit: cover; }
.foto-grid figcaption { padding: 10px; font-size: 14px; color: var(--muted); }
.acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acoes form { margin: 0; }
.acoes .btn { margin-top: 0; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.filtros a { color: var(--white); text-decoration: none; background: var(--navy); padding: 8px 12px; }
.filtros a.ativo { background: var(--orange); }

@media (max-width: 980px) {
  .hero, .agenda, .grade-tipos, .passos, .contadores, .tres, .foto-grid { grid-template-columns: 1fr 1fr; }
  .hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background-image: none;
    background-color: #07111c;
  }
  .hero-foto {
    display: block;
    position: relative;
    aspect-ratio: 1.315 / 1;
    overflow: hidden;
    background-image: url("../img/kv.jpg");
    background-repeat: no-repeat;
    background-size: 155% auto;
    background-position: 100% 100%;
    background-color: #07111c;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 28px 20px 12px;
    background: #07111c;
    box-sizing: border-box;
  }
  .hero h1 { font-size: 8.2vw; max-width: 100%; }
  .hero .kicker { font-size: 16px; }
  .frase { font-size: 16px; max-width: none; }
  .logo-topo {
    width: calc(23 / 390 * 100vw);
    top: calc(24 / 390 * 100vw);
    right: calc(21 / 390 * 100vw);
  }
  .passos, .agenda, .lado { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contadores, .grade-tipos, .form.reserva, form.reserva, .tres, .foto-grid { grid-template-columns: 1fr; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
}
