/* ========================================
   TYPOGRAPHY SYSTEM
   Guardian Financial Advisory
   Modern, professional font styling
   ======================================== */

/* Import Google Fonts - Inter for body, Outfit for headings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

/* ========================================
   HEADING STYLES
   Using Outfit for display, modern look
   ======================================== */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h5 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h6 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE HEADING SIZES
   Smaller on mobile, larger on desktop
   ======================================== */

/* Mobile (default) */
@media (max-width: 640px) {
  h1 {
    font-size: var(--text-3xl); /* 30px */
  }
  
  h2 {
    font-size: var(--text-2xl); /* 24px */
  }
  
  h3 {
    font-size: var(--text-xl); /* 20px */
  }
}

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-4xl); /* 36px */
  }
  
  h2 {
    font-size: var(--text-3xl); /* 30px */
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl); /* 48px */
  }
  
  h2 {
    font-size: var(--text-4xl); /* 36px */
  }
}

/* ========================================
   PARAGRAPH & BODY TEXT
   ======================================== */

p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Lead paragraph - Larger, prominent text */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Small text */
.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* Extra small text - For captions, labels */
.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

/* ========================================
   LINK STYLES
   ======================================== */

a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-neon-blue);
}

/* Link with underline effect on hover */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.link-underline:hover::after {
  width: 100%;
}

/* ========================================
   TEXT UTILITIES
   ======================================== */

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weights */
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ========================================
   SPECIAL TEXT EFFECTS
   ======================================== */

/* Gradient text effect */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon text effect */
.text-neon {
  color: var(--color-neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
               0 0 20px rgba(0, 212, 255, 0.3);
}

/* ========================================
   CODE & MONOSPACE
   ======================================== */

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  padding: 0.125rem 0.375rem;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--color-neon-teal);
}

pre {
  padding: var(--spacing-md);
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  line-height: var(--leading-relaxed);
}

/* ========================================
   BLOCKQUOTE
   ======================================== */

blockquote {
  margin: var(--spacing-xl) 0;
  padding-left: var(--spacing-lg);
  border-left: 4px solid var(--color-primary-500);
  font-style: italic;
  color: var(--text-secondary);
}

/* ========================================
   LISTS
   ======================================== */

/* Styled unordered list */
ul.styled-list {
  list-style: none;
  padding-left: 0;
}

ul.styled-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

ul.styled-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-neon-blue);
  font-weight: var(--font-bold);
}

/* Styled ordered list */
ol.styled-list {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

ol.styled-list li {
  position: relative;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  counter-increment: item;
}

ol.styled-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}


ul, ol {
    margin: 0;
    padding-left: 1.5rem;
}

blockquote {
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
}