/* style.css */

/* 1. CSS VARIABLES & GLOBAL SETUP */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Roboto:wght@700;900&display=swap');

:root {
    --primary-color: #0d47a1; /* Deep Corporate Blue */
    --secondary-color: #ffc107; /* Accent Amber */
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #ffffff;
    --background-neutral: #f4f7f9;
    --border-color: #e0e0e0;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.75rem; color: #1a237e; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #0b3d8a; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
img { max-width: 100%; height: auto; }

/* 2. UTILITY & SHARED CLASSES */
.btn { display: inline-block; padding: 12px 24px; background-color: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); border-radius: 5px; cursor: pointer; text-align: center; font-weight: bold; transition: all 0.3s ease; }
.btn:hover { background-color: #fff; color: var(--primary-color); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-color); border-color: var(--secondary-color); }
.btn-secondary:hover { background-color: #fff; color: var(--text-color); }
.breadcrumb { margin-bottom: 20px; color: #777; font-size: 0.9rem; }
.breadcrumb a { color: var(--primary-color); }
.page-title { text-align: center; font-size: 2.5rem; margin-bottom: 10px; font-weight: 900; }
.page-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }

/* 3. HEADER & FOOTER */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: var(--background-light); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding: 10px 0; }
.logo-container { display: flex; align-items: center; }
.logo-container:hover { text-decoration: none; }
.logo-container img { height: 50px; margin-right: 15px; }
.company-info .company-name { font-size: 1.5rem; font-weight: bold; color: var(--text-color); }
.company-info .tagline { font-size: 0.9rem; color: #777; }
.header-contact { text-align: right; font-size: 0.9rem; }
.header-contact p { margin: 2px 0; }
.header-bottom { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { font-weight: bold; padding-bottom: 5px; border-bottom: 2px solid transparent; color: var(--text-color); }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); text-decoration: none; }
.search-bar { display: flex; }
.search-bar input { padding: 8px; border: 1px solid var(--border-color); border-radius: 5px 0 0 5px; min-width: 250px; }
.search-bar button { padding: 8px 12px; border: 1px solid var(--primary-color); background-color: var(--primary-color); color: #fff; cursor: pointer; border-radius: 0 5px 5px 0; }
.mobile-menu-toggle { display: none; font-size: 2rem; cursor: pointer; background: none; border: none; }
.site-footer { background-color: #222; color: #fff; padding: 40px 20px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 30px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-column h4 { color: var(--secondary-color); margin-bottom: 15px; }
.footer-column p, .footer-column li { list-style: none; margin-bottom: 10px; font-size: 0.9rem; }
.footer-column a { color: #fff; }
.footer-column a:hover { color: var(--secondary-color); }
.social-icons { display: flex; gap: 15px; }
.social-icons a { font-size: 1.5rem; color: #fff; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #444; }

/* 4. PAGE-SPECIFIC STYLES */

/* 4.1 HOME PAGE */
.hero-banner { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://placehold.co/1920x600/333333/FFFFFF?text=Factory_Image_1.jpg') center/cover no-repeat; color: #fff; text-align: center; padding: 100px 20px; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-cta .btn { margin: 0 10px; }
.trust-indicators { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.trust-indicators .indicator { display: flex; align-items: center; gap: 10px; font-weight: bold; }
.trust-indicators .indicator img { height: 40px; }
.product-categories { padding: 60px 20px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.category-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; text-align: center; transition: box-shadow 0.3s ease, transform 0.3s ease; color: var(--text-color); display: block; }
.category-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-5px); text-decoration: none; }
.category-card img { margin-bottom: 15px; border-radius: 5px; }
.category-card h3 { color: var(--primary-color); }
.category-card p { margin-bottom: 10px; font-size: 0.9rem; }
.category-card span { display: block; margin-bottom: 15px; color: #777; }
.featured-products { background-color: var(--background-neutral); padding: 60px 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.product-card { background-color: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; display: flex; flex-direction: column; text-align: left; transition: box-shadow 0.3s ease; }
.product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-card img { margin-bottom: 15px; align-self: center; border-radius: 5px; }
.product-card h4 { margin-bottom: 10px; color: var(--primary-color); }
.product-card ul { list-style: none; margin-bottom: 15px; flex-grow: 1; font-size: 0.9rem; }
.product-card li { padding-left: 1.2em; text-indent: -1.2em; }
.product-card li::before { content: '✓'; color: var(--primary-color); margin-right: 0.5em; }
.product-card .price { font-weight: bold; color: #e65100; margin-bottom: 15px; }
.product-card-cta { display: flex; justify-content: space-between; }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; border: 1px solid var(--primary-color); background-color: #fff; color: var(--primary-color); border-radius: 5px; }
.btn-sm:hover { background-color: var(--primary-color); color: #fff; text-decoration: none; }
.btn-sm.btn-secondary { background-color: var(--secondary-color); border-color: var(--secondary-color); color: #333; }
.btn-sm.btn-secondary:hover { background-color: #e0ac06; color: #333; }
.company-highlights { background-color: var(--primary-color); color: #fff; padding: 60px 20px; }
.highlights-container { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.about-summary { flex: 1.5; }
.about-summary h3 { color: #fff; }
.about-summary p { margin-bottom: 20px; }
.stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.stat-item h4 { font-size: 2.5rem; color: var(--secondary-color); }
.testimonials-snippet { padding: 60px 20px; }
.testimonial-cards { display: flex; gap: 30px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.testimonial-card { flex-basis: 45%; background-color: var(--background-neutral); padding: 20px; border-radius: 8px; border-left: 5px solid var(--primary-color); }
.testimonial-card .rating { color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 10px; }
.testimonial-card cite { font-weight: bold; display: block; margin-top: 10px; }

/* 4.2 ABOUT US PAGE */
.company-profile { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.profile-text { flex: 2; min-width: 300px; }
.profile-image { flex: 1; min-width: 300px; }
.profile-image img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.mission-vision { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.mission-vision .box { flex: 1; min-width: 250px; padding: 20px; border-radius: 8px; }
.mission-vision .box:first-child { background-color: #e3f2fd; border-left: 5px solid var(--primary-color); }
.mission-vision .box:last-child { background-color: #fffde7; border-left: 5px solid var(--secondary-color); }
.key-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 40px; }
.info-card { background: var(--background-neutral); padding: 20px; text-align: center; border-radius: 5px; border: 1px solid var(--border-color); }
.info-card strong { display: block; color: var(--primary-color); margin-bottom: 5px; }
.quality-section { text-align: center; padding: 40px 0; border-top: 1px solid var(--border-color); }
.quality-section p { max-width: 800px; margin: 0 auto 30px auto; }
.cert-logos { display: flex; justify-content: center; gap: 30px; }
.cert-logos img { height: 120px; }

/* 4.3 PRODUCTS PAGE */
.catalog-layout { display: flex; gap: 30px; }
.sidebar { flex: 0 0 250px; }
.filter-group { margin-bottom: 25px; border: 1px solid var(--border-color); padding: 15px; border-radius: 5px; }
.filter-group h4 { border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.filter-list ul { list-style: none; }
.filter-list li, .filter-list label { margin: 10px 0; display: block; }
.filter-list a { display: block; padding: 5px; border-radius: 3px; }
.filter-list a.active, .filter-list a:hover { background-color: #e3f2fd; text-decoration: none; }
#reset-filters { width: 100%; }
.product-grid-container { flex: 1; }
.pagination { margin-top: 40px; text-align: center; }
.pagination a { display: inline-block; padding: 8px 12px; border: 1px solid var(--border-color); margin: 0 4px; border-radius: 3px; }
.pagination a.active, .pagination a:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); text-decoration: none; }

/* 4.4 PRODUCT DETAIL PAGE */
.product-detail-layout { display: flex; gap: 40px; margin-bottom: 40px; }
.product-gallery { flex: 1; }
#main-product-image { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; }
.thumbnail-gallery { display: flex; gap: 10px; }
.thumbnail { width: 100px; height: 100px; object-fit: cover; border: 2px solid var(--border-color); border-radius: 5px; cursor: pointer; }
.thumbnail.active { border-color: var(--primary-color); }
.product-info { flex: 1.5; }
.product-info h1 { font-size: 2.5rem; }
.product-price { font-size: 1.2rem; margin-bottom: 20px; }
.quick-specs ul { list-style: none; margin: 15px 0; }
.quick-specs li { margin-bottom: 8px; }
.product-cta { margin-top: 20px; display: flex; gap: 15px; }
.product-description-tabs .tab-buttons { border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.tab-button { background: none; border: none; padding: 10px 20px; cursor: pointer; font-size: 1rem; border-bottom: 3px solid transparent; }
.tab-button.active { border-bottom-color: var(--primary-color); font-weight: bold; color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { border: 1px solid var(--border-color); padding: 10px; text-align: left; }
.spec-table th { background-color: var(--background-neutral); }

/* 4.5 CONTACT US PAGE */
.contact-layout { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-details { flex: 1; min-width: 300px; }
.contact-details p { margin-bottom: 10px; }
.map-container { margin-top: 20px; border-radius: 8px; overflow: hidden; }
.contact-form-container { flex: 1.5; min-width: 300px; background-color: var(--background-neutral); padding: 30px; border-radius: 8px; }
.inquiry-form .form-group { margin-bottom: 15px; }
.inquiry-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; font-family: var(--font-body); }
#form-status { margin-top: 10px; font-weight: bold; }

/* 4.6 TESTIMONIALS PAGE */
.ratings-summary { display: flex; gap: 40px; margin-bottom: 40px; background-color: var(--background-neutral); padding: 30px; border-radius: 8px; }
.rating-distribution, .satisfaction-metrics { flex: 1; }
.rating-bar-container { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.rating-bar { flex-grow: 1; height: 10px; background-color: #e0e0e0; border-radius: 5px; }
.rating-bar div { height: 100%; background-color: var(--secondary-color); border-radius: 5px; }
.satisfaction-metrics { display: flex; gap: 15px; justify-content: space-around; }
.metric-box { text-align: center; }
.metric-box span { display: block; font-size: 2rem; font-weight: bold; color: var(--primary-color); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.review-card { border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; }
.review-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-author { font-weight: bold; }
.review-product { font-size: 0.9rem; color: #555; margin-bottom: 10px; }
.review-date { font-size: 0.8rem; color: #777; margin-top: 10px; display: block; text-align: right; }

/* 4.7 SITEMAP & CORPORATE PAGE */
.sitemap-container { background-color: var(--background-neutral); padding: 20px; border-radius: 8px; }
.sitemap-list, .sitemap-list ul { list-style: none; line-height: 2; }
.sitemap-list ul { margin-left: 20px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; margin-bottom: 40px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.brochure-download { display: flex; gap: 30px; align-items: center; background-color: var(--background-neutral); padding: 30px; border-radius: 8px; }

/* 5. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .header-bottom { position: relative; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--background-light); box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 10px; }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: 10px; border-bottom: 1px solid var(--border-color); }
    .mobile-menu-toggle { display: block; }
    .header-bottom .search-bar { display: none; }
    .catalog-layout { flex-direction: column; }
    .sidebar { flex: 0 0 auto; }
}
@media (max-width: 768px) {
    .header-top { flex-direction: column; text-align: center; }
    .header-contact { text-align: center; margin-top: 10px; }
    .hero-content h1 { font-size: 2rem; }
    .product-detail-layout { flex-direction: column; }
}