:root {
  --color-primary-50: #EFF6FF;
  --color-primary-100: #DBEAFE;
  --color-primary-200: #BFDBFE;
  --color-primary-300: #93C5FD;
  --color-primary-400: #60A5FA;
  --color-primary-500: #3B82F6;
  --color-primary-600: #2563EB;
  --color-primary-700: #1D4ED8;
  --color-primary-800: #1E40AF;
  --color-primary-900: #1E3A8A;
  --color-accent: #C9A961;
  --color-accent-dark: #A88A4A;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 4px 12px rgba(59,130,246,.08);
  --shadow-lg: 0 16px 40px rgba(30,58,138,.12);
  --shadow-xl: 0 24px 60px rgba(30,58,138,.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-body: 'Noto Sans HK', -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans HK', serif;
  --container-max: 1280px;
  --container-padding: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: .35s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container-max), calc(100% - var(--container-padding) * 2)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; z-index: 10000; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 24px; }
.brand img { width: 178px; height: 44px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-weight: 700; color: var(--color-text-muted); }
.site-nav a { padding: 10px 4px; border-bottom: 2px solid transparent; }
.site-nav a.active, .site-nav a:hover { color: var(--color-primary-700); border-bottom-color: var(--color-accent); }
.nav-toggle { display: none; border: 0; background: var(--color-primary-50); color: var(--color-primary-900); border-radius: 12px; width: 44px; height: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700)); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { color: var(--color-primary-700); background: #fff; border-color: var(--color-primary-200); }
.btn-outline:hover { background: var(--color-primary-50); }
.btn-accent { color: var(--color-primary-900); background: var(--color-accent); box-shadow: 0 10px 24px rgba(201,169,97,.25); }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

.section { padding: 82px 0; }
.section-soft { background: linear-gradient(180deg, var(--color-primary-50), #fff); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { color: var(--color-accent-dark); font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3 { color: var(--color-primary-900); line-height: 1.15; margin: 0 0 16px; }
h1 { font-family: var(--font-display); font-size: 56px; font-weight: 700; }
h2 { font-family: var(--font-display); font-size: 40px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--color-text-muted); }

.hero-carousel { position: relative; min-height: 600px; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-in-out infinite alternate; }
.hero-slide:after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,138,.72), rgba(59,130,246,.34)); }
.hero-content { position: relative; z-index: 3; max-width: 720px; padding-top: 30px; }
.hero-content h1 { color: #fff; }
.hero-content p { color: rgba(255,255,255,.88); font-size: 20px; max-width: 640px; }
.hero-controls { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; pointer-events: auto; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dot.active { width: 32px; border-radius: 999px; background: #fff; }

.quick-search {
  position: relative;
  margin-top: -48px;
  z-index: 5;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
}
label { display: block; font-weight: 800; color: var(--color-primary-900); margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  transition: border var(--duration), box-shadow var(--duration);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--color-primary-500); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration), border-color var(--duration);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary-200); }
.service-card i, .feature-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--color-primary-700); background: var(--color-primary-100); font-size: 24px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--color-primary-50); color: var(--color-primary-800); font-size: 13px; font-weight: 800; margin: 3px; }
.chip.gold { background: rgba(201,169,97,.16); color: #7C642F; }
.rating { color: #F59E0B; font-weight: 900; white-space: nowrap; }

.company-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.company-card-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.company-card-head > div { min-width: 0; }
.company-card h3, .company-card p, .company-card a { overflow-wrap: anywhere; }
.company-logo-frame {
  position: relative;
  display: inline-flex;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--logo-bg, var(--color-primary-700));
  vertical-align: middle;
}
.company-logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.company-logo-frame .company-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.company-logo-frame.image-fallback-active .company-logo { display: none; }
.company-logo-large { flex-basis: 112px; width: 112px; height: 112px; border-radius: 26px; border: 4px solid rgba(255,255,255,.75); }
.company-logo-large .company-logo-fallback { font-size: 30px; }
.company-logo-compare { margin: 0 auto 8px; }
.verified { color: var(--color-success); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.district-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.district-cloud a { padding: 10px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-border); color: var(--color-primary-800); font-weight: 800; }
.district-cloud a:hover { background: var(--color-primary-50); border-color: var(--color-primary-300); }

.page-hero { padding: 70px 0; background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-500)); color: #fff; }
.page-hero h1, .page-hero p { color: #fff; }
.breadcrumb { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; color: var(--color-primary-700); font-weight: 700; }
.breadcrumb strong { color: var(--color-text-muted); }

.layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 30px; align-items: start; }
.layout > *, .grid > * { min-width: 0; }
.filter-panel, .sticky-panel { position: sticky; top: 100px; }
.filter-panel .card + .card { margin-top: 16px; }
.check-list label { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--color-text-muted); margin: 8px 0; }
.check-list input { width: auto; }
.companies-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 20px; align-items: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 100%; margin-top: 32px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; font-weight: 800; }
.pagination .current { background: var(--color-primary-600); color: #fff; border-color: var(--color-primary-600); }
.pagination .ellipsis { min-width: 26px; padding: 0 3px; border-color: transparent; background: transparent; color: var(--color-text-muted); }
.pagination .page-direction { gap: 7px; }

.compare-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(960px, calc(100% - 32px)); background: rgba(15,23,42,.92); color: #fff; border-radius: var(--radius-lg); padding: 14px 16px; z-index: 1000; display: none; align-items: center; justify-content: space-between; gap: 14px; box-shadow: var(--shadow-xl); }
.compare-bar.active { display: flex; }
.compare-list { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-list span { background: rgba(255,255,255,.12); padding: 6px 10px; border-radius: 999px; }

.company-hero { position: relative; min-height: 360px; display: flex; align-items: end; color: #fff; overflow: hidden; }
.company-hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.2), rgba(15,23,42,.72)); }
.company-hero-content { position: relative; z-index: 2; padding: 60px 0; display: flex; gap: 20px; align-items: center; }
.company-hero h1, .company-hero p { color: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 3; }
.rating-bar { margin: 12px 0; }
.rating-bar-row { display: grid; grid-template-columns: 120px 1fr 42px; gap: 12px; align-items: center; margin: 10px 0; }
.rating-track { height: 10px; border-radius: 999px; background: var(--color-primary-100); overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent)); }
.review-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; }

.blog-card { padding: 0; overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card h3, .blog-card p { overflow-wrap: anywhere; }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--color-text-muted); font-size: 14px; }
.blog-featured-grid { margin-bottom: 38px; }
.blog-search { display: flex; gap: 8px; }
.blog-search .btn { flex: 0 0 48px; width: 48px; padding: 0; border-radius: var(--radius-md); }
.empty-state { text-align: center; padding: 44px 24px; }
.article { max-width: 840px; margin: 0 auto; }
.article img.hero-img { width: 100%; border-radius: var(--radius-lg); margin: 24px 0; }
.article-content h2 { margin-top: 34px; }
.toc { background: var(--color-primary-50); border: 1px solid var(--color-primary-100); border-radius: var(--radius-lg); padding: 20px; margin: 24px 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.alert { padding: 14px 16px; border-radius: var(--radius-md); margin: 0 0 18px; font-weight: 700; }
.alert-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.site-footer { background: var(--color-primary-900); color: #fff; padding: 70px 0 24px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-col h4 { margin: 0 0 16px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 10px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; }

.wa-float { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 9999; transition: transform .3s var(--ease-out); animation: pulse 2s infinite; }
.wa-float:hover { transform: scale(1.1); }
.wa-tooltip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: #25D366; color: #fff; padding: 8px 14px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.wa-float:hover .wa-tooltip { opacity: 1; }

@keyframes pulse { 0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); } 50% { box-shadow: 0 8px 32px rgba(37,211,102,.7); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

/* SEO / a11y utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero-content h2 { color: #fff; font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.92); }
.page-hero .breadcrumb strong { color: rgba(255,255,255,.78); }

/* Moving cost calculator */
.calculator-hero { padding-bottom:72px; }
.calculator-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,410px); gap:28px; align-items:start; }
.calculator-form { min-width:0; display:grid; gap:22px; }
.calculator-step { background:#fff; border:1px solid var(--color-border); border-radius:8px; box-shadow:var(--shadow-md); padding:26px; min-width:0; }
.step-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:22px; }
.step-heading > span { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:var(--color-primary-100); color:var(--color-primary-800); font-weight:800; }
.step-heading h2 { margin:0 0 4px; font-size:1.35rem; }
.step-heading p { margin:0; color:var(--color-text-muted); }
.service-segments,.mode-switch { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.mode-switch { grid-template-columns:repeat(2,minmax(0,180px)); margin-top:16px; }
.service-segments label,.mode-switch label { position:relative; min-width:0; }
.service-segments input,.mode-switch input {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  border:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
}
.service-segments span,.mode-switch span { min-height:46px; display:grid; place-items:center; padding:9px 10px; border:1px solid var(--color-border); border-radius:6px; color:var(--color-text-muted); font-weight:700; cursor:pointer; text-align:center; transition:.2s ease; }
.service-segments input:checked + span,.mode-switch input:checked + span { color:#fff; border-color:var(--color-primary-600); background:var(--color-primary-600); box-shadow:0 6px 16px rgba(37,99,235,.18); }
.inline-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.inventory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:20px; }
.inventory-item { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--color-border); border-radius:6px; padding:12px; }
.inventory-item span { font-weight:700; min-width:0; }
.inventory-item small { display:block; color:var(--color-text-muted); font-weight:400; margin-top:3px; }
.inventory-item input { width:72px; flex:0 0 72px; }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.option-grid label { min-height:54px; display:flex; align-items:center; gap:10px; border:1px solid var(--color-border); border-radius:6px; padding:11px 13px; }
.option-grid input[type="number"] { width:76px; flex:0 0 76px; }
.option-grid input[type="checkbox"] { width:20px; height:20px; }
.calculator-submit { margin-top:22px; }
.calculator-result { position:sticky; top:96px; min-width:0; background:#fff; border:1px solid var(--color-primary-200); border-top:4px solid var(--color-accent); border-radius:8px; box-shadow:var(--shadow-lg); padding:28px; transition:opacity .2s ease; }
.calculator-result.is-loading { opacity:.58; }
.estimate-placeholder { min-height:260px; display:grid; place-items:center; align-content:center; text-align:center; color:var(--color-text-muted); }
.estimate-placeholder i { font-size:42px; color:var(--color-primary-300); }
.estimate-total { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; color:var(--color-primary-900); margin:12px 0; }
.estimate-total span { font-family:var(--font-display); font-size:2rem; font-weight:700; }
.estimate-total i { color:var(--color-text-muted); font-style:normal; }
.estimate-confidence { padding:10px 12px; background:var(--color-primary-50); border-radius:6px; }
.estimate-breakdown { list-style:none; padding:0; margin:20px 0; border-top:1px solid var(--color-border); }
.estimate-breakdown li { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--color-border); font-size:.92rem; }
.estimate-breakdown strong { white-space:nowrap; }
.estimate-warning { background:#FFF7ED; border:1px solid #FED7AA; border-radius:6px; padding:13px; color:#9A3412; }
.estimate-warning ul { margin:6px 0 0; padding-left:18px; }
.estimate-disclaimer { color:var(--color-text-muted); font-size:.84rem; margin:18px 0; }
.calculator-result .btn { width:100%; }
.calculator-notes { max-width:900px; }
.estimate-summary-price { color:var(--color-primary-900); font-family:var(--font-display); font-size:1.65rem; font-weight:700; }
.admin-preview-banner { position:sticky; top:0; z-index:80; padding:12px 24px; background:#FFF7D6; border-bottom:1px solid #E8CA63; color:#5E4900; text-align:center; }
.admin-preview-banner a { margin-left:12px; font-weight:700; }
