/* ============================================================
   Mentors AI — Brand tokens (Renaissance brown+cream)
   Sursa: design/REVIZUIRE_DESIGN.md (decis 2026-04-25)
   Aplicat global pe toate pages — NU duplica :root local.
   ============================================================ */

:root {
  /* Paletă Renaissance — uniformă pe toate pages */
  --primary: #BA7517;        /* burnt sienna — buttons, links, highlights */
  --primary-dark: #854F0B;   /* dark sienna — hover, headings accent */
  --accent: #C9A14B;         /* warm gold — emphasis, badges, callouts */
  --accent-dark: #9C7A33;    /* dark gold — hover accent */
  --bg: #f5f0eb;             /* warm cream — background principal */
  --bg-soft: #FAEEDA;        /* peach — surface, card hover, callout bg */
  --bg-card: #ffffff;        /* white — card background */
  --text: #1a1208;           /* near-black warm — text principal */
  --text-soft: #6b5538;      /* warm grey-brown — text secundar */
  --border: #e8e0d5;         /* warm grey — borders */
  --shadow: 0 2px 12px rgba(133, 79, 11, 0.08);
  --shadow-lg: 0 8px 32px rgba(133, 79, 11, 0.12);

  /* Type scale (clamp pentru fluid scaling 320px → 1440px) */
  --type-h1: clamp(2rem, 6vw, 3.5rem);
  --type-h2: clamp(1.5rem, 4vw, 2.25rem);
  --type-h3: clamp(1.15rem, 2.5vw, 1.4rem);
  --type-lead: clamp(1.05rem, 2.2vw, 1.25rem);
  --type-body: 16px;
  --type-small: 14px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Tipografie unificată — Playfair pentru titluri, Inter pentru body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Logo unificat — Mentors AI */
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--accent-dark); }

/* ============================================================
   Modal Cere Acces — global, folosit pe index/despre/preturi
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 18, 8, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; cursor: pointer;
  padding: 6px 10px; font-size: 22px; line-height: 1;
  color: var(--text-soft); border-radius: 6px;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.modal-lead {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-field { margin-bottom: 18px; }
.modal-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-field label .req { color: var(--primary); }
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.modal-field textarea { resize: vertical; min-height: 80px; }
.modal-field-help {
  font-size: 12px; color: var(--text-soft);
  margin-top: 4px; font-style: italic;
}
.modal-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}
.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal-success {
  text-align: center;
  padding: 40px 20px;
}
.modal-success-ico {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}
.modal-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.modal-success p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.modal-error {
  background: #fce8d8;
  border-left: 3px solid #c0392b;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #7f2d20;
  margin-bottom: 16px;
}
