/*
 ╔══════════════════════════════════════════════════════╗
 ║            DESIGN TOKENS — Dylan's Gastrobar         ║
 ║  Sistema de tokens documentado para escala futura    ║
 ╚══════════════════════════════════════════════════════╝
*/
:root {
  /* ───── CORES ───── */
  --color-brand:        #002D21;   /* Verde escuro — cor primária */
  --color-surface:      #FFFFFF;   /* Fundo da página */
  --color-card:         #F8F8F8;   /* Fundo dos cards de navegação */
  --color-card-hover:   #EFEFEF;   /* Fundo hover dos cards */
  --color-text:         #002D21;   /* Texto principal */
  --color-arrow:        #212121;   /* Ícone de seta */

  /* ───── TIPOGRAFIA (Google Fonts — Inter) ───── */
  --font-display-bold:  "Inter", system-ui, -apple-system, sans-serif;
  --font-display:       "Inter", system-ui, -apple-system, sans-serif;
  --font-ui:            "Inter", system-ui, -apple-system, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-md:   1.5rem;    /*  24px */
  --text-lg:   2rem;      /*  32px */
  --text-xl:   3rem;      /*  48px */
  --text-2xl:  4rem;      /*  64px */

  /* ───── ESPAÇAMENTO ───── */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  1rem;     /* 16px */
  --space-4:  1.5rem;   /* 24px */
  --space-5:  2rem;     /* 32px */
  --space-6:  3rem;     /* 48px */
  --space-7:  4rem;     /* 64px */

  /* ───── BORDAS ───── */
  --radius-sm:   0.5rem;    /*  8px */
  --radius-md:   1rem;      /* 16px */
  --radius-lg:   1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ───── TRANSIÇÕES ───── */
  --transition-fast:  150ms ease;
  --transition-base:  250ms ease;
  --transition-slow:  400ms ease;

  /* ───── LAYOUT (rem = escala com tipografia fluida) ───── */
  --layout-gap:      var(--space-3);
  --card-pad:        0.5rem 2rem 0;
  --header-pad:      3rem 0;
  --footer-pad:      2rem 2rem 0;
}

/* ══════ RESET + BASE ══════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: clamp(14px, 1.2vw + 12px, 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-ui);
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol { list-style: none; }
address { font-style: normal; }

/* ══════ LAYOUT ESTRUTURAL ══════ */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: clamp(var(--space-3), 4vw, var(--space-6));
  display: flex;
  flex-direction: column;
}

/* ══════ HEADER ══════ */
.site-header {
  padding: var(--header-pad);
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  display: block;
  width: clamp(220px, 36vw, 380px);
  height: auto;
  aspect-ratio: 197 / 38;
}

/* ══════ NAV LIST ══════ */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
  width: 100%;
}

/* ══════ NAV CARD — base ══════ */
.nav-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
  cursor: pointer;
  overflow: clip;
  transition:
    background-color var(--transition-base),
    transform var(--transition-fast);
}

.nav-card:hover {
  background-color: var(--color-card-hover);
}

.nav-card:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.nav-card__title {
  font-family: var(--font-display-bold);
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  line-height: 1.2;
  display: block;
}

.nav-card__arrow {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(24px, 2.5vw, 32px);
  height: clamp(24px, 2.5vw, 32px);
  pointer-events: none;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ══════ FOOTER ══════ */
.site-footer {
  padding: var(--footer-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  width: 100%;
}

.site-footer__address {
  font-family: var(--font-display);
  font-weight: 400;
  color: rgb(0, 45, 33);
  white-space: nowrap;
  line-height: 1;
  
}

/* ══════ TIPOGRAFIA E TAMANHO — cards (padronizado) ══════ */
.nav-card {
  width: 100%;
  min-height: clamp(56px, 14vw, 180px);
  overflow: clip;
  container-type: inline-size;
  container-name: nav-card;
}
/* Fonte proporcional à largura do card: encolhe com o card para não cortar o texto */
@container nav-card (min-width: 1px) {
  .nav-card__title {
    font-size: clamp(0.75rem, 8cqw, 2.5rem);
  }
}

/* ══════ MODAL — Horários ══════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 33, 0.5);
  cursor: pointer;
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.modal__close--back {
  left: var(--space-3);
  right: auto;
}
.modal__close:hover {
  background: var(--color-card);
}
.modal__title {
  font-family: var(--font-display-bold);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}
.modal__close--back ~ .modal__title {
  padding-left: 48px;
}
.modal__schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.modal-schedule__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.modal-schedule__day-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.modal-schedule__day {
  font-family: var(--font-display-bold);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.modal-schedule__time {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--color-text);
  flex-shrink: 0;
}
.modal-schedule__time--rest {
  color: #6b7280;
  font-size: var(--text-sm);
}
.modal-schedule__note {
  font-size: var(--text-sm);
  color: #2563eb;
}
