/* ===== Algemene Basis ===== */

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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}

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

.container.center {
  display: block;
  width: 100%;
}

.center {
  text-align: center;
}

.center h2 {
  text-align: center;
  margin: 0 auto 1rem auto;
}

/* ===== Header & Navigatie ===== */

header {
  background: #fff;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
}

.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #da942f;
}

.cta {
  background: #da942f;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 50%;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text span {
  color: #da942f;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-height: 250px;
  width: auto;
}

/* ===== Cards Section ===== */

.cards {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 30%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* ===== Brouwerij Layout ===== */

.brouwerij-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  gap: 2rem;
}

.map-placeholder {
  flex: 1;
  background: #f5f5f5;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.brouwerij-layout a.button {
  background: #da942f;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
}

/* ===== Brouwerijpagina ===== */

.brewery-container {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: stretch; /* <- Zorgt voor gelijke hoogte */
  flex-wrap: wrap;
}

.brewery-block {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brewery-block:nth-child(1),
.brewery-block:nth-child(2) {
  flex: 1 1 24%;
  max-width: 24%;
}

.brewery-history {
  flex: 2 1 46%;
  max-width: 46%;
}


.brewery-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brewery-info p,
.brewery-history p {
  margin: 0.2rem 0;
 line-height: 1.3;
}



/* ===== Carrousel Sectie ===== */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
}

.beer-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
}

.beer-item {
  min-width: 220px;
  max-width: 240px;
  flex: 0 0 auto;
  background: #fdfdfc;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.beer-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #555;
  padding: 0 0.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: #f0f0f0;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* ===== Footer ===== */

footer {
  text-align: center;
  padding: 1rem 0;
  background: #fafafa;
  margin-top: 2rem;
  border-top: 1px solid #eee;
}

/* ===== Responsiviteit ===== */

@media (max-width: 768px) {
  .hero,
  .cards,
  .brouwerij-layout,
  .brewery-container {
    flex-direction: column;
    text-align: center;
  }

  .brewery-block,
  .brewery-history {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .beer-item {
    min-width: 70%;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .menu-icon {
    display: block;
  }

  input#menu-toggle:checked ~ .menu {
    display: flex;
  }
}
