/* ============ 101 AliCar Trading ============ */
/* Layout: left-aligned columns on a 1120px measure, hairline rules between
   items, and one navy band for the quote form. */
:root {
  /* Brand colours from the 101 AliCar logo */
  --navy: #021f4e;
  --navy-2: #0a3a85;
  --red: #c40112;
  --red-dark: #9e000e;
  /* Hong Kong rear number plate yellow, used once in the hero */
  --plate: #f7c600;
  --whatsapp: #128c4b;
  --ink: #111a2e;
  --muted: #4d5870;
  --line: #d5dce8;
  --paper: #ffffff;
  --wash: #f2f4f8;

  --display: "Barlow Condensed", "Noto Sans TC", "Arial Narrow", sans-serif;
  --body: "Barlow", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.02; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
.hl { color: var(--red); }
/* keeps a Chinese phrase on one line */
.nb { display: inline-block; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
html[lang="zh-HK"] h1, html[lang="zh-HK"] h2 { font-weight: 900; line-height: 1.2; }
html[lang="zh-HK"] h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
html[lang="zh-HK"] h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.small { font-size: .9rem; color: var(--muted); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.25em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #0d733d; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--paper); }
.btn-outline:hover { background: var(--wash); }
.btn-sm { padding: .45em .9em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 28px; }
@media (max-width: 1100px) { .nav { gap: 18px; font-size: .95rem; } }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: .4em .8em; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 1.1rem 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.hero-art { position: relative; padding-bottom: 28px; }
/* Two big choices under the headline: cars on this page, or the electronics page */
.choose-label { margin: 1.6rem 0 .6rem; font-weight: 600; color: var(--navy); }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.choose-card {
  display: flex; align-items: center; gap: 12px; padding: 16px; min-width: 0;
  border: 2px solid var(--navy); border-radius: var(--radius); text-decoration: none; color: var(--navy);
}
.choose-card:hover { background: var(--navy); color: #fff; }
.choose-card:hover .choose-text span { color: #c9d3e3; }
.choose-card > .ico { width: 32px; height: 32px; color: var(--red); }
.choose-card:hover > .ico { color: #fff; }
.choose-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.choose-text strong { font-size: 1.1rem; line-height: 1.2; }
.choose-text span { font-size: .9rem; color: var(--muted); }
.choose-arrow { width: 22px; height: 22px; }
.hero-svg { width: 100%; height: auto; }
.plate {
  position: absolute; right: 6%; bottom: 0;
  background: var(--plate); color: #111; border: 3px solid #111; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: .14em; line-height: 1; padding: .22em .5em .26em .64em;
  transform: rotate(-3deg);
}
.facts {
  grid-column: 1 / -1; margin: 24px 0 0; display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 18px 0 22px; margin-right: 64px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-wash { background: var(--wash); }
.section-dark { background: var(--navy); color: #fff; border-top: 0; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: .75rem 0 0; }

/* ---------- Services ---------- */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.services li { border-top: 2px solid var(--navy); padding: 18px 0 30px; min-width: 0; }
.services .ico { width: 30px; height: 30px; color: var(--red); margin-bottom: 10px; }
.services p { color: var(--muted); margin: .35rem 0 0; font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step); display: block;
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800;
  font-size: 4rem; line-height: 1; color: var(--red); margin-bottom: 8px;
}
.steps p { color: var(--muted); margin: .35rem 0 0; font-size: 1rem; }
.services.cols-4 { grid-template-columns: repeat(4, 1fr); }
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cross-link { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 500; }
.cross-link a { font-weight: 700; color: var(--red); }
.cross-link a::after { content: " \2192"; }
.nav .nav-page { color: var(--red); font-weight: 600; }
.qty-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.qty-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.qty-list li:last-child { border-bottom: 1px solid var(--line); }
.qty-list p { color: var(--muted); margin: .25rem 0 0; }
.why-panel-paper { background: var(--paper); }
.hero-art-flat { padding-bottom: 0; }

/* ---------- Why ---------- */
.why-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.why-body { color: var(--muted); max-width: 36em; margin: 1rem 0 0; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); font-weight: 500; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: 15px; width: 7px; height: 13px;
  border: solid var(--red); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.why-panel { background: var(--wash); border-radius: var(--radius); padding: 28px; }
.why-panel ul { padding-left: 1.2em; margin: .75rem 0 1rem; }
.why-panel li { margin: .4em 0; }
.why-panel .small { margin: 0; }

/* ---------- Quote form ---------- */
.quote-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.quote-copy p { color: #c9d3e3; margin: 1rem 0 0; }
.quote-form {
  background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .65em .75em; border: 1.5px solid #b8c2d4; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(10, 58, 133, .18); }
.field .invalid { border-color: var(--red); }
.form-error { grid-column: 1 / -1; color: var(--red-dark); margin: 0; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Photo upload */
.upload {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 22px 16px; border: 1.5px dashed #b8c2d4; border-radius: var(--radius);
  background: var(--wash); cursor: pointer;
}
.upload:hover, .upload:focus-within { border-color: var(--navy-2); }
.upload.invalid { border-color: var(--red); background: #fdf1f1; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-icon { width: 34px; height: 34px; color: var(--navy); }
.upload .req { color: var(--red); }
.upload-btn { margin-top: 4px; padding: .5em 1.1em; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 600; }
.upload small { color: var(--muted); max-width: 34em; font-size: .9rem; font-weight: 400; }
.photo-count { margin: 0; font-weight: 600; color: var(--navy); }
.photo-count:empty { display: none; }
.thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(2, 31, 78, .85); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
}

/* Two-step send panel */
.send-panel { background: var(--wash); border-radius: var(--radius); padding: 20px; }
.send-panel h3 { color: var(--navy); margin-bottom: 12px; }
.send-panel ol { margin: 0; padding-left: 1.2em; display: grid; gap: 16px; }
.send-panel li p { margin: 0 0 8px; }
.send-panel .small { margin: 8px 0 0; }
.sent-panel { border-left: 4px solid var(--whatsapp); }
.sent-panel h3 { color: var(--whatsapp); margin-bottom: 6px; }
.sent-panel p { margin: 0 0 10px; }
.send-fail { margin: 0 0 10px; color: var(--red-dark); font-weight: 600; }
.btn-send { min-width: 9em; }
.btn:disabled { opacity: .7; cursor: progress; }
/* spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--red);
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: none; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 40em; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li > .ico { width: 26px; height: 26px; color: var(--navy); margin-top: 2px; }
.contact-list div { display: grid; gap: 2px; min-width: 0; }
.contact-label { font-size: .95rem; color: var(--muted); }
.contact-list a { word-break: break-word; }
.contact-number { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--navy); text-decoration: none; letter-spacing: .01em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact-side { display: grid; gap: 20px; }
.google-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.google-card .ico { width: 30px; height: 30px; color: var(--red); }
.google-card p { margin: 0 0 6px; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid var(--line); background: var(--wash); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #01142f; color: #c9d3e3; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
.footer-logo { background: #fff; border-radius: var(--radius); padding: 6px 10px; height: 52px; width: auto; margin-bottom: 10px; }
.site-footer p { margin: 0; }
.site-footer .small { color: #94a3c0; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(2, 31, 78, .3);
}
.fab .ico { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .why-inner, .quote-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .services, .steps, .services.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .why-inner, .contact-inner { gap: 36px; }
  .faq-inner, .quote-inner { gap: 28px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .brand img { height: 44px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .choose { grid-template-columns: 1fr; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .facts > div { padding: 14px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .services, .services.cols-4, .steps.cols-3, .quote-form { grid-template-columns: 1fr; }
  .steps { gap: 24px 20px; }
  .steps li::before { font-size: 3.2rem; }
  .quote-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
