:root {
  /* Dark Mode Colors */
  --primary-color: #fbbf24;
  /* Amber 400 */
  --primary-hover: #d97706;
  /* Amber 600 */

  --background-color: #111827;
  /* Gray 900 */
  --surface-color: #1f2937;
  /* Gray 800 */

  --text-main: #f3f4f6;
  /* Gray 100 */
  --text-muted: #9ca3af;
  /* Gray 400 */

  --border-color: #374151;
  /* Gray 700 */
  --accent-blue: #38bdf8;
  /* Sky 400 */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --container-width: 1200px;

  /* Shadows (Dark Mode) */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--text-main);
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Hero Section */
/* Hero Section */
.hero {
  padding: 2rem 0;
  background-color: #fffbeb;
  /* Amber 50 */
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
  }
}

.hero-text {
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(to right, #92400e, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3);
  transition: all 0.2s;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.4);
}

/* Grid & Cards */
.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.beer-card {
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.beer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  height: 200px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.card-image img {
  max-height: 160px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beer-card:hover .card-image img {
  transform: scale(1.1) rotate(2deg);
}

.card-image::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 0;
}

.card-content {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.stat-badge {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-badge.low-carb {
  background-color: #dcfce7;
  color: #166534;
}

.stat-badge.gluten-free {
  background-color: #fff7ed;
  color: #c2410c;
}

.stat-badge.alcohol-free {
  background-color: #eff6ff;
  /* Blue 50 */
  color: #1e40af;
  /* Blue 800 */
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Critical Theme Overrides & Global Resets */
:root {
  --primary-color: #fbbf24;
  --primary-hover: #d97706;
  --background-color: #111827;
  --surface-color: #1f2937;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #374151;
}

body {
  background-color: var(--background-color) !important;
  color: var(--text-main) !important;
}

#main-header {
  position: sticky;
  top: 0;
  background-color: var(--surface-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
  z-index: 99999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.logo_container {
  float: left;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main) !important;
  text-decoration: none;
}

.logo span {
  color: var(--primary-color) !important;
}

#et-top-navigation {
  float: right;
  padding: 20px 0;
}

#top-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

#top-menu li a {
  color: var(--text-muted) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

#top-menu li a:hover,
#top-menu li a.active {
  color: var(--primary-color) !important;
}

#et-main-area {
  background-color: var(--background-color) !important;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

#main-footer {
  background-color: #0f1115 !important;
  color: #6b7280 !important;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color) !important;
}

/* Card Dark Mode Overrides */
.beer-card {
  background-color: var(--surface-color) !important;
  border-color: var(--border-color) !important;
}

.card-image {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.card-image::after {
  display: none !important;
}

.card-title {
  color: var(--text-main) !important;
}

.card-description {
  color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main) !important;
}

p {
  color: var(--text-muted) !important;
}

/* Hero Adjustment */
.hero {
  background-color: #171717 !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  background-clip: padding-box;
}

/* Aggressive Border/Line Removal */
.container,
#page-container,
#et-main-area,
.et_pb_section,
.et_pb_row,
#main-content {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Remove default Divi sidebar separator line */
#main-content .container::before {
  display: none !important;
  width: 0 !important;
  background-color: transparent !important;
}

/* Make links in blog content obvious */
article p a,
.entry-content p a {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.hero h1 {
  background: linear-gradient(to right, #fbbf24, #d97706) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Fix Divi White Background Overrides */
#main-content,
.container {
  background-color: transparent !important;
}

/* Language Switcher Buttons */
.lang-btn {
  display: block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  color: var(--text-muted);
  background-color: transparent;
}

.lang-btn:hover {
  color: var(--primary-color);
}

#top-menu .lang-btn.active {
  background-color: var(--primary-color);
  color: #000000 !important;
  cursor: default;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

  #et-top-navigation,
  .logo_container {
    float: none;
    text-align: center;
    padding: 10px 0;
  }

  #main-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #top-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #top-menu li a {
    font-size: 1rem;
    padding: 5px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

#mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s;
  background-color: var(--text-main);
}

/* Mobile Menu Animation */
#mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsiveness */
@media (max-width: 980px) {

  /* Main Header Layout */
  #main-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Reset Divi Floats */
  .logo_container,
  #et-top-navigation {
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Logo Styling */
  .logo_container {
    flex: 1;
    text-align: left;
  }

  /* Toggle Button */
  #mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    /* Ensure it stays in flow or can be positioned */
    margin-left: auto;
    /* Push to right */
  }

  /* Navigation Container (Hidden by default) */
  #et-top-navigation {
    display: none !important;
    position: fixed !important;
    top: 70px;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 400px !important;
    /* Ensure enough space */
    background-color: #1f2937 !important;
    padding: 0 0 100px 0;
    /* Huge padding to force scroll */
    z-index: 999999 !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.8);
    margin: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }



  /* Fix positioning relative to container padding */
  #main-header .container {
    position: relative;
  }

  /* Remove any previous offsets/transforms */
  #et-top-navigation {
    transform: none !important;
    margin-left: 0 !important;
  }

  /* Show when open */
  #et-top-navigation.open {
    display: block !important;
  }

  /* Ensure all internal wrappers expand */
  #top-menu-nav,
  #top-menu {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Nav List Items */
  #top-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding-bottom: 20px !important;
  }

  #top-menu li {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  #top-menu li a {
    display: block !important;
    padding: 15px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    background-color: transparent !important;
  }

  #top-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
  }

  /* Center the Language Switcher */
  #top-menu li.lang-switch {
    display: flex !important;
    justify-content: center !important;
    border: none !important;
    margin: 20px 0 10px 0 !important;
    padding: 0 !important;
  }

  /* Specific overrides for Language Buttons to look like buttons, not menu links */
  #top-menu li.lang-switch a.lang-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 8px 20px !important;
    border-bottom: none !important;
    margin: 0 5px !important;
    background-color: transparent !important;
    border: 1px solid #4b5563 !important;
    /* Add border */
    border-radius: 6px !important;
  }

  #top-menu li.lang-switch a.lang-btn.active {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    border-color: var(--primary-color) !important;
  }
}