/* 
   Docs: css/base.css 
   Description: Core design tokens, reset, and typography for Docentes 2.0 Modernization.
   Version: 1.0.0
*/

:root {
  /* --- Palette: Astrological Success (Cancer/Mars/Jupiter) --- */
  --c-primary: #8E1600;
  /* Deep Burgundy (Mars/Authority) - Original Brand */
  --c-primary-h: #600F00;
  /* Darker Burgundy for Hover */
  --c-secondary: #600F00;
  --c-primary-bg: #FDF2F2;
  /* Pale Red for backgrounds */

  --c-accent: #FFC107;
  /* Jupiter Gold (Prosperity/Success) */
  --c-accent-h: #D39E00;

  --c-silver: #C0C0C0;
  /* Moon Silver (Founder's Ruling Color) */
  --c-silver-light: #E8E8E8;

  --c-dark: #1A1A1A;
  /* Charcoal Black */
  --c-dark-soft: #333333;

  --c-white: #FFFFFF;
  --c-success: #198754;
  --c-danger: #DC3545;

  /* --- Typography --- */
  /* 'Outfit' or 'Montserrat' for headings, 'Inter' or system for body */
  --f-heading: 'Outfit', 'Montserrat', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-xs: 0.75rem;
  --s-sm: 0.875rem;
  --s-base: 1rem;
  /* 16px */
  --s-lg: 1.125rem;
  --s-xl: 1.25rem;
  --s-2xl: 1.5rem;
  --s-3xl: 2rem;
  --s-4xl: 3rem;

  /* --- Spacing System --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-8: 5rem;

  /* --- Geometry --- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* --- Shadows (Premium Feel) --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --transition: all 0.2s ease-in-out;

  /* --- Premium Gradients & Glassmorphism --- */
  --g-hero-overlay: linear-gradient(135deg, rgba(96, 15, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  --g-card-hover: linear-gradient(to bottom right, #ffffff, #fdfbf7);
  --g-gold-accent: linear-gradient(135deg, #FFC107 0%, #D39E00 100%);

  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* --- Reset & Base --- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--f-body);
  font-size: var(--s-base);
  line-height: 1.6;
  color: var(--c-dark-soft);
  background-color: var(--c-gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography Defaults --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  color: var(--c-dark);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: var(--s-4xl);
  margin-bottom: var(--sp-4);
}

h2 {
  font-size: var(--s-3xl);
  margin-bottom: var(--sp-3);
}

h3 {
  font-size: var(--s-2xl);
  margin-bottom: var(--sp-3);
}

h4 {
  font-size: var(--s-xl);
  margin-bottom: var(--sp-2);
}

p {
  margin-bottom: var(--sp-3);
  max-width: 70ch;
  /* Readable line length */
}

a {
  color: var(--c-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
  position: relative;
}

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

/* --- Global Utilities (that match W3/Bootstrap patterns roughly but cleaner) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--c-primary) !important;
}

.bg-dark {
  background-color: var(--c-dark) !important;
  color: white;
}

.bg-white {
  background-color: var(--c-white) !important;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}