/*
Theme Name: Injection Mold Pro
Theme URI: https://sujiaomoju.com
Author: Injection Mold Pro
Author URI: https://sujiaomoju.com
Description: Professional injection mold manufacturing theme with responsive design and industrial UI
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: injection-mold-pro
Tags: industrial, business, responsive, modern, clean
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/injection_mold_factory.jpg') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services {
    padding: 4rem 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
}

.service-card-content .btn {
    margin-top: auto;
    align-self: center;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
    text-align: center;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.service-card i {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.about-preview {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.testimonials {
    padding: 4rem 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.testimonial-card h4 {
    margin-top: 1rem;
    color: #2c3e50;
}

.testimonial-card .company {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.contact-preview {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    text-align: center;
}

.contact-preview h2 {
    color: #fff;
}

.contact-preview p {
    margin-bottom: 2rem;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    text-align: center;
}

.trust {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trust-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trust-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trust-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
    color: #2c3e50;
}

.trust-item p {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    color: #7f8c8d;
}

.products {
    padding: 4rem 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    text-align: center;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-preview .container {
        grid-template-columns: 1fr;
    }

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

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

    .service-card-content {
        padding: 1rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.language-switcher {
    margin-left: 2rem;
    font-weight: 500;
}

/* TranslatePress Language Switcher Styles */
.trp-language-switcher {
    position: relative;
    display: inline-block;
}

.trp-language-switcher-current {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.trp-language-switcher-current:hover {
    background-color: #f0f0f0;
}

.trp-language-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.trp-language-switcher:hover .trp-language-switcher-dropdown {
    display: block;
}

.trp-language-switcher-dropdown li {
    margin: 0;
}

.trp-language-switcher-preview {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.trp-language-switcher-preview:hover {
    background-color: #f5f5f5;
}

.trp-flag {
    width: 20px;
    height: 15px;
    margin-right: 0.5rem;
    border-radius: 2px;
}

.trp-flag-us {
    background-color: #fff;
    background-image: linear-gradient(180deg, #3c3b6e 33.33%, #fff 33.33%, #fff 66.66%, #b22234 66.66%);
}

.trp-flag-cn {
    background-color: #de2910;
    position: relative;
}

.trp-flag-cn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    width: 8px;
    height: 8px;
    background-color: #ffde00;
    border-radius: 50%;
    transform: translateY(-50%);
}

.trp-language-name {
    font-size: 0.9rem;
}

.faq {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item h3 {
    padding: 1.5rem;
    margin: 0;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background-color: #f0f0f0;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #7f8c8d;
}

.news {
    padding: 4rem 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-card p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.news-card-content .btn {
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}