/* ASSIST Electronics Co. Limited - Global stylesheet
   Color tone based on company logo (deep navy + light blue) */

:root {
  --primary: #0E3A8C;
  --primary-dark: #082766;
  --primary-light: #1f55b8;
  --secondary: #2BA6E8;
  --secondary-dark: #1689c7;
  --accent: #e8f3fc;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-dark: #0a1f4d;
  --text: #1a2233;
  --muted: #5b6577;
  --border: #e4ebf3;
  --shadow-sm: 0 1px 2px rgba(14, 58, 140, 0.06);
  --shadow-md: 0 6px 24px rgba(14, 58, 140, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 58, 140, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }

img { max-width: 100%; display: block; }

#about, #business { scroll-margin-top: 88px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand-text {
  font-weight: 700; color: var(--primary);
  font-size: 15px; letter-spacing: .3px; line-height: 1.1;
}
.brand-text small {
  display: block; font-weight: 500; color: var(--muted);
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text);
  font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { background: var(--accent); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: var(--accent); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 9px 18px !important; border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.nav-cta.active { background: var(--primary-dark) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }

/* Inventory page — match Contact layout emphasis */
.page-core { padding: 64px 0 84px; }
.inventory-card { padding: 36px 40px; }
.inventory-card > h3 {
  margin: 0 0 8px; color: var(--primary); font-size: 22px;
}
.inventory-card > .card-lead {
  margin: 0 0 24px; color: var(--muted); font-size: 15px;
}
.tabs--core {
  gap: 10px; border-bottom: 0; margin-bottom: 28px; flex-wrap: wrap;
}
.tabs--core .tab {
  padding: 12px 24px; border-radius: 10px;
  border: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border);
  margin-bottom: 0; background: var(--bg-soft);
}
.tabs--core .tab:hover {
  border-color: var(--secondary); color: var(--primary); background: var(--accent);
}
.tabs--core .tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  border-bottom-color: var(--primary);
}
.table-wrap--core { box-shadow: var(--shadow-sm); }
table.data .btn-row {
  display: inline-flex; padding: 7px 14px; font-size: 13px;
  border-radius: 8px; background: var(--secondary); color: #fff !important;
  font-weight: 600;
}
table.data .btn-row:hover { background: var(--secondary-dark); color: #fff !important; }
.inventory-foot {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.inventory-foot .note { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; }

/* ===== Inventory inquiry modal ===== */
.inv-modal-back {
  position: fixed; inset: 0; background: rgba(7, 21, 58, .55);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 24px; backdrop-filter: blur(3px);
  overflow-y: auto;
}
.inv-modal-back.open { display: flex; }
.inv-modal {
  background: #fff; width: 100%; max-width: 560px; border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3); max-height: 92vh;
  overflow-y: auto; animation: invModalIn .2s ease;
}
@keyframes invModalIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.inv-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; border-bottom: 1px solid var(--border);
}
.inv-modal-head h3 {
  margin: 0; font-size: 19px; color: var(--primary);
}
.inv-close {
  background: none; border: 0; cursor: pointer; font-size: 26px;
  color: var(--muted); line-height: 1; padding: 4px 8px;
}
.inv-close:hover { color: var(--text); }
.inv-modal-body { padding: 22px 26px; }
.inv-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.inq-context { margin-bottom: 18px; }
.inq-product {
  background: var(--accent); border: 1px solid #cbe1f5;
  border-radius: 10px; padding: 14px 16px;
}
.inq-tag {
  display: inline-block; padding: 3px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 10px;
}
.inq-tag-buy  { background: #1f8a3f; color: #fff; }
.inq-tag-sell { background: #b8730a; color: #fff; }
.inq-product-main {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.inq-product-main strong { font-size: 17px; color: var(--primary-dark); }
.inq-product-main span { color: var(--muted); font-size: 14px; }
.inq-product-meta { font-size: 12.5px; color: var(--muted); }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--primary);
  position: relative; transition: .25s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--primary); transition: .25s;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top:  7px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(43,166,232,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(14,58,140,.18), transparent 60%),
    linear-gradient(135deg, #061a4a 0%, #0E3A8C 55%, #1B58B8 100%);
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M0 .5h60M.5 0v60' stroke='rgba(255,255,255,.05)' stroke-width='1'/></svg>");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1; margin: 0 0 18px; font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--secondary); }
.hero p.lead {
  font-size: 18px; max-width: 720px; opacity: .92; margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: 0;
  transition: transform .15s, background .2s, box-shadow .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-dark); color: #fff; }

/* ===== Sections ===== */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px; font-weight: 800; letter-spacing: -.3px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p  { margin: 0; color: var(--muted); font-size: 15px; }

.stat {
  text-align: center; padding: 24px;
}
.stat .num {
  font-size: 44px; font-weight: 800; color: var(--secondary);
  line-height: 1;
}
.stat .label { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 14px; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 70%, var(--primary-light));
  color: #fff; padding: 80px 0 70px; text-align: center;
}
.page-header h1 {
  margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; letter-spacing: -.4px;
}
.page-header p { margin: 0; opacity: .9; font-size: 17px; }
.crumbs {
  font-size: 13px; opacity: .8; margin-bottom: 18px;
}
.crumbs a { color: #fff; }

/* ===== Content ===== */
.prose { max-width: 820px; margin: 0 auto; font-size: 16px; }
.prose h2 { margin: 48px 0 16px; font-size: 26px; color: var(--primary); }
.prose h3 { margin: 32px 0 12px; font-size: 19px; color: var(--primary-dark); }
.prose p, .prose li { color: #2c3344; }
.prose ul { padding-left: 22px; }
.prose ul li { margin: 8px 0; }
.prose strong { color: var(--primary-dark); }

/* ===== Forms ===== */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 18px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
  letter-spacing: .2px;
}
.form-group label .req { color: #d22; margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: 0; border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(43,166,232,.15);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.file-drop {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 24px; text-align: center; color: var(--muted);
  cursor: pointer; transition: .2s;
}
.file-drop:hover { border-color: var(--secondary); background: var(--accent); color: var(--primary); }
.form-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--muted); margin: 8px 0 18px;
}
.form-check input { margin-top: 4px; }

/* ===== Two-col layout (contact info + form) ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.info-block h3 { margin: 0 0 20px; color: var(--primary); font-size: 22px; }
.info-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: 0; }
.info-item .ico {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.info-item .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.info-item .val { font-size: 15.5px; color: var(--text); font-weight: 500; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table.data {
  width: 100%; border-collapse: collapse; background: #fff;
  font-size: 14.5px;
}
table.data th, table.data td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
table.data thead th {
  background: var(--bg-soft); color: var(--primary-dark);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
table.data tbody tr:hover { background: var(--accent); }

/* ===== Tabs ===== */
.tabs {
  display: flex; gap: 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 32px; flex-wrap: wrap;
}
.tab {
  padding: 12px 22px; cursor: pointer; border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: .2s; font-family: inherit;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--secondary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to{opacity:1;transform:none;} }

/* ===== Highlights / CTA strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: var(--radius-lg);
  padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-strip h3 { margin: 0 0 6px; font-size: 24px; }
.cta-strip p { margin: 0; opacity: .9; }

/* ===== Footer ===== */
.site-footer {
  background: #07153a; color: rgba(255,255,255,.75);
  padding: 64px 0 28px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.2px; margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: rgba(255,255,255,.7); }
.footer-grid a:hover { color: var(--secondary); }
.footer-brand img { height: 38px; margin-bottom: 14px; filter: brightness(1.4); }
.footer-brand p { margin: 0 0 12px; color: rgba(255,255,255,.65); line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); margin-left: 16px; }

/* ===== Alerts ===== */
.alert {
  padding: 14px 18px; border-radius: 10px; font-size: 14px; margin: 16px 0;
}
.alert-success { background: #e9f7ef; color: #176633; border: 1px solid #b6e3c6; }
.alert-error   { background: #fdecec; color: #8a1f1f; border: 1px solid #f1bcbc; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; width: 100%; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
  .hero { padding: 70px 0 80px; }
  .form-card { padding: 24px; }
  .cta-strip { padding: 28px; }
}
