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

:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --accent: #1f4e79;
    --accent-dark: #163d5e;
    --accent-light: #e8eff5;
    --border: #e5e7eb;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.06);
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Navigation === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-container {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem; font-weight: 700; color: var(--text);
    letter-spacing: 0.08em;
}
.nav-logo .cn-brand {
    font-size: .7rem; font-weight: 400; color: var(--text-muted);
    margin-left: 8px; letter-spacing: 0.15em; vertical-align: middle;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: .9rem; font-weight: 500; color: var(--text-muted);
    transition: color .2s; padding: 4px 0;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 1px; transition: .3s; }

/* === Hero === */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #f4f6f8 0%, #f8fafc 50%, #f4f6f8 100%);
}
.hero-content { max-width: 720px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
    line-height: 1.2; margin-bottom: 20px; letter-spacing: -.02em;
}
.hero p {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-badge {
    display: flex; gap: 48px; margin-top: 64px;
    padding: 24px 48px; background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.badge-item { text-align: center; }
.badge-item strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); }

/* === Buttons === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; transition: all .2s;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-full { width: 100%; text-align: center; font-size: 1rem; padding: 16px; }

/* === Sections === */
section { padding: 96px 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); background: var(--accent-light);
    padding: 4px 14px; border-radius: 3px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* === About === */
.about { background: var(--bg); }
.about-grid {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li {
    padding: 8px 0 8px 28px; position: relative; color: var(--text-muted); font-size: .95rem;
}
.about-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 24px;
    text-align: center; border: 1px solid var(--border);
}
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* === Products === */
.products { background: var(--bg-alt); }
.product-grid {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
    background: var(--bg); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--border); transition: all .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.product-img {
    width: 100%; aspect-ratio: 4/3; margin-bottom: 20px;
    background: linear-gradient(135deg, #f7f8fa 0%, #f4f6f8 100%);
    border-radius: var(--radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.product-img svg { width: 100%; height: 100%; display: block; }
.product-img-placeholder {
    width: 100%; aspect-ratio: 4/3; margin-bottom: 20px;
    background: #f4f6f8; border: 2px dashed #7a9bb5; border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #7a9bb5; font-size: .85rem; font-weight: 500; gap: 8px;
}
.product-img-placeholder .placeholder-icon { font-size: 2rem; }
.product-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.product-card h3 .cn-sub { display: block; font-size: .85rem; font-weight: 400; color: #7a9bb5; margin-top: 2px; }
.product-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.product-specs { list-style: none; }
.product-specs li {
    font-size: .85rem; color: var(--text-muted); padding: 4px 0 4px 20px; position: relative;
}
.product-specs li::before {
    content: '•'; position: absolute; left: 4px; color: var(--accent);
}

/* === Factory === */
.factory { background: var(--bg); }
.factory-grid {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.factory-card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 28px;
    border: 1px solid var(--border);
}
.factory-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.factory-icon { display: block; font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.factory-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.factory-cta {
    text-align: center; margin-top: 48px; padding: 32px;
    background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
    border-radius: var(--radius);
}
.factory-cta p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

/* === Process === */
.process { background: var(--bg-alt); }
.process-steps {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: flex-start; justify-content: center; gap: 4px;
    flex-wrap: wrap;
}
.step {
    flex: 1; min-width: 200px; max-width: 280px;
    text-align: center; padding: 20px 10px;
}
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; margin: 0 auto 16px;
}
.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; text-align: left; }
.step p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; text-align: left; }
.step-arrow {
    font-size: 1.5rem; color: var(--text-light); display: flex; align-items: center;
    padding-top: 40px; flex-shrink: 0; margin: 0 -6px;
}

/* === Contact === */
.contact { background: var(--bg); }
.contact-grid {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}
.contact-form {
    background: var(--bg-alt); border-radius: var(--radius); padding: 36px;
    border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
    transition: border-color .2s; background: var(--bg); color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.form-note { text-align: center; font-size: .8rem; color: var(--text-light); margin-top: 12px; }

.form-result {
    text-align: center; padding: 14px 20px; border-radius: var(--radius-sm);
    margin-top: 16px; font-weight: 500; font-size: .95rem;
}
.form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 28px;
    border: 1px solid var(--border); margin-bottom: 20px;
}
.contact-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: .9rem; color: var(--text-muted); }
.contact-item strong { display: block; color: var(--text); margin-bottom: 2px; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-why ul { list-style: none; }
.contact-why li {
    font-size: .88rem; color: var(--text-muted); padding: 6px 0 6px 24px;
    position: relative;
}
.contact-why li::before {
    content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: .85rem;
}

/* === Footer === */
.footer { background: var(--bg-dark); color: #9ca3af; padding: 64px 24px 32px; }
.footer-content {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.footer-brand .nav-logo { color: #fff; font-size: 1.3rem; display: inline-block; margin-bottom: 12px; letter-spacing: 0.08em; }
.footer-brand .nav-logo .cn-brand { color: #6b7280; font-size: .65rem; letter-spacing: 0.15em; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .85rem; color: #9ca3af; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width); margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid #374151;
    text-align: center; font-size: .85rem;
}

/* ========== Resources Teaser ========== */
.resources-teaser { padding: 80px 24px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.teaser-container {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.teaser-intro h2 { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; margin-bottom: 12px; }
.teaser-intro p { font-size: .92rem; color: #94a3b8; line-height: 1.7; margin-bottom: 20px; }
.teaser-intro .btn { display: inline-block; }
.teaser-cards { display: flex; flex-direction: column; gap: 10px; }
.teaser-chip {
    display: block; padding: 14px 20px; background: rgba(255,255,255,.04);
    border: 1px solid #334155; border-radius: 8px; font-size: .9rem;
    color: #cbd5e1; transition: all .2s; text-decoration: none;
}
.teaser-chip:hover { background: rgba(96,165,250,.08); border-color: var(--accent); color: #fff; }

/* ========== Insights Section ========== */
.insights { padding: 100px 24px; background: var(--bg-dark); }
.insights .section-sub { max-width: 620px; }
.insights-grid { max-width: var(--max-width); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.insight-card {
    background: #1e293b; border: 1px solid #334155; border-radius: 12px;
    padding: 36px; position: relative; overflow: hidden;
    transition: border-color .2s;
}
.insight-card:hover { border-color: var(--accent); }
.insight-num {
    position: absolute; top: 24px; right: 28px; font-size: 3rem; font-weight: 700;
    color: rgba(96, 165, 250, .08); line-height: 1; pointer-events: none;
}
.insight-card h3 {
    font-size: 1.1rem; font-weight: 600; color: #f1f5f9;
    margin-bottom: 14px; line-height: 1.4; padding-right: 60px;
}
.insight-card p {
    font-size: .88rem; color: #94a3b8; line-height: 1.75; margin-bottom: 20px;
}
.insight-key {
    background: rgba(96, 165, 250, .06); border-left: 3px solid var(--accent);
    padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .84rem;
    color: #cbd5e1; line-height: 1.6;
}
.insight-key span {
    display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .insights-grid { grid-template-columns: 1fr; }
    .insight-num { font-size: 2.5rem; }
    .insight-card h3 { padding-right: 50px; }
    .teaser-container { grid-template-columns: 1fr; gap: 32px; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .nav-links {
        position: fixed; top: 64px; left: 0; right: 0; background: white;
        flex-direction: column; gap: 0; padding: 0;
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height .3s;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { max-height: 400px; }
    .nav-links a { padding: 16px 24px; border-top: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .hero-badge { gap: 24px; padding: 16px 32px; }
    .step-arrow { display: none; }
    .process-steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
}
@media (max-width: 600px) {
    .product-grid, .factory-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-badge { flex-wrap: wrap; gap: 16px; }
    .footer-content { flex-direction: column; gap: 32px; }
    .footer-links { flex-direction: column; gap: 24px; }
}


/* === WhatsApp Floating Button === */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 50px; height: 50px; min-width: 50px; max-width: 50px;
    border-radius: 50%;
    background: #25D366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none; overflow: hidden; flex-shrink: 0;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 600px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

/* === Factory Gallery === */
.factory-gallery {
    padding: 80px 10%;
    background: var(--bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    transition: transform .25s, box-shadow .25s;
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.gallery-item.gallery-wide {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img {
    transform: scale(1.04);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    visibility: hidden;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
    visibility: visible;
}
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-caption {
    color: #fff;
    margin-top: 16px;
    font-size: 1rem;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
}
.lightbox-close:hover {
    color: #ccc;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10001;
    transition: background .2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,.3);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-item.gallery-wide {
        grid-column: span 2;
    }
    .factory-gallery {
        padding: 60px 5%;
    }
    .lightbox-prev { left: 8px; padding: 8px 12px; font-size: 22px; }
    .lightbox-next { right: 8px; padding: 8px 12px; font-size: 22px; }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.gallery-wide {
        grid-column: span 1;
    }
}
