/* ============================================
   THE COMMONERS BAR - RICH MOODY HERITAGE
   Deep Merlot, Burnished Gold, Charcoal
   ============================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* === ROOT VARIABLES === */
:root {
  /* Rich Moody Palette */
  --bg-primary: #121212;
  /* Deep Charcoal */
  --bg-secondary: #1A1A1A;
  /* Lighter Charcoal */
  --bg-accent: #4A0404;
  /* Deep Merlot/Oxblood - The "Wow" Factor */

  --text-primary: #E5E5E5;
  /* Warm White */
  --text-secondary: #A3A3A3;
  /* Muted Silver */
  --text-gold: #C5A065;
  /* Burnished Gold */

  --accent-gold: #C5A065;
  /* Main Gold Accent */
  --accent-gold-hover: #E6C288;
  --accent-merlot: #5C0505;
  /* Brighter Merlot for hovers */

  --glass-dark: rgba(18, 18, 18, 0.95);
  --border-gold: rgba(197, 160, 101, 0.2);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  /* Luxurious, Roman-inspired */
  --font-body: 'Lato', sans-serif;

  /* Spacing */
  --spacing-container: 1200px;
  --header-height: 90px;

  /* Effects */
  --shadow-gold: 0 0 20px rgba(197, 160, 101, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-gold);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.05rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.drop-cap::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  margin-right: 1rem;
  font-family: var(--font-heading);
  color: var(--bg-accent);
}

/* === HEADER & "ORDER NOW" === */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.header.scrolled {
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  height: 80px;
}

.nav-container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 3px;
  position: relative;
}

.logo span {
  color: var(--accent-gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  position: relative;
  opacity: 0.8;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
  opacity: 1;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ORDER BUTTON - PROMINENT */
.btn-order {
  padding: 0.8rem 2rem;
  background: var(--bg-accent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid var(--bg-accent);
  box-shadow: 0 0 20px rgba(74, 4, 4, 0.4);
  animation: pulseGold 3s infinite;
}

.btn-order:hover {
  background: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(197, 160, 101, 0.3);
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 101, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(197, 160, 101, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 101, 0);
  }
}

.menu-toggle {
  display: none;
  color: var(--accent-gold);
  font-size: 1.8rem;
  background: none;
  border: none;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?w=1600') center/cover;
  filter: brightness(0.4) contrast(1.2);
  transform: scale(1.1);
  animation: drift 30s infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.0);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  max-width: 900px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent-gold);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.btn-hero {
  margin-top: 2rem;
  padding: 1rem 3rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
  background: transparent;
  transition: var(--transition);
}

.btn-hero:hover {
  background: var(--accent-gold);
  color: #000;
}

/* === SECTIONS === */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-merlot {
  background: linear-gradient(rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.9)), url('https://www.transparenttextures.com/patterns/dark-leather.png');
}

.container {
  max-width: 1200px;
  /* Strict max width */
  width: 90%;
  /* Mobile margin built-in */
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.align-left {
  text-align: left;
}

.section-title span {
  display: block;
  font-family: var(--font-body);
  color: var(--bg-accent);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* === MENU GRID (SHERPA KAI) === */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.menu-item {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, #1A1A1A, #151515);
  transition: var(--transition);
}

.menu-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.menu-price {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* === TIMELINE & GALLERY MERGE === */
.heritage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-gold);
}

.heritage-text {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heritage-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  filter: grayscale(50%);
  transition: var(--transition);
}

.heritage-layout:hover .heritage-img {
  filter: grayscale(0%);
}

.heritage-layout:nth-child(even) .heritage-text {
  order: 2;
}

/* Zigzag */

/* === CONTACT FORM === */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-top: 3px solid var(--accent-gold);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 2px solid #333;
  padding: 1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

button[type="submit"] {
  width: 100%;
  padding: 1.2rem;
  cursor: pointer;
}

/* === FOOTER === */
/* === FLAT & PROFESSIONAL FOOTER === */
.footer {
  background-color: #050505;
  /* Solid Flat Black */
  color: #888;
  padding: 4rem 0 0;
  font-family: var(--font-body);
  border-top: none;
  /* Clean look */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 Columns */
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #151515;
  text-align: left;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col p {
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #999;
}

.footer-col .logo span {
  color: var(--accent-gold);
}

/* Clean Social Icons */
.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 2px;
  text-decoration: none;
  transition: 0.3s;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
}

.social-icon:hover {
  background: var(--accent-gold);
  color: #000;
}

/* Subtle Developer Credit */
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #444;
}

.developer-credit span {
  color: #666;
  font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* === RESPONSIVE === */
/* === MOBILE MENU (Global Hide) === */
.mobile-menu {
  display: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {

  .nav-menu,
  .btn-order {
    display: none;
  }

  /* Hide regular menu */
  .menu-toggle {
    display: block;
  }

  /* Show toggle */

  .heritage-layout,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .heritage-layout:nth-child(even) .heritage-text {
    order: 0;
  }

  /* Mobile Menu Styles */
  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-bottom: 1px solid var(--accent-gold);
    /* display: none handled by global rule */
  }

  .mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-menu a {
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
  }
}