/* noxcustoms.ca — one stylesheet for every page (built by NoxSite/build.py). */
:root {
  --ink: #0f1b2d;
  --text: #2b3647;
  --muted: #5d6878;
  --line: #e2e7ef;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --blue: #1f6ed4;
  --blue-dark: #1556ab;
  --sky: #03a6ff;
  --navy: #0b1f3a;
  --ok: #1b7f3b; --bad: #b42318; --warn: #a15c00; --info: #1f6ed4;
  --radius: 12px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { flex: none; }

/* ── Header ── */
.topbar { background: var(--navy); color: #c9d6ea; font-size: 14px; }
.topbar .wrap { display: flex; gap: 20px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .hours { margin-right: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--soft); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang { font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; white-space: nowrap; }
.lang:hover { border-color: var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar .hours { display: none; }
  .topbar .wrap { justify-content: center; gap: 14px; }
  .header-actions .btn-primary { display: none; }
  .logo img { height: 48px; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: #dbe6f6;
  background:
    linear-gradient(90deg, rgba(11,31,58,.93) 0%, rgba(11,31,58,.78) 45%, rgba(11,31,58,.35) 100%),
    url(/assets/img/port-dusk.jpg) center / cover no-repeat,
    var(--navy);
}
@media (max-width: 900px) {
  .hero { background: linear-gradient(180deg, rgba(11,31,58,.88), rgba(11,31,58,.94)), url(/assets/img/port-dusk.jpg) center / cover no-repeat, var(--navy); }
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; color: #c9d6ea; max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #8fd3ff;
           background: rgba(3,166,255,.12); border: 1px solid rgba(3,166,255,.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: 15px; color: #c9d6ea; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--sky); }
.quick { background: #fff; color: var(--text); border-radius: 16px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.quick h2 { font-size: 20px; margin-bottom: 6px; }
.quick p { color: var(--muted); font-size: 15px; }
.quick hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.quick .tool-link { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 0; }
.quick .tool-link strong { display: block; }
.quick .tool-link span span { color: var(--muted); font-size: 14px; }
.quick .tool-link:hover strong { color: var(--blue); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 32px; } }

/* ── Page hero (inner pages) ── */
.page-hero { color: #d5e0f0; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(11,31,58,.94) 0%, rgba(11,31,58,.8) 50%, rgba(11,31,58,.45) 100%), var(--photo, none) center / cover no-repeat, var(--navy); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 640px) {
  .page-hero { background: linear-gradient(180deg, rgba(11,31,58,.82), rgba(11,31,58,.9)), var(--photo, none) center / cover no-repeat, var(--navy); }
  .page-hero .wrap { padding-top: 44px; padding-bottom: 44px; }
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-hero p { max-width: 46em; font-size: 18px; margin: 0; }
.crumbs { font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: #8fd3ff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ── Sections ── */
section.block { padding: 72px 0; }
section.block.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
:lang(zh) .kicker { letter-spacing: .1em; }
@media (max-width: 600px) { section.block { padding: 52px 0; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden; }
.card-img { display: block; width: calc(100% + 52px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
            margin: -26px -26px 20px; transition: transform .3s; }
a.card:hover .card-img { transform: scale(1.03); }
a.card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #b9cdea; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
a.card:hover h3 { color: var(--blue); }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 15px; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
        background: linear-gradient(135deg, rgba(3,166,255,.14), rgba(31,110,212,.14)); color: var(--blue); }

/* Photo beside text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.points strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
.points li > span:last-child { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-img { max-height: 300px; } }
.body-img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 28px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
                display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Tool band */
.band { border-radius: 18px; padding: 40px; color: #dbe6f6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
        background: radial-gradient(600px 300px at 100% 0, rgba(3,166,255,.35), transparent 60%), var(--navy); }
.band h2 { color: #fff; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; align-items: flex-start; }
.band li svg { color: var(--sky); flex: none; margin-top: 4px; }
.band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.band .note { font-size: 14px; color: #9fb3cf; margin: 0; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 28px; } }

/* Checks list */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { color: var(--blue); flex: none; margin-top: 5px; }

/* Article (service and legal pages) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article .body h2 { font-size: 24px; margin-top: 1.6em; }
.article .body h2:first-child { margin-top: 0; }
.article .body ul { padding-left: 1.2em; }
.article .body li { margin-bottom: .4em; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside .card h3 { font-size: 17px; }
.aside nav a { display: block; padding: 7px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.aside nav a:last-child { border-bottom: 0; }
.aside nav a:hover, .aside nav a[aria-current="page"] { color: var(--blue); }
.aside .cta-card { background: var(--soft); border-color: transparent; }
.aside .cta-card p { margin-bottom: 14px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }
.legal-text { max-width: 820px; }
.legal-text h2 { font-size: 22px; margin-top: 1.6em; }
.legal-text .updated { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--ink); position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.req { color: var(--bad); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd7e3; border-radius: 10px; padding: 11px 13px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,110,212,.35); border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: var(--bad); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { width: 40px; height: 40px; border-radius: 10px; margin: 0; flex: none; }
.info-list small { display: block; color: var(--muted); font-size: 14px; }
.info-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--blue); }

/* Shipment status (embedded tracker) */
.tracker { display: block; width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 640px) { .tracker { height: 1100px; } }

/* Tool cards */
.tool-card { display: flex; flex-direction: column; }
.tool-card .ext { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 14px; }

/* CTA strip */
.cta { background: linear-gradient(120deg, var(--blue), #1a8be8); color: #e8f3ff; }
.cta .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 4px; }
.cta p { margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-light { border-color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: #a9bad3; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dbe6f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 14px; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }

/* ── Chinese pages: CJK glyphs look bigger and heavier than Latin at the same size ── */
html:lang(zh) body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
                     font-size: 14px; line-height: 1.85; letter-spacing: .02em; }
html:lang(zh) h1 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; letter-spacing: .03em; line-height: 1.4; }
html:lang(zh) h2 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: .03em; line-height: 1.4; }
html:lang(zh) h3 { font-size: 16px; font-weight: 600; }
html:lang(zh) .hero .lead { font-size: 15px; }
html:lang(zh) .page-hero h1 { font-size: clamp(21px, 2.5vw, 28px); }
html:lang(zh) .page-hero p, html:lang(zh) .section-head p { font-size: 15px; }
html:lang(zh) .page-hero p { max-width: 60em; }
html:lang(zh) .topbar, html:lang(zh) .eyebrow, html:lang(zh) .crumbs, html:lang(zh) .kicker { font-size: 13px; }
html:lang(zh) .nav a { font-size: 14px; padding: 8px 10px; }
html:lang(zh) .btn { font-size: 14px; font-weight: 600; }
html:lang(zh) .hero-badges, html:lang(zh) .quick p, html:lang(zh) .card .more { font-size: 14px; }
html:lang(zh) .card p, html:lang(zh) .step p, html:lang(zh) .points li > span:last-child { font-size: 14px; }
html:lang(zh) .points strong { font-size: 15.5px; }
html:lang(zh) .faq summary { font-size: 15px; font-weight: 600; }
html:lang(zh) .article .body h2 { font-size: 19px; }
html:lang(zh) .aside .card h3 { font-size: 15px; }
html:lang(zh) .legal-text h2 { font-size: 17px; }
html:lang(zh) .cta h2 { font-size: clamp(18px, 2vw, 22px); }
html:lang(zh) .quick h2 { font-size: 17px; }
html:lang(zh) label { font-size: 14px; }
html:lang(zh) .site-footer, html:lang(zh) .site-footer h3 { font-size: 14px; }
html:lang(zh) .hint, html:lang(zh) .info-list small, html:lang(zh) .footer-bottom { font-size: 13px; }
