/* GoldenRaand Catering - Modern Redesign
   Created: 2025
   Author: Roo
*/

/* Base Styles & Reset */
:root {
  --primary-color: #b78c2e;
  --secondary-color: #721313;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --gray-color: #666;
  --light-gray: #eee;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --transition: all 0.3s ease;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b78c2e 100%);
  --dropdown-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  font-size: 16px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: var(--transition);
  height: 44px; /* vaste hoogte voor consistente uitlijning */
  vertical-align: middle;
}

.btn:hover {
  background: var(--secondary-color);
  color: white;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 10px;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Navigation */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  height: 80px; /* Zelfde hoogte als header-container */
}

.nav-item {
  position: relative;
  margin-left: 30px;
  display: flex;
  align-items: center;
  height: 100%; /* Gebruik de volledige hoogte van de nav-list */
}

.nav-link {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  height: 44px; /* Vaste hoogte voor desktopweergave */
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown Menu */  .nav-item.has-dropdown {
    position: relative;
  }
  /* Mobile specific dropdown position fix */
  @media (max-width: 768px) {
    .nav-item.has-dropdown {
      display: block !important;
      flex-direction: column !important;
      width: 100% !important;
    }
    
    .nav-item.has-dropdown .dropdown {
      position: static !important;
      transform: none !important;
      top: auto !important;
      left: auto !important;
      display: block !important;
      width: 100% !important;
    }
    
    /* Ensures border lines span full width */
    .nav-item, .dropdown-item {
      width: 100% !important;
      box-sizing: border-box !important;
    }
    
    /* Ensure dropdown items appear under the parent menu item */
    .nav-list .nav-item:not(.active) .dropdown {
      display: none !important;
    }
    
    /* Show the dropdown menu only when the parent item is active */
    .nav-list .nav-item.active .dropdown {
      display: block !important;
    }
  }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px; /* Increased width to prevent text wrapping */
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Smoother animation */
  z-index: 1000;
  border: 1px solid rgba(183, 140, 46, 0.1); /* Subtle golden border */
  overflow: hidden;
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient); /* Elegant gold accent on top */
}

.dropdown-list {
  list-style: none;
  padding: 8px 0;
}

.dropdown-item {
  padding: 0;
  position: relative;
}

.dropdown-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(0, 0, 0, 0.04); /* Subtle separator */
}  .dropdown-link {
    color: var(--dark-color);
    display: block;
    padding: 12px 20px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    transition: all 0.2s ease;
  }
    /* Ensure dropdown links are properly styled on mobile */
  @media (max-width: 768px) {
    .dropdown-link {
      white-space: normal !important; /* Allow text to wrap */
    }
    
    /* Fix for the main issue: ensuring dropdowns appear UNDER parent items */
    .nav-item.has-dropdown .dropdown {
      position: relative !important;
      left: 0 !important;
      top: 0 !important;
      width: 100% !important;
      transform: none !important;
      margin-top: 0 !important;
      display: block !important;
    }
      /* Control visibility with max-height instead of display/visibility properties */
    .nav-item.has-dropdown:not(.active) .dropdown {
      max-height: 0 !important;
      overflow: hidden !important;
    }
    
    .nav-item.has-dropdown.active .dropdown {
      max-height: 500px !important; /* Large enough to contain all items */
      display: block !important;
      position: relative !important;
      opacity: 1 !important;
      visibility: visible !important;
      float: none !important;
      clear: both !important;
    }
  }

.dropdown-link:hover {
  color: var(--primary-color);
  background-color: rgba(183, 140, 46, 0.04); /* Subtle gold hover effect */
  padding-left: 25px;
}

/* Make dropdown icon smaller and more elegant */
.small-icon {
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover .small-icon {
  opacity: 1;
  transform: translateY(1px);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  padding-top: 80px; /* Account for fixed header */
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* This is our fallback that will only show if the video fails to load */
.no-video .hero,
.hero.video-fallback {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.video-container video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* Improved video scaling for mobile devices - SEPARATE SECTION */
@media (max-width: 768px) {
  .video-container video {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    transform-origin: center;
    transform: translate(-50%, -50%) scale(1.5); /* Increased scale factor */
  }
  
  .hero {
    height: 70vh; /* Reduce height slightly on mobile */
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.section-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: var(--gray-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.feature-content {
  padding: 20px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-text {
  margin-bottom: 20px;
  color: var(--gray-color);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color:#f5f5f5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-color);
}

.testimonial-location {
  font-size: 0.9rem;
  color: var (--gray-color);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-detail {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  font-size: 20px;
  color: var(--primary-color);
}

.contact-text {
  color: var(--gray-color);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
}

contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-col p {
  margin-bottom: 15px;
  color: #bbb;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px; /* Match header height */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    /* Remove fixed height, use max-height on active */
    overflow-y: auto; /* Allow scrolling */
    max-height: 0; /* Start hidden */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .main-nav.active {
    /* Calculate max height based on viewport minus header */
    max-height: calc(100vh - 70px);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 20px 0;
    height: auto;
    width: 100%;
    align-items: flex-start;
  }
    .nav-item {
    margin: 0;
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }
  
  .nav-link {
    display: block;
    padding: 15px 20px; /* Verhoog padding voor betere touch target */
    width: 100%;
    box-sizing: border-box;
    height: auto !important; /* Belangrijk om de vaste hoogte te overschrijven */
    font-size: 16px; /* Iets grotere tekst voor betere leesbaarheid op mobiel */
    position: relative;
    align-items: initial; /* Reset de flex alignment */
  }
  
  /* Op mobiel willen we het pijltje onder de tekst */
  .nav-item.has-dropdown .nav-link .small-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }
  
  .nav-item.has-dropdown.active .nav-link .small-icon {
    transform: translateY(-50%) rotate(180deg);
  }
  
  .nav-link.btn {
    margin: 15px 20px;
    width: calc(100% - 40px);
    justify-content: center;
    display: flex; /* Behoud flex alleen voor de button */
    align-items: center;
    height: auto;
    padding: 12px 24px;
    text-align: center;
  }
    /* Dropdown menu fix for mobile */
  .dropdown {
    position: relative !important; /* Change to relative */
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none !important; /* Important om transformaties te overschrijven */
    max-height: 0;
    overflow: hidden;
    border: none;
    border-top: none;
    border-bottom: none;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    left: 0 !important; /* Force left alignment */
    margin: 0 !important; /* Remove any possible margin */
    padding: 0 !important; /* Remove any possible padding */
    display: block;
  }
  
  .dropdown::before {
    display: none;
  }
  .dropdown-list {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    display: block;
    position: static !important; /* Ensure it's static and doesn't use absolute positioning */
    float: none !important; /* Prevent floating */
  }  .dropdown-item {
    width: 100% !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    background-color: #f2f2f2; /* Lichtere achtergrond voor de hele dropdown-items */
    float: none !important; /* Prevent floating */
    clear: both !important; /* Ensure items stack vertically */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Lichte scheidingslijn tussen dropdown items */
  }
    .dropdown-item:not(:last-child)::after {
    left: 0;
    right: 0;
  }
    .dropdown-link {
    padding: 12px 20px 12px 45px !important; /* Meer inspringing aan de linkerkant */
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    width: 100% !important; 
    box-sizing: border-box !important;
    text-align: left !important;
    display: block !important;
    position: relative !important;
    font-size: 14px !important;
    background-color: #f2f2f2 !important; /* Lichtere achtergrond voor beter onderscheid */
    border-left: 4px solid #e5e5e5 !important; /* Lijn aan de linkerkant voor visuele hiërarchie */
  }
  
  .dropdown-link:hover {
    padding-left: 50px !important; /* Meer inspringing op hover */
    border-left-color: var(--primary-color) !important; /* Gouden kleur op hover */
  }
  
  .nav-item.has-dropdown.active .dropdown {
    max-height: 500px;
    border-top: 1px solid #e5e5e5;
    margin-top: 0 !important;
    position: relative !important;
    top: 0 !important;
    display: block !important;
    width: 100% !important;
  }
  
  .hero {
    height: 70vh; /* Reduce height slightly on mobile */
    padding: 150px 0 100px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .video-container video {
    width: 100%; /* Force width to 100% */
    height: 100%; /* Force height to 100% */
    object-position: center; /* Center the video */
    /* This will use a different scaling approach on mobile */
    object-fit: cover; /* Cover is still best for mobile */
    transform-origin: center;
    transform: translate(-50%, -50%) scale(1.5); /* Increased scale factor */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}