/* ============================================================
   Tabuinhas Bar — estilos custom (por cima do Tailwind CDN)
   ============================================================ */

:root {
  --noir: #0b0a0e;
  --coal: #14121a;
  --gold: #c9a24b;
  --gold-light: #e5c97e;
  --wine: #8e1f33;
  --ivory: #efe9dd;
  --fog: #a9a294;
}

html {
  scroll-behavior: smooth;
}

/* O atributo hidden tem de vencer as utilities de display do Tailwind
   (ex.: .flex no age gate e no lightbox). */
[hidden] {
  display: none !important;
}

body {
  background-color: var(--noir);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Textura de fundo subtil (vinheta quente) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(142, 31, 51, 0.10), transparent 60%),
    radial-gradient(50rem 36rem at 0% 110%, rgba(201, 162, 75, 0.06), transparent 60%);
}

::selection {
  background: var(--wine);
  color: var(--ivory);
}

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

/* Offset das âncoras por causa do header fixo */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* ---------- Header ---------- */
#site-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.is-scrolled {
  background-color: rgba(11, 10, 14, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.18);
}

.nav-link {
  position: relative;
  letter-spacing: 0.28em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -0.45rem;
  height: 1px;
  background: var(--gold);
  transition: left 0.3s ease, right 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  left: 0;
  right: 0;
}

.nav-link.is-active {
  color: var(--gold-light);
}

/* Botão hambúrguer */
#nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.is-open span:nth-child(2) { opacity: 0; }
#nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
#mobile-menu {
  transition: opacity 0.35s ease, visibility 0.35s ease;
  opacity: 0;
  visibility: hidden;
}

#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

#mobile-menu a {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

#mobile-menu.is-open a {
  transform: translateY(0);
  opacity: 1;
}

#mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.is-open a:nth-child(2) { transition-delay: 0.12s; }
#mobile-menu.is-open a:nth-child(3) { transition-delay: 0.19s; }
#mobile-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }
#mobile-menu.is-open a:nth-child(5) { transition-delay: 0.33s; }

/* ---------- Ornamentos / títulos de secção ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Playfair Display ganha presença a partir de 600 */
.font-display { font-weight: 600; }

.section-title {
  font-feature-settings: "liga", "dlig";
  font-weight: 600;
}

/* Wordmark do hero — peso forte e tracking curto para não parecer esticado */
.hero-wordmark {
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.96;
}

.placeholder-note {
  color: var(--fog);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-style: italic;
}

/* Divisor art-déco com diamante — assinatura visual da casa */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
  font-size: 0.55rem;
}

.diamond-divider::before,
.diamond-divider::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.55));
}

.diamond-divider::after {
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.55), transparent);
}

/* ---------- Hero ---------- */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(11, 10, 14, 0.62) 0%, rgba(11, 10, 14, 0.48) 45%, var(--noir) 100%),
    radial-gradient(55rem 38rem at 50% 44%, rgba(11, 10, 14, 0.5), transparent 72%),
    radial-gradient(70rem 40rem at 50% 30%, rgba(142, 31, 51, 0.15), transparent 70%);
}

.scroll-cue {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Botões ---------- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  color: #181203;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 1rem 2.4rem;
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
  /* cantos chanfrados art-déco — assinatura própria (a referência usa pills) */
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px), 0 10px
  );
}

.btn-gold:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201, 162, 75, 0.25);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(201, 162, 75, 0.5);
  color: var(--gold-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  padding: 1rem 2.4rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background-color: rgba(201, 162, 75, 0.08);
  color: var(--gold-light);
}

/* Botão WhatsApp — cor de ação reconhecível, com o chanfro art-déco da casa */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1faf54 0%, #25d366 50%, #1faf54 100%);
  background-size: 200% 200%;
  color: #06210f;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 1rem 1.9rem;
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px), 0 10px
  );
}

.btn-wa:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.28);
}

/* ---------- Listas (checklist + tags) ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ivory);
}

.check-list .check {
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 600;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  border: 1px solid rgba(201, 162, 75, 0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  background: rgba(20, 18, 26, 0.5);
}

/* ---------- Cards de vantagens ---------- */
.feature-card {
  border: 1px solid rgba(201, 162, 75, 0.16);
  background: linear-gradient(180deg, rgba(20, 18, 26, 0.85), rgba(11, 10, 14, 0.6));
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.feature-card:hover {
  border-color: rgba(201, 162, 75, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---------- Card de horário ---------- */
.hours-card {
  border: 1px solid rgba(201, 162, 75, 0.25);
  background: linear-gradient(180deg, rgba(20, 18, 26, 0.85), rgba(11, 10, 14, 0.5));
}

/* ---------- Moldura de imagem (secção despedidas) ---------- */
.img-frame {
  position: relative;
  border: 1px solid rgba(201, 162, 75, 0.25);
  padding: 0.5rem;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(201, 162, 75, 0.18);
  pointer-events: none;
  z-index: 2;
}

.img-frame img {
  display: block;
}

/* ---------- FAQ (acordeão nativo <details>) ---------- */
.faq-item {
  border: 1px solid rgba(201, 162, 75, 0.18);
  background: rgba(20, 18, 26, 0.5);
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(201, 162, 75, 0.4);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ivory);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold-light);
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.4rem;
  margin-top: -0.25rem;
  color: var(--fog);
  line-height: 1.6;
}

/* ---------- Menu (carta) ---------- */
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201, 162, 75, 0.35);
  transform: translateY(-0.3em);
  min-width: 1.5rem;
}

.menu-price {
  color: var(--gold-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-card {
  border: 1px solid rgba(201, 162, 75, 0.16);
  background: linear-gradient(180deg, rgba(20, 18, 26, 0.85), rgba(11, 10, 14, 0.6));
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.menu-card:hover {
  border-color: rgba(201, 162, 75, 0.4);
}

/* ---------- Testemunhos ---------- */
#testi-viewport {
  overflow: hidden;
}

#testi-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testi-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

/* Aspas «» gigantes em marca de água atrás de cada testemunho */
.testi-slide blockquote {
  position: relative;
}

.testi-slide blockquote::before {
  content: "«»";
  position: absolute;
  top: -3.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(201, 162, 75, 0.13);
  pointer-events: none;
}

.testi-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(201, 162, 75, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testi-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

.carousel-arrow {
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--gold-light);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.08);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.25em;
}

/* ---------- Galeria ---------- */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Keyline dourada interior no hover — toque de galeria de arte */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(229, 201, 126, 0);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.45s ease;
}

.gallery-item:hover::before,
.gallery-item:focus-visible::before {
  border-color: rgba(229, 201, 126, 0.55);
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: saturate(0.9) contrast(1.02);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 14, 0.65));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
#lightbox {
  background: rgba(8, 7, 11, 0.94);
  backdrop-filter: blur(6px);
}

#lightbox-img {
  max-height: 78vh;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

/* ---------- Formulário ---------- */
.field-label {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  background: rgba(20, 18, 26, 0.8);
  border: 1px solid rgba(201, 162, 75, 0.22);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  appearance: none;
  border-radius: 0;
}

.field-input::placeholder {
  color: rgba(169, 162, 148, 0.55);
}

.field-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(20, 18, 26, 1);
}

.field-input[aria-invalid="true"] {
  border-color: var(--wine);
}

select.field-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a24b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

select.field-input option {
  background-color: var(--coal);
  color: var(--ivory);
}

/* Date/time pickers em tema escuro */
input[type="date"].field-input {
  color-scheme: dark;
}

.field-error {
  color: #e08896;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}

/* ---------- Age gate ---------- */
#age-gate {
  background:
    radial-gradient(50rem 34rem at 50% 20%, rgba(142, 31, 51, 0.22), transparent 65%),
    rgba(8, 7, 11, 0.97);
  backdrop-filter: blur(10px);
  transition: opacity 0.45s ease;
}

#age-gate.gate-leave {
  opacity: 0;
}

.gate-card {
  border: 1px solid rgba(201, 162, 75, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

/* ---------- Footer ---------- */
.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.4), transparent);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--noir); }
  ::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 75, 0.35);
    border-radius: 9999px;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-cue { animation: none; }
}
