/* ============================================
   VIVARTA — Tina Cuypers, Psychologist
   Design System & Shared Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Palette: deep warmth */
  --bg-deep: #1a1714;
  --bg-card: #232019;
  --bg-surface: #2a2620;
  --bg-light: #f5f0ea;
  --bg-light-alt: #ece5db;

  --text-primary: #f0e8dc;
  --text-secondary: #b8afa0;
  --text-muted: #8a7e70;
  --text-dark: #2a2620;
  --text-dark-secondary: #5a5248;

  --accent: #c17f4e;
  --accent-soft: #d4a574;
  --accent-glow: rgba(193, 127, 78, 0.15);
  --accent-hover: #d4944f;

  --border: rgba(193, 127, 78, 0.12);
  --border-light: rgba(193, 127, 78, 0.06);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 720px;
  --max-width-wide: 960px;
  --nav-height: 72px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.35rem;
  color: var(--accent-soft);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: 1.2em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  color: var(--text-primary);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 0.4em;
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-lang {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3em 0.7em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-lang:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Layout --- */
.page-spacer {
  height: var(--nav-height);
}

.section {
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-wide {
  max-width: var(--max-width-wide);
}

.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-divider::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

/* --- Hero --- */
.hero {
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-soft);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: var(--space-lg);
  max-width: 580px;
}

.hero p {
  font-size: 1.05rem;
}

/* --- Photos --- */
.hero-photo {
  max-width: 320px;
  border-radius: 8px;
  margin-top: var(--space-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.about-photo {
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* --- Scheduling Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

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

.modal-content {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content iframe {
  display: block;
  border: none;
  width: 100%;
  height: 80vh;
  max-height: 700px;
}

/* --- Card / Highlight block --- */
.highlight {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  padding: var(--space-md);
  border-radius: 0 8px 8px 0;
  margin: var(--space-md) 0;
}

.highlight p {
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* --- CTA --- */
.cta-section {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.35;
}

.cta-button {
  display: inline-block;
  padding: 1em 2.5em;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-sub {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-sub a {
  color: var(--accent-soft);
}

/* --- Qualifications --- */
.qual-list {
  list-style: none;
  padding: 0;
}

.qual-list li {
  padding: 0.6em 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.qual-list li:last-child {
  border-bottom: none;
}

.qual-list .qual-year {
  display: inline-block;
  width: 3.5em;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Training toggle --- */
.training-toggle {
  margin-top: var(--space-md);
}

.training-toggle summary {
  cursor: pointer;
  color: var(--accent-soft);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.5em 0;
  list-style: none;
  user-select: none;
}

.training-toggle summary::-webkit-details-marker {
  display: none;
}

.training-toggle summary::before {
  content: '+ ';
  font-weight: 300;
}

.training-toggle[open] summary::before {
  content: '− ';
}

.training-toggle .training-list {
  padding-top: var(--space-sm);
}

/* --- Practical info --- */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.practical-item {
  background: var(--bg-card);
  padding: var(--space-sm) 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.practical-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3em;
}

.practical-item .value {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-xl);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--text-muted);
}

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

.footer .footer-legal {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  opacity: 0.8;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero {
    padding: var(--space-xl) var(--space-sm) var(--space-lg);
    min-height: 60vh;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 23, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .practical-grid {
    grid-template-columns: 1fr;
  }

  .cta-headline {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }
}
