/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    color: var(--color-black);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

/* Section Headers Typography */
.section-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Page Headers Typography */
.page-header {
    margin-bottom: var(--spacing-3xl);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
}

.page-header p {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Subheadings Typography */
.subheading {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Card Headers Typography */
.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.card-header p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Footer */
.site-footer {
    background: var(--bg-white);
    padding: 6rem var(--spacing-xl) var(--spacing-xl);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--border-color);
}

.footer-section:first-child {
    text-align: left;
}

.footer-section h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-black);
}

.footer-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 320px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-section ul a:hover {
    color: var(--color-black);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    color: var(--color-black);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.footer-bottom {
    max-width: 1400px;
    margin: var(--spacing-xl) auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-legal nav { /* Assuming nav within .footer-legal */
    display: flex;
    gap: 2rem;
    padding: 0; /* Resetting nav padding if it was affected by base.css */
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--color-black);
}

.footer-extra {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-contact {
    color: var(--color-black);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity var(--transition-base);
}

.footer-contact:hover {
    opacity: 70%;
}

@media (width <= 1024px) {
    .footer-section:first-child {
        text-align: center;
    }

    .footer-section:first-child > * {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Mobile typography scale-down */
@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-2xl);
    }
    h2 {
        font-size: var(--font-size-xl);
    }
    h3 {
        font-size: var(--font-size-lg);
    }
    .section-header h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.25rem;
    }
    .section-header p {
        font-size: var(--font-size-base);
    }
    .page-header h1 {
        font-size: var(--font-size-2xl);
    }
    .page-header p {
        font-size: var(--font-size-lg);
    }
}

@media (width <= 768px) {
    .site-footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-extra {
        flex-direction: column;
        gap: 1rem;
    }
} 