/* Main CSS for CRMICRO Distributor Website */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    padding: 5px 0;
}

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

.nav-menu ul li {
    margin-left: 25px;
}

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

.nav-menu ul li a:hover {
    color: #1a4da1;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1a4da1 0%, #2c6fc6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../svg/tech-background.svg');
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #ff6b00;
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #1a4da1;
    text-decoration: none;
}

/* Core Advantages */
.core-advantages {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.core-advantages .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a4da1;
}

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

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a4da1;
}

.advantage-card p {
    color: #666;
}

/* Core Products */
.core-products {
    padding: 80px 0;
    background-color: white;
}

.core-products .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a4da1;
}

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

.product-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

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

.product-icon {
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a4da1;
}

.product-card a {
    display: inline-block;
    margin-top: 15px;
    color: #1a4da1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.product-card a:hover {
    color: #ff6b00;
}

/* Solutions & Applications */
.solutions-applications {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.solutions-applications .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a4da1;
}

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

.solution-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a4da1;
}

.solution-card a {
    display: inline-block;
    margin-top: 15px;
    color: #1a4da1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.solution-card a:hover {
    color: #ff6b00;
}

/* Latest News */
.latest-news {
    padding: 80px 0;
    background-color: white;
}

.latest-news .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a4da1;
}

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

.news-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1a4da1;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.news-date {
    color: #1a4da1;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-card a {
    display: inline-block;
    margin-top: 15px;
    color: #1a4da1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.news-card a:hover {
    color: #ff6b00;
}

/* Final CTA */
.final-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a4da1 0%, #2c6fc6 100%);
    color: white;
    text-align: center;
}

.final-cta .container > h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.final-cta .container > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #1a4da1;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #1a4da1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu ul li {
        margin: 5px 10px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }

    .advantages-grid,
    .products-grid,
    .solutions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .core-advantages .container > h2,
    .core-products .container > h2,
    .solutions-applications .container > h2,
    .latest-news .container > h2 {
        font-size: 1.8rem;
    }

    /* Adjust product cards for mobile */
    .product-card,
    .solution-card,
    .news-card,
    .advantage-card {
        padding: 20px;
    }

    /* Mobile footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobile contact form adjustments */
    .contact-options {
        flex-direction: column;
    }

    .contact-form-section,
    .contact-details-section {
        width: 100%;
    }

    /* Mobile news adjustments */
    .news-grid {
        gap: 20px;
    }

    .news-card {
        padding: 20px;
    }

    /* Mobile solution details */
    .block-diagram .diagram-container {
        overflow-x: auto;
    }

    /* Mobile technical article adjustments */
    .article-image,
    .diagram-container {
        width: 100%;
        overflow-x: auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .header .container {
        padding: 10px 0;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .core-advantages .container > h2,
    .core-products .container > h2,
    .solutions-applications .container > h2,
    .latest-news .container > h2 {
        font-size: 1.6rem;
    }

    .advantage-card,
    .product-card,
    .solution-card {
        padding: 15px;
    }

    .advantage-card h3,
    .product-card h3,
    .solution-card h3 {
        font-size: 1.1rem;
    }

    .news-card h3 {
        font-size: 1rem;
    }

    /* Mobile navigation adjustments */
    .nav-menu ul li {
        margin: 3px 6px;
        font-size: 0.9rem;
    }

    /* Mobile contact adjustments */
    .office-card {
        padding: 15px;
    }

    .office-card h4 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
}