/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d80;
    --accent-color: #008080; /* Teal for mold/water remediation theme */
    --accent-hover: #006666;
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-light: #f4f7f6;
    --border-color: #e0e6e5;
    --spacing-unit: 1rem;
    --container-max-width: 1100px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.text-link {
    font-weight: 600;
    text-decoration: underline;
    color: var(--accent-color);
}

.text-link:hover {
    color: var(--accent-hover);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.header-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none !important;
}

.header-cta:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-intro {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-section .text-link {
    color: #ffd700; /* Gold for high contrast on dark background */
}

.hero-section .text-link:hover {
    color: #ffec8b;
}

/* =========================================
   5. CONTENT / ARTICLE SECTION
   ========================================= */
.content-section {
    padding: 4rem 0;
    max-width: 850px; /* Optimal reading width for SEO and UX */
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

/* =========================================
   6. CONTACT SECTION
   ========================================= */
.contact-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* =========================================
   8. SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   9. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 1rem;
    }

    .header-cta {
        display: none; /* Hide header CTA on mobile, rely on hero/contact CTAs */
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}