@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 102.5%;
  ascent-override: 85%;
  descent-override: 25%;
}
/* Global Typography System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Font Family */
  --font-primary: 'Poppins', 'Poppins Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 2.5rem;     /* 40px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Colors */
  --color-text-primary: var(--kt-text-primary);
  --color-text-secondary: var(--kt-text-secondary);
  --color-text-light: #FFFFFF;
  --color-brand: #186aff;
  --color-accent: #004aac;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, .h1, article h1, aside h1, nav h1, section h1 {
  font-size: var(--font-size-6xl) !important;
  font-weight: var(--font-bold);
  line-height: var(--line-height-tight);
  margin-bottom: 1.5rem;
}

h2, .h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: 1.25rem;
}

h3, .h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-snug);
  margin-bottom: 1rem;
}

h4, .h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-medium);
  line-height: var(--line-height-snug);
  margin-bottom: 1rem;
}

h5, .h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-medium);
  line-height: var(--line-height-normal);
  margin-bottom: 0.75rem;
}

h6, .h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-medium);
  line-height: var(--line-height-normal);
  margin-bottom: 0.75rem;
}

/* Text Elements */
p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1rem;
}

.lead {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
}

/* Navigation */
.nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-medium);
  line-height: var(--line-height-normal);
}

/* Buttons */
.btn, button {
  font-size: var(--font-size-base);
  font-weight: var(--font-medium);
  line-height: var(--line-height-none);
}

.btn-lg {
  font-size: var(--font-size-lg);
}

.btn-sm {
  font-size: var(--font-size-sm);
}

/* Menu Specific */
nav#menu .nav-link {
  font-size: 24px;
  font-weight: var(--font-medium);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --font-size-6xl: 2.5rem;    /* 40px */
    --font-size-5xl: 2.25rem;   /* 36px */
    --font-size-4xl: 2rem;      /* 32px */
    --font-size-3xl: 1.75rem;   /* 28px */
    --font-size-2xl: 1.5rem;    /* 24px */
  }
  
  nav#menu .nav-link {
    font-size: 22px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  :root {
    --font-size-6xl: 2rem;      /* 32px */
    --font-size-5xl: 1.875rem;  /* 30px */
    --font-size-4xl: 1.75rem;   /* 28px */
    --font-size-3xl: 1.5rem;    /* 24px */
    --font-size-2xl: 1.25rem;   /* 20px */
  }
  
  nav#menu .nav-link {
    font-size: 20px;
  }
}

/* Fix for heading font size warning in landmark elements */

section h1 {
  font-size: var(--font-size-6xl);
}
