/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --max-width: 900px;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   2. Utility Classes
   ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--bg-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600 !important;
}

.nav-cta:hover {
    background-color: #d97706;
    color: var(--bg-white) !important;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: var(--bg-white);
    padding: 5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.hero .btn:hover {
    background-color: #d97706;
    color: var(--bg-white);
}

/* =========================================
   5. Article Content
   ========================================= */
.article-container {
    padding: 4rem 1rem;
}

.blog-post {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.blog-post h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-post h2:first-child {
    margin-top: 0;
}

.blog-post h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.blog-post ul {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-post li {
    margin-bottom: 0.75rem;
    position: relative;
}

/* =========================================
   6. Contact Section
   ========================================= */
.contact-section {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 4rem 1rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.contact-section > .container > p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.contact-item p, .contact-item a {
    color: var(--bg-white);
    font-size: 1rem;
    opacity: 0.9;
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-cta-wrapper {
    margin-top: 2rem;
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

/* =========================================
   8. Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }

    .nav-list.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .blog-post h2 {
        font-size: 1.625rem;
    }

    .blog-post h3 {
        font-size: 1.375rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}