/*
Theme Name: MEI Theme
Theme URI: https://mitsutoyo-malaysia.com
Author: Mitsutoyo Electronic Industries
Description: Official MEI dark tech website theme
Version: 1.0
*/

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:system-ui,-apple-system,sans-serif;background:#0a0f1e;color:#e0e6f0;min-height:100vh}
a{text-decoration:none;color:inherit}

nav{display:flex;align-items:center;justify-content:space-between;padding:0 2.5rem;height:64px;border-bottom:0.5px solid rgba(56,130,220,0.2);background:rgba(10,15,30,0.98);position:sticky;top:0;z-index:100}
.logo{display:flex;align-items:center;gap:10px}
.logo-mark{width:32px;height:32px;background:#1565c0;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#fff}
.logo-text{font-size:15px;font-weight:500;color:#e0e6f0}
.logo-sub{font-size:10px;color:#5ea8e8;letter-spacing:1.5px;text-transform:uppercase}
.nav-links{display:flex;gap:1.8rem}
.nav-links a{font-size:13px;color:#8ba8c8;padding:4px 0;border-bottom:2px solid transparent;transition:color 0.2s}
.nav-links a:hover,.nav-links a.current-menu-item{color:#5ea8e8;border-bottom-color:#5ea8e8}
.nav-cta{background:rgba(56,130,220,0.15);border:0.5px solid rgba(56,130,220,0.4);color:#5ea8e8;padding:7px 18px;border-radius:6px;font-size:13px}

.badge{display:inline-flex;align-items:center;gap:6px;background:rgba(0,188,212,0.08);border:0.5px solid rgba(0,188,212,0.25);color:#00bcd4;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;padding:5px 14px;border-radius:20px;margin-bottom:1.5rem}
.dot{width:6px;height:6px;border-radius:50%;background:#00bcd4}

.hero{padding:5rem 2.5rem 4rem;text-align:center;border-bottom:0.5px solid rgba(56,130,220,0.12)}
h1{font-size:42px;font-weight:500;line-height:1.2;color:#e8eef8;margin-bottom:0.8rem}
h1 span{color:#5ea8e8}
.hero-sub{font-size:15px;color:#6b8aaa;max-width:520px;margin:0 auto 2rem;line-height:1.7}
.btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn-p{background:#1565c0;color:#e0e6f0;border:none;padding:11px 28px;border-radius:7px;font-size:13px;cursor:pointer;display:inline-block}
.btn-g{background:transparent;color:#5ea8e8;border:0.5px solid rgba(56,130,220,0.4);padding:11px 28px;border-radius:7px;font-size:13px;display:inline-block}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(56,130,220,0.1);border-bottom:0.5px solid rgba(56,130,220,0.1)}
.stat{background:#0a0f1e;padding:1.8rem 1.5rem;text-align:center}
.stat-n{font-size:28px;font-weight:500;color:#5ea8e8}
.stat-l{font-size:11px;color:#4d6a82;letter-spacing:0.8px;text-transform:uppercase;margin-top:4px}

.sec{padding:4rem 2.5rem}
.sec-tag{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#00bcd4;margin-bottom:0.5rem}
.sec-title{font-size:22px;font-weight:500;color:#c8d8ec;margin-bottom:0.4rem}
.sec-desc{font-size:14px;color:#4d6a82;margin-bottom:2rem;line-height:1.7}
.divider{border:none;border-top:0.5px solid rgba(56,130,220,0.1);margin:0}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.card{background:#0e1628;border:0.5px solid rgba(56,130,220,0.15);border-radius:10px;padding:1.4rem;transition:border-color 0.2s}
.card:hover{border-color:rgba(56,130,220,0.4)}
.card-icon{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;font-size:22px}
.ic-blue{background:rgba(21,101,192,0.15);color:#5ea8e8}
.ic-teal{background:rgba(0,188,212,0.1);color:#00bcd4}
.ic-purple{background:rgba(103,58,183,0.15);color:#9c7de8}
.ic-green{background:rgba(46,125,50,0.15);color:#66bb6a}
.ic-amber{background:rgba(180,115,20,0.15);color:#ffb74d}
.card-title{font-size:14px;font-weight:500;color:#c0d0e0;margin-bottom:0.4rem}
.card-desc{font-size:12px;color:#4d6a82;line-height:1.6}

.timeline{position:relative;padding-left:2rem}
.timeline::before{content:'';position:absolute;left:6px;top:0;bottom:0;width:1px;background:rgba(56,130,220,0.2)}
.tl-item{position:relative;padding:0 0 2rem 1.5rem}
.tl-dot{position:absolute;left:-1.5rem;top:4px;width:13px;height:13px;border-radius:50%;background:#1565c0;border:2px solid #0a0f1e;box-shadow:0 0 0 2px #1565c0}
.tl-year{font-size:11px;color:#5ea8e8;letter-spacing:1px;text-transform:uppercase;margin-bottom:4px}
.tl-title{font-size:14px;font-weight:500;color:#c0d0e0;margin-bottom:4px}
.tl-desc{font-size:12px;color:#4d6a82;line-height:1.6}

.cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-top:1.5rem}
.cert-card{background:#0e1628;border:0.5px solid rgba(56,130,220,0.15);border-radius:10px;padding:1.2rem 1.4rem;display:flex;align-items:center;gap:12px}
.cert-name{font-size:13px;font-weight:500;color:#aabbd0}
.cert-detail{font-size:11px;color:#4d6a82;margin-top:2px}

.job-card{background:#0e1628;border:0.5px solid rgba(56,130,220,0.15);border-radius:10px;padding:1.4rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:0.8rem}
.job-title{font-size:14px;font-weight:500;color:#c0d0e0}
.job-meta{font-size:12px;color:#4d6a82;margin-top:4px}
.job-tag{font-size:11px;background:rgba(0,188,212,0.1);border:0.5px solid rgba(0,188,212,0.2);color:#00bcd4;padding:3px 10px;border-radius:20px}

.benefit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.benefit{display:flex;align-items:flex-start;gap:12px;background:#0e1628;border:0.5px solid rgba(56,130,220,0.12);border-radius:10px;padding:1.2rem}
.benefit-icon{font-size:20px;flex-shrink:0;margin-top:2px}
.benefit-title{font-size:13px;font-weight:500;color:#c0d0e0}
.benefit-desc{font-size:12px;color:#4d6a82;margin-top:3px;line-height:1.5}

.faq-item{border-bottom:0.5px solid rgba(56,130,220,0.1);padding:1.2rem 0;cursor:pointer}
.faq-q{font-size:14px;font-weight:500;color:#c0d0e0;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq-a{font-size:13px;color:#4d6a82;line-height:1.7;max-height:0;overflow:hidden;transition:max-height 0.3s ease,margin-top 0.2s}
.faq-item.open .faq-a{max-height:200px;margin-top:0.8rem}
.faq-arrow{font-size:18px;color:#4d6a82;transition:transform 0.2s;flex-shrink:0}
.faq-item.open .faq-arrow{transform:rotate(180deg)}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.contact-label{font-size:11px;color:#4d6a82;letter-spacing:0.8px;text-transform:uppercase;margin-bottom:4px}
.contact-val{font-size:14px;color:#aabbd0;margin-bottom:1.2rem;line-height:1.6}
.form-group{margin-bottom:1rem}
label{font-size:12px;color:#4d6a82;display:block;margin-bottom:6px}
input,textarea,select{width:100%;background:#0e1628;border:0.5px solid rgba(56,130,220,0.2);border-radius:7px;padding:10px 14px;font-size:13px;color:#c0d0e0;font-family:inherit;outline:none}
input:focus,textarea:focus{border-color:rgba(56,130,220,0.5)}
textarea{resize:vertical;min-height:100px}
.submit-btn{background:#1565c0;color:#e0e6f0;border:none;padding:11px 28px;border-radius:7px;font-size:13px;cursor:pointer;width:100%;font-family:inherit;margin-top:0.5rem}

.page-hero{padding:3rem 2.5rem;border-bottom:0.5px solid rgba(56,130,220,0.1)}
.page-hero h2{font-size:30px;font-weight:500;color:#e8eef8;margin-bottom:0.4rem}
.page-hero p{font-size:14px;color:#4d6a82;max-width:520px;line-height:1.7}

.site-footer{border-top:0.5px solid rgba(56,130,220,0.1);padding:2.5rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-brand{font-size:12px;color:#3a526a}
.footer-links{display:flex;gap:1.5rem}
.footer-links a{font-size:12px;color:#3a526a}
.footer-links a:hover{color:#5ea8e8}

@media(max-width:600px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
  h1{font-size:28px}
  nav{padding:0 1rem}
  .nav-links{gap:1rem}
  .sec,.hero,.page-hero{padding-left:1rem;padding-right:1rem}
}