/* ── La Mana — Custom theme CSS ── */

/* CSS-variabelen (kleurentokens) */
:root {
  --background:        36 38% 96%;
  --foreground:        25 25% 18%;
  --card:              36 45% 98%;
  --card-foreground:   25 25% 18%;
  --border:            32 22% 86%;
  --muted:             36 25% 90%;
  --muted-foreground:  25 12% 42%;
  --primary:           16 38% 52%;
  --primary-foreground:36 45% 98%;
  --accent:            32 45% 86%;
  --accent-foreground: 25 25% 18%;
  --destructive:       0 70% 50%;
  --terracotta:        16 45% 58%;
  --blush:             14 50% 88%;
  --sand:              32 35% 90%;
  --sage:              95 14% 62%;
  --cream:             36 38% 96%;
  --ink:               25 25% 18%;
  --warm-beige:        30 28% 82%;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility classes ── */
.font-script  { font-family: 'Caveat', cursive; font-weight: 600; }
.font-serif   { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-sans    { font-family: 'Inter', system-ui, sans-serif; }

.shadow-soft    { box-shadow: 0 4px 24px -8px hsl(25 25% 18% / 0.08); }
.shadow-elegant { box-shadow: 0 24px 60px -24px hsl(16 38% 35% / 0.18); }
.shadow-lift    { box-shadow: 0 12px 40px -12px hsl(25 25% 18% / 0.12); }

.bg-gradient-cta-blush { background-image: linear-gradient(135deg, hsl(14 50% 94%) 0%, hsl(36 38% 97%) 100%); }
.bg-gradient-warm      { background-image: linear-gradient(180deg, hsl(36 38% 96%) 0%, hsl(32 35% 92%) 100%); }

/* ── Animaties ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes logoArrive {
  from { opacity: 0; transform: scale(1.5) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.8s var(--transition-smooth, ease) both; }
.scale-in   { animation: scaleIn 0.8s var(--transition-smooth, ease) both; }
.fade-in    { animation: fadeIn 1s ease-out both; }
.logo-arrive{ animation: logoArrive 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

.reveal     { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── Navbar ── */
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#site-header.scrolled {
  background: hsl(var(--cream) / 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px -8px hsl(25 25% 18% / 0.08);
}

/* ── Primaire knop ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: hsl(16 45% 48%);
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: transparent;
  color: hsl(var(--ink));
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid hsl(var(--border));
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: hsl(var(--terracotta)); color: hsl(var(--terracotta)); }

/* ── Wave divider kleur-override ── */
.wave-bg   { fill: hsl(var(--background)); }
.wave-sand { fill: hsl(var(--sand)); }

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0;
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  font-weight: 500; color: hsl(var(--ink)); text-align: left;
  transition: color 0.2s;
}
.faq-trigger:hover { color: hsl(var(--terracotta)); }
.faq-trigger svg { flex-shrink: 0; transition: transform 0.3s; }
.faq-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-content { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, padding 0.3s ease; }
.faq-content.open { max-height: 400px; }
.faq-content-inner { padding: 0 0 1.5rem; font-size: 1rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }

/* ── Pretecho accordion ── */
.ptecho-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: hsl(var(--terracotta)); text-align: left;
  border-bottom: 1px solid hsl(var(--terracotta) / 0.2);
}
.ptecho-trigger svg { transition: transform 0.3s; }
.ptecho-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.ptecho-content { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.ptecho-content.open { max-height: 200px; }
.ptecho-content-inner { padding: 0.5rem 0 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ── Testimonials Swiper ── */
.testimonials-swiper .swiper-slide {
  width: 85vw;
  height: auto;
}
@media (min-width: 640px)  { .testimonials-swiper .swiper-slide { width: 44vw; } }
@media (min-width: 1024px) { .testimonials-swiper .swiper-slide { width: 30vw; } }

/* ── About — timeline path kleur ── */
.timeline-svg path { stroke: hsl(var(--terracotta) / 0.5); }

/* ── Kaart containers ── */
.map-container { height: 400px; width: 100%; border-radius: 2rem; overflow: hidden; }
.werkgebied-map-container { height: 450px; width: 100%; border-radius: 2rem; overflow: hidden; }

/* ── Afspraak wizard ── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-card-btn {
  width: 100%; text-align: left; background: hsl(var(--background));
  border: 2px solid hsl(var(--border)); border-radius: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.wizard-card-btn:hover { border-color: hsl(var(--terracotta)); }
.wizard-card-btn.selected { border-color: hsl(var(--terracotta)); background: hsl(var(--blush) / 0.3); }
.wizard-card-btn.highlighted {
  border-color: hsl(var(--terracotta) / 0.4);
  background: hsl(var(--blush) / 0.1);
}
.wizard-card-btn.highlighted.selected {
  border-color: hsl(var(--terracotta));
  background: hsl(var(--blush) / 0.3);
}
.time-btn {
  padding: 0.5rem 0.75rem; font-size: 0.875rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
  background: hsl(var(--background)); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.time-btn:hover { border-color: hsl(var(--terracotta)); }
.time-btn.selected { background: hsl(var(--terracotta)); color: white; border-color: hsl(var(--terracotta)); }
.time-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.type-chip {
  padding: 0.5rem 1rem; font-size: 0.875rem;
  border: 1px solid hsl(var(--border)); border-radius: 9999px;
  background: hsl(var(--background)); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.type-chip:hover { border-color: hsl(var(--terracotta)); }
.type-chip.selected { background: hsl(var(--terracotta)); color: white; border-color: hsl(var(--terracotta)); }

/* ── Form inputs ── */
.lm-input, .lm-textarea {
  width: 100%; padding: 0.6rem 0.875rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  background: hsl(var(--background)); color: hsl(var(--ink));
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.lm-input:focus, .lm-textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}
.lm-label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 0.375rem; color: hsl(var(--ink)); }

/* ── Contact checkbox ── */
.topic-checkbox { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.topic-checkbox input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: hsl(var(--terracotta)); cursor: pointer; }

/* ── Progress bar ── */
.progress-bar { height: 0.5rem; border-radius: 9999px; background: hsl(var(--border)); flex: 1; max-width: 2.5rem; transition: background 0.3s; }
.progress-bar.active { background: hsl(var(--terracotta)); }

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Hover group arrow rotation ── */
.group:hover .group-hover-rotate { transform: rotate(45deg); }
.group-hover-rotate { transition: transform 0.3s ease; }

/* ── Leaflet popup ── */
.leaflet-popup-content-wrapper { border-radius: 0.75rem !important; font-family: 'Inter', sans-serif; }
