@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* ===== Basisstijl voor de hele pagina ===== */
/* Zorgt voor algemene lettertypes, achtergrondkleur en tekstopmaak */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #E9DCC9;
}

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

/* ===== Navigatiebalk (Navbar) ===== */
/* Stijlt de vaste navigatiebalk bovenaan de pagina */
.navbar {
  background-color: #F5EFE6;
  color: #4B2E1D;
  padding: 1rem 0;
  position: fixed; /* Zorgt dat de navbar altijd bovenaan blijft */
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.6s ease, color 0.6s ease; /* Soepele overgang bij scrollen */
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #4B2E1D;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    margin-top: 1rem;
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
}

.navbar .container {
  width: 95%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0;
  color: #4B2E1D;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  border: 2px solid #4B2E1D; /* zelfde kleur als tekst */
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.logo a {
  color: inherit;
  text-decoration: none;
  position: relative;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.navbar .nav-links a {
  position: relative; /* Nodig voor de ::after-underline */
  color: #4B2E1D;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: right;
    padding-left: 0;
    margin-top: 1rem;
  }

  .navbar .container {
    flex-direction: column;
    align-items: right;
  }
}

/* Hover-animatie: underline verschijnt bij hover */
.navbar .nav-links a::after {
  content: '';
  position: absolute; /* Positioneert de lijn onder de tekst */
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease; /* Soepele animatie van de lijn */
}

.navbar .nav-links a:hover::after {
  width: 100%; /* Lijn groeit naar volledige breedte bij hover */
}

.navbar.scrolled {
  background-color: #4B2E1D; /* Donkere achtergrond bij scrollen */
}

.navbar.scrolled .nav-links a {
  color: #F5EFE6;
}

.navbar.scrolled .logo {
  color: #F5EFE6;
  border-color: #F5EFE6; /* Lichtere kleur bij donkere navbar */
}

.navbar.scrolled .menu-toggle {
  color: #F5EFE6;
  border-color: #F5EFE6; /* Lichtere kleur bij donkere navbar */
}

/* ===== Hero sectie ===== */
/* Stijlt het grote welkom-blok bovenaan de pagina */
.hero {
  background-color: #F5EFE6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-left: 60px;
  padding-right: 60px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-image {
  text-align: right;
  max-width: 600px;
  margin-right: 100px;
}

.hero-image img {
  max-width: 130%;
  width: 130%;
  height: auto;
  border-radius: 12px;
  filter: grayscale(97%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #4B2E1D;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
  line-height: 1.1;
  transition: color 0.3s ease; /* Soepele overgang van tekstkleur */
  opacity: 0;
  transform: translateY(50px);
  margin-left: 0;
  padding-left: 0;
}

.hero-subtext {
  font-size: 1.5rem;
  font-style: italic;
  color: #7D2E2E;
  margin-left: 1rem;
  white-space: nowrap;
}

.hero h3 {
    text-align: left;
    padding-left: 10vb;
    font-style: italic;
}

.hero .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #F5EFE6;
  color: white;
  text-decoration: none;
  margin-top: 1rem;
  border-radius: 5px;
}

.hero .btn:hover {
  background-color: #555;
}

/* Fade-in animatie voor hero-elementen */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 400px) {
  .hero {
    padding-top: px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1;
  }

  .hero-subtext {
    font-size: 0.7rem;
  }

  .hero-image {
    text-align: center;
    width: 90%;
    padding-top: 10px;
  }
}

@media (min-width: 401px) and (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-image {
    text-align: center;
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
  background-color: #F5EFE6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-left: 60px;
  padding-right: 60px;
}
  .hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 70%;
}

.hero-image {
  text-align: center;
  max-width: 600px;
  margin-right: 100px;
}
}


/* ===== Scroll-indicator onderaan de hero ===== */
/* Geeft aan dat je kunt scrollen, met animatie */
.scroll-down {
  position: absolute; /* Plaatst de indicator vast onderaan de hero */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #4B2E1D;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
  user-select: none;
  animation: pulse 2s infinite; /* Laat de tekst pulseren */
}

.arrow {
  font-size: 1.5rem;
  animation: bounce 2s infinite; /* Laat het pijltje op en neer bewegen */
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Divider (scheidingslijn) ===== */
/* Een horizontale lijn met verloop als visuele scheiding */
.divider {
  background-color: #eaeaea;
  height: 2px;
  width: 80%;
  margin: 0 auto;
  background: linear-gradient(to right, #4B2E1D, #A0522D, #4B2E1D);
  opacity: 0.4;
}

/* ===== Menukaart sectie ===== */
.menukaart {
  padding: 40px 0;
  background-color: #F5EFE6;
  text-align: center;
}

.menukaart h2 {
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #4B2E1D;
}

.menukaart .container {
  max-width: 1300px;
}

.menukaart img {
  max-width: 70%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  will-change: transform;
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}

@media (max-width: 768px) {
  .menukaart img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  will-change: transform;
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}
}

/* ===== Barista Workshop sectie ===== */
.workshop {
  padding: 40px 0;
  background-color: #F5EFE6;
  text-align: center;
}

.workshop h2 {
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #4B2E1D;
}

.workshop .container {
  max-width: 1300px;
}

.workshop img {
  max-width: 70%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  will-change: transform;
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}

@media (max-width: 768px) {
  .workshop img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  will-change: transform;
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}
}

/* ===== Producten sectie ===== */
.producten {
  padding: 20px 0;
  background-color: #E9DCC9;
  text-align: center;
  color: #4B2E1D;
}

.producten h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.producten p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
}

/* Knop in producten sectie */
.product-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #4B2E1D;
  color: #F5EFE6;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

/* ===== Product single pagina styling ===== */
.product-single {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.product-single img {
  width: 300px;
  height: 375px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.product-single img:hover {
  transform: scale(1.05);
}

.product-details {
  max-width: 450px;
  font-family: 'Poppins', sans-serif;
  color: #4B2E1D;
}

.product-details h2, .product-details h3 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #3E1E0E;
}

.product-details p {
  font-size: 1.2rem;
  color: #6B4B3B;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.product-details .prijs {
  font-weight: 700;
  font-size: 1.5rem;
  color: #7A4E32;
  margin-bottom: 2rem;
  display: block;
}

/* ===== Product grid styling ===== */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.product-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 200px;
  margin-bottom: 1rem;
}

.product-item h3 {
  font-family: 'Poppins', sans-serif;
  color: #4B2E1D;
  margin-bottom: 0.5rem;
}

.product-item p {
  font-family: 'Poppins', sans-serif;
  color: #5C3A2E;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-item .prijs {
  font-weight: 600;
  font-size: 1.1rem;
  color: #7A4E32;
}

/* Responsive aanpassingen voor productpagina */
@media (max-width: 768px) {
  .product-single {
    flex-direction: column;
    padding: 1.5rem;
  }

  .product-single img {
    width: 100%;
    height: auto;
  }

  .product-details {
    max-width: 100%;
    margin-top: 1.5rem;
  }
}

/* ===== Footer ===== */
/* Stijlt het onderste gedeelte met contact, info en social media */
.footer {
  background-color: #4B2E1D;
  padding-top: 40px;
  color: #F5EFE6;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 80px;
  max-width: 1400px;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.footer-section {
  flex: 1 1 250px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #F5EFE6;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #F5EFE6;
  text-decoration: none;
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.footer-section a {
  position: relative;
}

.footer-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-info {
  flex: 1 1 400px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-info p, .footer-info a {
  margin: 0.3rem 0;
  color: #F5EFE6;
  text-decoration: none;
}

.footer .copyright {
  width: auto;
  margin-top: 3rem;
  font-family: 'Poppins', sans-serif;
  color: #F5EFE6;
  font-size: 0.9rem;
  padding-left: 0;
}

/* Footer link underline animatie */
/* De ::after zorgt voor een animatie van een lijn onder de link bij hover */
.footer-info a,
.footer-social ul li a {
  position: relative; /* Nodig voor de positionering van de ::after */
  color: #F5EFE6;
  text-decoration: none;
  transition: color 0.3s ease; /* Soepele overgang van de tekstkleur */
}

.footer-info a::after,
.footer-social ul li a::after {
  content: '';
  position: absolute; /* Positioneert de lijn onder de tekst */
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease; /* Laat de lijn animeren bij hover */
}

.footer-info a:hover::after,
.footer-social ul li a:hover::after {
  width: 100%; /* Lijn groeit naar volledige breedte bij hover */
}

.footer-social {
  flex: 1 1 200px;
  font-family: 'Poppins', sans-serif;
  color: #F5EFE6;
}

.footer-social h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social ul li {
  margin-bottom: 0.7rem;
}

.footer-social ul li a {
  color: #F5EFE6;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-map {
  flex: 1 1 400px;
  max-width: 600px;
  box-shadow: 0 8px 20px rgba(75, 46, 29, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 12px;
  display: block;
}

.instagram-feed {
  background-color: #F5EFE6;
  padding: 80px 0;
  text-align: center;
}

.instagram-feed h2 {
  font-family: 'Poppins', sans-serif;
  color: #4B2E1D;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.instagram-feed p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #7A4E32;
  margin-bottom: 2rem;
}

.insta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.instagram-media {
  max-width: 300px;
  min-width: 250px;
}
.footer-section a[href^="tel"],
.footer-section a[href^="mailto"] {
  color: #F5EFE6;
  text-decoration: none;
}

.footer-section a[href^="tel"]:hover::after,
.footer-section a[href^="mailto"]:hover::after {
  width: 100%;
}

/* ===== Preloader styles ===== */
/* Stijlt het laadscherm dat verschijnt vóór de pagina geladen is */
#preloader {
  position: fixed; /* Zorgt dat de preloader het hele scherm bedekt */
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D6C2B5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.preloader-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4B2E1D;
  margin-bottom: 20px;
  white-space: nowrap;
}

.preloader-bar-container {
  width: 0;
  height: 6px;
  background-color: #7A4E32;
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background-color: #A0522D;
  animation: loading 3s forwards; /* animatie speelt 1 keer en blijft staan */
  animation-timing-function: ease-in-out;
}

@media (max-width: 768px) {
  #preloader {
    padding: 1rem;
  }

  .preloader-text {
    font-size: 1.8rem;
    white-space: normal;
    text-align: center;
  }

  .preloader-bar-container {
    max-width: 280px;
    width: 100%;
  }
}