/**
 * HyzenPro Global Typography
 * 
 * Font Families:
 * - Headlines/Titles: 'Bebas Neue', cursive
 * - Body Text: 'Outfit', sans-serif
 * - About Page Headlines: 'Playfair Display', serif (loaded on about pages only)
 * 
 * @package HyzenPro
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables - Typography
   ========================================================================== */

:root {
    /* Font Families */
    --font-headline: 'Bebas Neue', cursive;
    --font-body: 'Outfit', sans-serif;
    --font-elegant: 'Playfair Display', serif;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-semibold: 600;
    --font-bold: 800;
    
    /* Font Sizes - Mobile First */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;        /* 32px */
    --text-4xl: 2.5rem;      /* 40px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 4rem;        /* 64px */
    --text-7xl: 5rem;        /* 80px */
    --text-hero: clamp(3.5rem, 10vw, 10rem);
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.8;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    --tracking-headline: 0.02em;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-weight: var(--font-regular);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headline);
    font-weight: var(--font-regular);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-headline);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1, .h1 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    letter-spacing: 2px;
}

h2, .h2 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    letter-spacing: 2px;
}

h3, .h3 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    letter-spacing: 1px;
}

h4, .h4 {
    font-size: var(--text-xl);
    letter-spacing: 1px;
}

h5, .h5 {
    font-size: var(--text-lg);
    letter-spacing: 0.5px;
}

h6, .h6 {
    font-size: var(--text-base);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Paragraph & Body Text
   ========================================================================== */

p {
    font-family: var(--font-body);
    font-weight: var(--font-light);
    line-height: var(--leading-loose);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: var(--text-lg);
    font-weight: var(--font-light);
    line-height: var(--leading-loose);
}

small, .small {
    font-size: var(--text-sm);
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
    font-family: var(--font-body);
    font-weight: var(--font-light);
    line-height: var(--leading-loose);
}

/* ==========================================================================
   Section Typography Classes
   ========================================================================== */

.section-tag {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-description {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--font-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-loose);
}

/* ==========================================================================
   Hero Typography
   ========================================================================== */

.hero-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: var(--text-hero);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2px currentColor;
    text-stroke: 2px currentColor;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--font-light);
    letter-spacing: 1px;
    line-height: var(--leading-loose);
}

/* ==========================================================================
   Button Typography
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   Navigation Typography
   ========================================================================== */

.nav-menu a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Card Typography
   ========================================================================== */

.tool-name,
.category-name {
    font-family: var(--font-headline);
    letter-spacing: 0.5px;
}

.tool-description {
    font-family: var(--font-body);
    font-weight: var(--font-light);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Stats Typography
   ========================================================================== */

.stat-number {
    font-family: var(--font-headline);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
    line-height: var(--leading-none);
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   Footer Typography
   ========================================================================== */

.footer-links h4 {
    font-family: var(--font-headline);
    font-size: var(--text-xl);
    letter-spacing: 1px;
}

.footer-links a {
    font-family: var(--font-body);
    font-weight: var(--font-light);
    font-size: var(--text-base);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
}

/* ==========================================================================
   About Page Elegant Typography (loaded conditionally)
   ========================================================================== */

.page-about h1,
.page-about .h1,
.about-headline {
    font-family: var(--font-elegant);
    font-weight: var(--font-regular);
    text-transform: none;
    letter-spacing: var(--tracking-tight);
}

.page-about h2,
.page-about h3,
.page-about .h2,
.page-about .h3 {
    font-family: var(--font-headline);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.font-headline { font-family: var(--font-headline) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-elegant { font-family: var(--font-elegant) !important; }

.font-light { font-weight: var(--font-light) !important; }
.font-regular { font-weight: var(--font-regular) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.tracking-tight { letter-spacing: var(--tracking-tight) !important; }
.tracking-normal { letter-spacing: var(--tracking-normal) !important; }
.tracking-wide { letter-spacing: var(--tracking-wide) !important; }
.tracking-wider { letter-spacing: var(--tracking-wider) !important; }

/* ==========================================================================
   Responsive Typography Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --text-hero: clamp(2.5rem, 12vw, 4rem);
    }
    
    h1, .h1 {
        font-size: var(--text-3xl);
    }
    
    h2, .h2 {
        font-size: var(--text-2xl);
    }
    
    .section-description {
        font-size: var(--text-base);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
}
