/* ============================================================
   Zen Office — Custom CSS
   Colors, animations, and component styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  color-scheme: light only;
  --color-jade:     #23443B;
  --color-jade-hover: #2d5549;
  --color-sage:     #7A9B8A;
  --color-sand:     #DCCDB8;
  --color-cream:    #F7F4EE;
  --color-charcoal: #4A3F35;
  --color-gold:     #B89B5E;
  --color-white:    #FFFFFF;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --radius-card: 12px;

  /* Brand-tinted shadows — jade undertone */
  --shadow-card:       0 2px 8px rgba(35, 68, 59, 0.04), 0 1px 2px rgba(35, 68, 59, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(35, 68, 59, 0.10), 0 2px 8px rgba(35, 68, 59, 0.06);

  --transition-fast: 200ms ease;
  --transition-base: 400ms ease-out;
}

/* ============================================================
   Base Reset & Typography
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Premium grain texture overlay — adds depth to flat backgrounds */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

/* ============================================================
   Scroll Fade-Up Animation
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 400ms; }

/* ============================================================
   Hero Headline Color Transition
   ============================================================ */
.hero-emphasis {
  color: var(--color-charcoal);
  font-style: italic;
  transition: color 600ms ease;
  transition-delay: 300ms;
}

.hero-emphasis.is-visible {
  color: var(--color-jade);
}

/* ============================================================
   Hero Section Atmosphere
   ============================================================ */
#hero {
  background:
    radial-gradient(ellipse 70% 55% at 68% 45%, rgba(122, 155, 138, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(184, 155, 94, 0.05) 0%, transparent 60%),
    var(--color-cream);
}

/* ============================================================
   Sticky Navigation — Frosted Glass
   ============================================================ */
#main-nav {
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

#main-nav.scrolled {
  background-color: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 205, 184, 0.6);
  box-shadow: 0 1px 24px rgba(35, 68, 59, 0.06);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-jade);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 400ms ease;
}

.btn-primary:hover {
  background-color: var(--color-jade-hover);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  left: 160%;
}

.btn-primary-inverted {
  background-color: var(--color-cream);
  color: var(--color-jade);
}

.btn-primary-inverted:hover {
  background-color: #ede9e2;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-jade);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1.5px solid var(--color-jade);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-ghost:hover {
  background-color: var(--color-jade);
  color: var(--color-cream);
}

.btn-ghost-inverted {
  color: var(--color-cream);
  border-color: rgba(247, 244, 238, 0.5);
}

.btn-ghost-inverted:hover {
  background-color: rgba(247, 244, 238, 0.1);
  color: var(--color-cream);
}

/* ============================================================
   Section Label — with gold accent line
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), rgba(184, 155, 94, 0.3));
  flex-shrink: 0;
}

.section-label-inverted {
  color: rgba(122, 155, 138, 0.85);
}

.section-label-inverted::before {
  background: linear-gradient(90deg, rgba(184, 155, 94, 0.7), transparent);
}

/* ============================================================
   Divider — gold gradient
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), rgba(184, 155, 94, 0.15));
  margin: 28px auto;
  border: none;
}

.divider-left {
  margin: 28px 0;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(122, 155, 138, 0.5);
  transform: translateY(-3px);
}

/* ============================================================
   Icon Container
   ============================================================ */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(122, 155, 138, 0.12);
  border-radius: 10px;
  margin-bottom: 20px;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.card:hover .icon-container {
  background-color: rgba(122, 155, 138, 0.22);
}

/* ============================================================
   Step Numbers
   ============================================================ */
.step-number {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 400ms ease-out, opacity 400ms ease-out;
}

.step-number.is-visible {
  transform: scale(1);
  opacity: 1;
}

/* ============================================================
   Benefit Items (on dark background)
   ============================================================ */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(220, 205, 184, 0.15);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}

/* ============================================================
   Pull Quote — typographic quotation mark
   ============================================================ */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-jade);
  position: relative;
  padding: 20px 0 20px 0;
  margin: 32px 0;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: -4px;
  font-size: 88px;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.25;
  font-family: var(--font-serif);
  font-style: normal;
  pointer-events: none;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--color-sand);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-charcoal);
  cursor: pointer;
  gap: 16px;
}

.faq-trigger:hover {
  color: var(--color-jade);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-sage);
  transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease-out, padding 300ms ease-out;
}

.faq-item.is-open .faq-body {
  max-height: 400px;
}

.faq-body-inner {
  padding-bottom: 24px;
  color: var(--color-charcoal);
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.85;
}

/* ============================================================
   Hero visual placeholder / about photo placeholder
   ============================================================ */
.photo-placeholder {
  background: linear-gradient(135deg, rgba(122, 155, 138, 0.12) 0%, rgba(35, 68, 59, 0.07) 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--color-sand);
  color: var(--color-sage);
  font-size: 14px;
  font-family: var(--font-sans);
}

/* ============================================================
   Trust Badges (Hero)
   ============================================================ */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-charcoal);
  opacity: 0.75;
}

/* ============================================================
   Mobile Menu
   ============================================================ */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-cream);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

#mobile-menu.is-open {
  display: flex;
}

#mobile-menu a {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--color-charcoal);
  text-decoration: none;
}

#mobile-menu a:hover {
  color: var(--color-jade);
}

#mobile-menu a.btn-primary {
  color: var(--color-cream);
}

/* ============================================================
   Responsive helpers
   ============================================================ */
@media (max-width: 768px) {
  .hero-h1 {
    font-size: 40px !important;
  }
  .section-h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 34px !important;
  }
}

/* ============================================================
   Hero foto — echte foto én tijdelijke placeholder
   ============================================================ */
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 64px rgba(35, 68, 59, 0.14), 0 4px 16px rgba(35, 68, 59, 0.08);
}

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(145deg, #23443B 0%, #2d5549 50%, #1a332b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(35, 68, 59, 0.18), 0 4px 16px rgba(35, 68, 59, 0.10);
  position: relative;
  overflow: hidden;
}

/* Subtiel patroon in de achtergrond */
.hero-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(184, 155, 94, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122, 155, 138, 0.15) 0%, transparent 50%);
}

.hero-photo-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-photo-monogram {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.12);
  border: 2px solid rgba(184, 155, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--color-cream);
  font-weight: 600;
}

.hero-photo-name {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-cream);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-photo-title {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(247, 244, 238, 0.55);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   About section photo
   ============================================================ */
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}

/* ============================================================
   Footer nav links
   ============================================================ */
.footer-link {
  color: rgba(247, 244, 238, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-cream);
}

/* ============================================================
   Horizontal step connector line (desktop)
   ============================================================ */
.step-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-sand), transparent);
  margin-top: -24px;
}

/* ============================================================
   Blog Cards (publieke blogpagina)
   ============================================================ */
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(122, 155, 138, 0.5);
  transform: translateY(-3px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-image-placeholder {
  background: linear-gradient(135deg, rgba(122, 155, 138, 0.10) 0%, rgba(35, 68, 59, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-sage);
  text-transform: uppercase;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-charcoal);
  opacity: 0.7;
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-jade);
  text-decoration: none;
  margin-top: 8px;
  transition: gap var(--transition-fast);
}

.blog-card-link:hover {
  gap: 10px;
}

/* Skeleton loaders */
.blog-card-skeleton {
  background: white;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-card);
  height: 340px;
  overflow: hidden;
  position: relative;
}

.blog-card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(220,205,184,0.3) 50%, transparent 100%);
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.post-skeleton-title {
  height: 36px;
  background: var(--color-sand);
  border-radius: 6px;
  opacity: 0.4;
  animation: skeleton-shimmer 1.5s infinite;
}

.post-skeleton-line {
  height: 16px;
  background: var(--color-sand);
  border-radius: 6px;
  opacity: 0.3;
  animation: skeleton-shimmer 1.5s infinite;
  width: 100%;
}

/* ============================================================
   Blog Post — Prose (markdown output)
   ============================================================ */
.prose-blog {
  color: var(--color-charcoal);
  line-height: 1.8;
  font-size: 17px;
}

.prose-blog h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.2;
  color: var(--color-charcoal);
}

.prose-blog h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--color-jade);
  line-height: 1.25;
}

.prose-blog h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--color-charcoal);
}

.prose-blog p {
  margin: 0 0 20px;
}

.prose-blog strong {
  font-weight: 600;
  color: var(--color-charcoal);
}

.prose-blog em {
  font-style: italic;
  color: var(--color-jade);
}

.prose-blog ul, .prose-blog ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose-blog li {
  margin-bottom: 6px;
}

.prose-blog a {
  color: var(--color-jade);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-blog a:hover {
  color: var(--color-jade-hover);
}

.prose-blog blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--color-charcoal);
  opacity: 0.8;
  font-style: italic;
}

.prose-blog code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: rgba(122, 155, 138, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose-blog pre {
  background: #1a332b;
  color: var(--color-cream);
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}

.prose-blog pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose-blog hr {
  border: none;
  border-top: 1px solid var(--color-sand);
  margin: 40px 0;
}
