/*
Theme Name: JIEWILL EMS
Theme URI: https://jiewill.com
Author: JIEWILL Team
Author URI: https://jiewill.com
Description: Professional EMS manufacturing company theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jiewill
*/

/* WordPress Required Styles */
.alignleft { float: left; margin-right: 15px; }
.alignright { float: right; margin-left: 15px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { display: none; }

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #666666; line-height: 1.6; background: #ffffff; }
h1, h2, h3, h4, h5, h6 { color: #1e3a5f; font-weight: 600; }
a { color: #ff6b35; text-decoration: none; transition: color 0.3s; }
a:hover { color: #e55a2b; }

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; padding: 15px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: #1e3a5f; text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 40px; }
.nav-item { position: relative; }
.nav-link { text-decoration: none; color: #1e3a5f; font-weight: 500; font-size: 14px; transition: color 0.3s; display: flex; align-items: center; gap: 5px; }
.nav-link:hover { color: #ff6b35; }
.dropdown { position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.1); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; border-radius: 8px; padding: 10px 0; margin-top: 15px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 12px 20px; color: #1e3a5f; text-decoration: none; font-size: 13px; transition: all 0.3s; }
.dropdown a:hover { background: #f8f9fa; color: #ff6b35; padding-left: 25px; }

/* Hero - Overlay 0.4 */
.hero { position: relative; height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; margin-top: 60px; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30, 58, 95, 0.4); z-index: 1; }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 56px; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.2; color: white; }
.hero-content p { font-size: 22px; font-weight: 300; opacity: 0.95; margin-bottom: 40px; color: white; }

/* Buttons */
.btn-hero { display: inline-block; background: #ff6b35; color: white; padding: 16px 40px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; transition: all 0.3s; margin: 0 10px; border: none; cursor: pointer; }
.btn-hero:hover { background: #e55a2b; transform: translateY(-2px); color: white; }
.btn-hero-outline { display: inline-block; background: transparent; color: white; padding: 16px 40px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; transition: all 0.3s; margin: 0 10px; border: 2px solid white; }
.btn-hero-outline:hover { background: white; color: #1e3a5f; }

/* Stats */
.stats-section { background: #1e3a5f; padding: 60px 0; }
.stats-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-card { text-align: center; color: white; padding: 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-card:last-child { border-right: none; }
.stat-number { font-size: 42px; font-weight: 700; color: #ff6b35; display: block; margin-bottom: 10px; }
.stat-label { font-size: 14px; opacity: 0.9; font-weight: 300; }

/* Sections */
.section-header { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; text-align: center; }
.section-header h2 { font-size: 42px; color: #1e3a5f; margin-bottom: 20px; }
.section-header p { font-size: 18px; color: #666666; max-width: 700px; margin: 0 auto; }

/* Services */
.services-section { padding: 100px 0; background: #ffffff; }
.services-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.service-img { height: 220px; background-size: cover; background-position: center; }
.service-content { padding: 30px; }
.service-content h3 { font-size: 22px; color: #1e3a5f; margin-bottom: 15px; }
.service-content p { font-size: 15px; color: #666666; margin-bottom: 20px; line-height: 1.7; }
.service-link { color: #ff6b35; text-decoration: none; font-weight: 600; font-size: 14px; }

/* Industries */
.industries-section { padding: 100px 0; background: #f8f9fa; }
.industries-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card { position: relative; height: 300px; border-radius: 12px; overflow: hidden; cursor: pointer; }
.industry-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(30, 58, 95, 0.4), rgba(30, 58, 95, 0.7)); z-index: 1; transition: all 0.3s; }
.industry-card:hover::before { background: linear-gradient(rgba(30, 58, 95, 0.6), rgba(30, 58, 95, 0.8)); }
.industry-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s; }
.industry-card:hover .industry-bg { transform: scale(1.1); }
.industry-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; color: white; z-index: 2; }
.industry-content h3 { font-size: 20px; margin-bottom: 10px; color: white; }
.industry-content p { font-size: 14px; opacity: 0.9; color: white; }

/* Capabilities */
.capabilities-section { padding: 100px 0; background: #ffffff; }
.capabilities-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }
.capability-img { height: 400px; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; }
.capability-content h3 { font-size: 32px; margin-bottom: 20px; color: #1e3a5f; }
.capability-content p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.capability-list { list-style: none; margin-top: 30px; }
.capability-list li { padding: 10px 0; padding-left: 30px; position: relative; font-size: 15px; }
.capability-list li::before { content: '✓'; position: absolute; left: 0; color: #ff6b35; font-weight: bold; }

/* CTA */
.cta-section { padding: 120px 0; text-align: center; color: white; position: relative; }
.cta-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30, 58, 95, 0.4); z-index: 1; }
.cta-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: 0; }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.cta-section h2 { font-size: 42px; margin-bottom: 20px; color: white; }
.cta-section p { font-size: 18px; margin-bottom: 40px; opacity: 0.95; color: white; }

/* Footer */
footer { background: #1e3a5f; color: white; padding: 80px 0 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-section h4 { font-size: 16px; margin-bottom: 25px; color: white; }
.footer-section a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.3s; }
.footer-section a:hover { color: #ff6b35; }
.footer-bottom { max-width: 1200px; margin: 60px auto 0; padding: 30px 20px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

/* Mobile */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 2px; background: #1e3a5f; margin: 5px 0; }
@media (max-width: 968px) { 
    .nav-menu { display: none; } 
    .mobile-menu-btn { display: block; } 
    .stats-container, .services-grid, .industries-grid, .capabilities-grid, .footer-container { grid-template-columns: 1fr; } 
    .hero-content h1 { font-size: 36px; } 
}