/* moneylendermlo.com — design language adapted from the SFC Radar layout,
   recoloured to the Hong Kong Companies Registry brand palette
   (primary teal #005b75, alert red #c91d20). Fonts: Raleway + Lato. */

:root {
  --accent: #005b75;          /* CR primary teal */
  --accent-dark: #01485c;
  --accent-secondary: #17a39a;
  --accent-glow: rgba(0, 91, 117, 0.14);
  --accent-soft: rgba(0, 91, 117, 0.05);
  --border-glow: rgba(0, 91, 117, 0.25);

  --cr-red: #c91d20;          /* CR alert red */
  --cr-red-dark: #aa181b;

  --bg: #eef3f2;
  --bg-card: #ffffff;
  --bg-card-hover: #e8f3f5;
  --bg-soft: #f8fafc;

  --text-main: #262626;
  --text-muted: #5f6e6c;
  --border-muted: rgba(15, 23, 42, 0.08);

  --green: #16a34a; --green-bg: #e7f6ed;
  --amber: #d97706; --amber-bg: #fdf1de;
  --grey: #64748b;  --grey-bg: #eef1f4;
  --blue: #2563eb;  --blue-bg: #e7eefc;
  --red: var(--cr-red); --red-bg: #fbe4e4;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .raleway { font-family: 'Raleway', sans-serif; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

/* ----------------------------- header ----------------------------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-muted);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text-main); text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

.main-nav { display: flex; gap: 0.15rem; }
.main-nav a {
  color: var(--text-muted); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: all 0.18s ease;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.main-nav a.active { background: var(--accent); color: #fff; }

.lang-toggle {
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-glow);
  border-radius: 9px; padding: 0.45rem 0.85rem; font-size: 0.85rem; cursor: pointer;
  font-weight: 700; font-family: inherit;
}
.lang-toggle:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* ------------------------------ hero ------------------------------ */
.hero-banner {
  display: flex; align-items: center; gap: 2rem;
  background: linear-gradient(120deg, var(--bg-card) 55%, var(--bg-card-hover));
  border: 1px solid var(--border-muted); border-radius: 20px;
  padding: 2rem 2.25rem; margin: 1.75rem 0 1.5rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.hero-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none;
}
.hero-copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent);
  background: var(--accent-soft); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.hero-title { font-size: 2rem; font-weight: 800; color: var(--text-main); line-height: 1.2; margin: 0 0 0.6rem; }
.hero-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.65; max-width: 64ch; margin: 0; }
.hero-art {
  flex: none; width: 130px; height: 130px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff;
  font-size: 3.4rem; box-shadow: 0 10px 30px var(--accent-glow); position: relative; z-index: 1;
}

/* search */
.search-wrap { max-width: 720px; margin: 0 auto; position: relative; }
.search-input-wrap { position: relative; }
.search-input-wrap .search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem; pointer-events: none;
}
.search-input {
  width: 100%; background: var(--bg-card); border: 2px solid var(--border-muted);
  padding: 1.05rem 1.1rem 1.05rem 3rem; border-radius: 14px; color: var(--text-main);
  font-family: inherit; font-size: 1.05rem; outline: none; transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; text-align: center; }

/* ----------------------------- stats ----------------------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem; margin: 2rem 0 2.5rem;
}
.stat-card {
  background: var(--bg-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-muted);
  padding: 1.4rem 1.5rem; border-radius: var(--radius); text-decoration: none; color: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent);
  opacity: 0; transition: opacity 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-card.is-red::before { background: var(--cr-red); }
.stat-val { font-family: 'Raleway', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; }
.stat-icon { font-size: 1.6rem; color: var(--accent); opacity: 0.8; }
.stat-card.is-red .stat-icon { color: var(--cr-red); }

/* --------------------------- info cards --------------------------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.info-card { background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.info-card .ic-icon { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.5rem; }
.info-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--text-main); font-weight: 700; }
.info-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --------------------------- disclaimer bar --------------------------- */
.disclaimer-bar {
  background: var(--amber-bg); border-bottom: 1px solid #f0dba8; color: #6b4a00;
  font-size: 0.82rem; line-height: 1.5; padding: 0.5rem 0;
}
.disclaimer-bar i { color: var(--amber); margin-right: 0.35rem; }
.disclaimer-bar strong { color: var(--cr-red); }
.disclaimer-bar a { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ----------------------- licensed vs loan shark ----------------------- */
.compare { margin: 2.5rem 0 1rem; }
.compare-lede { color: var(--text-muted); margin: 0.3rem 0 1.2rem; font-size: 0.95rem; max-width: 70ch; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-card {
  background: var(--bg-card); border: 1px solid var(--border-muted); border-top: 5px solid var(--grey);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.compare-card.good { border-top-color: var(--green); }
.compare-card.bad { border-top-color: var(--cr-red); }
.compare-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-soft); }
.compare-body { padding: 1.1rem 1.3rem 1.4rem; }
.compare-body h3 { font-family: 'Raleway', sans-serif; font-size: 1.1rem; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.compare-card.good h3 { color: var(--green); }
.compare-card.bad h3 { color: var(--cr-red); }
.compare-body p { margin: 0; font-size: 0.92rem; color: var(--text-main); line-height: 1.6; }
.compare-cta { text-align: center; margin: 1.3rem 0 0; }
.compare-cta a { font-weight: 700; color: var(--accent); text-decoration: none; }
.compare-cta a:hover { text-decoration: underline; }

.detail-disclaimer { margin-top: 1.25rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; background: var(--bg-soft); border: 1px solid var(--border-muted); border-radius: 10px; padding: 0.8rem 1rem; }
.detail-disclaimer i { color: var(--accent); margin-right: 0.35rem; }

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

/* ------------------------- search results ------------------------- */
.results { margin: 1.5rem 0; }
.results-summary { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-title { font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin: 0; }
.see-all { font-size: 0.88rem; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.result-card {
  background: var(--bg-card); border: 1px solid var(--border-muted); border-left: 5px solid var(--grey);
  border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; box-shadow: var(--shadow-sm);
}
.result-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem 1rem; }
.result-card .names { flex: 1 1 280px; min-width: 0; }
.result-card .name-en { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-main); }
.result-card .name-zh { color: var(--text-muted); font-size: 0.95rem; }
.result-card .detail { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; }
.result-card.licensed { border-left-color: var(--green); }
.result-card.renewal { border-left-color: var(--amber); }
.result-card.expired { border-left-color: var(--grey); }
.result-card.applying { border-left-color: var(--blue); }
.result-card.dismissed, .result-card.withdrawn { border-left-color: var(--cr-red); }
a.result-card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rc-chev { color: var(--text-muted); font-size: 0.75em; opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease; margin-left: 0.2rem; }
a.result-card:hover .rc-chev { opacity: 0.7; transform: translateX(3px); }
.row-name { color: var(--accent); text-decoration: none; font-weight: 600; }
.row-name:hover { text-decoration: underline; }

/* -------------------------- company detail -------------------------- */
.detail-back-wrap { margin: 1.25rem 0 0.5rem; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.back-link:hover { color: var(--accent); }
.company-head {
  background: var(--bg-card); border: 1px solid var(--border-muted); border-left: 6px solid var(--grey);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between;
}
.company-head.licensed { border-left-color: var(--green); }
.company-head.renewal { border-left-color: var(--amber); }
.company-head.expired { border-left-color: var(--grey); }
.company-head.applying { border-left-color: var(--blue); }
.company-head.dismissed, .company-head.withdrawn { border-left-color: var(--cr-red); }
.company-head-main { min-width: 0; }
.company-name { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin: 0; line-height: 1.25; }
.company-name-zh { color: var(--text-muted); font-size: 1.05rem; margin-top: 0.2rem; }
.company-status-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0.7rem 0 0; max-width: 60ch; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; margin: 1.25rem 0; align-items: start; }
.detail-card { background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); }
.detail-card h2 { font-size: 1.05rem; color: var(--accent); margin: 0 0 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.detail-sub { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 0.9rem; }
.detail-card .addr-box { background: var(--bg-soft); }

/* map embed */
.map-block { margin-top: 1rem; }
.map-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.map-wrap { border: 1px solid var(--border-muted); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.map-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } .map-wrap iframe { height: 230px; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700;
  padding: 0.35rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: "●"; font-size: 0.6em; }
.badge.licensed { background: var(--green-bg); color: var(--green); }
.badge.renewal { background: var(--amber-bg); color: var(--amber); }
.badge.expired { background: var(--grey-bg); color: var(--grey); }
.badge.applying { background: var(--blue-bg); color: var(--blue); }
.badge.dismissed, .badge.withdrawn { background: var(--red-bg); color: var(--cr-red); }

/* address lookup */
.addr-toggle {
  margin-top: 0.7rem; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-glow);
  border-radius: 9px; padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 0.4rem;
}
.addr-toggle:hover { background: var(--accent); color: #fff; }
.addr-toggle[disabled] { opacity: 0.6; cursor: default; }
.addr-box {
  margin-top: 0.7rem; background: var(--bg-soft); border: 1px solid var(--border-muted);
  border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.85rem; line-height: 1.6;
}
.addr-box .addr-line { display: flex; gap: 0.5rem; }
.addr-box .addr-k { color: var(--text-muted); min-width: 7.5rem; flex: none; font-weight: 600; }
.addr-box .addr-v { color: var(--text-main); }
.addr-box .addr-note { color: var(--text-muted); font-style: italic; }
.addr-box.err { background: var(--red-bg); border-color: #f3c9c9; color: var(--cr-red-dark); }

.empty { text-align: center; color: var(--text-muted); padding: 2.5rem 0; }
.empty .search-hint { text-align: center; }

/* --------------------------- page header -------------------------- */
.page-head { padding: 1.75rem 0 0.25rem; }
.page-head h1 { font-size: 1.6rem; color: var(--text-main); margin: 0 0 0.4rem; font-weight: 800; }
.page-head p { color: var(--text-muted); margin: 0; font-size: 0.95rem; max-width: 70ch; }

/* --------------------------- filter panel --------------------------- */
.filter-panel {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); margin: 1.25rem 0 0.5rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 180px; min-width: 150px; }
.filter-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.filter-select {
  background: var(--bg-soft); border: 1.5px solid var(--border-muted); border-radius: 10px;
  padding: 0.6rem 0.8rem; font-size: 0.92rem; font-family: inherit; color: var(--text-main); outline: none;
}
.filter-select:focus { border-color: var(--accent); }
.filter-reset { flex: none; align-self: flex-end; }

/* ----------------------------- table ----------------------------- */
.table-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.2rem 0; }
.table-tools .search-input-wrap { flex: 1 1 260px; }
.table-tools .search-input { padding: 0.7rem 1rem 0.7rem 2.6rem; font-size: 0.95rem; box-shadow: none; border-width: 1.5px; }
.table-tools .search-input-wrap .search-icon { font-size: 1rem; left: 0.9rem; }
.table-count { font-size: 0.82rem; color: var(--text-muted); }

.table-wrap { background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left; background: var(--accent); color: #fff; font-family: 'Raleway', sans-serif;
  font-weight: 700; padding: 0.8rem 0.95rem; white-space: nowrap; font-size: 0.85rem;
}
tbody td { padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--border-muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--accent-soft); }
td .name-zh { color: var(--text-muted); display: block; font-size: 0.82rem; }
td.num-col { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
td .row-addr-btn {
  background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem;
  font-family: inherit; font-weight: 700; padding: 0; text-decoration: underline;
}
tr.addr-row td { background: var(--bg-soft); }

.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.4rem 0; }
.btn-page {
  background: var(--bg-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-muted);
  color: var(--text-main); padding: 0.55rem 1.05rem; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; transition: all 0.18s ease;
}
.btn-page:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-page:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 0.88rem; color: var(--text-muted); }

/* ----------------------------- prose ----------------------------- */
.prose { background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); margin: 1.25rem 0; }
.prose h2 { color: var(--accent); font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-main); font-size: 0.95rem; }
.prose a { color: var(--accent); }
.callout { background: var(--amber-bg); border: 1px solid #f0dba8; border-radius: 10px; padding: 0.9rem 1.1rem; margin: 1rem 0; font-size: 0.92rem; color: #6b4a00; }

/* guide / education page */
.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: start; margin-top: 0.5rem; }
.guide-toc { position: sticky; top: 84px; background: var(--bg-card); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.1rem; }
.toc-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.5rem; }
.toc-link { background: none; border: none; text-align: left; font-family: inherit; font-size: 0.88rem; color: var(--accent); padding: 0.4rem 0.5rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.toc-link:hover { background: var(--accent-soft); }
.guide-prose section { scroll-margin-top: 84px; }
.guide-prose section + section { border-top: 1px solid var(--border-muted); margin-top: 1.6rem; padding-top: 0.4rem; }
.guide-prose ul { padding-left: 1.2rem; }
.guide-prose li { margin-bottom: 0.4rem; }
.guide-note { background: var(--bg-soft); border: 1px solid var(--border-muted); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.85rem; color: var(--text-muted); margin-top: 1.2rem; }
@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; flex-flow: row wrap; gap: 0.4rem; }
  .guide-toc .toc-title { width: 100%; }
}

.loading { text-align: center; color: var(--text-muted); padding: 3rem 0; }
.spinner {
  display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid var(--border-glow);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------- footer ----------------------------- */
.site-footer { background: var(--bg-card); border-top: 3px solid var(--accent); margin-top: 3rem; }
.fwrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot-cols h4 { font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text-main); margin: 0 0 0.7rem; }
.foot-cols p, .foot-cols li, .foot-cols a { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols ul li { margin-bottom: 0.35rem; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--accent); text-decoration: underline; }
.foot-cols .foot-h-spaced { margin-top: 1.2rem; }
.foot-bottom { border-top: 1px solid var(--border-muted); margin-top: 1.8rem; padding-top: 1.2rem; font-size: 0.78rem; color: var(--text-muted); }
.foot-bottom .footer-meta { font-weight: 700; color: var(--accent); }
.foot-bottom .footer-meta span { color: var(--text-main); }

/* footer: services / help cards */
.foot-help { border-bottom: 1px solid var(--border-muted); padding-bottom: 2rem; margin-bottom: 2rem; }
.foot-help-title { font-family: 'Raleway', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin: 0 0 1.1rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.help-card { border: 1px solid var(--border-muted); border-radius: 12px; padding: 1.15rem 1.2rem; background: var(--accent-soft); display: flex; flex-direction: column; }
.help-card h4 { font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.45rem; }
.help-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; flex: 1; margin: 0; }
.wa-btn {
  align-self: flex-start; margin-top: 0.9rem; background: #25d366; color: #fff !important; font-weight: 700;
  font-size: 0.82rem; padding: 0.55rem 0.95rem; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.wa-btn:hover { background: #1ebe5a; }

/* footer: contact block */
.contact-name { font-weight: 700; color: var(--text-main); margin: 0 0 0.2rem; }
.contact-note { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.7rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.4rem; font-size: 0.85rem; }
.contact-list i { color: var(--accent); width: 1.1rem; text-align: center; flex: none; }

@media (max-width: 700px) { .wa-btn { align-self: stretch; justify-content: center; } }

/* --------------------------- responsive --------------------------- */
@media (max-width: 820px) {
  .info-cards { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-card); padding: 0.5rem; gap: 0.15rem; box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-muted);
  }
  .main-nav.open { display: flex; }
  .main-nav a.active { color: #fff; }
  .nav-toggle { display: block; }
  .hero-banner { flex-direction: column-reverse; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; }
  .hero-art { width: 76px; height: 76px; font-size: 2rem; border-radius: 16px; }
  .hero-title { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-card { padding: 1.1rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .stat-val { font-size: 1.6rem; }
  .brand-text small { display: none; }
}
