/* ============================================================
   EY-LINK Official Website - Global Stylesheet
   Industry: Cable / Connector / Industrial Connectivity
   ============================================================ */

:root {
  --navy: #0d2b4e;
  --navy-deep: #081f3a;
  --blue: #1668c4;
  --blue-light: #2b86e0;
  --accent: #0fa3b1;
  --amber: #f2a93b;
  --ink: #1c2b3a;
  --gray: #5a6b7d;
  --gray-light: #8a99a8;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --shadow: 0 8px 30px rgba(13, 43, 78, 0.08);
  --radius: 10px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c9d6e4;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .lang a { color: #c9d6e4; margin-left: 12px; }
.topbar .lang a.active, .topbar .lang a:hover { color: #fff; font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo .mark {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800;
}
.logo .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 26px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  transition: color .2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--blue); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 6px;
  font-size: 14px !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-light); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0c8b97; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-light); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #134a7a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
  z-index: 2;
}
.hero .tag {
  display: inline-block;
  background: rgba(15,163,177,.2);
  color: #6fe0e8;
  border: 1px solid rgba(15,163,177,.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: 18px;
  color: #c2d2e2;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 460px; }

/* ---------- Section basics ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 36px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--gray); font-size: 16px; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Product category cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.cat-card .thumb {
  height: 210px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.cat-card .thumb svg { width: 100%; height: 100%; }
.cat-card .body { padding: 24px; }
.cat-card .body h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.cat-card .body p { color: var(--gray); font-size: 14px; margin-bottom: 16px; }
.cat-card .body a { color: var(--blue); font-weight: 600; font-size: 14px; }
.cat-card .body a:hover { color: var(--accent); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 20px 10px; }
.feature .icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  background: #eaf4fb;
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature h4 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--gray); font-size: 14px; }

/* ---------- About preview ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { background: var(--navy); border-radius: var(--radius); padding: 30px; }
.about-visual svg { width: 100%; }
.about-text h2, .split-text h2 {
  font-size: 36px; color: var(--navy); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.5px;
}
.about-text p, .split-text p { color: var(--gray); margin-bottom: 16px; }
.about-text .checks { margin: 22px 0 30px; }
.about-text .checks li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); font-weight: 500; }
.about-text .checks li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: #fff; background: var(--accent); width: 20px; height: 20px;
  border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #b9cbe0; font-size: 17px; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #8fa9c2; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Product listing ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .thumb {
  height: 200px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.product-card .thumb svg { width: 100%; height: 100%; }
.product-card .info { padding: 22px; }
.product-card .info .model { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.product-card .info h3 { font-size: 18px; color: var(--navy); margin: 6px 0 8px; }
.product-card .info p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }
.product-card .info .spec { font-size: 13px; color: var(--gray); border-top: 1px dashed var(--line); padding-top: 12px; }
.product-card .info .spec b { color: var(--ink); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.spec-table th { background: var(--navy); color: #fff; font-weight: 600; }
.spec-table tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.value-card .n { font-size: 34px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.value-card h4 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.value-card p { color: var(--gray); font-size: 14px; }
.timeline { max-width: 760px; margin: 0 auto; }
.timeline .item { display: flex; gap: 20px; padding-bottom: 30px; position: relative; }
.timeline .item::before {
  content: ""; position: absolute; left: 59px; top: 14px; bottom: -14px; width: 2px; background: var(--line);
}
.timeline .item:last-child::before { display: none; }
.timeline .year {
  flex: 0 0 60px; height: 30px; background: var(--blue); color: #fff;
  border-radius: 20px; text-align: center; line-height: 30px; font-size: 13px; font-weight: 700;
}
.timeline .txt h4 { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.timeline .txt p { color: var(--gray); font-size: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info .box {
  background: var(--bg-soft); border-radius: var(--radius); padding: 26px; margin-bottom: 18px;
  display: flex; gap: 18px; align-items: flex-start;
}
.contact-info .box .ic {
  flex: 0 0 46px; height: 46px; background: #fff; color: var(--blue);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.contact-info .box h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.contact-info .box p { color: var(--gray); font-size: 14px; word-break: break-all; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-form h3 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.contact-form .sub { color: var(--gray); font-size: 14px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 12px; color: var(--gray-light); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bccf; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; text-align: center; font-size: 13px; color: #7e93a8;
}

/* ---------- Real product photo cards ---------- */
.product-card .thumb img, .cat-card .thumb img {
  width: 100%; height: 100%; object-fit: contain;
}
.cat-card .thumb { background: #fff; }

.cat-card .cat-photo {
  height: 210px; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.cat-card .cat-photo img { width: 100%; height: 100%; object-fit: contain; }

/* photo mosaic strip */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-strip img {
  width: 100%; height: 150px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}

/* M12 production spotlight */
.m12-spot {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #103c66 60%, #0d5a72 100%);
  color: #fff; overflow: hidden;
}
.m12-spot .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.m12-spot .eyebrow {
  display: inline-block; color: #6fe0e8; font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.m12-spot h2 { font-size: 38px; font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.m12-spot h2 .hl { color: var(--accent); }
.m12-spot p.lead { color: #c2d2e2; font-size: 16px; margin-bottom: 24px; }
.m12-spot .feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 28px; }
.m12-spot .feat-list li { position: relative; padding-left: 26px; font-size: 14px; color: #e2ecf5; }
.m12-spot .feat-list li::before {
  content: "▸"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 18px;
}
.m12-spot .visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 26px;
}
.m12-spot .visual img { width: 100%; max-height: 340px; object-fit: contain; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: .25s;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.cap-card .num { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.cap-card .num small { font-size: 18px; }
.cap-card h4 { color: var(--navy); font-size: 16px; margin: 8px 0 6px; }
.cap-card p { color: var(--gray); font-size: 13px; }

.factory-badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 30px; padding: 10px 20px;
  font-weight: 600; color: var(--navy); font-size: 15px; margin: 6px;
}
.factory-badge .pin { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.qr-box { text-align: center; }
.qr-box img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.qr-box p { color: var(--gray); font-size: 13px; }

.todo-note {
  background: #fff8e8; border: 1px solid #f0d79b; border-radius: 8px;
  padding: 14px 18px; color: #8a6a1f; font-size: 13px; margin-top: 18px;
}
.todo-note b { color: #6b5216; }

@media (max-width: 980px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .m12-spot .container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .m12-spot h2 { font-size: 28px; }
  .m12-spot .feat-list { grid-template-columns: 1fr; }
}

/* ---------- Capability list (clean, image-free) ---------- */
.capability-list { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.cap-item { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--border); border-radius:10px; padding:22px; }
.cap-ic { flex:0 0 46px; width:46px; height:46px; border-radius:10px; background:#eaf2fb; color:var(--blue); display:flex; align-items:center; justify-content:center; }
.cap-item h4 { margin:0 0 6px; font-size:16px; color:var(--navy); }
.cap-item p { margin:0; font-size:14px; line-height:1.6; color:var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { gap: 20px; }
  .hero h1 { font-size: 40px; }
  .cards-3, .product-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: 34px; }
  .hero-art { display: none; }
  section { padding: 60px 0; }
  .section-head h2, .about-text h2, .split-text h2 { font-size: 28px; }
  .cards-3, .product-grid, .values-grid, .features, .about-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
}
