/* =========================================================
   PORTAL DO JOTA'S — ENTREGA 1
   Design mobile-first / premium / escuro
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --text: #ffffff;
  --muted: #b7b7bd;
  --gold: #f2c230;
  --gold-strong: #ffc400;
  --gold-soft: rgba(242, 194, 48, .16);
  --border: rgba(255, 255, 255, .10);
  --shadow: 0 18px 50px rgba(0, 0, 0, .36);
  --radius: 20px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 194, 48, .12), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

/* ---------- Estrutura ---------- */

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 35%);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: end center;
  padding: 34px 20px 28px;
  isolation: isolate;
  background:
    url("../assets/fachada jotas novo.jpeg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.92) 88%),
    linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.16), rgba(0,0,0,.48));
}

.hero-content {
  width: 100%;
  text-align: center;
  animation: fadeUp .6s ease both;
}

.brand-logo {
  width: min(92%, 390px);
  max-height: 145px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.65));
}

.hero h1 {
  margin: 8px 0 4px;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.hero p {
  margin: 0;
  color: #e7e7e9;
  font-size: .98rem;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(242,194,48,.45);
  border-radius: 999px;
  background: rgba(10,10,10,.72);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

/* ---------- Conteúdo ---------- */

.main-content {
  padding: 20px 14px 40px;
}

.mode-section,
.actions-section,
.content-section {
  margin-bottom: 18px;
}

.mesa-welcome,
.home-message,
.section-heading,
.artist-box,
.promo-placeholder,
.reservation-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}

.mesa-welcome,
.home-message {
  padding: 18px;
}

.mesa-welcome {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-color: rgba(242,194,48,.28);
}

.home-message {
  text-align: center;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 900;
}

.mesa-welcome h2,
.home-message h2,
.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.mesa-welcome p:not(.eyebrow),
.home-message p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.section-icon,
.modal-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Cards / Botões ---------- */

.primary-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.actions-section {
  display: grid;
  gap: 10px;
}

.action-card {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a1d, #121214);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242,194,48,.45);
}

.action-card:active {
  transform: scale(.985);
}

.action-card-primary,
.action-card-highlight {
  border-color: rgba(242,194,48,.45);
  background: linear-gradient(135deg, #f2c230, #d99f0b);
  color: #111;
}

.action-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(242,194,48,.13);
  color: var(--gold);
  font-size: 1.12rem;
}

.action-card-primary .action-icon,
.action-card-highlight .action-icon {
  background: rgba(0,0,0,.12);
  color: #111;
}

.action-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.action-copy strong {
  font-size: .98rem;
}

.action-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
}

.action-card-primary .action-copy small,
.action-card-highlight .action-copy small {
  color: rgba(17,17,17,.72);
}

.action-arrow {
  color: #77777d;
}

.action-card-primary .action-arrow,
.action-card-highlight .action-arrow {
  color: #111;
}

/* ---------- Redes / Artistas ---------- */

.social-section {
  display: grid;
  gap: 10px;
  margin-top: 7px;
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.social-card {
  margin: 0;
}

.artist-box {
  padding: 15px;
}

.artist-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.artist-heading > span {
  color: var(--gold);
  font-size: 1.1rem;
}

.artist-heading strong,
.artist-heading small {
  display: block;
}

.artist-heading strong {
  font-size: .92rem;
}

.artist-heading small {
  color: var(--muted);
  font-size: .72rem;
}

.artist-placeholder {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--muted);
  font-size: .78rem;
}

.artist-placeholder i {
  color: var(--gold);
}

/* ---------- Conteúdo ---------- */

.content-section {
  display: grid;
  gap: 10px;
}

.promo-placeholder {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 25px;
  text-align: center;
  color: var(--muted);
}

.promo-placeholder i {
  color: var(--gold);
  font-size: 1.5rem;
}

.promo-placeholder strong {
  color: #fff;
  font-size: .92rem;
}

.promo-placeholder span {
  font-size: .76rem;
}

/* ---------- Formulário ---------- */

.reservation-form {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.reservation-form label {
  display: grid;
  gap: 6px;
  color: #dedee1;
  font-size: .78rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.reservation-form input,
.reservation-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  outline: none;
  background: #0f0f11;
  color: #fff;
  padding: 13px 12px;
}

.reservation-form input:focus,
.reservation-form textarea:focus {
  border-color: rgba(242,194,48,.7);
  box-shadow: 0 0 0 3px rgba(242,194,48,.08);
}

.submit-button {
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #f2c230, #dca60e);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- Rodapé ---------- */

.footer {
  padding: 10px 20px 35px;
  text-align: center;
  color: #85858b;
  font-size: .72rem;
}

.footer p {
  margin: 5px 0;
}

.footer-brand {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
}

.footer-small {
  opacity: .7;
}

/* ---------- Modal Wi-Fi ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(7px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(242,194,48,.25);
  border-radius: 24px;
  background: #161619;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-icon {
  margin-bottom: 13px;
}

.modal-dialog h2 {
  margin: 0 0 16px;
}

.wifi-data {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.wifi-data > div {
  padding: 12px;
  border-radius: 14px;
  background: #0e0e10;
}

.wifi-data span,
.wifi-data strong {
  display: block;
}

.wifi-data span {
  color: #85858b;
  font-size: .7rem;
}

.wifi-data strong {
  margin-top: 2px;
  color: #fff;
}

.modal-note {
  margin: 13px 0 0;
  color: #85858b;
  font-size: .7rem;
  text-align: center;
}

/* ---------- Responsividade ---------- */

@media (min-width: 600px) {
  .main-content {
    padding-inline: 24px;
  }

  .hero {
    min-height: 410px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .action-card {
    min-height: 82px;
  }
}

@media (min-width: 900px) {
  body {
    padding: 20px 0;
  }

  .page-shell {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0,0,0,.4);
  }

  .hero {
    border-radius: 28px 28px 0 0;
  }
}

/* ---------- Animações ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* ===== CARDS DE PROMOÇÕES ===== */

.promo-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.promo-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #181818, #0d0d0d);
  border: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.promo-item-content {
  padding: 22px;
}

.promo-badge {
  display: inline-block;
  padding: 6px 11px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: rgba(255, 193, 7, .15);
  color: #ffc107;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.promo-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.promo-item p {
  margin: 0 0 14px;
  color: #bdbdbd;
  line-height: 1.5;
}

.promo-price {
  display: block;
  margin-bottom: 18px;
  color: #ffc107;
  font-size: 27px;
  font-weight: 900;
}

.promo-buy-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #ffd43b, #f4b400);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.promo-mesa {
  display: none;
}

body.modo-mesa .promo-mesa {
  display: block;
}
/* ===== FECHAR FORMULÁRIO DE RESERVA ===== */

#reservas {
  position: relative;
}

.reservation-close {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 50%;

  background: #1b1b1b;
  color: #ffffff;

  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.reservation-close:hover {
  background: #2a2a2a;
}
.artist-socials {
  margin-top: 14px;
}

.artist-socials-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 4px 12px;
  color: #f4c542;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
}

#artist-social-list {
  display: grid;
  gap: 10px;
}
/* =========================================
   MODAL - CONFIRMAÇÃO DE WI-FI DO CARDÁPIO
   ========================================= */

#wifi-check-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#wifi-check-modal.hidden {
  display: none;
}

#wifi-check-modal .modal-content {
  width: 100%;
  max-width: 420px;

  background: #151515;
  border: 1px solid rgba(240, 185, 20, 0.45);
  border-radius: 24px;

  padding: 26px 20px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);

  text-align: center;
}

#wifi-check-modal h2 {
  margin: 0 0 14px;

  color: #ffffff;
  font-size: 25px;
  line-height: 1.2;
}

#wifi-check-modal p {
  margin: 0 0 22px;

  color: #c7c7c7;
  font-size: 16px;
  line-height: 1.5;
}

#wifi-check-modal button {
  width: 100%;
  min-height: 56px;

  margin: 7px 0;
  padding: 14px 16px;

  border-radius: 16px;
  border: none;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

#wifi-ja-conectado {
  background: #f2bb16;
  color: #111111;
}

#wifi-preciso-conectar {
  background: #292929;
  color: #ffffff;
  border: 1px solid #444444 !important;
}

#wifi-check-fechar {
  background: transparent;
  color: #aaaaaa;
  border: 1px solid #333333 !important;
}
/* Ajuste do logo no celular */
.brand-logo {
  width: min(72vw, 340px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .brand-logo {
    width: min(68vw, 280px);
    max-height: 230px;
  }
}
