/*
Theme Name: elementor thema drop down fix
Theme URI: https://stijncoert.nl
Description: 1-op-1 WordPress-versie van de Lovable-site, met Elementor-compatibiliteit. Een luxe, minimalistische portfoliosite.
Author: Stijn Coert
Author URI: https://stijncoert.nl
Version: 1.0.0
Text Domain: luxe-stage-lovable-elementor
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: portfolio, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Luxury minimalist color palette */
  --background: 40 20% 98%;
  --foreground: 220 10% 20%;

  --card: 40 15% 97%;
  --card-foreground: 220 10% 20%;

  --popover: 40 20% 98%;
  --popover-foreground: 220 10% 20%;

  /* Gold accent - warm, elegant */
  --primary: 38 50% 45%;
  --primary-foreground: 40 20% 98%;

  /* Soft sand/beige secondary */
  --secondary: 35 25% 92%;
  --secondary-foreground: 220 10% 25%;

  --muted: 40 15% 94%;
  --muted-foreground: 220 8% 45%;

  /* Warm accent for highlights */
  --accent: 35 40% 88%;
  --accent-foreground: 220 10% 20%;

  --destructive: 0 65% 50%;
  --destructive-foreground: 40 20% 98%;

  --border: 35 20% 88%;
  --input: 35 20% 88%;
  --ring: 38 50% 45%;

  --radius: 0.5rem;

  /* Custom luxury tokens */
  --gold: 38 50% 45%;
  --gold-light: 38 45% 75%;
  --sand: 35 30% 85%;
  --cream: 40 25% 96%;
  --charcoal: 220 10% 25%;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(220 10% 20% / 0.08);
  --shadow-card: 0 8px 32px -8px hsl(220 10% 20% / 0.1);
  --shadow-gold: 0 4px 20px -4px hsl(38 50% 45% / 0.25);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-background: 40 20% 98%;
  --sidebar-foreground: 220 10% 20%;
  --sidebar-primary: 38 50% 45%;
  --sidebar-primary-foreground: 40 20% 98%;
  --sidebar-accent: 35 25% 92%;
  --sidebar-accent-foreground: 220 10% 20%;
  --sidebar-border: 35 20% 88%;
  --sidebar-ring: 38 50% 45%;
}

/* Dark mode variables */
.dark {
  --background: 220 15% 8%;
  --foreground: 40 15% 92%;

  --card: 220 15% 12%;
  --card-foreground: 40 15% 92%;

  --popover: 220 15% 10%;
  --popover-foreground: 40 15% 92%;

  --primary: 38 55% 55%;
  --primary-foreground: 220 15% 8%;

  --secondary: 220 12% 18%;
  --secondary-foreground: 40 15% 90%;

  --muted: 220 12% 18%;
  --muted-foreground: 40 10% 60%;

  --accent: 220 12% 20%;
  --accent-foreground: 40 15% 92%;

  --destructive: 0 60% 45%;
  --destructive-foreground: 40 15% 92%;

  --border: 220 12% 20%;
  --input: 220 12% 20%;
  --ring: 38 55% 55%;

  --gold: 38 55% 55%;
  --gold-light: 38 50% 40%;
  --sand: 220 12% 22%;
  --cream: 220 12% 14%;
  --charcoal: 40 10% 80%;

  --sidebar-background: 220 15% 10%;
  --sidebar-foreground: 40 15% 92%;
  --sidebar-primary: 38 55% 55%;
  --sidebar-primary-foreground: 220 15% 8%;
  --sidebar-accent: 220 12% 18%;
  --sidebar-accent-foreground: 40 15% 92%;
  --sidebar-border: 220 12% 20%;
  --sidebar-ring: 38 55% 55%;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.025em;
  margin: 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container-wide {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.container-narrow {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-narrow {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-narrow {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ==========================================================================
   Site Structure
   ========================================================================== */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 5rem;
  }
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

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

@media (min-width: 768px) {
  .site-header-inner {
    height: 5rem;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .site-logo-text {
    font-size: 1.5rem;
  }
}

.site-logo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
}

.site-nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent) / 0.5);
}

.site-nav-link.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

/* Dropdown Menu */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a,
.site-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-item-has-children > a:hover,
.site-nav-dropdown-toggle:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent) / 0.5);
}

.menu-item-has-children.active > a,
.site-nav-dropdown-toggle.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.site-nav-dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.menu-item-has-children:hover .site-nav-dropdown-icon,
.menu-item-has-children.is-open .site-nav-dropdown-icon {
  transform: rotate(180deg);
}

/* Submenu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem; /* Invisible hover bridge */
  min-width: 12rem;
  z-index: 50;
  opacity: 0;
  transform: scaleY(0.95) translateY(-0.5rem);
  transform-origin: top;
  transition: var(--transition-smooth);
  pointer-events: none;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
}

.sub-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.sub-menu-inner {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
}

.sub-menu > li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sub-menu > li:first-child {
  padding-top: 0.5rem;
}

.sub-menu > li:last-child {
  padding-bottom: 0.5rem;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children.is-open .sub-menu {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  pointer-events: auto;
}

.sub-menu li a {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.sub-menu li a:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent) / 0.5);
  padding-left: 1.25rem;
}

.sub-menu li a.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

/* Header CTA Button */
.site-header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-header-cta {
    display: block;
  }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
  animation: fadeIn 0.3s ease;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent) / 0.5);
}

.mobile-nav-link.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.mobile-nav-section {
  border-top: 1px solid hsl(var(--border) / 0.5);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.mobile-nav-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-luxury {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-gold);
}

.btn-luxury:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 6px 24px -4px hsl(var(--primary) / 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
}

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

.site-footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.footer-cta-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-cta-title {
    font-size: 2.25rem;
  }
}

.footer-cta-text {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.footer-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-cta-actions {
    flex-direction: row;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

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

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: hsl(var(--foreground));
}

.footer-brand-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

/* ==========================================================================
   Content Area (Elementor Compatible)
   ========================================================================== */

.entry-content-container {
  min-height: 50vh;
}

.entry-content {
  /* Elementor will handle the content styling */
}

/* Basic typography for non-Elementor content */
.entry-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.entry-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.entry-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.entry-content a:hover {
  text-decoration: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-balance {
  text-wrap: balance;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-gold-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--gold-light)), hsl(var(--primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}

/* Link underline animation */
.link-luxury {
  position: relative;
  display: inline-block;
}

.link-luxury::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: hsl(var(--primary));
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-luxury:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

/* Ensure Elementor containers work well */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 80rem;
}

/* Reset Elementor defaults that might conflict */
.elementor-widget-container {
  font-family: var(--font-sans);
}

.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6 {
  font-family: var(--font-serif);
}

/* ==========================================================================
   Dropdown submenu fixes (desktop)
   - Removes default UL padding that caused the submenu items to be indented
   - Makes hover/active background stretch fully to the left/right
   ========================================================================== */

@media (min-width: 1024px) {
  /* Reset browser default UL padding/margins for dropdowns */
  .site-nav-list .menu-item-has-children > .sub-menu {
    padding: 0.5rem 0 !important; /* top/bottom padding, no left/right */
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden; /* keeps hover background flush + respects border radius */
  }

  /* Turn the “hover bridge” into an invisible area ABOVE the dropdown */
  .site-nav-list .menu-item-has-children > .sub-menu::before {
    top: -0.5rem !important;
    height: 0.5rem !important;
  }

  /* Remove the extra top/bottom padding that was previously added per <li> */
  .site-nav-list .sub-menu > li,
  .site-nav-list .sub-menu > li:first-child,
  .site-nav-list .sub-menu > li:last-child {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
  }

  /* Make the hover/active background fill the full row */
  .site-nav-list .sub-menu > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0; /* full-width background, no inset rounded button look */
  }
}
