/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e293b;
    --text-color: #334155;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: var(--secondary-color);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--bg-alt);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* --- Article Content --- */
.article-content {
    padding: 3rem 1.5rem;
    max-width: 800px; /* Optimal reading width */
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* --- FAQ Section --- */
.faq-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-section h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-intro {
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-card p, .contact-card a {
    color: #cbd5e1;
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-card a:hover {
    color: white;
}

.contact-cta {
    margin-top: 2rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: white;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

    .nav-list.active {
        display: flex;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}