/* ========================================
   BASE - Reset, Variables, Typography
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #1a1a1a;
  --accent: #c9a227;
  --accent-hover: #b8922a;
  --text: #333;
  --text-light: #666;
  --text-muted: #888;
  --white: #fff;
  --bg-light: #faf9f7;
  --bg-offset: #f0ede8;
  --border: #e5e5e5;
  --border-light: #eee;

  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', 'Open Sans', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.5px; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-light);
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   SECTION STYLES - Hero, Welcome, etc.
   ======================================== */

/* Hero Section - Professional & Inviting */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: stretch;
  background: var(--white);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl) var(--space-3xl);
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.hero-btn-primary {
  background: var(--primary);
  color: var(--white);
}

.hero-btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
}

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

.hero-search-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  max-width: 420px;
}

.hero-search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  display: block;
}

.hero-search-row {
  display: flex;
  gap: var(--space-sm);
}

.hero-search-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.hero-search-row input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-search-btn:hover {
  background: var(--accent-hover);
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-md);
  height: 100%;
  min-height: 600px;
}

.hero-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.hero-image-grid img:first-child {
  grid-row: span 2;
}

.hero-image-grid img:hover {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  right: var(--space-xl);
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.hero-image-overlay-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.hero-image-overlay-text strong {
  display: block;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.hero-stats-bar {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Welcome Section */
.welcome-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.welcome-section h1 {
  margin-bottom: var(--space-lg);
}

.welcome-section h2 {
  margin-bottom: var(--space-lg);
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.9;
}

/* Two Column Section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.two-col-text {
  padding: var(--space-4xl);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col-text h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.two-col-text p {
  margin-bottom: var(--space-lg);
}

.two-col-img {
  position: relative;
  overflow: hidden;
}

.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.two-col:hover .two-col-img img {
  transform: scale(1.03);
}

/* Dark Section */
.dark-section {
  background: var(--primary);
  padding: var(--space-4xl) var(--space-lg);
}

.dark-section h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.features {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.feature {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), background var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}

.feature h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* Image Full */
.image-full {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.image-full img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Testimonial */
.testimonial {
  background: var(--primary);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.testimonial blockquote {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--white);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-serif);
}

.testimonial p {
  color: var(--accent);
  font-family: var(--font-sans);
}

/* Contact Section */
.contact {
  background: var(--white);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.contact h2 {
  margin-bottom: var(--space-lg);
}

.contact strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact CTA */
.contact-cta {
  background: var(--primary);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.contact-cta h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.contact-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.8;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 3.5rem;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .two-col.reverse {
    display: grid;
  }
  
  .two-col-text {
    padding: var(--space-2xl);
  }
  
  .two-col-img {
    min-height: 350px;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    min-height: auto;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-left::before {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
  }

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

  .hero-btn {
    justify-content: center;
  }

  .hero-right {
    min-height: 400px;
  }

  .hero-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 200px);
    min-height: auto;
  }

  .hero-image-grid img:first-child {
    grid-row: span 1;
  }

  .hero-image-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: var(--space-md);
  }

  .hero-stats-bar {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .welcome-section {
    padding: var(--space-3xl) var(--space-md);
  }
  
  .two-col-text {
    padding: var(--space-xl);
  }
  
  .two-col-img {
    min-height: 280px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .feature {
    padding: var(--space-lg);
  }
  
  .dark-section,
  .contact-cta,
  .testimonial,
  .contact {
    padding: var(--space-3xl) var(--space-md);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --space-3xl: 2rem;
    --space-4xl: 2.5rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  
  .hero {
    min-height: 50vh;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ========================================
   LOADING & PERFORMANCE
   ======================================== */

/* Page loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #faf9f7 0%, #f0ede8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Wandelende Kip Animatie */
.chicken-loader {
  position: relative;
  width: 120px;
  height: 80px;
  margin-bottom: var(--space-lg);
}

.chicken-body {
  position: absolute;
  width: 50px;
  height: 40px;
  background: var(--white);
  border-radius: 50% 50% 45% 45%;
  left: 35px;
  top: 20px;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: chicken-bounce 0.6s ease-in-out infinite;
}

.chicken-head {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: 50%;
  left: 65px;
  top: 10px;
  border: 3px solid var(--primary);
  animation: chicken-bounce 0.6s ease-in-out infinite;
}

.chicken-beak {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  left: 90px;
  top: 20px;
  animation: chicken-bounce 0.6s ease-in-out infinite;
}

.chicken-eye {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  left: 75px;
  top: 18px;
  animation: chicken-bounce 0.6s ease-in-out infinite;
}

.chicken-comb {
  position: absolute;
  width: 8px;
  height: 12px;
  background: #dc2626;
  border-radius: 50% 50% 0 0;
  left: 70px;
  top: 0;
  animation: chicken-bounce 0.6s ease-in-out infinite;
}

.chicken-leg-left {
  position: absolute;
  width: 3px;
  height: 20px;
  background: var(--accent);
  left: 45px;
  top: 55px;
  transform-origin: top;
  animation: walk-left 0.6s ease-in-out infinite;
  border-radius: 2px;
}

.chicken-leg-right {
  position: absolute;
  width: 3px;
  height: 20px;
  background: var(--accent);
  left: 65px;
  top: 55px;
  transform-origin: top;
  animation: walk-right 0.6s ease-in-out infinite;
  border-radius: 2px;
}

.chicken-foot-left,
.chicken-foot-right {
  position: absolute;
  width: 10px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: -3px;
  border-radius: 2px;
}

.chicken-wing {
  position: absolute;
  width: 20px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 0 50% 50% 0;
  left: 45px;
  top: 30px;
  transform-origin: left;
  animation: wing-flap 0.6s ease-in-out infinite;
}

.chicken-shadow {
  position: absolute;
  width: 60px;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  left: 30px;
  top: 75px;
  animation: shadow-scale 0.6s ease-in-out infinite;
}

.loading-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: var(--space-md);
  animation: loading-pulse 1.5s ease-in-out infinite;
}

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

@keyframes walk-left {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
}

@keyframes walk-right {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(-20deg); }
}

@keyframes wing-flap {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes shadow-scale {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(0.8); opacity: 0.05; }
}

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-offset) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Form loading state */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth page transitions */
main {
  opacity: 1;
  transition: opacity 0.3s ease;
}

main.page-transition {
  opacity: 0;
}

/* Content fade in */
.content-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Image lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
