/* ================= BASE / RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Georgia', serif; min-height: 100vh; overflow-x: hidden; }

/* ================= CAPA ================= */
.container{
  position: relative;
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/saloon.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,200,100,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 40%, rgba(255,180,80,0.06) 0%, transparent 35%),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events:none;
}

.container::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 100px
    );
  pointer-events:none;
}

/* Logo */
.logo{ margin-bottom: 40px; position:relative; z-index:10; text-align: center; }
.logo-image{ width: 480px; max-width: 90%; height:auto; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8)); }

/* Texto principal */
.main-text{ text-align:center; color:#f5f5dc; margin-bottom:50px; position:relative; z-index:10; }
.main-text h1{ font-size:56px; font-weight:400; line-height:1.3; text-shadow: 3px 3px 12px rgba(0,0,0,0.9); }

/* Botões */
.buttons{ display:flex; gap:20px; flex-wrap:wrap; justify-content:center; position:relative; z-index:10; max-width:90%; }
.btn{
  padding: 18px 40px;
  font-size: 20px;
  font-weight: bold;
  color: #2d1810;
  background: linear-gradient(to bottom, #d4a574, #b8834a);
  border: 2px solid #8b6439;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.6); }
.btn:active{ transform: translateY(0); }

/* Responsivo */
@media (max-width:768px){
  .logo-image{ width:260px; }
  .main-text h1{ font-size:36px; padding: 0 20px; }
  .btn{ padding: 15px 30px; font-size:16px; }
}

/* ==================== PÁGINAS INTERNAS ==================== */
.page-container{
  overflow-y:auto;
  padding: 40px 20px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('images/saloon.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.content-box{
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: rgba(40,30,20,0.98);
  border: 3px solid #d4a574;
  border-radius: 15px;
  padding: 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.back-button{
  display:inline-block;
  color:#d4a574;
  text-decoration:none;
  font-size:18px;
  font-weight:bold;
  margin-bottom: 20px;
}
.back-button:hover{ color:#e0b586; }

.logo-small{ text-align:center; margin-bottom: 30px; }
.logo-small img{ width:180px; max-width:100%; height:auto; display:block; margin: 0 auto; }

.page-title{
  text-align:center;
  color:#d4a574;
  font-size: 42px;
  font-weight:bold;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.text-content{ color:#f5f5dc; line-height:1.8; }
.text-content p{ margin-bottom: 20px; font-size:18px; }

/* ================= CONTROLE DE SOM ================= */
.audio-control{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
}

#toggleAudio{
  background: linear-gradient(to bottom, #d4a574, #b8834a);
  color: #2d1810;
  border: 2px solid #8b6439;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#toggleAudio:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* ================= GALERIA ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d4a574;
  background: rgba(0,0,0,0.3);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  color: #f5f5dc;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  background: rgba(40,30,20,0.85);
  margin: 0;
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ================= LOGO CLICÁVEL ================= */
#logoBtn {
  cursor: pointer;
  animation: logoPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#logoBtn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(212,165,116,0.9));
}

#logoBtn.started {
  animation: logoFlash 0.5s ease forwards;
}

.logo-hint {
  color: #d4a574;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
  animation: fadePulse 2.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(212,165,116,0.6);
  position: relative;
  z-index: 10;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8)); }
  50%       { filter: drop-shadow(0 0 22px rgba(212,165,116,0.9)); }
}

@keyframes logoFlash {
  0%   { filter: drop-shadow(0 0 8px rgba(212,165,116,0.4)); }
  50%  { filter: drop-shadow(0 0 40px rgba(255,220,150,1)); transform: scale(1.12); }
  100% { filter: drop-shadow(0 0 12px rgba(212,165,116,0.6)); transform: scale(1); }
}

@keyframes fadePulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ================= FADE-IN DE PÁGINA ================= */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageFadeIn 0.5s ease-out;
}

/* ================= DESTAQUE (HIGHLIGHT) ================= */
.highlight {
  color: #d4a574;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
  padding: 15px;
  border-top: 2px solid rgba(212,165,116,0.3);
  border-bottom: 2px solid rgba(212,165,116,0.3);
}

/* ================= FORMULÁRIO DE RESERVAS ================= */
.form-intro {
  color: #f5f5dc;
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  color: #d4a574;
  font-size: 15px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d4a574;
  background: rgba(255,255,255,0.08);
  color: #f5f5dc;
  font-family: Georgia, serif;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e0b586;
  box-shadow: 0 0 0 3px rgba(212,165,116,0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245,245,220,0.45);
}

.form-group select option {
  background: #28190f;
  color: #f5f5dc;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 18px;
}

.form-success {
  display: none;
  background: rgba(76,175,80,0.15);
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #a5d6a7;
  font-size: 18px;
  margin-top: 20px;
  animation: pageFadeIn 0.4s ease-out;
}

.form-success.visible {
  display: block;
}

/* ================= LOCALIZAÇÃO ================= */
.location-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  border-left: 3px solid #d4a574;
  padding-left: 20px;
}

.info-item h3 {
  color: #d4a574;
  font-size: 20px;
  margin-bottom: 10px;
}

.info-item p {
  color: #f5f5dc;
  font-size: 17px;
  line-height: 1.8;
}

.map-box {
  background: rgba(255,255,255,0.05);
  border: 2px solid #d4a574;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #f5f5dc;
  font-size: 18px;
  line-height: 1.8;
}

.map-box p:first-child {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.social-media {
  text-align: center;
}

.social-media h3 {
  color: #d4a574;
  font-size: 20px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  color: #f5f5dc;
  text-decoration: none;
  background: rgba(212,165,116,0.15);
  border: 1px solid #d4a574;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  background: rgba(212,165,116,0.35);
  transform: translateY(-2px);
}

/* ================= RESPONSIVO - PÁGINAS INTERNAS ================= */
@media (max-width: 768px) {
  .page-title { font-size: 32px; }
  .content-box { padding: 25px 18px; }
  .text-content p { font-size: 16px; }
  .highlight { font-size: 17px; }
  .info-item h3 { font-size: 18px; }
  .info-item p { font-size: 15px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-title { font-size: 26px; }
  .content-box { padding: 20px 14px; }
  .gallery-item img { height: 180px; }
}