/* ============================================================
   PestcontrolEasy / 滅蟲易 — site.css
   Mobile-first, responsive, no external font dependencies
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #1b5e20;
  --primary-mid:    #2e7d32;
  --primary-light:  #43a047;
  --primary-pale:   #e8f5e9;
  --accent:         #e65100;
  --accent-hover:   #bf360c;
  --wa-green:       #25d366;
  --wa-hover:       #128c7e;
  --text:           #212121;
  --text-mid:       #424242;
  --text-muted:     #757575;
  --bg:             #fafafa;
  --bg-white:       #ffffff;
  --bg-card:        #ffffff;
  --border:         #c8e6c9;
  --border-mid:     #a5d6a7;
  --shadow-sm:      0 1px 6px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.16);
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --nav-h:          64px;
  --container:      1200px;
  --transition:     .2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section--alt { background: var(--primary-pale); }
.section--dark { background: var(--primary); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-en { font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.nav-logo .logo-zh { font-size: .7rem; opacity: .85; }

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--primary-mid);
  padding: 1rem 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.nav-menu.open { display: flex; }
.nav-menu a {
  display: block;
  padding: .75rem 1.5rem;
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.15); color: #fff; }
.nav-menu a:last-child { border-bottom: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-btn {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  padding: .2rem .65rem;
  transition: all var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.nav-toggle {
  width: 38px; height: 38px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--radius);
  color: #fff;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.15); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 0;
    order: 2;
  }
  .nav-right {
    order: 3;
    margin-left: .5rem;
  }
  .nav-menu a {
    padding: .4rem .85rem;
    border-radius: 20px;
    border-bottom: none;
    font-size: .9rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border: 2px solid var(--primary-mid); color: var(--primary-mid); }
.btn-outline:hover { background: var(--primary-pale); }
.btn-wa { background: var(--wa-green); color: #fff; font-size: 1rem; padding: .8rem 1.6rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 900;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  font-size: 1.65rem;
  transition: all var(--transition);
}
.btn-wa-fab:hover { background: var(--wa-hover); transform: scale(1.08); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num { font-size: 1.75rem; font-weight: 700; }
.hero-stat-label { font-size: .8rem; opacity: .8; }

/* ---------- Section Heading ---------- */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary-mid);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: .25rem .8rem;
  margin-bottom: .6rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-img-placeholder {
  background: linear-gradient(135deg, var(--primary-pale), var(--border));
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-mid);
}

/* Generated WebP card images */
.card-img-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-img-wrap--blog { height: 140px; }
.card-img-wrap--specialist {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

/* Company card */
.company-card { display: flex; flex-direction: column; }
.company-card .card-body { flex: 1; display: flex; flex-direction: column; }
.company-card-district {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem;
  color: var(--primary-mid);
  background: var(--primary-pale);
  padding: .2rem .6rem;
  border-radius: 12px;
  margin-bottom: .5rem;
  font-weight: 600;
}
.company-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.company-card-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; flex: 1; }
.company-card-services {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-bottom: .85rem;
}
.tag {
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 12px;
  background: var(--border);
  color: var(--text-mid);
  font-weight: 500;
}
.tag--green { background: var(--primary-pale); color: var(--primary-mid); }
.tag--orange { background: #fff3e0; color: #e65100; }

/* Specialist card highlight */
.card--specialist { border-color: var(--primary-light); }
.card--specialist .card-img-placeholder { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: var(--accent); }

.detail-side-photo {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
}
.detail-side-photo img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.post-hero-img {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.post-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Blog card */
.blog-card .card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: .5rem;
}
.blog-card .card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.blog-card .card-excerpt { font-size: .875rem; color: var(--text-muted); }
.blog-card-cat {
  font-size: .72rem; font-weight: 600;
  background: var(--primary-pale); color: var(--primary-mid);
  padding: .15rem .55rem; border-radius: 10px;
}

/* ---------- Company Detail Page ---------- */
.detail-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  padding: 2.5rem 0;
}
.detail-hero-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.detail-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: .25rem .8rem; font-size: .8rem;
  margin-bottom: .75rem;
}
.detail-hero h1 { font-size: clamp(1.5rem,3.5vw,2.25rem); margin-bottom: .5rem; }
.detail-hero .tagline { font-size: 1rem; opacity: .85; margin-bottom: 1rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; opacity: .8; }
.detail-meta span { display: flex; align-items: center; gap: .3rem; }
.detail-wa-wrap { margin-top: 1.25rem; }

.detail-section { padding: 2.5rem 0; }
.detail-section + .detail-section { border-top: 1px solid var(--border); }
.detail-section h2 { color: var(--primary); margin-bottom: 1rem; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-item {
  display: flex; align-items: center; gap: .6rem;
  background: var(--primary-pale);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  font-size: .9rem; font-weight: 500;
  color: var(--primary);
}
.service-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}
.faq-q {
  width: 100%; text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  background: none; gap: .5rem;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--primary-pale); }
.faq-chevron { font-size: .75rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: .75rem 1.25rem 1rem; font-size: .9rem; color: var(--text-mid); border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact Form ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-mid); }
.form-control {
  width: 100%;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-white);
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757575' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-success { display: none; background: var(--primary-pale); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--primary); font-weight: 500; }

/* ---------- Blog Post Body ---------- */
.blog-body { max-width: 760px; }
.blog-body h2 { color: var(--primary); margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.blog-body h3 { color: var(--text); margin: 1.5rem 0 .5rem; }
.blog-body ul, .blog-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }
.blog-body li { margin-bottom: .35rem; }
.blog-body blockquote { border-left: 4px solid var(--primary-light); padding: .75rem 1rem; background: var(--primary-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; }

.img-placeholder {
  background: linear-gradient(135deg, var(--primary-pale), #c8e6c9);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--primary);
  font-size: .85rem;
  margin: 1.5rem 0;
  border: 1px dashed var(--border-mid);
}
.img-placeholder .img-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.img-placeholder .img-prompt { opacity: .7; font-style: italic; }

/* Blog header meta */
.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: .75rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.post-kw { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-mid); }
.breadcrumb span { opacity: .5; }

/* ---------- WhatsApp Modal ---------- */
.wa-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .wa-modal-overlay { align-items: center; padding: 1rem; }
}
.wa-modal-overlay.open { display: flex; }

.wa-modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@media (min-width: 640px) {
  .wa-modal-box { border-radius: var(--radius-xl); max-width: 480px; max-height: 80vh; animation: fadeIn .2s ease; }
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.wa-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.wa-modal-header .wa-title { display: flex; align-items: center; gap: .6rem; }
.wa-modal-header .wa-icon { font-size: 1.4rem; }
.wa-modal-header h3 { font-size: 1rem; font-weight: 700; }
.wa-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted);
  flex-shrink: 0;
  transition: background var(--transition);
}
.wa-modal-close:hover { background: var(--border); }

/* Company info card inside modal */
.wa-company-info {
  margin: 0 1rem .25rem;
  padding: .85rem 1rem;
  background: var(--primary-pale);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
}
.wa-info-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem;
  font-size: .85rem; color: var(--text-mid);
  margin-bottom: .35rem;
}
.wa-info-row:last-child { margin-bottom: 0; }
.wa-info-icon { font-size: .9rem; flex-shrink: 0; }
.wa-info-name { font-weight: 700; color: var(--primary); font-size: .95rem; }
.wa-info-sep { opacity: .4; }
.wa-info-purpose {
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: .5rem;
  font-style: italic;
}
.wa-options-header {
  padding: .4rem 1.25rem .1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wa-options-list { padding: .4rem 1rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.wa-option {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  font-size: .9rem;
}
.wa-option:hover { border-color: var(--wa-green); background: #f0fdf4; color: var(--text); }
.wa-option-info { display: flex; flex-direction: column; gap: .1rem; }
.wa-option-label { font-weight: 600; font-size: .9rem; color: var(--text); }
.wa-option-sub { font-size: .78rem; color: var(--text-muted); }
.wa-option-arrow { color: var(--wa-green); font-size: 1rem; flex-shrink: 0; }

/* ---------- About Page ---------- */
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; counter-reset: steps; }
.process-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.step-body h3 { margin-bottom: .25rem; }
.step-body p { font-size: .9rem; color: var(--text-mid); }
@media (min-width: 768px) {
  .process-steps { flex-direction: row; gap: 0; }
  .process-step { flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative; }
  .process-step:not(:last-child)::after {
    content: ''; position: absolute; top: 21px; left: calc(50% + 21px);
    width: calc(100% - 42px); height: 2px;
    background: var(--border-mid);
  }
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: .85rem; opacity: .8; }

/* ---------- District Filter ---------- */
.filter-bar-wrap { margin-bottom: 2rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.filter-clear-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  background: var(--primary-pale);
  border: 1px solid var(--border-mid);
  font-size: .85rem;
  color: var(--primary-mid);
}
.filter-clear-banner[hidden] { display: none !important; }
/* JS-controlled visibility — used by initFilter() */
.js-hidden { display: none !important; }
.filter-clear-banner-text { font-weight: 600; }
.filter-clear-x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-mid);
  background: var(--bg-white);
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.filter-clear-x:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.filter-btn {
  padding: .35rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border-mid);
  font-size: .82rem; font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
  background: var(--bg-white);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d3517;
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand .logo-en { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-brand .logo-zh { font-size: .8rem; opacity: .7; }
.footer-brand p { font-size: .85rem; line-height: 1.6; opacity: .75; }

.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; opacity: .6;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .9rem; font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.alert-info { background: var(--primary-pale); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: .85rem 1.1rem; font-size: .9rem; color: var(--primary); }
.coverage-badge { display: inline-flex; align-items: center; gap: .35rem; background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; border-radius: 12px; padding: .2rem .65rem; font-size: .78rem; font-weight: 600; }

/* ---------- Nav: List Company button ---------- */
.btn-list-co {
  display: none;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-list-co:hover { background: rgba(255,255,255,.25); }
@media (min-width: 480px) { .btn-list-co { display: inline-flex; } }

/* ---------- Floating List Company button ---------- */
.lc-float {
  position: fixed;
  bottom: 5rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  padding: .55rem 1rem .55rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  z-index: 900;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.lc-float:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.lc-float-icon { font-size: 1.1rem; }
@media (min-width: 768px) { .lc-float { bottom: 2rem; } }

/* ---------- List Company Modal ---------- */
.lc-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) { .lc-overlay { align-items: center; padding: 1rem; } }
.lc-overlay.open { display: flex; }

.lc-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -4px 32px rgba(0,0,0,.15);
}
@media (min-width: 640px) {
  .lc-box { border-radius: var(--radius-xl); box-shadow: 0 8px 40px rgba(0,0,0,.18); }
}

.lc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-white);
  z-index: 1;
}
.lc-title-wrap { display: flex; align-items: center; gap: .6rem; }
.lc-icon { font-size: 1.5rem; }
.lc-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.lc-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.lc-close:hover { background: var(--border); color: var(--text); }
.lc-subtitle { padding: .6rem 1.25rem .4rem; font-size: .85rem; color: var(--text-muted); margin: 0; }

.lc-form-body { padding: .25rem 1.25rem 1.5rem; }
#lc-form { padding: .25rem 1.25rem 1.5rem; }
.lc-field { margin-bottom: 1rem; }
.lc-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: .4rem;
}
.lc-input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.lc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.lc-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.lc-err { color: #c62828; font-size: .82rem; background: #ffebee; border: 1px solid #ef9a9a; border-radius: var(--radius); padding: .5rem .85rem; margin-bottom: .75rem; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 639px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .detail-hero { padding: 1.75rem 0; }
  .btn-wa-fab { width: 52px; height: 52px; font-size: 1.4rem; bottom: 1rem; right: 1rem; }
}
