/* Linke Computer Limited — linke.com.hk homepage preview
   Brand blues sampled from the official wordmark (#004d9c, #1c64a8);
   orange & gold from the official chevron (#ea7f23, #ecc017). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-deep: #004d9c;
  --blue: #1c64a8;
  --blue-mid: #2e73b1;
  --blue-soft: #d4e2f0;
  --blue-tint: #eef3f8;
  --orange: #ea7f23;
  --gold: #ecc017;
  --ink: #14181d;
  --text: #1c232b;
  --muted: #5a6572;
  --line: #d5dde6;
  --paper: #f4f6f8;
  --white: #ffffff;
  --footer: #0e1620;
  --whatsapp: #128c7e;
  --whatsapp-hover: #0e7368;
  --danger: #9b1c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 22, 32, 0.08);
  --header-h: 72px;
  --space: 1.25rem;
  --max: 1120px;
  --font: "IBM Plex Sans", "Noto Sans TC", "PingFang HK", "Source Han Sans K",
    "Source Han Sans", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* Brand ribbon — official chevron colours, not a redrawn mark */
.brand-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 34%, var(--gold) 34% 62%, var(--blue) 62% 100%);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo-link img {
  width: 200px;
  height: 40px;
  object-fit: contain;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem 0.15rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}
.site-nav a:hover { color: var(--blue-deep); background: var(--blue-tint); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--whatsapp);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--whatsapp-hover); }
.header-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(28, 100, 168, 0.10), transparent 60%),
    radial-gradient(800px 300px at 0% 100%, rgba(234, 127, 35, 0.07), transparent 55%),
    var(--paper);
  overflow: hidden;
  padding: 3.2rem 0 3.6rem;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 24, 29, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 29, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 90%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  text-transform: none;
  margin: 0 0 0.85rem;
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-weight: 700;
}
.legal-name {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--text);
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
}
.btn-primary:hover { background: #003e7d; color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue-soft);
}
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: var(--white); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-meta li { white-space: nowrap; }
.hero-meta strong { color: var(--text); font-weight: 600; }

.pillar-list {
  display: grid;
  gap: 0.75rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pillar-card:hover {
  border-color: var(--blue);
  color: inherit;
  transform: translateY(-1px);
}
.pillar-index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding-top: 0.2rem;
}
.pillar-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  color: var(--ink);
}
.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.pillar-card .go {
  color: var(--blue-deep);
  font-weight: 600;
  align-self: center;
  font-size: 1.2rem;
}

/* Sections */
section { padding: 4rem 0; }
.section-head {
  margin-bottom: 1.8rem;
}
.section-head .head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem 1.5rem;
  flex-wrap: wrap;
}
.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.about {
  background: var(--white);
  padding: 3.25rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: start;
}
.about h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  background: var(--paper);
}
.fact dt {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.fact dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

/* Sales */
.sales { background: var(--paper); border-block: 1px solid var(--line); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.cat-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  min-height: 56px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cat-grid a:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}
.cat-grid a span.arrow {
  color: var(--blue);
  font-weight: 500;
  font-size: 1.1rem;
}
.sales-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Repair */
.repair { background: var(--white); }
.repair-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: -0.4rem 0 1.6rem;
}
.hkggz-mark {
  background: #000;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  line-height: 0;
}
.hkggz-mark img {
  height: 36px;
  width: auto;
}
.repair-intro p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.2rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.service-card .price {
  margin: 0;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}
.service-card .price span { white-space: nowrap; }
.service-card p,
.service-card li { color: var(--text); font-size: 0.92rem; }
.service-card p { margin: 0; }
.service-card ul {
  margin: 0.15rem 0 0.2rem;
  padding-left: 1.15rem;
}
.service-card li + li { margin-top: 0.2rem; }
.source {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.85rem;
}
.repair-extra {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.panel h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ink); }
.panel p, .panel li { margin: 0; font-size: 0.92rem; }
.panel ol, .panel ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.panel li + li { margin-top: 0.25rem; }
.cases {
  margin: 1.4rem 0 0;
}
.cases h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}
.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-list a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
}
.case-list a:hover { border-color: var(--blue); color: var(--blue-deep); }

/* SME */
.sme {
  background: var(--blue-deep);
  color: #eef3f8;
}
.sme .section-kicker { color: #b9d0ea; }
.sme h2 { color: var(--white); }
.sme-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.sme p { margin: 0 0 1rem; color: #d7e3ef; max-width: 42rem; }
.sme p:last-of-type { margin-bottom: 1.2rem; }
.sme .cta-row .btn-secondary { background: var(--white); }
.sme .btn-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.sme .btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.sme aside {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.sme aside h3 { margin: 0 0 0.5rem; color: var(--white); font-size: 1rem; }
.sme aside ul { margin: 0; padding-left: 1.15rem; color: #d7e3ef; font-size: 0.92rem; }
.sme aside li + li { margin-top: 0.35rem; }

/* Contact */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-card, .form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}
.contact-card h3, .form-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.vcard {
  margin: 0;
}
.vcard div + div { margin-top: 0.85rem; }
.vcard dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.vcard dd { margin: 0; }
.vcard .en-addr {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}
.hours-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.map-link { display: inline-block; margin-top: 0.85rem; font-weight: 600; }

form { display: grid; gap: 0.75rem; }
label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
input, select, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: var(--white);
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.form-hint, .form-success, .form-error {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}
.form-success {
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 400;
}
.form-success a { font-weight: 600; }
.form-error { color: var(--danger); }
.hidden { display: none !important; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: #c5cdd6;
  padding: 2.6rem 0 1.6rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}
.site-footer h2, .site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #dbe4ee; }
.site-footer a:hover { color: var(--white); }
.socials, .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials li, .footer-links li { margin: 0 0 0.35rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.1rem;
  margin: 0;
  color: #8b95a1;
  font-size: 0.82rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
  text-decoration: none;
}
.wa-float:hover { background: var(--whatsapp-hover); color: var(--white); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Utilities */
.ext::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.85em;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .service-grid,
  .repair-extra,
  .sme-inner,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-head .head-top .btn { width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-row { grid-template-columns: 1fr; }
  .hero { padding: 2.4rem 0 2.6rem; }
  section { padding: 3.1rem 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0.5rem; }
  .header-cta { width: 100%; justify-content: center; margin-top: 0.35rem; }
  .logo-link img { width: 168px; height: 34px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .wa-float, .nav-toggle, .brand-ribbon { position: static; }
  .wa-float, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .sme { background: #fff; color: #000; border: 1px solid #ccc; }
  .sme h2, .sme p, .sme aside, .sme aside h3, .sme aside ul { color: #000; }
  a { color: #000; }
}
