/* Fonte de marca (Roboto), bundlada localmente — sem CDN. A landing não tem
   títulos, então Rubik (fonte de display do design system) não é necessária. */
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/Roboto.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens do design system HartBR (direção C — fiel ao hartbr.com/manager). */
:root {
  --bg: #eef1f8;
  --ink: #1d2a44;
  --ink-soft: #6b7480;
  --surface: #ffffff;
  --hover: #eaf2ee;     /* sage suave */
  --line: #e2e6f0;
  --navy: #1d3b6f;      /* estrutura */
  --primary: #5b8f70;   /* verde-sage — ícones/acento */
  --link: #086ad8;      /* links */
  --drawer-w: 300px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 20;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

.menu-btn:active {
  transform: scale(0.94);
}

.menu-btn img {
  display: block;
  width: 36px;
  height: 36px;
}

/* ---------- Stage / hero ---------- */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 16px 22px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.site-footer .license {
  letter-spacing: 0.01em;
}

.site-footer .site-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.site-footer .site-link:hover {
  text-decoration: underline;
}

.hero-logo {
  width: 400px;
  max-width: 88vw;
  height: auto;
}

/* ---------- Scrim ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 34, 0.45);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  z-index: 30;
}

.scrim.show {
  opacity: 1;
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-w);
  max-width: 84vw;
  background: var(--surface);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 0.3s var(--ease);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--navy); /* fundo escuro → logo branco (convenção da marca) */
}

.drawer-logo {
  max-height: 52px;
  width: auto;
}

.menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.menu-loading {
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Menu items ---------- */
.menu-item,
.section-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.menu-item:hover,
.section-toggle:hover {
  background: var(--hover);
}

.menu-item:active,
.section-toggle:active {
  background: var(--line);
}

.menu-item .icon,
.section-toggle .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.menu-item .label,
.section-toggle .label {
  flex: 1;
}

/* ---------- Expandable section ---------- */
.chevron {
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease);
}

.section.expanded .chevron {
  transform: rotate(180deg);
}

.section-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s var(--ease);
}

.section.expanded .section-children {
  max-height: 600px;
}

.section-children .menu-item {
  padding-left: 30px;
}

.section-children .icon {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
