﻿/*
Theme Name: MWX PCB Website 5
Theme URI: https://www.mwxpcb.com
Author: MWX PCB
Description: MWX PCB engineering-driven PCB sourcing and project support website.
Version: 1.0.4
Text Domain: mwxpcb
*/

:root {
  --ink: #13212b;
  --muted: #5f6b74;
  --line: #dbe5e7;
  --soft: #f5f8f8;
  --teal: #159a9c;
  --teal-dark: #0d6f73;
  --copper: #b9782b;
  --dark: #0f252c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
.nav { min-height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 46px; gap: 28px; background: #fff; position: sticky; top: 0; z-index: 20; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: .2px; margin-right: 10px; white-space: nowrap; }
.logo span { color: var(--teal); }
.menu { display: flex; gap: 24px; align-items: center; flex: 1; font-size: 15px; color: #26343d; }
.menu a:hover, .menu .active { color: var(--teal-dark); font-weight: 700; }
.menu-item { position: relative; padding: 29px 0; }
.submenu { display: none; position: absolute; top: 74px; left: -16px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(15,37,44,.12); padding: 10px; }
.submenu a { display: block; padding: 10px 12px; border-radius: 6px; color: #26343d; }
.submenu a:hover { background: var(--soft); color: var(--teal-dark); }
.menu-item:hover .submenu { display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--teal); background: var(--teal); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.btn.secondary { color: var(--teal-dark); background: #fff; border-color: #a8cfd0; }
.btn.dark-secondary { background: transparent; color: #fff; border-color: #6c8c92; }
.btn.light { background: #fff; color: var(--dark); border-color: #fff; }
.section { max-width: 1220px; margin: 0 auto; padding: 72px 32px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding-top: 68px; }
.eyebrow { color: var(--teal-dark); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: 56px; line-height: 1.03; margin: 0 0 20px; letter-spacing: 0; }
h2 { font-size: 35px; line-height: 1.12; margin: 0; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.22; }
.subtitle { font-size: 23px; line-height: 1.35; margin: 0 0 18px; color: #20313c; font-weight: 700; }
.lead, .body-copy { color: var(--muted); line-height: 1.7; font-size: 17px; margin: 0; }
.lead { margin-bottom: 28px; max-width: 620px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--line); background: #fff; padding: 9px 12px; border-radius: 6px; color: #384851; font-size: 13px; font-weight: 700; }
.hero-gallery { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 190px 190px; gap: 12px; }
.photo { overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); position: relative; }
.photo.main { grid-row: span 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.contain img { object-fit: contain; padding: 12px; background: #fff; }
.caption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; background: rgba(255,255,255,.92); border: 1px solid rgba(219,229,231,.85); border-radius: 5px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 30px; }
.section-head p { max-width: 540px; color: var(--muted); line-height: 1.7; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 24px; min-height: 190px; }
.card p, .flow-card p, .case-block p, .faq-card p { color: var(--muted); line-height: 1.6; margin: 0; font-size: 14px; }
.icon { width: 34px; height: 34px; border-radius: 6px; background: #e8f5f4; color: var(--teal-dark); display: grid; place-items: center; font-weight: 900; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; }
.image-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; min-height: 330px; box-shadow: 0 8px 24px rgba(15,37,44,.06); }
.image-frame img { width: 100%; height: 360px; object-fit: cover; display: block; }
.image-frame.contain img { object-fit: contain; padding: 18px; }
.mini-grid, .check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.mini, .check { border-left: 3px solid var(--copper); background: #fff; border-radius: 6px; padding: 11px 12px; font-weight: 800; color: #34444e; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-card { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 20px 18px; }
.flow-card strong { display: block; color: var(--teal-dark); font-size: 13px; letter-spacing: .05em; margin-bottom: 12px; }
.cta { text-align: center; background: var(--dark); color: #fff; border-radius: 8px; padding: 46px 36px; }
.cta h2 { color: #fff; }
.cta p { color: #d5e1e4; margin: 14px auto 24px; max-width: 720px; font-size: 17px; line-height: 1.6; }
.footer { background: #10252b; color: #d6e3e4; padding: 42px 46px; }
.footer-inner { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.footer h3 { color: #fff; }
.footer a { display: block; color: #d6e3e4; margin: 9px 0; font-size: 14px; }
.footer p { color: #b5c8cc; line-height: 1.6; }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 26px; box-shadow: 0 8px 24px rgba(15,37,44,.05); }
.form-card.featured { border-top: 4px solid var(--teal); }
.form-card.upload { border-top: 4px solid var(--copper); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: #34444e; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 112px; resize: vertical; }
input[type=file] { padding: 10px; background: #f7fbfb; }
.form-note { background: #f7fbfb; border: 1px solid #cfe2e3; border-radius: 7px; padding: 13px; color: #41535d; font-size: 13px; line-height: 1.55; margin-top: 16px; }
.notice { max-width: 1220px; margin: 24px auto 0; padding: 12px 16px; border-radius: 7px; font-weight: 700; }
.notice.success { background: #edf8f5; border: 1px solid #b8dfd9; color: #0d6f73; }
.notice.error { background: #fff4f0; border: 1px solid #e4b6a8; color: #96462b; }
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 46px; align-items: start; }
.toc { position: sticky; top: 106px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; }
.toc strong { display: block; margin-bottom: 14px; }
.toc a { display: block; color: #3d515b; text-decoration: none; font-size: 14px; padding: 8px 0; border-top: 1px solid #eef3f4; }
.toc a:first-of-type { border-top: 0; }
.legal-content { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 36px; }
.legal-content section+section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.72; font-size: 16px; }
.legal-content ul { margin: 12px 0 0; padding-left: 20px; }
.case-card img { width: 100%; height: 150px; object-fit: contain; padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.case-label { color: var(--teal-dark); font-weight: 900; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.case-block { border-left: 3px solid var(--copper); padding-left: 12px; margin-top: 12px; }
.faq-card h3 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.contact-detail-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-detail-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: 7px; padding: 13px 14px; color: var(--ink); }
.contact-detail-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.contact-detail-item strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 22px; z-index: 9999; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px; box-shadow: 0 18px 44px rgba(15,37,44,.18); padding: 18px; display: none; gap: 18px; align-items: center; }
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 14px; flex: 1; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-link { color: var(--teal-dark); font-weight: 800; text-decoration: underline; }
@media (max-width: 900px) {
  .nav { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  .logo { flex: 1 1 auto; }
  .nav > .btn { padding: 10px 12px; font-size: 13px; }
  .menu { order: 3; width: 100%; gap: 16px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0 2px; }
  .menu-item { padding: 4px 0; flex: 0 0 auto; }
  .submenu { display: none !important; }
  .hero, .split, .contact-layout, .form-layout, .legal-layout { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .flow, .footer-inner { grid-template-columns: 1fr; }
  .hero-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo.main { grid-row: auto; }
  .photo { height: 230px; }
  h1 { font-size: 40px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; display: none; align-items: stretch; flex-direction: column; }
  .cookie-banner.is-visible { display: flex; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
