/* ============================================
   HET REINHART HUIS - Design System
   Warm, Caring, Trustworthy Home Care
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
  /* Neutrals / Backgrounds */
  --color-bg: #F7FAFF;
  --color-surface: #FFFFFF;
  --color-section-soft: #F3EEFF;
  --color-border: #D9E4F2;
  --color-text: #203040;
  --color-text-soft: #5B6B7A;

  /* Brand Blues */
  --color-primary: #6EC1FF;
  --color-primary-dark: #1E4F8A;
  --color-secondary: #A9B8FF;

  /* Purple / Emotional Accent */
  --color-accent: #8B5FBF;
  --color-accent-soft: #E9DDF7;

  /* Warm Accent */
  --color-warm: #F4B183;
  --color-warm-soft: #FCE7DA;

  /* Utility */
  --color-white: #FFFFFF;
  
  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(30, 79, 138, 0.08);
  --shadow-medium: 0 15px 40px rgba(30, 79, 138, 0.12);
  --shadow-hover: 0 20px 50px rgba(30, 79, 138, 0.16);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--color-text-soft);
  line-height: 1.7;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section */
.section {
  padding: var(--space-3xl) 0;
}

.section-soft {
  background-color: var(--color-section-soft);
}

.section-white {
  background-color: var(--color-surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(110, 193, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110, 193, 255, 0.5);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #A78BFA 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(139, 95, 191, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 95, 191, 0.5);
  color: var(--color-white);
}

.btn-warm {
  background: linear-gradient(135deg, var(--color-warm) 0%, #F9C89A 100%);
  color: var(--color-text);
  box-shadow: 0 4px 15px rgba(244, 177, 131, 0.35);
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 177, 131, 0.5);
  color: var(--color-text);
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(110, 193, 255, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235B6B7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all var(--transition-normal);
  padding: var(--space-md) 0;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: var(--space-sm) 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  height: 50px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
  transform: scale(1.02);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

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

.cta-button {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
  flex-direction: column;
  gap: var(--space-md);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile-link.active {
  color: var(--color-accent);
}

.mobile-cta {
  margin-top: var(--space-sm);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 48, 64, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: none;
  color: var(--color-text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-section-soft) 100%);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.modal-subtitle {
  color: var(--color-text-soft);
  font-size: 0.9375rem;
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.form-actions .btn {
  flex: 1;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: var(--space-xl) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #86EFAC 0%, #4ADE80 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.success-text {
  color: var(--color-text-soft);
  margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding: var(--space-3xl) 0 0;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-tagline {
  color: var(--color-text-soft);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-soft);
  transition: color var(--transition-fast);
}

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

.contact-text {
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
}

.footer-cta {
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.copyright {
  color: var(--color-text-soft);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: var(--space-lg);
}

.legal-links a {
  color: var(--color-text-soft);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.legal-links a:hover {
  color: var(--color-accent);
}

/* Decorative Elements */
.footer-decoration {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
}

.footer-decoration-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -150px;
}

.footer-decoration-2 {
  width: 300px;
  height: 300px;
  bottom: 50px;
  left: -100px;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-section-soft) 100%);
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.page-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.page-description {
  font-size: 1.125rem;
  max-width: 500px;
}

.page-hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-desktop,
  .cta-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-decoration-1,
  .footer-decoration-2,
  .page-hero-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  .form-actions {
    flex-direction: column;
  }
}
