/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    --primary-color: #1e40af;       /* Deep Blue */
    --primary-dark: #1e3a8a;
    --accent-color: #f59e0b;        /* Amber/Orange for CTAs */
    --accent-hover: #d97706;
    --text-dark: #111827;
    --text-body: #374151;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* =========================================
   2. Typography & Links
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
}

.content-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--accent-color);
}

.content-link:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

/* =========================================
   3. Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* =========================================
   6. Article Content
   ========================================= */
.article-wrapper {
    padding: 4rem 1.5rem;
}

.blog-content {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.blog-content h2:first-of-type {
    margin-top: 0;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.blog-content li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.blog-content li strong {
    color: var(--text-dark);
}

/* =========================================
   7. Contact Section
   ========================================= */
.contact-section {
    background-color: var(--bg-light);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-item a, .contact-item span {
    color: var(--text-body);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* =========================================
   8. Footer
   ========================================= */
.site-footer {
    background-color: var(--text-dark);
    color: #d1d5db;
    padding: 3rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #374151;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 400px;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* =========================================
   9. Scroll to Top Button
   ========================================= */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   10. Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-details {
        align-items: center;
        text-align: center;
    }
}

/* Animation classes for JS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}