/* =========================
   Global Styles
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Header & Navigation
========================= */
.site-header {
  background-color: #6b4f2a; /* rustic brown */
  color: #fff;
  padding: 15px 0;
}

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

.brand {
  display: flex;
  align-items: center;
}

.logo-mark {
  background-color: #fff;
  color: #6b4f2a;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
  border-radius: 5px;
  margin-right: 10px;
}

.brand-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
}

.brand-text .tag {
  font-size: 0.9rem;
  font-weight: 400;
  color: #f0e6da;
}

/* Hamburger button */
.nav-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
}

/* Hide menu by default (mobile) */
.main-nav {
  display: none;
  width: 100%;
  text-align: center;
  background-color: #6b4f2a;
  padding: 10px 0;
}

/* When hamburger is clicked */
.main-nav.active {
  display: block;
}

.nav-list {
  list-style: none;
  flex-direction: column;
  gap: 10px;
}

.nav-list li a {
  color: #fff;
  padding: 5px 0;
  display: block;
}

.nav-list li a.active {
  text-decoration: underline;
}

/* =========================
   Hero Section
========================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.hero-text {
  text-align: center;
  margin-bottom: 15px;
}

.hero-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1rem;
}

.hero .btn {
  display: inline-block;
  background-color: #6b4f2a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
  font-weight: bold;
}

.hero-photo img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* =========================
   Intro Section
========================= */
.intro {
  margin: 30px 0;
}

.intro h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
}

.intro p {
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   Featured Brew / Cards
========================= */
.featured h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 15px;
}

.card-body h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.small-link {
  font-size: 0.9rem;
  color: #6b4f2a;
  font-weight: bold;
}

/* =========================
   About Page
========================= */
.about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto 0;
  border-radius: 10px;
}

/* =========================
   Recipes Page
========================= */
#amber, #ipa, #lager {
  margin-bottom: 20px;
}

/* =========================
   Gallery Page
========================= */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* =========================
   Footer
========================= */
.site-footer {
  background-color: #6b4f2a;
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
}

.footer-nav a {
  color: #fff;
  margin-right: 10px;
}

/* =========================
   Responsive Desktop Styles
========================= */
@media (min-width: 768px) {
  .nav-toggle {
    display: none !important; /* hide hamburger on desktop */
  }

  .main-nav {
    display: block !important;
    background: none;
    width: auto;
    padding: 0;
  }

  .main-nav.active {
    display: block !important; /* prevent toggle from affecting desktop */
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-text {
    text-align: left;
    max-width: 50%;
  }

  .hero-photo img {
    max-width: 45%;
  }

  .cards {
    flex-direction: row;
  }

  .card {
    flex: 1;
  }

  .about-content {
    flex-direction: column;
  }
}
