/* ============================================
   HOLINE - Professional Auto Chassis Parts
   Main Stylesheet
   ============================================ */

:root {
    --primary-color: #1a365d;
    --primary-light: #2d4a7c;
    --primary-dark: #0f2341;
    --accent-color: #ed8936;
    --accent-hover: #dd6b20;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-dark); background: var(--bg-white); }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--accent-color); color: var(--bg-white); border-color: var(--accent-color); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--bg-white); border-color: var(--bg-white); }
.btn-outline:hover { background: var(--bg-white); color: var(--primary-color); }
.btn-full { width: 100%; }

.header { position: fixed; top: 0; left: 0; right: 0; background: var(--bg-white); box-shadow: var(--shadow-sm); z-index: 1000; }
.header-content { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 32px; font-weight: 800; color: var(--primary-color); letter-spacing: 2px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav-link { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.header-right { display: flex; align-items: center; gap: 20px; }

.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--text-gray); transition: var(--transition); }
.lang-btn:hover { border-color: var(--primary-color); }
.lang-arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.lang-selector.active .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 4px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); min-width: 140px; }
.lang-selector.active .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: block; width: 100%; padding: 10px 16px; text-align: left; background: transparent; border: none; cursor: pointer; font-size: 14px; color: var(--text-gray); transition: var(--transition); }
.lang-option:hover { background: var(--bg-light); color: var(--primary-color); }
.lang-option.active { background: var(--primary-color); color: var(--bg-white); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; background: transparent; border: none; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 25px; height: 2px; background: var(--primary-color); transition: var(--transition); }
.mobile-nav { display: none; position: fixed; top: 80px; left: 0; right: 0; background: var(--bg-white); box-shadow: var(--shadow-lg); padding: 20px; transform: translateY(-100%); opacity: 0; transition: var(--transition); }
.mobile-nav.active { transform: translateY(0); opacity: 1; }
.mobile-nav-link { display: block; padding: 15px 0; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 600; color: var(--text-gray); border-bottom: 1px solid var(--border-color); }
.mobile-nav-link:hover { color: var(--primary-color); }

.hero { margin-top: 80px; }
.hero-slide { display: none; min-height: 500px; align-items: center; padding: 80px 0; }
.hero-slide.active { display: flex; }
.hero-content { max-width: 700px; }
.hero-title { font-size: 48px; color: var(--bg-white); margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-features { background: var(--bg-light); padding: 60px 0; margin-top: -1px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature-item { text-align: center; }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 20px; color: var(--primary-color); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-title { font-size: 18px; color: var(--text-dark); margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--text-light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; color: var(--primary-color); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-gray); max-width: 600px; margin: 0 auto; }

.products { padding: 100px 0; background: var(--bg-white); }
.product-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.product-category { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.product-category:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-image { position: relative; height: 220px; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-category:hover .category-image img { transform: scale(1.1); }
.category-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.category-count { color: var(--bg-white); font-size: 14px; font-weight: 600; }
.category-content { padding: 25px; }
.category-title { font-size: 22px; color: var(--primary-color); margin-bottom: 12px; }
.category-desc { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; line-height: 1.6; }
.category-link { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; color: var(--accent-color); }
.category-link:hover { color: var(--accent-hover); }

.featured-title { font-size: 28px; color: var(--primary-color); margin-bottom: 40px; text-align: center; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.product-image { position: relative; height: 180px; overflow: hidden; background: var(--bg-light); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; background: var(--accent-color); color: var(--bg-white); font-size: 11px; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.product-info { padding: 20px; }
.product-name { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.product-number { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.product-applications { font-size: 12px; color: var(--text-gray); margin-bottom: 15px; line-height: 1.5; }
.product-btn { display: block; width: 100%; padding: 10px; background: var(--primary-color); color: var(--bg-white); font-size: 13px; font-weight: 600; text-align: center; border: none; border-radius: 4px; cursor: pointer; transition: var(--transition); }
.product-btn:hover { background: var(--primary-light); }

.about { padding: 100px 0; background: var(--bg-light); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-desc { font-size: 16px; color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 800; color: var(--primary-color); line-height: 1; }
.stat-label { display: block; font-size: 14px; color: var(--text-gray); margin-top: 8px; }
.about-image { position: relative; }
.about-image img { border-radius: 8px; box-shadow: var(--shadow-lg); }
.certifications { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; }
.cert-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 80px; height: 80px; background: var(--bg-white); border-radius: 8px; box-shadow: var(--shadow-md); border: 2px solid var(--border-color); }
.cert-badge span { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 800; color: var(--primary-color); }
.cert-badge small { font-size: 10px; color: var(--text-light); text-transform: uppercase; }

.support { padding: 100px 0; background: var(--bg-white); }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.support-card { text-align: center; padding: 40px 25px; background: var(--bg-light); border-radius: 8px; transition: var(--transition); }
.support-card:hover { background: var(--bg-white); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.support-icon { width: 60px; height: 60px; margin: 0 auto 20px; color: var(--primary-color); }
.support-icon svg { width: 100%; height: 100%; }
.support-title { font-size: 18px; color: var(--text-dark); margin-bottom: 12px; }
.support-desc { font-size: 14px; color: var(--text-gray); margin-bottom: 20px; line-height: 1.6; }
.support-link { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent-color); }
.support-link:hover { color: var(--accent-hover); }

.contact { padding: 100px 0; background: var(--primary-color); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info { color: var(--bg-white); }
.contact-info .section-title { color: var(--bg-white); text-align: left; margin-bottom: 20px; }
.contact-desc { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 40px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--accent-color); }
.contact-icon svg { width: 100%; height: 100%; }
.contact-text strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; color: rgba(255,255,255,0.7); }
.contact-text p { font-size: 16px; color: var(--bg-white); }

.contact-form-wrapper { background: var(--bg-white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.form-title { font-size: 24px; color: var(--primary-color); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--text-dark); background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 4px; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); background: var(--bg-white); }
.form-group textarea { resize: vertical; min-height: 120px; }

.footer { background: var(--primary-dark); color: var(--bg-white); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; margin-bottom: 40px; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 800; color: var(--bg-white); letter-spacing: 2px; display: inline-block; margin-bottom: 15px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--accent-color); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-col ul li { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--bg-white); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.6); }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 999; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
.whatsapp-float svg { width: 35px; height: 35px; fill: white; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-white); border-radius: 8px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: var(--bg-light); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-gray); transition: var(--transition); }
.modal-close:hover { background: var(--primary-color); color: var(--bg-white); }
.modal-body { padding: 30px; }
.modal-title { font-size: 24px; color: var(--primary-color); margin-bottom: 20px; }
.modal-product-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.modal-image { background: var(--bg-light); border-radius: 8px; overflow: hidden; }
.modal-image img { width: 100%; height: auto; }
.modal-details { display: flex; flex-direction: column; gap: 15px; }
.detail-item { display: flex; flex-direction: column; gap: 5px; }
.detail-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 14px; color: var(--text-dark); font-weight: 500; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }

@media (max-width: 1024px) {
    .features-grid, .products-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content, .contact-wrapper { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .certifications { position: static; transform: none; margin-top: 20px; justify-content: center; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-nav { display: block; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .section-title { font-size: 28px; }
    .product-categories { grid-template-columns: 1fr; }
    .features-grid, .products-grid, .support-grid, .footer-links { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 25px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
