/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #000;
    line-height: 1.2;
    /* margin-bottom is in base.css, this defines look & feel */
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    /* margin-bottom: 1.5rem; */ /* Base handles margin */
}

h2 {
    font-size: 1.5rem; /* Modern h2 */
    font-weight: 500;
    letter-spacing: -0.02em;
    /* margin-bottom: 1rem; */ /* Base handles margin */
}

h3 {
    font-size: 1.5rem; /* Modern h3 */
    /* margin-bottom: 1rem; */ /* Base handles margin */
}

h4 {
    font-size: 1.25rem;
    /* margin-bottom: 0.75rem; */ /* Base handles margin */
}

h5 {
    font-size: 1.125rem;
    /* margin-bottom: 0.75rem; */ /* Base handles margin */
}

h6 {
    font-size: 1rem;
    /* margin-bottom: 0.75rem; */ /* Base handles margin */
}

/* Section Headers Typography */
.section-header h1 { /* Typography for h1 within .section-header */
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1rem; /* Specific margin for this context */
}

.section-header h2 { /* Typography for h2 within .section-header */
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem; /* Specific margin for this context */
}

.section-header p { /* Typography for p within .section-header */
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

/* Page Headers Typography */
.page-header {
    margin-bottom: 4rem; /* Layout for page header */
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

/* Subheadings Typography */
.subheading {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Card Headers Typography */
.card-header h3 { /* Typography for h3 within .card-header */
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem; /* Specific margin for this context */
}

.card-header p { /* Typography for p within .card-header */
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* Modern Footer */
.site-footer {
    background: #fff;
    padding: 6rem 2rem 2rem;
    margin-top: auto;
    border-top: 1px solid #eee; /* Added border for separation */
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
}

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

.footer-section h4 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #000;
}

.footer-section p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    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: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: #000;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #000;
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
}

.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: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #000;
}

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

.footer-contact {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.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;
    }
}

@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;
    }
} 