/* MF Innovative Tech — site styles */
:root {
  --blue: #0b5fa5;
  --blue-dark: #084a82;
  --navy: #0e2a47;
  --red: #d7141a;
  --red-dark: #b00f14;
  --ink: #1b2433;
  --mute: #5b6878;
  --line: #e3e8ef;
  --bg: #f3f6fa;
  --wa: #0e7a3e;
  --wa-dark: #0a5f30;
  --waze: #33ccff;
  --radius: 10px;
  --wrap: 1200px;
  --shadow: 0 6px 24px rgba(14, 42, 71, .08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.zh { color: var(--mute); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* top bar + header */
.topbar { background: var(--navy); color: #c9d6e6; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"], .nav a:hover { color: var(--blue); }
.nav a.btn-wa, .nav a.btn-wa:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-radius: 30px; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-waze { background: var(--waze); color: var(--navy); border-radius: 30px; }
.btn-gmaps { background: #1a73e8; color: #fff; border-radius: 30px; }
.btn-gmaps:hover { background: #1557b0; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { background: linear-gradient(180deg, #eaf1f9, #fff); padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--mute); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 30px; }
.stats b { display: block; font-size: 30px; color: var(--blue); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--mute); }
.hero-img img { mix-blend-mode: multiply; }

/* sections */
section { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head p { color: var(--mute); margin: 0; }
.page-head { background: linear-gradient(180deg, #eaf1f9, #fff); padding: 40px 0 28px; }
.page-head p { color: var(--mute); font-size: 18px; max-width: 760px; }
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cat-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.cat-card .img { aspect-ratio: 4/3; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; background: linear-gradient(180deg, #eaf1f9, #f7f9fc); }
.cat-card .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card .body { padding: 16px 18px 18px; }
.cat-card h3 { margin-bottom: 2px; }
.cat-card p { font-size: 14px; color: var(--mute); margin: 6px 0 0; }
.cat-card .more { display: inline-block; margin-top: 10px; color: var(--red); font-weight: 700; font-size: 14px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.p-card .img { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(180deg, #eaf1f9, #f7f9fc); display: flex; align-items: center; justify-content: center; padding: 12px; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.p-card .body { padding: 12px 14px 14px; }
.p-card h3 { font-size: 16px; margin: 0; }
.p-card .zh { font-size: 13px; }

/* category blocks on products page */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-nav a { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; text-decoration: none; font-weight: 600; color: var(--navy); }
.cat-nav a:hover { border-color: var(--blue); color: var(--blue); }
.cat-block { scroll-margin-top: 90px; }
.cat-block + .cat-block { margin-top: 48px; }
.more-list { columns: 2; gap: 28px; padding: 0; list-style: none; margin: 0; }
.more-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.more-list b { color: var(--navy); }

/* product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.gallery .main { overflow: hidden; background: linear-gradient(180deg, #eaf1f9, #f7f9fc); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 18px; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 92px; height: 70px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); padding: 4px; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tag { display: inline-block; background: #fdecec; color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 4px 9px; border-radius: 4px; text-transform: uppercase; }
.product h1 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 12px; margin-bottom: 4px; }
.product .zh-title { font-size: 18px; color: var(--mute); margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid #eef1f5; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.enquire { background: var(--bg); border-radius: var(--radius); padding: 18px; margin-top: 22px; }
.enquire p { margin: 0 0 12px; color: var(--mute); font-size: 15px; }
.enquire .actions { margin-top: 0; }
.variant { margin-top: 40px; }
.variant h3 { font-size: 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.specs { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
.specs th, .specs td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.specs thead th { background: var(--navy); color: #fff; font-weight: 600; position: sticky; top: 0; }
.specs tbody tr:nth-child(even) { background: #f8fafc; }
.specs tbody th { color: var(--navy); }
.note { font-size: 13px; color: var(--mute); margin-top: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: var(--bg); border-radius: 30px; padding: 6px 14px; font-size: 14px; }

/* grid children may shrink below their content width */
.split > *, .product > *, .contact > *, .find > *, .hero .wrap > * { min-width: 0; }

/* about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-row b { display: block; font-size: 40px; color: var(--blue); }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; }
.office h3 { font-size: 16px; margin-bottom: 6px; }
.office.hl { border-color: var(--blue); background: #f5f9fe; }

/* catalogues */
.cat-dl { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.cat-dl img { border-radius: 6px; box-shadow: var(--shadow); }
.cat-dl + .cat-dl { margin-top: 20px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.map { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: var(--bg); }
.nav-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list b { display: block; font-size: 13px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
form.enquiry { display: grid; gap: 14px; background: var(--bg); padding: 22px; border-radius: var(--radius); }
form.enquiry label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; padding: 11px 12px; border: 1px solid #64748b; border-radius: 6px; background: #fff; width: 100%; }
form.enquiry textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--mute); margin: 0; }

/* find-us strip + cta */
.find { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta { background: var(--navy); color: #dbe5f1; border-radius: var(--radius); padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; }

/* footer */
.site-footer { background: var(--navy); color: #b9c7d8; font-size: 14px; padding: 44px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.foot-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.foot-logo img { height: 36px; width: auto; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* floating WhatsApp + mobile product bar */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.wa-float { color: #fff; }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.m-bar { display: none; }

@media (max-width: 960px) {
  .hero .wrap, .product, .split, .contact, .find { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .topbar .addr { display: none; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 20px; }
  section { padding: 40px 0; }
  .hero { padding-top: 32px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats b { font-size: 26px; }
  .stats span { font-size: 12px; display: block; line-height: 1.3; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-row b { font-size: 30px; }
  .offices, .foot-grid, .form-row { grid-template-columns: 1fr; }
  .more-list { columns: 1; }
  .cat-dl { grid-template-columns: 1fr; }
  .cat-dl img { max-width: 200px; }
  .section-head { flex-direction: column; align-items: start; }
  body.has-bar { padding-bottom: 76px; }
  body.has-bar .wa-float { display: none; }
  .m-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; padding: 10px 14px 14px; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .m-bar .btn { flex: 1; padding: 12px 10px; }
  .m-bar .btn-wa { flex: 2.2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat-card, .p-card { transition: none; }
}
