/* ============================================
   TYPOGRAPHY SYSTEM - Lexend Font Family
   ============================================ */

/* Global Font Settings */
:root {
  /* Font Families */
  --font-primary: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Font Weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Base Font Size */
  --font-size-base: 16px;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
}

/* Apply Lexend to Body */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-regular);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: 0.5em;
}

h1, .h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-bold);
}

h2, .h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-semibold);
}

h3, .h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-semibold);
}

h4, .h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-medium);
}

h5, .h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-medium);
}

h6, .h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-medium);
}

/* Paragraphs */
p {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-regular);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1em;
}

/* Lead Text */
.lead {
  font-size: var(--font-size-lg);
  font-weight: var(--font-light);
  line-height: var(--line-height-relaxed);
}

/* Small Text */
small, .small {
  font-size: var(--font-size-sm);
}

/* Links */
a {
  font-family: var(--font-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Buttons */
button, .btn {
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-spacing-normal);
}

/* Form Elements */
input, textarea, select {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-regular);
}

/* Material Symbols Icons */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Icon Sizes */
.material-symbols-outlined.icon-sm {
  font-size: 18px;
}

.material-symbols-outlined.icon-md {
  font-size: 24px;
}

.material-symbols-outlined.icon-lg {
  font-size: 32px;
}

.material-symbols-outlined.icon-xl {
  font-size: 48px;
}

/* Utility Classes */
.font-thin { font-weight: var(--font-thin); }
.font-extralight { font-weight: var(--font-extralight); }
.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black { font-weight: var(--font-black); }

/* Responsive Typography */
@media (max-width: 991px) {
  :root {
    --font-size-5xl: 2.5rem;   /* 40px */
    --font-size-4xl: 2rem;     /* 32px */
    --font-size-3xl: 1.75rem;  /* 28px */
  }
}

@media (max-width: 767px) {
  :root {
    --font-size-5xl: 2rem;     /* 32px */
    --font-size-4xl: 1.75rem;  /* 28px */
    --font-size-3xl: 1.5rem;   /* 24px */
  }
}

@media (max-width: 575px) {
  :root {
    --font-size-base: 15px;
    --font-size-5xl: 1.75rem;  /* 28px */
    --font-size-4xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.25rem;  /* 20px */
  }
}

/* ============================================
   GLOBAL TYPOGRAPHY RESET
   (Merged from custom.css)
   ============================================ */
body {
    font-family: var(--font-primary) !important;
    font-size: var(--body-size);
    color: #4b5563;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading) !important;
    color: var(--nav-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    font-family: var(--font-primary) !important;
    margin-bottom: 1.5rem;
}
