/*
Theme Name: Tema Garage Fight
Theme URI: https://wordpress.org/
Author: AI Theme Generator
Author URI: https://wordpress.org/
Description: Tema WordPress PHP Cinematográfico e responsivo para Garage Fight (Restaurante / Gastronomia).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garage-fight
Tags: custom-colors, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* ==========================================================================
   Reset & CSS Variables Cinematográficas
   ========================================================================== */
:root {
  --primary-color: #CCFF00;
  --primary-contrast: #0f172a;
  --secondary-color: #0F0F0F;
  --accent-color: #3b82f6;
  --dark-bg: #0b0f19;
  --dark-card: #141b2d;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --overlay-gradient: linear-gradient(180deg, rgba(11, 15, 25, 0.45) 0%, rgba(11, 15, 25, 0.85) 100%);
  --shadow-cinematic: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation (Glassmorphic / Sticky / Mobile Responsive)
   ========================================================================== */
/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 1rem 0;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header.scrolled {
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.7rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-logo-link img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-header-cta:hover {
  background: #15803d !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  color: #ffffff !important;
}

/* Primary Menu (Desktop) */
.primary-menu {
  display: flex;
  align-items: center;
}

.primary-menu ul,
.primary-menu .menu-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.primary-menu a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  display: inline-block;
  text-decoration: none;
  transition: all 0.25s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  width: calc(100% - 1.7rem);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-menu {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9998;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  }

  .primary-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-menu .menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .primary-menu a {
    text-align: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    font-size: 0.95rem;
  }

  .primary-menu a::after {
    display: none;
  }
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-contrast, #ffffff) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-header-cta {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Hero Cinematográfico (Regra 2 - Vídeo com Fallback)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.35rem;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Efeitos Cinematográficos em CSS Puro (Regra 3)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible, .fade-in.js-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible, .slide-up.js-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Sutil */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (hover: none), (max-width: 768px) {
  .parallax-section, .hero-section {
    background-attachment: scroll;
  }
}

/* ==========================================================================
   Seções & Cards
   ========================================================================== */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1.125rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  padding: 2.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #e2e8f0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

/* Star Rating */
.star-rating {
  color: #f59e0b;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* Responsividade Mobile e Drawer de Navegação */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    padding: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    z-index: 9998;
  }

  body.admin-bar .primary-menu {
    top: 92px;
  }

  @media screen and (max-width: 782px) {
    body.admin-bar .primary-menu {
      top: 106px;
    }
  }

  .primary-menu.is-active {
    max-height: 85vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.75rem;
  }

  .primary-menu ul,
  .primary-menu .menu-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    align-items: stretch;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #ffffff;
  }

  .primary-menu a:hover,
  .primary-menu a:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: #ffffff;
  }

  .primary-menu a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-padding { padding: 4rem 0; }
  .btn-header-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
}

