/* ================================================
   THE GENTLEMAN'S QUARTER — Classic Template
   Paleta: #0B2027 (Deep Blue), #40798C (Steel Blue), 
           #EAD2AC (Champagne Gold), #F8F9FA
   Fonts: Cinzel + Raleway
   ================================================ */

:root {
  --color-dark: #0B2027;
  --color-dark-light: #163640;
  --color-gold: #EAD2AC;
  --color-gold-dark: #C9A97B;
  --color-light: #F8F9FA;
  --color-text: #E0E6ED;
  --color-text-muted: #8E9EAA;

  --font-display: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;

  --transition: 0.4s ease-in-out;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.8;
  color: var(--color-text); background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased; font-weight: 300;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === TYPOGRAPHY === */
h1, h2, h3, .logo { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

.section-tag {
  display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px;
  color: var(--color-gold); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 2rem; color: var(--color-light); }
.desc { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.0625rem; }
.center-desc { max-width: 600px; margin-left: auto; margin-right: auto; }

.divider-gold { width: 60px; height: 1px; background-color: var(--color-gold); margin: 2rem 0; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 1rem 2.5rem; font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px;
  border: 1px solid transparent; cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-gold { background: var(--color-gold); color: var(--color-dark); }
.btn-gold:hover { background: var(--color-light); color: var(--color-dark); }
.btn-outline-gold { background: transparent; border-color: var(--color-gold); color: var(--color-gold); }
.btn-outline-gold:hover { background: var(--color-gold); color: var(--color-dark); }
.btn-block { width: 100%; }

/* === HEADER === */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; padding: 2rem 0;
  z-index: 1000; transition: var(--transition); border-bottom: 1px solid rgba(234, 210, 172, 0.2);
}
.site-header.scrolled { position: fixed; background: rgba(11, 32, 39, 0.95); padding: 1rem 0; backdrop-filter: blur(10px); }

.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-left, .header-right { flex: 1; }
.header-right { display: flex; justify-content: flex-end; align-items: center; }
.header-center { flex: 0 0 auto; text-align: center; }

.logo { display: flex; flex-direction: column; color: var(--color-gold); }
.logo-top { font-size: 0.75rem; letter-spacing: 6px; }
.logo-main { font-size: 1.75rem; letter-spacing: 4px; line-height: 1; margin: 0.25rem 0; }
.logo-bottom { font-size: 0.625rem; letter-spacing: 8px; font-family: var(--font-body); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--color-gold); }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background: var(--color-gold); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 25px; height: 1px; background: var(--color-gold); transition: var(--transition); }

/* === HERO === */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(50%) brightness(0.8) contrast(1.1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,32,39,0.9) 0%, rgba(11,32,39,0.5) 100%); }
.hero-container { position: relative; z-index: 2; display: flex; justify-content: center; }

.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 800px; }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: 4px; margin: 0; }
.hero-subtitle { font-size: 1.125rem; font-weight: 300; letter-spacing: 1px; max-width: 500px; margin-top: 1rem; color: var(--color-text-muted); }

/* === ABOUT === */
.about-flex { display: flex; align-items: center; gap: 6rem; }
.about-text { flex: 1; }
.about-image { flex: 1; }
.image-frame { position: relative; padding: 1.5rem; }
.image-frame::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--color-gold); z-index: 1; }
.image-frame img { position: relative; z-index: 2; width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(100%); transition: var(--transition); }
.image-frame:hover img { filter: grayscale(30%); }

.signature { max-width: 200px; filter: invert(80%) sepia(30%) saturate(500%) hue-rotate(350deg); margin-top: 2rem; opacity: 0.7; }
.founder-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-gold); margin-top: 1rem; }
.founder-name span { font-family: var(--font-body); font-size: 0.875rem; color: var(--color-text-muted); font-style: italic; }

/* === SERVICES === */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; }
.menu-category { font-size: 2rem; color: var(--color-gold); margin-bottom: 2rem; border-bottom: 1px solid rgba(234, 210, 172, 0.2); padding-bottom: 1rem; }
.menu-item { margin-bottom: 2rem; }
.menu-item-header { display: flex; align-items: baseline; margin-bottom: 0.5rem; }
.menu-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-light); }
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(234, 210, 172, 0.3); margin: 0 1rem; }
.menu-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-gold); }
.menu-desc { font-size: 0.875rem; color: var(--color-text-muted); max-width: 90%; }

/* === PROMO BANNER === */
.promo-banner { position: relative; padding: 6rem 0; background: var(--color-dark-light); overflow: hidden; }
.promo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(100%) opacity(0.1); }
.promo-content { position: relative; z-index: 2; }
.gold-icon { font-size: 3rem; color: var(--color-gold); margin-bottom: 1.5rem; }

/* === GALLERY === */
.gallery-wrapper { position: relative; border: 1px solid rgba(234, 210, 172, 0.2); padding: 1rem; margin-top: 2rem; }
.gallery-wrapper img { width: 100%; max-height: 600px; object-fit: cover; filter: grayscale(80%) sepia(20%); }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.info-details { margin: 3rem 0; }
.info-line { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.info-line i { color: var(--color-gold); font-size: 1.25rem; margin-top: 0.25rem; }
.info-line span { font-size: 1.0625rem; color: var(--color-light); }

.hours-title { font-size: 1.5rem; color: var(--color-gold); margin-bottom: 1.5rem; }
.hours-list li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.75rem 0; color: var(--color-text-muted); }

.booking-card { background: var(--color-dark-light); padding: 3.5rem; border: 1px solid rgba(234, 210, 172, 0.1); }
.booking-card h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--color-gold); }
.booking-card p { color: var(--color-text-muted); margin-bottom: 2rem; font-size: 0.9375rem; }

.or-divider { display: flex; align-items: center; margin: 2rem 0; color: var(--color-text-muted); font-size: 0.75rem; letter-spacing: 2px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.or-divider span { padding: 0 1rem; }

.elegant-form input, .elegant-form select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 0; color: var(--color-light); font-family: var(--font-body); font-size: 0.9375rem;
  margin-bottom: 1.5rem; outline: none; transition: var(--transition);
}
.elegant-form input:focus, .elegant-form select:focus { border-color: var(--color-gold); }
.elegant-form select option { background: var(--color-dark); color: var(--color-light); }

/* === FOOTER === */
.site-footer { border-top: 1px solid rgba(234, 210, 172, 0.2); padding: 4rem 0 2rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 1px; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { font-size: 1.25rem; color: var(--color-text-muted); }
.social-links a:hover { color: var(--color-gold); }

/* === CHATBOT MODAL === */
.chatbot-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.chatbot-modal.open { display: block; }
.chatbot-backdrop { position: absolute; inset: 0; background: rgba(11,32,39,0.9); backdrop-filter: blur(5px); }
.chatbot-window {
  position: absolute; bottom: 2rem; right: 2rem; width: 350px;
  background: var(--color-dark); border: 1px solid var(--color-gold);
  display: flex; flex-direction: column; max-height: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.chatbot-header {
  display: flex; justify-content: space-between; align-items: center; padding: 1.5rem;
  background: var(--color-dark-light); border-bottom: 1px solid rgba(234, 210, 172, 0.2);
}
.header-info { display: flex; align-items: center; gap: 0.75rem; color: var(--color-gold); font-family: var(--font-display); }
.chatbot-header button { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 1.25rem; }
.chatbot-body { padding: 1.5rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.msg { padding: 1rem; font-size: 0.875rem; max-width: 85%; font-weight: 300; }
.msg.bot { background: var(--color-dark-light); color: var(--color-light); align-self: flex-start; border-radius: 0 10px 10px 10px; }
.msg.user { background: var(--color-gold); color: var(--color-dark); align-self: flex-end; border-radius: 10px 0 10px 10px; }
.chatbot-options { padding: 0 1.5rem 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chat-opt { background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold); padding: 0.5rem 1rem; font-size: 0.75rem; cursor: pointer; transition: 0.3s; }
.chat-opt:hover { background: var(--color-gold); color: var(--color-dark); }
.chatbot-input { display: flex; border-top: 1px solid rgba(234, 210, 172, 0.2); }
.chatbot-input input { flex: 1; background: transparent; border: none; padding: 1rem 1.5rem; color: var(--color-light); outline: none; font-family: var(--font-body); }
.chatbot-input button { background: transparent; border: none; padding: 0 1.5rem; color: var(--color-gold); cursor: pointer; }

/* === REVEAL ANIMATIONS === */
.fade-in { opacity: 0; transition: 1s ease; }
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-in.revealed { opacity: 1; }
.fade-up.revealed { opacity: 1; transform: translate(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-flex { flex-direction: column; gap: 4rem; }
  .image-frame { max-width: 500px; margin: 0 auto; }
  .menu-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .desktop-only { display: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .header-left, .header-right { flex: initial; }
  .header-center { flex: 1; order: -1; margin-bottom: 1rem; }
  
  .main-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-dark); display: flex; align-items: center; justify-content: center;
    transform: translateY(-100%); transition: var(--transition); z-index: 1000;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 2rem; text-align: center; }
  .nav-link { font-size: 1rem; }
  
  .hamburger { display: flex; position: relative; z-index: 1001; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  
  .booking-card { padding: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .chatbot-window { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100%; border: none; }
}



/* =====================================================
   AIOX MOBILE GLOBAL FIX — Prevent horizontal scroll
   ===================================================== */

/* 1. Força contenção total de largura */
html, body, #root {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

/* 2. Qualquer imagem não pode sair do container */
img {
  max-width: 100% !important;
  height: auto;
}

@media (max-width: 768px) {

  /* 3. Reset de padding lateral para todas as sections e containers */
  section, header, footer, nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. Qualquer div filho direto de section que tenha display:flex ou grid vira coluna */
  section > div,
  header > div,
  footer > div {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Remove padding grande de sections inline-styled */
  section[style*="padding"],
  div[style*="padding: 6rem"],
  div[style*="padding: 8rem"],
  div[style*="padding: 10rem"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* 6. Flexbox nav wrapping */
  nav > div,
  nav[style] {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* 7. Grid — força 1 coluna */
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 8. Split sections flex -> coluna */
  section[style*="display: flex"] {
    flex-direction: column !important;
  }
  section[style*="display: flex"] > div {
    width: 100% !important;
    flex: unset !important;
    min-width: unset !important;
  }

  /* 9. Tipografia responsiva */
  h1, h2 { font-size: clamp(1.8rem, 7vw, 2.8rem) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(1.2rem, 5vw, 1.6rem) !important; }

  /* 10. Botões full-width */
  a[class*="btn"], button[class*="btn"] {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    box-sizing: border-box !important;
  }

  /* 11. Altura hero mobile */
  section[style*="min-height: 100vh"],
  section[style*="min-height: 80vh"] {
    min-height: 70vh !important;
  }

  /* 12. Imagens em split sections */
  div[style*="flex: 1"] > img,
  div[style*="flex: 1"] {
    height: 300px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   AIOX MOBILE PROFESSIONAL FIX — Static v3.0
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; }

@media (max-width: 768px) {

  .container, .wrapper, .inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    max-width: 100% !important;
  }

  section, .section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    overflow: hidden !important;
  }

  .site-header, header {
    padding: 1rem 1.25rem !important;
  }

  .hero-section, .hero, [class*="hero"] {
    min-height: 65vh !important;
    height: auto !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-title, h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }

  h2, .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  h3 { font-size: 1.1rem !important; }
  p { font-size: 0.95rem !important; max-width: 100% !important; }

  .header-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
  }

  /* Ocultar nav links no mobile */
  .nav-links, .header-nav, nav ul { display: none !important; }

  /* Grids */
  .grid, .sec-grid, .fleet-grid, .about-grid, .testi-grid,
  [class*="grid-"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Cards de 2 colunas para mobile */
  .cards-grid, .inventory-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid, .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Split sections */
  .split-section, [class*="split"],
  .about-section > .container,
  .experience-section > .container {
    flex-direction: column !important;
  }

  /* Imagens de seção */
  .card-img, .about-img, [class*="-img"] {
    height: 220px !important;
    width: 100% !important;
  }

  /* Botões */
  .btn, .btn-vip, .btn-full, .btn-primary, .btn-secondary,
  [class*="btn-"], button {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    max-width: 100% !important;
  }

  /* Flex groups de botões */
  .btn-group, .hero-btns, .cta-btns,
  div:has(> .btn) {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}
