﻿/*
Theme Name: TRX Conveyor Components
Theme URI: https://www.trxconveyorcomponents.com
Author: TRX Conveyor Components Co., Ltd.
Author URI: https://www.trxconveyorcomponents.com
Description: Professional conveyor components manufacturer WordPress theme with multi-language support, product management, and inquiry system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trx-conveyor
Tags: e-commerce, business, industrial, manufacturing, conveyor, multilingual, responsive
*/

:root {
    --primary: #c8102e;
    --secondary: #a00d24;
    --accent: #f39c12;
    --dark: #1a1a1a;
    --dark-blue: #0f2942;
    --light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', Tahoma, Arial, sans-serif; color: #333; line-height: 1.6; background: #f8f9fa; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--dark); color: #fff; padding: 8px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .social a { color: #fff; margin-left: 15px; }
.top-bar .social a:hover { color: var(--accent); }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.site-logo h1 { font-size: 20px; font-weight: 800; color: var(--dark); margin: 0; }
.site-logo h1 span { color: var(--primary); }
.site-logo p { font-size: 11px; color: #999; margin: -2px 0 0 0; }

/* Navigation */
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { font-size: 14px; font-weight: 500; color: #555; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-switcher button { background: none; border: none; cursor: pointer; font-size: 14px; color: #666; display: flex; align-items: center; gap: 5px; }
.lang-switcher .dropdown { position: absolute; right: 0; top: 100%; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 8px; padding: 8px 0; min-width: 120px; display: none; }
.lang-switcher:hover .dropdown { display: block; }
.lang-switcher .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 16px; font-size: 14px; }
.lang-switcher .dropdown button:hover { background: #f5f5f5; }

/* Hero Banner */
.hero-banner { background: linear-gradient(135deg, var(--dark-blue), #1a3a5c); color: #fff; padding: 100px 0; text-align: center; }
.hero-banner h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
.hero-banner p { font-size: 18px; color: #ccc; max-width: 600px; margin: 0 auto 30px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

/* Stats Bar */
.stats-bar { background: var(--primary); color: #fff; padding: 30px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 32px; font-weight: 800; margin-bottom: 5px; }
.stat-item p { font-size: 14px; color: rgba(255,255,255,0.8); }

/* Section */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title span { color: var(--primary); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: #222; margin-top: 8px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 70px; height: 70px; background: rgba(200,16,46,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-size: 28px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #222; }
.feature-card p { font-size: 14px; color: #666; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-image { height: 200px; background: #f0f0f0; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: #222; }
.product-info .model { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.product-info .spec { font-size: 12px; color: #999; margin-bottom: 15px; }
.product-info .btn { width: 100%; text-align: center; font-size: 13px; padding: 10px; }

/* About Section */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-image img { border-radius: 12px; width: 100%; height: 250px; object-fit: cover; }
.about-image img:nth-child(2), .about-image img:nth-child(4) { margin-top: 30px; }
.about-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: #222; }
.about-content p { color: #666; margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 30px; }
.about-stat { background: #f8f9fa; padding: 20px; border-radius: 10px; }
.about-stat h4 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.about-stat p { font-size: 13px; color: #888; margin: 0; }

/* Industries */
.industries-section { background: var(--dark-blue); color: #fff; }
.industries-section .section-title h2 { color: #fff; }
.industries-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.industry-item { text-align: center; padding: 30px 20px; background: rgba(255,255,255,0.05); border-radius: 12px; transition: background 0.3s; }
.industry-item:hover { background: rgba(255,255,255,0.1); }
.industry-item i { font-size: 36px; color: var(--accent); margin-bottom: 15px; }
.industry-item h4 { font-size: 14px; font-weight: 600; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.testimonial-stars { color: var(--accent); margin-bottom: 15px; }
.testimonial-text { font-size: 14px; color: #666; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.testimonial-author h4 { font-size: 15px; font-weight: 700; color: #222; margin: 0; }
.testimonial-author p { font-size: 12px; color: #999; margin: 0; }

/* Quote Form */
.quote-section { background: #fff; }
.quote-form-wrapper { max-width: 700px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; }
.quote-form-header { background: var(--primary); color: #fff; padding: 30px; text-align: center; }
.quote-form-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.quote-form-header p { font-size: 14px; color: rgba(255,255,255,0.8); }
.quote-form { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #444; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.quote-form .btn { width: 100%; padding: 14px; font-size: 16px; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col p { font-size: 14px; color: #999; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #999; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--accent); margin-top: 4px; font-size: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #777; }
.footer-bottom-links { display: flex; gap: 20px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 20px; right: 20px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); padding: 20px; max-width: 320px; z-index: 999; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #222; }
.cookie-banner p { font-size: 12px; color: #666; margin-bottom: 15px; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button { padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; border: none; }
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-decline { background: #f0f0f0; color: #666; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 998; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 32px; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
