/* JIULIAN ELECTROMECHANICAL (MALAYSIA) TRAD ING SDN.BHD
   Shared stylesheet for /zh and /en pages */

:root{
  --bg: #f6f8fc;
  --text: #0e1726;
  --muted: #58677d;
  --border: rgba(13, 27, 52, 0.10);
  --brand: #1c5cff;
  --brand2: #19b37a;
  --shadow: 0 18px 45px rgba(10, 16, 28, 0.08);
  --radius: 16px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.muted{ color: var(--muted); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  padding: 10px 14px;
  background: #fff; border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* Header */
.header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 27, 52, 0.06);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; min-width: 0; flex-shrink: 1; overflow: hidden; }
.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(13, 27, 52, 0.10);
  box-shadow: 0 10px 25px rgba(10, 16, 28, 0.10);
  flex-shrink: 0;
}
.brand-name{ display:flex; flex-direction:column; line-height:1.15; min-width: 0; }
.brand-name strong{ font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name span{ font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav{ display:flex; align-items:center; gap: 10px; }
.nav a{
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1a2740;
  white-space: nowrap;
}
.nav a:hover{ background: rgba(28, 92, 255, 0.08); }
.nav a[aria-current="page"]{ background: rgba(28, 92, 255, 0.12); }

.header-actions{ display:flex; align-items:center; gap: 10px; }
.lang-switch{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
}
.lang-switch:hover{ border-color: rgba(28,92,255,0.35); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary{
  border-color: transparent;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 18px 45px rgba(28, 92, 255, 0.20);
}
.btn:hover{ filter: brightness(0.99); }

.menu-btn{
  display:none;
  width: 42px; height: 42px;
  border-radius: 14px;
  background:#fff;
  border: 1px solid var(--border);
  cursor:pointer;
}
.menu-btn span{
  display:block; width:18px; height:2px; background:#1a2740;
  margin: 0 auto; border-radius:2px; position:relative;
}
.menu-btn span::before, .menu-btn span::after{
  content:""; position:absolute; left:0; right:0;
  height:2px; background:#1a2740; border-radius:2px;
}
.menu-btn span::before{ top:-6px; }
.menu-btn span::after{ top:6px; }

.mobile-nav{
  border-top: 1px solid rgba(13, 27, 52, 0.06);
  padding: 10px 0 18px 0;
}
.mobile-nav a{
  display:block;
  padding: 12px 14px;
  border-radius: 14px;
  color:#1a2740;
}
.mobile-nav a:hover{ background: rgba(28, 92, 255, 0.08); }
.mobile-nav .divider{ height: 10px; }

/* Breadcrumb */
.breadcrumb{
  padding: 8px 0 0 0;
  color: #5a6a83;
  font-size: 13px;
}
.breadcrumb a{ color: #3e4f6b; }
.breadcrumb a:hover{ color: var(--brand); }
.breadcrumb .sep{ margin: 0 8px; opacity: 0.6; }

/* Hero */
.hero{
  background:
    radial-gradient(900px 380px at 20% 10%, rgba(28, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 300px at 80% 20%, rgba(25, 179, 122, 0.18), transparent 55%),
    linear-gradient(180deg, #f6f8fc 0%, #ffffff 55%, #f6f8fc 100%);
  padding: 54px 0 40px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hero h1{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
}
.hero p{ margin: 14px 0 0 0; color: var(--muted); font-size: 16px; }
.hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-badges{ margin-top: 18px; display:flex; gap: 10px; flex-wrap: wrap; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color:#1a2740;
}
.badge-dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.hero-card{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card .card-top{ height: 180px; background: url("../img/hero-photo.jpg") center/cover no-repeat; border-radius: 12px 12px 0 0; overflow: hidden; }
.hero-card .card-body{ padding: 18px; }
.hero-card .card-body h3{ margin:0; font-size: 15px; }
.hero-card .card-body p{ margin:8px 0 0 0; color: var(--muted); font-size: 13px; }

/* Sections + cards */
section{ padding: 52px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2{ margin:0; font-size: 26px; }
.section-head p{ margin:0; color: var(--muted); max-width: 62ch; }

.grid{ display:grid; gap: 16px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 45px rgba(10, 16, 28, 0.06);
}
.card-pad{ padding: 18px; }
.card h3{ margin: 0; font-size: 16px; }
.card p{ margin: 10px 0 0 0; color: var(--muted); font-size: 14px; }
.icon{
  width: 42px; height: 42px; border-radius: 14px;
  display:grid; place-items:center;
  color:#fff;
  background: linear-gradient(135deg, rgba(28, 92, 255, 0.92), rgba(25, 179, 122, 0.92));
  box-shadow: 0 14px 32px rgba(28, 92, 255, 0.18);
}
.icon svg{ width: 22px; height: 22px; }

/* Projects */
.project-media{ height: 160px; background:#0e1626; }
.project-media img{ width: 100%; height: 100%; object-fit: cover; }
.tag-row{ margin-top: 12px; display:flex; gap:8px; flex-wrap: wrap; }
.tag{
  font-size: 12px;
  color: #1a2740;
  background: rgba(28, 92, 255, 0.08);
  border: 1px solid rgba(28, 92, 255, 0.16);
  padding: 5px 8px;
  border-radius: 999px;
}

/* Contact */
.contact-wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.contact-list{ display:grid; gap: 10px; }
.contact-item{
  display:flex; gap: 12px; align-items:flex-start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:#fff;
}
.contact-item strong{ display:block; font-size: 14px; }
.contact-item span{ display:block; color: var(--muted); font-size: 13px; }
.map-embed{
  width: 100%; height: 100%; min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow:hidden;
  background:#fff;
}
.map-embed iframe{ width:100%; height:100%; border:0; }

/* Footer */
footer{
  padding: 30px 0 46px 0;
  color: rgba(255,255,255,0.88);
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(28, 92, 255, 0.45), transparent 60%),
    radial-gradient(700px 320px at 80% 20%, rgba(25, 179, 122, 0.40), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #08101f 100%);
}
.footer-grid{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.footer-title{ margin: 0; font-size: 15px; }
.footer-muted{ color: rgba(255,255,255,0.66); font-size: 13px; margin-top: 8px; }
.footer-links{ display:grid; gap:8px; align-content:start; }
.footer-links a{ color: rgba(255,255,255,0.82); font-size: 13px; }
.footer-links a:hover{ color:#fff; text-decoration: underline; }

/* Floating WhatsApp */
.fab{
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 18px;
  background: #25D366;
  color:#fff;
  display:grid; place-items:center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255,255,255,0.22);
}
.fab svg{ width: 26px; height: 26px; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 880px){
  .nav{ display:none; }
  .menu-btn{ display: inline-grid; place-items:center; }
  .mobile-nav[hidden]{ display:none; }
}
