/* ==========================================================================
   Echtscheidingsplanner.nl - Stylesheet
   Professioneel, warm, vertrouwenwekkend design
   ========================================================================== */

:root {
  /* Kleurenpalet - rustig en vertrouwenwekkend */
  --primary: #2c5f7c;        /* Diep blauwgroen */
  --primary-light: #3a7a9c;  /* Lichter accent */
  --primary-dark: #1e4457;   /* Donkerder voor hover */
  --secondary: #5a9e8f;      /* Zacht groen */
  --secondary-light: #7cb8aa;
  --accent: #e8a54b;         /* Warm oranje accent */
  --text: #333333;
  --text-light: #666666;
  --text-muted: #888888;
  --bg: #ffffff;
  --bg-light: #f7f9fa;
  --bg-warm: #faf8f5;
  --border: #e0e4e8;
  --shadow: rgba(44, 95, 124, 0.1);
  
  /* Typography */
  --font-main: 'Segoe UI', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

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

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

a:hover {
  color: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
   
.header {
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: bold;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
}

.nav-menu a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--bg-light);
  color: var(--primary);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-sm);
    box-shadow: 0 4px 10px var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
   
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
   
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: #d4943f;
  color: white;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ==========================================================================
   Sections
   ========================================================================== */
   
.section {
  padding: var(--space-xxl) var(--space-md);
}

.section-light {
  background: var(--bg-light);
}

.section-warm {
  background: var(--bg-warm);
}

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

.section-title h2 {
  margin-bottom: var(--space-xs);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
   
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--bg);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link:hover {
  gap: 0.5rem;
}

/* ==========================================================================
   Feature List / Steps
   ========================================================================== */
   
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-heading);
}

.step-number::before {
  content: counter(step);
}

.step-content h3 {
  margin-bottom: var(--space-xs);
}

.step-content p {
  color: var(--text-light);
}

@media (max-width: 600px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   Info Boxes
   ========================================================================== */
   
.info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: 0 8px 8px 0;
}

.info-box.tip {
  border-color: var(--secondary);
  background: #f0f7f5;
}

.info-box.warning {
  border-color: var(--accent);
  background: #fef8f0;
}

.info-box h4 {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ==========================================================================
   Tables
   ========================================================================== */
   
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:hover {
  background: var(--bg-light);
}

/* ==========================================================================
   Comparison Grid
   ========================================================================== */
   
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.comparison-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.comparison-header {
  background: var(--primary);
  color: white;
  padding: var(--space-md);
  text-align: center;
}

.comparison-header.alt {
  background: var(--secondary);
}

.comparison-header h3 {
  color: white;
  margin: 0;
}

.comparison-body {
  padding: var(--space-lg);
}

.comparison-body ul {
  list-style: none;
}

.comparison-body li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.comparison-body li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
}

@media (max-width: 700px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Checklist
   ========================================================================== */
   
.checklist {
  list-style: none;
}

.checklist li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.checklist li strong {
  display: block;
  color: var(--text);
}

.checklist li span {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.faq-question {
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: var(--space-md);
  color: var(--text-light);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
   
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
   
.footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--space-xxl) var(--space-md) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto var(--space-xl);
}

.footer h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: var(--space-xs);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ==========================================================================
   Page Content
   ========================================================================== */
   
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: var(--space-xs);
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.content {
  padding: var(--space-xl) var(--space-md);
}

.content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content ul, .content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content li {
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
   
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ==========================================================================
   Responsive Typography
   ========================================================================== */
   
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  
  .hero {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--space-xl) var(--space-sm);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
   
@media print {
  .header, .footer, .nav-toggle {
    display: none;
  }
  
  .hero {
    background: none;
    color: var(--text);
    padding: var(--space-md);
  }
  
  .hero h1 {
    color: var(--text);
  }
}

/* ==========================================================================
   Page-specific Hero Images
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.9) 0%, rgba(58, 122, 156, 0.85) 100%), 
              url('/static/images/hero.jpg') center/cover no-repeat;
}

.page-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/support.jpg') center/cover no-repeat;
}

.page-header.stappenplan-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/stappenplan.jpg') center/cover no-repeat;
}

.page-header.kosten-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/kosten.jpg') center/cover no-repeat;
}

.page-header.advocaat-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/mediator.jpg') center/cover no-repeat;
}

.page-header.alimentatie-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/alimentatie.jpg') center/cover no-repeat;
}

.page-header.co-ouderschap-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/co-ouderschap.jpg') center/cover no-repeat;
}

.page-header.checklist-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/checklist.jpg') center/cover no-repeat;
}

.page-header.contact-header {
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.92) 0%, rgba(58, 122, 156, 0.88) 100%),
              url('/static/images/contact.jpg') center/cover no-repeat;
}

/* Card images */
.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: calc(var(--space-lg) * -1);
  margin-bottom: var(--space-md);
  width: calc(100% + var(--space-lg) * 2);
}

/* CTA section with background */
.section-warm {
  background: linear-gradient(135deg, rgba(250, 248, 245, 0.95) 0%, rgba(250, 248, 245, 0.9) 100%),
              url('/static/images/new-beginning.jpg') center/cover no-repeat;
}

/* Auth and Dashboard Styles */
.auth-form-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-block {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-outline {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #e74c3c;
  color: white;
}

.btn-link {
  color: #3498db;
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
}

.btn-link:hover {
  text-decoration: underline;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.auth-link a {
  color: #3498db;
}

.auth-benefits {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.auth-benefits h3 {
  margin-bottom: 1rem;
  color: #333;
}

.auth-benefits ul {
  list-style: none;
  padding: 0;
}

.auth-benefits li {
  padding: 0.5rem 0;
  color: #27ae60;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fee;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.dashboard-card h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #333;
}

.progress-bar-container {
  background: #ecf0f1;
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s;
}

.progress-text {
  color: #666;
  margin-bottom: 0.5rem;
}

.current-step {
  margin-bottom: 1rem;
  color: #333;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 4px;
  background: #f8f9fa;
}

.step-current {
  background: #e3f2fd;
  border-left: 3px solid #3498db;
}

.step-completed {
  background: #d4edda;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #95a5a6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

.step-current .step-number {
  background: #3498db;
}

.step-completed .step-number {
  background: #27ae60;
}

.step-title {
  flex: 1;
}

.step-check {
  color: #27ae60;
  font-weight: bold;
}

.card-description {
  color: #666;
  margin-bottom: 1rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.checklist-item:hover {
  background: #e9ecef;
}

.checklist-item input {
  width: 18px;
  height: 18px;
}

.checklist-item input:checked + span {
  color: #27ae60;
  text-decoration: line-through;
}

#notes-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

#note-status .success {
  color: #27ae60;
}

#note-status .error {
  color: #e74c3c;
}

.dashboard-actions {
  text-align: center;
  padding-top: 1rem;
}

.hero-small {
  padding: 2rem 1rem;
  text-align: center;
}

.hero-small h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-small p {
  color: #666;
}

/* User nav */
.user-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-nav a {
  color: #3498db;
  text-decoration: none;
}

.user-nav a:hover {
  text-decoration: underline;
}
