/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;
    --color-text: #2d3748;
    --color-text-light: #64748b;
    --color-heading: #1a202c;
    --color-primary: #1e3a5f;
    --color-primary-light: #2c5282;
    --color-accent: #2b6cb0;
    --color-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 960px;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== Layout ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--color-primary);
}

/* ===== Hero ===== */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: var(--color-bg);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.credentials {
    font-size: 1.05rem;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section p {
    max-width: 680px;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section p:last-child {
    margin-bottom: 0;
}

.section a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.section a:hover {
    color: var(--color-primary-light);
}

/* ===== Resources Grid ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    display: block;
    padding: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-card {
    padding: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-card a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Footer ===== */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

footer p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section h2 {
        font-size: 1.35rem;
    }

    nav ul {
        gap: 1.25rem;
    }

    nav a {
        font-size: 0.82rem;
    }

    .logo {
        font-size: 0.92rem;
    }

    .nav-inner {
        height: 56px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ===== Print ===== */
@media print {
    header {
        position: static;
        border-bottom: none;
    }

    .hero {
        padding-top: 2rem;
    }

    .section-alt {
        background: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
