@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #ffcc29;       /* Amber / beer color */
  --primary-dark: #d28c11;
  --bg-dark: #0a0a0a;       /* Deep dark background */
  --bg-card: rgba(25, 25, 25, 0.85); /* Glassmorphism background */
  --text-light: #e0e0e0;
  --text-white: #ffffff;
  --text-muted: #9e9e9e;
  
  --font-main: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

.hero-logo {
  width: 250px;
  max-width: 80%;
  height: auto;
  margin-bottom: 1rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}


body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0; /* For fade-in effect on load */
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Glassmorphism utils */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 12px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1.2rem; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--primary);
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
}

/* Navigation Menu */
nav.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

nav.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4), var(--bg-dark));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Age Gate Specific */
#age-gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-dark);
  background-image: url('img/bg-agegate.jpg');
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#age-gate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(10, 10, 10, 0.85);
}

.age-gate-content {
  position: relative;
  z-index: 10000;
  max-width: 500px;
  padding: 3rem;
  border-radius: 12px;
}

.age-gate-content img.logo {
  width: 150px;
  margin-bottom: 2rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Footer */
footer {
  background-color: #050505;
  padding: 3rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-content h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grid for text/image splits */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.5s ease;
}
.split-img img:hover {
  transform: scale(1.02);
}

/* Cards for Cervejas and Equipe */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card-img {
  height: 250px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: var(--font-serif);
}

/* Forms & Inputs for Recursos */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
  font-family: var(--font-main);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

#recursos-locked {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

/* ================================= */
/* Responsive Design / Media Queries */
/* ================================= */

/* Tablets / Laptops */
@media (max-width: 1024px) {
  .container {
    padding: 3rem 1.5rem;
  }
  .split-section {
    gap: 3rem;
  }
}

/* Tablets Portrait / Large Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  nav.navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-canvas */
    height: 100vh;
    width: 250px;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1000;
    margin: 0;
    padding: 0;
    gap: 2rem;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .container {
    padding: 2.5rem 1rem;
  }
  
  .split-section, .split-section.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr; /* Reset reverse direction */
  }
  .split-section.reverse > * {
    direction: ltr; /* Reset reverse direction inner elements */
  }
  
  .hero-content {
    padding: 1.5rem;
  }
}

/* Mobile Phones (Smartphones) */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  p { font-size: 1rem; }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-logo {
    width: 150px;
  }
  
  .nav-logo {
    width: 32px;
    height: 32px;
  }
  
  nav.navbar {
    padding: 0.8rem;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .age-gate-content {
    padding: 2rem 1rem;
    max-width: 90%;
  }
  .age-gate-content img.logo {
    width: 120px;
  }
  .age-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .grid-container {
    grid-template-columns: 1fr; /* Switch to 1 column */
  }
}
