/* Sinomach Site CSS */

:root {
    --primary-color: #004B87;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 60px;
}

html, body {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.navbar-brand span {
    font-weight: 700;
}

.nav-link {
    margin-left: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.card-title {
    color: #1a1a1a;
    font-weight: 600;
}

/* Features Section */
.features-section {
    background-color: var(--light-color);
}

.features-section h2,
.about-section h2,
.services-section h2,
.faq-section h2,
.blog-section h2,
.contact-section h2,
.products-section h1 {
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.features-section h2::after,
.about-section h2::after,
.services-section h2::after,
.faq-section h2::after,
.blog-section h2::after,
.contact-section h2::after,
.products-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.cta-section h2::after {
    display: none;
}

/* About Section */
.about-section img {
    border-radius: 0.75rem;
    object-fit: cover;
}

/* Services Section */
.services-section .card-body i {
    color: var(--primary-color);
}

.services-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Blog Section */
.blog-section .card img {
    height: 250px;
    object-fit: cover;
}

.blog-section .pagination .page-link {
    color: var(--primary-color);
}

.blog-section .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-section form input,
.contact-section form textarea {
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Products Section */
.products-section .card img {
    height: 200px;
    object-fit: cover;
}

.products-section .card-body .text-danger {
    font-size: 1.3rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    border-top: 3px solid var(--primary-color);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .btn-danger {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .features-section h2,
    .about-section h2,
    .services-section h2,
    .faq-section h2,
    .blog-section h2,
    .contact-section h2,
    .products-section h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Utility Classes */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
}

.pwa-install-banner.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
