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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

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

/* ===== Top Bar ===== */
.top-bar {
    background: #1a1a2e;
    color: #ccc;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.top-bar-contact {
    display: flex;
    gap: 1.5rem;
}
.top-bar-contact a {
    color: #ccc;
    transition: color 0.2s;
}
.top-bar-contact a:hover { color: #fff; }
.top-bar-contact .icon { margin-right: 0.3rem; }

.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.lang-current { color: #e63946; font-weight: 600; }
.lang-link { color: #999; transition: color 0.2s; }
.lang-link:hover { color: #fff; }

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.site-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}
.main-nav a {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.main-nav a:hover {
    color: #e63946;
    border-bottom-color: #e63946;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #1a1a2e;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: center;
}
.carousel-overlay .container {
    color: #fff;
}
.carousel-overlay h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.carousel-overlay p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 2rem;
    max-width: 500px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.6rem;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: #e63946; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-accent {
    background: #e63946;
    color: #fff;
}
.btn-accent:hover { background: #c62d3a; }
.btn-outline {
    border: 2px solid #333;
    color: #333;
    background: transparent;
}
.btn-outline:hover {
    background: #333;
    color: #fff;
}
.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ===== Intro Banner ===== */
.intro-banner {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}
.intro-banner h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}
.intro-banner p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1rem;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title.left { text-align: left; }
.section-title h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    font-weight: 700;
}
.title-line {
    width: 50px;
    height: 3px;
    background: #e63946;
    margin: 0.8rem auto 0;
}
.section-title.left .title-line {
    margin: 0.8rem 0 0;
}

/* ===== Product Grid ===== */
.product-section {
    padding: 4rem 0;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.product-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.product-card.product-large {
    grid-column: span 2;
    grid-row: span 2;
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-placeholder span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 2rem 1rem 1rem;
    color: #fff;
}
.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.product-card.product-large .product-info h3 {
    font-size: 1.4rem;
}
.product-info span {
    font-size: 0.85rem;
    color: #e63946;
    font-weight: 600;
}

/* ===== About Section ===== */
.about-section {
    padding: 4rem 0;
    background: #fff;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}
.about-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ===== Certifications ===== */
.cert-section {
    padding: 4rem 0;
    background: #f8f9fa;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.cert-item {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.cert-item:hover {
    transform: translateY(-2px);
}
.cert-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* ===== Factory Gallery ===== */
.factory-section {
    padding: 4rem 0;
}
.factory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.factory-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.factory-item:hover img {
    transform: scale(1.05);
}
.factory-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-section p {
    color: #bbb;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.cta-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    font-size: 1rem;
    transition: color 0.2s;
}
.cta-contact:hover { color: #e63946; }
.cta-icon { font-size: 1.2rem; }

/* ===== Footer ===== */
.site-footer {
    background: #0d0d1a;
    color: #888;
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: #e63946; }
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* ===== Content Pages ===== */
.content-area {
    padding: 3rem 0;
    min-height: 50vh;
}
.content-area h1 {
    margin-bottom: 2rem;
    color: #1a1a2e;
    font-size: 2rem;
}
.page-content { line-height: 1.8; }
.page-content h2 {
    margin: 2rem 0 1rem;
    color: #1a1a2e;
}
.page-content p { margin-bottom: 1rem; }
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.page-content th, .page-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}
.page-content th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-carousel { height: 350px; }
    .carousel-overlay h1 { font-size: 1.8rem; }
    .carousel-overlay p { font-size: 1rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card.product-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .about-inner { grid-template-columns: 1fr; }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav ul { gap: 1rem; flex-wrap: wrap; }
    .main-nav a { font-size: 0.85rem; }
    .header-inner { flex-direction: column; gap: 0.8rem; }
    .top-bar-contact { gap: 0.8rem; font-size: 0.8rem; }
}

/* ===== Mobile Menu Toggle ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 200;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    margin: 5px 0;
    transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .site-header { position: relative; }
    .header-inner {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0;
    }
    .site-logo { z-index: 150; }
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 100;
    }
    .main-nav.nav-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Product Gallery */
.product-gallery {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}
.product-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}


/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 2rem;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
