/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    font-size: 16px;
}

/* Accessibility - Skip to Main Content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 9999;
    font-weight: 500;
}

.skip-to-main:focus {
    top: 0;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    flex-wrap: wrap;
    min-height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
    min-height: calc(100vh - 140px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.page-description {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Document Grid (Home Page) */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #2563eb;
}

.document-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.document-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: #1d4ed8;
}

/* Info Section */
.info-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-section p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

/* Document Content */
.document-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.document-section {
    padding: 3rem;
}

.document-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.document-section h2:first-of-type {
    margin-top: 1rem;
}

.document-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem 0;
}

.document-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.5rem 0;
}

.document-section p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.document-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.document-section li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.document-section li strong {
    color: #1f2937;
    font-weight: 600;
}

.contact-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
}

/* Warning Box (for important notices) */
.warning-box {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box p {
    color: #92400e;
    margin-bottom: 0;
    font-weight: 500;
}

.warning-box strong {
    color: #78350f;
}

/* Document Navigation */
.document-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
}

.nav-button.primary {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.nav-button.primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.nav-button.secondary {
    background-color: #ffffff;
    color: #6b7280;
    border-color: #d1d5db;
}

.nav-button.secondary:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: auto;
        min-height: 60px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .nav-brand {
        margin-bottom: 0;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1.125rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
    
    .document-section {
        padding: 1.5rem;
    }
    
    .document-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-button {
        text-align: center;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
    
    .brand-text {
        font-size: 1.125rem;
    }
    
    .logo {
        height: 28px;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .document-section {
        padding: 1rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.25rem;
        gap: 0.15rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        margin-top: 0.15rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .logo {
        height: 24px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .document-navigation {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .document-content,
    .info-section {
        box-shadow: none;
        border: none;
    }
    
    .page-header h1 {
        color: #000;
    }
    
    body {
        background-color: #fff;
    }
}
