/* ============================================
   The Billiards Cafe and Kitchen — Styles
   Palette: emerald, charcoal, warm wood
   ============================================ */

:root {
  /* Emerald */
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-50: #ecfdf5;

  /* Charcoal */
  --charcoal-950: #0c0c0e;
  --charcoal-900: #111113;
  --charcoal-800: #1a1a1d;
  --charcoal-700: #252528;
  --charcoal-600: #2e2e32;
  --charcoal-500: #3d3d42;
  --charcoal-400: #6b6b70;
  --charcoal-300: #9a9a9e;
  --charcoal-200: #c4c4c7;
  --charcoal-100: #e4e4e6;
  --charcoal-50: #f5f5f6;

  /* Warm wood / amber */
  --wood-900: #451a03;
  --wood-800: #78350f;
  --wood-700: #92400e;
  --wood-600: #b45309;
  --wood-500: #d97706;
  --wood-400: #f59e0b;
  --wood-200: #fde68a;
  --wood-50: #fffbeb;

  /* Semantic */
  --bg-dark: var(--charcoal-900);
  --bg-card: var(--charcoal-800);
  --bg-elevated: var(--charcoal-700);
  --text-primary: var(--charcoal-50);
  --text-secondary: var(--charcoal-300);
  --text-muted: var(--charcoal-400);
  --accent: var(--emerald-500);
  --accent-hover: var(--emerald-400);
  --accent-dark: var(--emerald-700);
  --wood-accent: var(--wood-500);
  --border: var(--charcoal-600);
  --radius: 8px;
  --radius-lg: 12px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.logo:hover { color: var(--text-primary); }
.logo-accent {
  color: var(--wood-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav a:hover {
  color: var(--text-primary);
}
.nav-cta {
  color: var(--accent) !important;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--charcoal-900) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--charcoal-950) 0%, var(--charcoal-900) 40%, var(--emerald-900) 100%);
  background-size: 100% 100%;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23343d42' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-400);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--emerald-600);
  color: white;
}
.btn-primary:hover {
  background: var(--emerald-500);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-400);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--charcoal-400);
}
.btn-outline-light:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-400);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  color: white;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--charcoal-500), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-400);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.section-header--light .section-label { color: var(--emerald-300); }
.section-header--light .section-title { color: var(--text-primary); }

/* ----- Venue ----- */
.venue {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.venue-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.venue-card:hover {
  border-color: var(--emerald-700);
  box-shadow: 0 8px 32px rgba(4, 120, 87, 0.1);
}

.venue-card-inner {
  padding: 2rem;
}

.venue-card--main .venue-card-inner {
  border-left: 4px solid var(--emerald-600);
}

.venue-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.venue-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.venue-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Billiards ----- */
.billiards {
  position: relative;
  background: var(--emerald-900);
  color: var(--text-primary);
}

.billiards-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
}
.billiards-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23047557' fill-opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.billiards .container {
  position: relative;
  z-index: 1;
}

.billiards-content {
  max-width: 640px;
}

.billiards-lead {
  font-size: 1.1rem;
  color: var(--charcoal-100);
  margin-bottom: 1.5rem;
}

.billiards-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.billiards-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-200);
  font-size: 0.95rem;
}
.billiards-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--wood-400);
  border-radius: 50%;
}

/* ----- Menu ----- */
.menu {
  background: var(--bg-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}
.menu-card:hover {
  border-color: var(--wood-600);
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.menu-icon {
  font-size: 1.5rem;
}

.menu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.menu-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Experience ----- */
.experience {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.experience-item {
  text-align: center;
  padding: 1.5rem;
}

.experience-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.experience-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.experience-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----- Reserve ----- */
.reserve {
  position: relative;
  padding: 5rem 1.5rem;
}

.reserve-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--emerald-900) 100%);
}
.reserve-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
}

.reserve .container {
  position: relative;
  z-index: 1;
}

.reserve-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.reserve-content .section-label {
  color: var(--emerald-300);
}

.reserve-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.reserve-text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.reserve-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--charcoal-950);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-info h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-info a {
  color: var(--text-secondary);
}
.footer-info a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 4rem 1.5rem 2rem;
    background: var(--charcoal-900);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
  }
  .nav.nav-open {
    transform: translateX(0);
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
  .menu-toggle {
    display: flex;
    z-index: 101;
  }
  .menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-open + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-open + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-open + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .billiards-features {
    grid-template-columns: 1fr;
  }

  .reserve-actions {
    flex-direction: column;
  }
  .reserve-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}
