:root {
  --bg: #1d1813;
  --bg-hover: #251f19;
  --text: #f3efe8;
  --text-muted: #9d9282;
  --text-footer: #8b8172;
  --gold: #c9a45c;
  --gold-light: #d6b36d;
  --gold-link: #dcbd7e;
  --gold-dark: #a88443;
  --line: #3a3128;
  --border: #4a3f33;
  --paper: #f6f2ec;
  --paper-line: #e2dacd;
  --paper-muted: #7d7264;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }
html:has(dialog[open]) { overflow: hidden; }

body {
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

p, h1, h2, address { margin: 0; }
address { font-style: normal; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-link); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Página */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 64px 24px 40px;
}

.wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* O logo foi recortado; a margem recompõe o respiro original do arquivo. */
.logo { display: block; width: 150px; height: auto; margin: 9px 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.title {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  text-wrap: pretty;
}

.divider {
  margin-top: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Links */
.links {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary, .link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: normal;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
  text-align: left;
  transition: background .2s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary .ico { color: var(--bg); }
.plus { font-size: 18px; }

.link {
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 400;
  transition: border-color .2s, background .2s;
}
.link:hover { border-color: var(--gold); background: var(--bg-hover); color: var(--text); }

.row { display: flex; align-items: center; gap: 14px; }
.ico { width: 22px; height: 22px; display: block; flex-shrink: 0; fill: currentColor; color: var(--gold); }
.txt { display: flex; flex-direction: column; gap: 3px; }
.sub { font-size: 12px; font-weight: 300; color: var(--text-muted); letter-spacing: 0.02em; }
.arrow { color: var(--gold); font-size: 16px; }

/* Rodapé */
.footer {
  margin-top: 56px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-footer);
}
.motto { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }
.addr { margin-top: 10px; }

/* Modal de contatos */
.modal {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--bg);
  font-family: var(--sans);
}
.modal[open] { animation: cdUp .28s ease; }
.modal::backdrop { background: rgba(15, 12, 9, 0.72); animation: cdFade .2s ease; }

.modal-inner { padding: 28px 24px 24px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow-dark { color: var(--gold-dark); }
.modal-title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: normal; }

.close {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--bg);
}
.close:hover { color: var(--gold-dark); }

.clist { margin-top: 24px; display: flex; flex-direction: column; border-top: 1px solid var(--paper-line); }
.citem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-line);
  color: var(--bg);
}
a.citem:hover { color: var(--gold-dark); }
.ctext { display: flex; flex-direction: column; gap: 2px; }
.clabel { font-size: 12px; color: var(--paper-muted); }
.cval { font-size: 16px; }
.cval-long { line-height: 1.45; }
.cval-hours { line-height: 1.5; }
.carrow { color: var(--gold-dark); }

@keyframes cdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .modal::backdrop { animation: none !important; transition: none !important; }
}
