/* 著數優惠站 — white-dominant design with green accents
   (modelled on greenercleanhk.com's clean marketing style +
    elderlyinfo.swd.gov.hk's clear sectioned information tiles) */
:root {
  --green: #16b98f;
  --green-dark: #0e8a6c;
  --green-deep: #0b3b2e;
  --ink: #1f2d28;
  --muted: #64748b;
  --line: #e8edeb;
  --soft: #f4faf7;
  --urgent: #c2410c;
  --urgent-bg: #fff1e6;
  --shadow: 0 6px 24px rgba(15, 60, 46, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", sans-serif; background: #ffffff; color: var(--ink); line-height: 1.7; font-size: 16px; }
a { color: var(--green-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header: clean white nav bar with section links ── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 0.85rem 1.25rem; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: 0.5px; }
.logo span { color: var(--green); }
.main-nav { display: flex; gap: 1.4rem; flex: 1; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); border-bottom-color: var(--green); }
.header-search { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search input { border: none; outline: none; padding: 0.45rem 1rem; font-size: 0.88rem; width: 190px; }
.header-search button { border: none; background: none; padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.9rem; }

/* ── Hero: white, big bold two-tone headline, centred search ── */
.hero { background: #fff; padding: 4rem 0 3rem; text-align: center; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.25; font-weight: 800; }
.hero .accent { color: var(--green); }
.hero-sub { margin: 0 auto 2rem; color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero-search { display: flex; max-width: 620px; margin: 0 auto 2.5rem; box-shadow: var(--shadow); border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); }
.hero-search input { flex: 1; border: none; outline: none; padding: 1rem 1.4rem; font-size: 1rem; }
.hero-search button { border: none; background: var(--green); color: #fff; font-size: 1rem; font-weight: 700; padding: 1rem 2rem; cursor: pointer; }
.hero-search button:hover { background: var(--green-dark); }
.stats-row { display: flex; justify-content: center; gap: 3.5rem; }
.stat strong { display: block; font-size: 2rem; color: var(--green-dark); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--soft); }
.section-title { margin: 0 0 0.4rem; font-size: 1.65rem; font-weight: 800; text-align: center; }
.section-sub { margin: 0 0 2.2rem; color: var(--muted); text-align: center; }

/* ── Category tiles: icon cards, elderlyinfo-style clear IA ── */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1rem 1.3rem; text-decoration: none; color: var(--ink); transition: all 0.18s; }
.cat-tile:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-icon { font-size: 2rem; }
.cat-name { font-weight: 700; font-size: 0.98rem; }
.cat-count { color: var(--muted); font-size: 0.8rem; }

/* ── Offer cards: white, roomy, subtle shadow ── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.offer-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink); transition: all 0.18s; }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfe8de; }
.offer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.merchant-name { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); }
.tag-urgent { font-size: 0.75rem; font-weight: 700; color: var(--urgent); background: var(--urgent-bg); border-radius: 999px; padding: 0.15rem 0.7rem; }
.offer-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.5; font-weight: 700; }
.offer-desc { margin: 0 0 1rem; font-size: 0.87rem; color: var(--muted); }
.offer-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.8rem; }
.offer-date { font-weight: 600; color: var(--ink); }

/* ── Pagination ── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.pagination a { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; color: var(--ink); }
.pagination a.current { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }

/* ── Merchant chips ── */
.merchant-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1.1rem; text-decoration: none; color: var(--ink); font-size: 0.9rem; transition: all 0.15s; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip span { background: var(--soft); color: var(--green-dark); border-radius: 999px; font-size: 0.75rem; padding: 0.05rem 0.5rem; font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 0; color: var(--muted); }

/* ── Footer: deep green, columned ── */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 2.5rem 1.25rem 1.5rem; }
.footer-logo { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.footer-head { font-weight: 700; color: #fff; margin: 0 0 0.6rem; }
.site-footer a { display: block; color: rgba(255,255,255,0.75); text-decoration: none; margin-bottom: 0.35rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1rem 1.25rem; text-align: center; }
.footer-bottom p { margin: 0; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-search { flex: 1; }
  .header-search input { width: auto; flex: 1; }
  .stats-row { gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Merchant logos (favicons from the merchant's own site) */
.chip-logo { width: 18px; height: 18px; border-radius: 4px; }
.card-logo { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin-right: 4px; }
.merchant-name { display: inline-flex; align-items: center; gap: 2px; }
