/* ==========================================================================
   Mondzorg Koningstraat - Design System & Base CSS
   Conforms to AI_RULES.md (Flat Design, BEM, Premium Medical Aesthetic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Premium Teal/Blue-Green Palette (HSL) */
  --clr-primary-900: hsl(192, 75%, 15%); /* Deep, authoritative teal */
  --clr-primary-800: hsl(192, 75%, 25%);
  --clr-primary-600: hsl(192, 70%, 35%); /* Main brand color */
  --clr-primary-100: hsl(192, 60%, 95%); /* Very light background tint */
  
  /* CTA Accent Color - Coral/Soft Orange for high contrast */
  --clr-accent: hsl(22, 90%, 55%);
  --clr-accent-hover: hsl(22, 90%, 45%);

  /* Neutrals & Text */
  --clr-bg: hsl(192, 20%, 98%); /* Soft off-white base */
  --clr-surface: hsl(0, 0%, 100%); /* Pure white for cards */
  --clr-text: hsl(192, 30%, 15%); /* Dark readable text */
  --clr-text-muted: hsl(192, 10%, 40%);
  --clr-border: hsl(192, 15%, 88%);
  
  /* Feedback Colors */
  --clr-success: hsl(145, 60%, 40%);
  --clr-error: hsl(350, 70%, 50%);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  /* Font Sizes (Fluid-like scale) */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  /* Spacing */
  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;
  --sp-128: 8rem;

  /* Shadows (Soft, Premium, No gradients) */
  --shadow-sm: 0 2px 4px rgba(0, 30, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 30, 40, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 30, 40, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Animations */
  --transition-base: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-primary-900);
  margin-bottom: var(--sp-16);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--sp-16);
  color: var(--clr-text-muted);
}

.text-lead {
  font-size: var(--text-lg);
  color: var(--clr-text);
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-24);
}

.section {
  padding-block: var(--sp-96);
}

.section--bg-light {
  background-color: var(--clr-primary-100);
}

.section--bg-dark {
  background-color: var(--clr-primary-900);
  color: var(--clr-surface);
}

.section--bg-dark h1,
.section--bg-dark h2,
.section--bg-dark h3,
.section--bg-dark p {
  color: var(--clr-surface);
}

.grid {
  display: grid;
  gap: var(--sp-32);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   5. Buttons (Flat Design, No Gradients)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-16) var(--sp-32);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn--primary {
  background-color: var(--clr-primary-600);
  color: var(--clr-surface);
}

.btn--primary:hover {
  background-color: var(--clr-primary-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background-color: var(--clr-accent);
  color: var(--clr-surface);
}

.btn--accent:hover {
  background-color: var(--clr-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background-color: var(--clr-primary-600);
  color: var(--clr-surface);
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 1px solid var(--clr-border);
}

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

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--sp-24);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-8);
  color: var(--clr-primary-900);
}

.form-input {
  width: 100%;
  padding: var(--sp-16);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  transition: border-color var(--transition-base);
  background-color: var(--clr-surface);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-primary-600);
  box-shadow: 0 0 0 3px var(--clr-primary-100);
}

/* --------------------------------------------------------------------------
   8. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --sp-96: 4rem;
  }
  
  .section {
    padding-block: var(--sp-64);
  }
}

/* --------------------------------------------------------------------------
   9. RTL (Right-To-Left) Base Utilities
   -------------------------------------------------------------------------- */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

