/* Maplesolarhub - Solar Clarity Theme */
/* Strict Class-Based Architecture */

:root {
    --color-primary: #005eb8;
    --color-secondary: #ffcd00;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-bg-white: #ffffff;
    --color-bg-light: #f4f7f9;
    --color-border: #e0e0e0;

    --font-main: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.maple-html {
    scroll-behavior: smooth;
}

.maple-body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

/* Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.primary-btn {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-block;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: #e6b800;
}

.secondary-btn {
    background-color: transparent;
    color: var(--color-bg-white);
    border: 2px solid var(--color-bg-white);
    font-weight: 600;
    padding: 10px 22px;
    /* compensate border */
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    display: inline-block;
}

.secondary-btn:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

/* Header */
.site-header {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

/* Logo Styling */
.brand-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.brand-part-maple {
    color: var(--color-text-dark);
}

.brand-part-solar {
    color: var(--color-secondary);
    /* Yellow */
}

.brand-part-hub {
    color: var(--color-primary);
    /* Blue */
}

.main-navigation {
    display: none;
    /* hidden on mobile */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 1001;
    transition: right var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* header offset */
    overflow: hidden;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 94, 184, 0.4), rgba(0, 40, 80, 0.8));
}

.hero-content {
    text-align: center;
    color: var(--color-bg-white);
    padding: 20px;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    min-width: 160px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 0 auto 15px;
}

.section-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.card-text {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 10px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--color-bg-white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-title {
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    font-weight: 500;
}

.about-list-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 800;
}

.about-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--color-primary);
    text-align: center;
    padding: 80px 20px;
    color: var(--color-bg-white);
}

.banner-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.banner-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-block;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-text {
    font-size: 1.5rem;
    color: var(--color-bg-white);
    margin-bottom: 20px;
}

.footer-address,
.footer-email {
    color: #a0a0a0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    font-style: normal;
}

.footer-email:hover {
    color: var(--color-secondary);
}

.footer-heading {
    color: var(--color-bg-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-link {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-legal-btn {
    display: block;
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 1rem;
    text-align: left;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.footer-legal-btn:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.footer-disclaimer {
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background-color: var(--color-bg-white);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-header {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 10px;
}

.modal-text {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-navigation {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-white);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    animation: pulseLoader 1.5s infinite ease-in-out;
    letter-spacing: 2px;
}

@keyframes pulseLoader {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}