/* Reset & base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #2b2b2b;
    background: #ffffff;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1d2c29;
}

.logo-sub {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #6c757d;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: #1d2c29;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #d4a373;
}

.nav a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4a373;
}

.header-social {
    display: flex;
    gap: 14px;
}

.header-social a {
    width: 18px;
    height: 18px;
    display: block;
    color: #1d2c29;
    transition: color 0.3s;
}

.header-social a:hover {
    color: #d4a373;
}

.header-social svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1d2c29;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #d4a373;
    color: #1d2c29;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.35);
}

.btn-primary:hover {
    background: #c08a58;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1d2c29;
    border: 1.5px solid #1d2c29;
}

.btn-outline:hover {
    background: #1d2c29;
    color: #fff;
}

.btn-outline:hover .arrow-icon {
    stroke: #fff;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

.text-center {
    text-align: center;
}

/* Section utilities */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 12px;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.7);
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 36px;
    color: #1d2c29;
    margin-bottom: 10px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('../image/factory.png') center/cover no-repeat;
    margin-top: 72px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 44, 41, 0.78) 0%, rgba(29, 44, 41, 0.35) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 620px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 34px;
}

/* Stats */
.stats {
    padding: 80px 0;
    background: #f5f8f6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: left;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d2c29;
    color: #d4a373;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card h3 {
    font-size: 20px;
    color: #1d2c29;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.7;
}

/* About */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-images {
    position: relative;
    min-height: 480px;
}

.about-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.about-img-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 2;
    border: 6px solid #fff;
}

.about-text h2 {
    font-size: 40px;
    color: #1d2c29;
    margin-bottom: 22px;
    line-height: 1.15;
}

.about-text > p {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    margin-bottom: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #1d2c29;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4a373;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Products */
.products {
    padding: 100px 0;
    background: #f5f8f6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #e8ecea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Services */
.services {
    padding: 100px 0;
    background: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    border: 1px solid #e8ecea;
    border-radius: 20px;
    padding: 28px 24px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f5f8f6;
    color: #1d2c29;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 18px;
    color: #1d2c29;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    background: #e8ecea;
}

/* Why Us */
.why-us {
    padding: 100px 0;
    background: #1d2c29;
    color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.why-text h2 {
    font-size: 40px;
    margin-bottom: 40px;
    line-height: 1.15;
}

.why-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.why-icon {
    width: 28px;
    height: 28px;
    color: #d4a373;
    flex-shrink: 0;
}

.why-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
}

.why-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.why-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.why-image img {
    width: 100%;
    height: auto;
}

/* Partners */
.partners {
    padding: 100px 0;
    background: #fff;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-bottom: 60px;
}

.logo-grid img {
    max-height: 60px;
    width: auto;
    max-width: 140px;
    opacity: 0.85;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.logo-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #1d2c29;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #1d2c29;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #f5f8f6;
    border-radius: 20px;
    padding: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    color: #1d2c29;
    font-size: 15px;
}

.testimonial-author span {
    font-size: 12px;
    color: #6c757d;
}

.testimonial-card > p {
    font-size: 14px;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 18px;
}

.stars {
    display: flex;
    gap: 4px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: #d4a373;
    stroke: none;
}

/* CTA */
.cta {
    position: relative;
    padding: 120px 0;
    background: url('../image/cta-bg.webp') center/cover no-repeat;
    color: #fff;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(29, 44, 41, 0.55);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-left: auto;
    margin-right: 10%;
}

.cta h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.cta p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #1d2c29;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 25px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand strong {
    color: #fff;
    font-size: 22px;
    letter-spacing: 1px;
}

.footer-brand span {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4a373;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: #d4a373;
    color: #1d2c29;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background: #c08a58;
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 52px;
    }

    .about-grid,
    .why-grid {
        gap: 50px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-social {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 20px;
        gap: 18px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: 75vh;
        margin-top: 72px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        min-height: 360px;
        margin-bottom: 20px;
    }

    .about-img-top {
        width: 78%;
    }

    .about-img-bottom {
        width: 60%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-content {
        margin-right: auto;
        text-align: center;
    }

    .cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 34px;
    }

    .stats-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-head h2,
    .about-text h2,
    .why-text h2 {
        font-size: 30px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .footer-links {
        gap: 16px;
    }
}
