/*
Theme Name: Factory88 Solar Lighting
Theme URI: https://factory88.cn
Author: Factory88
Description: Custom B2B theme for Solar Rechargeable LED Lights.
Version: 1.0.0
Text Domain: factory88
*/

:root {
    --navy: #071f3d;
    --blue: #2f80ed;
    --text: #081b34;
    --muted: #66768a;
    --light: #f4f8fc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER
========================= */

.site-header {
    width: 100%;
    background: var(--navy);
    color: #fff;
    position: relative;
    z-index: 1000;
}

.header-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    width: 210px;
    display: flex;
    align-items: center;
    color: #fff;
}

.site-logo img {
    max-height: 44px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .3px;
}

.main-navigation {
    flex: 1;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: color .2s ease;
}

.main-navigation a:hover {
    color: #72adff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.language-switcher {
    font-size: 14px;
}

.language-switcher a {
    color: #b9c6d4;
}

.language-switcher .language-current {
    color: #fff;
    font-weight: 700;
}

.language-switcher span {
    color: #71849a;
    margin: 0 4px;
}

.quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s ease;
}

.quote-button:hover {
    background: #1d6fd6;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--navy);
    color: #fff;
    margin-top: 70px;
}

.footer-inner {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 55px;
}

.footer-grid h3 {
    margin: 0 0 18px;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-grid p {
    color: #c6d2df;
    font-size: 14px;
    line-height: 1.8;
}

.footer-logo {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    color: #c6d2df;
    margin-bottom: 11px;
    font-size: 14px;
}

.footer-grid a {
    color: #c6d2df;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.13);
    margin-top: 42px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #aebdcb;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 22px;
}

.footer-legal a {
    color: #aebdcb;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-logo {
        width: auto;
        flex: 1;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .main-navigation ul {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .header-actions {
        display: none;
    }

    .main-navigation ul {
        gap: 12px 18px;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}

/* =========================
   HOME HERO
========================= */

.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 57, .93) 0%,
            rgba(5, 29, 57, .72) 45%,
            rgba(5, 29, 57, .35) 100%
        ),
        linear-gradient(
            135deg,
            #0b3159,
            #274d70
        );
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-content {
    max-width: 650px;
    color: #fff;
}

.hero-content h1 {
    margin: 0 0 24px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.8px;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 32px;
    color: #e3ebf4;
    font-size: 18px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.hero-btn-primary {
    background: var(--blue);
    color: #fff;
}

.hero-btn-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.85);
}


/* =========================
   SUPPORT SECTION
========================= */

.home-support {
    padding: 70px 24px 75px;
}

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading span {
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .8px;
}

.section-heading h2 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
}

.support-grid {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-card {
    border: 1px solid #d7e1ec;
    padding: 26px 24px;
    min-height: 160px;
    background: #fff;
}

.support-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.support-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 800px) {

    .home-hero {
        min-height: 460px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   PRODUCT SERIES
========================= */

.product-series {
    padding: 70px 24px 75px;
    background: var(--light);
}

.series-grid {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.series-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: #153657;
}

.series-image {
    position: absolute;
    inset: 0;
}

.placeholder-image {
    background:
        linear-gradient(
            rgba(4, 31, 61, .25),
            rgba(4, 31, 61, .7)
        ),
        linear-gradient(
            135deg,
            #264f78,
            #6f91af
        );
}

.series-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================
   FACTORY VIDEO
========================= */

.factory-video {
    padding: 75px 24px;
    background: #fff;
}

.video-placeholder {
    width: min(1050px, 100%);
    min-height: 520px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            rgba(4, 31, 61, .28),
            rgba(4, 31, 61, .55)
        ),
        linear-gradient(
            135deg,
            #274d70,
            #102c4a
        );
}

.play-button {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #e52525;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    font-size: 30px;
    position: relative;
    z-index: 2;
}

.video-placeholder-text {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}


@media (max-width: 800px) {

    .series-grid {
        grid-template-columns: 1fr;
    }

    .video-placeholder {
        min-height: 320px;
    }

}
