/* WaterMensen Custom Styles - Dutch Living Room Concept */

/* Custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Nixie+One&family=Cormorant+Garamond:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* Root variables */
:root {
  --wm-deep-blue: #1a3a5c;
  --wm-warm-blue: #2d6a9f;
  --wm-light-blue: #e8f0f7;
  --wm-ice-blue: #f0f6fb;
  --wm-warm-cream: #faf7f2;
  --wm-warm-sand: #f5efe6;
  --wm-terracotta: #c17f59;
  --wm-terracotta-light: #e8a878;
  --wm-forest: #3a6b5a;
  --wm-text: #2c3e50;
  --wm-text-light: #5a6b7d;
  --wm-white: #ffffff;
  --wm-gold: #d4a853;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--wm-text);
  background-color: var(--wm-warm-cream);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Nixie One', 'Cormorant Garamond', 'Playfair Display', serif;
}

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Dutch Living Room card style */
.living-room-card {
  background: var(--wm-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 58, 92, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.living-room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26, 58, 92, 0.14);
}

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(45, 106, 159, 0.7) 50%, rgba(58, 107, 90, 0.6) 100%);
}

/* Warm section backgrounds */
.section-cream { background-color: var(--wm-warm-cream); }
.section-sand { background-color: var(--wm-warm-sand); }
.section-ice { background-color: var(--wm-ice-blue); }
.section-deep { background-color: var(--wm-deep-blue); color: white; }

/* CTA Button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--wm-terracotta) 0%, var(--wm-terracotta-light) 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(193, 127, 89, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(193, 127, 89, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--wm-deep-blue);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--wm-deep-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--wm-deep-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--wm-deep-blue);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Navigation */
.nav-link {
  position: relative;
  color: var(--wm-text);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wm-terracotta);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--wm-terracotta);
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--wm-light-blue);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

/* Pricing cards */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(26, 58, 92, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.15);
}

.pricing-card.featured {
  border: 2px solid var(--wm-terracotta);
}

.pricing-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 20px;
  right: -32px;
  background: var(--wm-terracotta);
  color: white;
  padding: 4px 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
}

/* Water wave animation */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* Intersection observer driven */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Avatar circle */
.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--wm-light-blue);
}

/* Decorative elements */
.dot-pattern {
  background-image: radial-gradient(circle, var(--wm-warm-blue) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.06;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wm-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--wm-deep-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Responsive image container */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--wm-warm-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--wm-warm-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wm-deep-blue);
}

/* Contact form */
.form-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--wm-warm-blue);
  box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--wm-text);
}

/* Number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Water ripple effect on hover */
.ripple-hover {
  position: relative;
  overflow: hidden;
}

.ripple-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(45, 106, 159, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ripple-hover:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .testimonial-card::before {
    font-size: 60px;
  }
  
  .pricing-card {
    padding: 32px 24px;
  }
}

/* Logo-Styling - aehnlich wie Original WaterMensen */
.logo-text { font-family: 'Nixie One', 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: 0.02em; }
.logo-block { gap: 1px; }
.logo-title { font-size: 1.25rem; line-height: 1.15; }
.logo-subtitle { font-size: 0.6rem; line-height: 1.15; letter-spacing: 0.12em; }

/* Nav logo: display wide logo properly */
.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.nav-logo-img-small {
  height: 32px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

/* Footer logo */
.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* Teacher image on contact page */
.teacher-portrait { border-radius: 20px; box-shadow: 0 8px 32px rgba(26, 58, 92, 0.15); }



/* === MOBILE FIXES (2026-04-02 v3) === */

/* Mobile: Show logo text block in header - IDENTICAL to desktop */
@media (max-width: 639px) {
  /* Force logo-block visible on mobile despite Tailwind hidden class */
  nav .logo-block,
  nav .logo-block.hidden,
  nav div.logo-block,
  header .logo-block,
  header .logo-block.hidden,
  .logo-block.hidden.sm\:flex {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  /* Keep logo text SAME SIZE as desktop */
  /* Desktop: .logo-title: 1.25rem, .logo-subtitle: 0.6rem */
  nav .logo-text.logo-title,
  header .logo-text.logo-title {
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
  }
  
  nav .logo-text.logo-subtitle,
  header .logo-text.logo-subtitle {
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.12em !important;
  }
  
  /* Keep logo image same size as desktop */
  nav .nav-logo-img,
  header .nav-logo-img {
    height: 40px !important;
    max-width: 110px !important;
  }
}

/* Mobile navigation slide-out panel - solid background */
@media (max-width: 768px) {
  /* Mobile menu panel: solid white background, no transparency */
  #mobile-menu,
  .mobile-menu,
  div#mobile-menu,
  div.mobile-menu {
    background-color: #ffffff !important;
    background: #ffffff !important;
    box-shadow: -4px 0 24px rgba(26, 58, 92, 0.18) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  
  /* When open, ensure full opacity & solid white */
  #mobile-menu.open,
  .mobile-menu.open,
  div#mobile-menu.open {
    background-color: #ffffff !important;
    background: #ffffff !important;
    opacity: 1 !important;
  }

  /* Inner padding area also solid white */
  #mobile-menu > div,
  #mobile-menu .p-6 {
    background-color: #ffffff !important;
  }
  
  /* Mobile menu links - ensure good contrast on white bg */
  #mobile-menu a {
    color: #2c3e50 !important;
  }
  
  /* Active link in mobile menu */
  #mobile-menu a.text-wm-terra,
  #mobile-menu a:first-child {
    color: #c17f59 !important;
  }
  
  /* Mobile menu overlay backdrop */
  #menu-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  /* Add subtle top border to separate menu header from links */
  #mobile-menu .flex.flex-col.gap-4 {
    border-top: 1px solid #e8f0f7;
    padding-top: 16px;
  }
}

/* Footer logo block styling */
footer .logo-block {
  gap: 1px;
}

footer .logo-title {
  font-size: 1.25rem;
  line-height: 1.15;
}

footer .logo-subtitle {
  font-size: 0.6rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
}
