/*
Theme Name: Rode Hoed Brouwerij
Theme URI: https://brouwerijderodehoed.nl
Author: De Rode Hoed
Author URI: https://www.instagram.com/brouwerijderodehoed/
Description: Een custom WordPress-thema voor Brouwerij De Rode Hoed. Modern met een knipoog, volledig eigen stijl.
Version: 1.1 (cleaned)
License: GNU GPL v2 or later
Text Domain: rode-hoed-brouwerij
*/

/* =========================
   1) Basis & Typografie
   ========================= */
@font-face {
  font-family: 'Spil';
  src: url('Fonts/spilmrg_.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* hoogte van je balk met logo/menu; pas aan als je nav hoger/lager wordt */
  --nav-height: 100px;
}

body {
  font-family: 'Spil', sans-serif;
  font-size: 40px;
  line-height: 1.6;
  margin: 0;
  background-color: #FFF;
  color: #1a1a1a;
}

.container { padding: 2rem; }

/* =========================
   2) Header & Navigatie
   ========================= */
header {
  width: 100%;
  overflow: visible; /* i.p.v. overflow-x: hidden;  -> dropdown kan vrij vallen */
  background: url('https://derodehoed.com/wp-content/uploads/2025/07/Lekker-Weissje-background.png') no-repeat center center;
  background-size: cover;
  height: 250px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Topbalk met logo + menu */
.nav-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
}

.logo-img {
  display: block;
  max-width: 100px;
  height: auto;
}

/* Menu (desktop) */
.main-menu { display: flex; }
.menu-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li { position: relative; }
.menu-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* Submenu (desktop hover) */
.menu-list li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #b02b33;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}
.menu-list li:hover > ul { display: block; }
.menu-list li ul li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
}
.menu-list li ul li a:hover { background: #a1242c; }

/* Hamburger knop (verborgen op desktop) */
.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* Slogan onder headerbalk */
.slogan-onder {
  text-align: center;
  color: #000;
  font-family: 'Spil', sans-serif;
  font-size: 3rem;
  margin: 1rem auto;
}

/* =========================
   3) Footer
   ========================= */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* =========================
   4) Pagina-specifieke stijlen
   ========================= */
/* Soepele Slurper (page-id-24) */
body.page-id-24 {
  background: url("https://derodehoed.com/wp-content/uploads/2025/06/Soeplee-Slurper-pattern-1920x1080-px.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}
.page-id-24 h2:first-of-type { display: none !important; }
body.page-id-24 header {
  background: none !important;
  height: auto;           /* geen grote lege header */
  margin-top: 2rem;       /* header iets naar beneden */
}
body.page-id-24 .slogan-onder { display: none !important; }

/* Contentblok op productpagina */
.page-id-24 .bier-pagina {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: rgba(0,0,0,0.9);
  border-radius: 1rem;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.3rem;
  line-height: 1.6;
}
.page-id-24 .bier-pagina img {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  border-radius: 1rem;
}
.page-id-24 .bier-pagina ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* Dikke Slurper (page-id-26) */
body.page-id-26 {
  background: url("https://derodehoed.com/wp-content/uploads/2025/06/Dikke-Slurper-BG-1920x1080-px.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  position: relative;
  z-index: 1;
}
.page-id-26 h2:first-of-type { display: none !important; }
body.page-id-26 header {
  background: none !important;
  height: auto;
  margin-top: 2rem;
}
body.page-id-26 .slogan-onder { display: none !important; }

/* Overzicht “Onze bieren” */
.bieren-overzicht {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}
.bier { max-width: 300px; text-align: center; }
.bier img { width: 100%; height: auto; border-radius: 12px; }
.bier a {
  display: inline-block;
  background: #d0363d;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* “Over ons” secties met alternate font */
.page-id-98 h2 { display: none !important; }
.over-ons-inhoud,
.gypsy-brewers-blok {
  font-family: 'Roboto Mono', monospace;
}

/* Hop-icoon bullets */
.hop-list {
  list-style: none;
  padding-left: 2.2rem;
}
.hop-list li {
  background-image: url(https://derodehoed.com/wp-content/uploads/2025/08/PHop-icon.png);
  background-repeat: no-repeat;
  background-position: 0 5px;
  background-size: 18px 18px;
  padding-left: 2rem;
  margin-bottom: 0.3rem;
}

/* =========================
   5) Responsive
   ========================= */
/* Tablet/Mobiel algemene tweaks */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    justify-content: space-between;
    align-items: center;
  }

  .logo-img { max-width: 80px; height: auto; }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    margin-right: 0;
  }

  /* Content-stacks */
  .over-ons-inhoud > div,
  .gypsy-brewers-blok .flex-container {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .gypsy-brewers-blok,
  .over-ons-inhoud {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gypsy-brewers-blok img,
  .over-ons-inhoud img {
    width: 100%;
    height: auto;
  }

  /* Soepele Slurper spacing */
  .page-id-24 .bier-pagina { padding: 1.5rem; }
}

/* ================
   Mobiel menu: overlay (los van header)
   ================ */
@media (max-width: 768px) {
  /* Basis: verborgen en los van header */
  header .main-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    background-color: #d0363d;
    padding: 1rem 1.25rem;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
  }
  header .main-menu.active {
    display: flex;
    animation: slideDown 0.18s ease-out;
  }

  /* Mobiel submenu inline */
  header .main-menu .menu-list { flex-direction: column; gap: 0; }
  header .main-menu .menu-list li { padding: 0.5rem 0; }
  header .main-menu .menu-list li a {
    display: block;
    padding: 0.5rem 0.25rem;
    font-size: 1.2rem;
  }
  header .main-menu .menu-list li ul {
    position: static;
    background: #b02b33;
    box-shadow: none;
    margin-top: 0.25rem;
  }

  /* Body niet scrollen als menu open is */
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* =========================
   6) Animaties
   ========================= */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-id-26 .product-beschrijving {
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem; /* beetje zijruimte op mobiel */
}