/* Hong Kong visitor guide: editorial design system */
:root {
  --primary: #1f3a3a;
  --primary-2: #2d5656;
  --accent: #c8553d;
  --accent-2: #d9a441;
  --base: #f7f4ee;
  --paper: #fffdf8;
  --ink: #1d2224;
  --muted: #5d6a6c;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 30, .10);
  --shadow-lg: 0 18px 50px rgba(20, 30, 30, .18);
  --serif: 'Playfair Display', 'Noto Serif TC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:lang(zh-HK) body { font-family: var(--sans); line-height: 1.9; }
html:lang(zh-HK) h1, html:lang(zh-HK) h2, html:lang(zh-HK) h3 { font-family: 'Noto Serif TC', var(--serif); line-height: 1.35; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--base);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-2); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--primary); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .8rem; }
.lede { font-size: 1.12rem; color: rgba(255,255,255,.92); max-width: 60ch; }
.lede-dark { color: var(--muted); max-width: 64ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(200,85,61,.28); }
.btn-primary:hover { transform: translateY(-2px); background: #b64730; }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: 0 0 auto; }
.desk-nav ul { display: flex; gap: 22px; }
.desk-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.desk-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .25s ease; }
.desk-nav a:hover::after, .desk-nav a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { font: inherit; font-size: .85rem; border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.lang-btn.is-active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--primary); border-radius: 2px; content: ""; transition: transform .2s; }
.menu-toggle .bars { top: 50%; transform: translateY(-50%); }
.menu-toggle .bars::before { top: -7px; left: 0; right: 0; }
.menu-toggle .bars::after { top: 7px; left: 0; right: 0; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 14px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #1f3a3a; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,24,.25) 0%, rgba(10,22,24,.55) 100%); }
.hero-content { position: relative; padding: 96px 0 72px; max-width: 900px; }
.hero .eyebrow { color: var(--accent-2); }
.hero-title { color: #fff; margin-bottom: .4em; }
.hero-title .accent { display: block; color: var(--accent-2); font-style: italic; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-meta li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-right: 8px; vertical-align: middle; }
.hero .btn { margin-top: 1.5rem; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 1.6rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-num { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--accent); font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); }

/* Articles */
.articles { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.article-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.article-card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-chip { position: absolute; left: 14px; top: 14px; background: rgba(255,253,248,.95); color: var(--primary); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.article-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-title { font-size: 1.4rem; }
.article-excerpt { color: var(--muted); }
.article-body { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: 1rem; }
.article-body[hidden] { display: none; }
.article-toggle { margin-top: auto; align-self: flex-start; background: transparent; border: 1.5px solid var(--primary); color: var(--primary); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.article-toggle:hover { background: var(--primary); color: #fff; }
.article-card.is-open { box-shadow: var(--shadow-lg); }

/* Tips */
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tip-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.tip-card h3 { font-size: 1.12rem; }
.tip-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Seasonal (no images) */
.seasonal { background: var(--primary); color: #fff; }
.seasonal h2, .seasonal h3 { color: #fff; }
.seasonal .eyebrow { color: var(--accent-2); }
.seasonal .lede-dark { color: rgba(255,255,255,.8); }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card { border-radius: var(--radius); padding: 0; overflow: hidden; color: #fff; box-shadow: var(--shadow); }
.season-head { padding: 22px 22px 18px; }
.season-head svg { width: 34px; height: 34px; margin-bottom: 10px; }
.season-head h3 { color: #fff; margin-bottom: .2em; }
.season-months { font-size: .85rem; opacity: .9; margin: 0; }
.season-text { padding: 0 22px 24px; margin: 0; font-size: .95rem; opacity: .95; }
.season-spring { background: linear-gradient(160deg, #2f7a55, #1c4f3a); }
.season-summer { background: linear-gradient(160deg, #d9a441, #b8732b); }
.season-autumn { background: linear-gradient(160deg, #b5532f, #7a3220); }
.season-winter { background: linear-gradient(160deg, #3f6f9a, #223f5c); }

/* Newsletter / lead form */
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.benefits { margin-top: 1rem; }
.benefits li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink); }
.benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--accent-2); }
.lead-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 36px); }
.lead-form .field { margin-bottom: 16px; }
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--primary); }
.lead-form input[type="text"], .lead-form input[type="email"] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.lead-form input.is-invalid { border-color: #b3261e; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; color: var(--ink) !important; margin: 4px 0 16px; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.consent.is-invalid { color: #b3261e; }
.form-error { color: #b3261e; font-size: .92rem; }
.security-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.lead-success { text-align: left; padding: 10px 4px; }
.lead-success h3 { color: var(--primary); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-h { margin: 0; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 20px 4px; font: inherit; font-family: var(--serif); font-size: 1.15rem; color: var(--primary); text-align: left; cursor: pointer; }
.faq-icon { flex: 0 0 auto; width: 14px; height: 14px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--accent); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 4px 20px; color: var(--muted); }
.faq-answer[hidden] { display: none; }

/* Footer */
.site-footer { background: #142626; color: rgba(255,255,255,.82); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-h { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.footer-brand p { margin: 14px 0 0; max-width: 42ch; }
.footer-disclaimer { font-size: .85rem; opacity: .75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Legal pages */
.page-hero { background: linear-gradient(160deg, var(--primary), var(--primary-2)); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-hero .updated { margin-top: 1rem; font-size: .9rem; opacity: .85; }
.legal-body { padding: clamp(40px, 6vw, 72px) 0; background: var(--paper); }
.legal-section { margin-bottom: 2.2rem; }
.legal-section h2 { font-size: 1.6rem; }
.legal-section p { color: var(--ink); }
.contact-email-wrap { font-weight: 600; color: var(--accent); }
.back-link { margin-top: 3rem; }
.back-link a { font-weight: 600; }
.updated-date { font-weight: 600; }

/* Reveal with safety net */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.js-ready .reveal:not(.is-visible) { opacity: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .tip-grid { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .desk-nav { display: none; }
  .menu-toggle { display: block; }
  .intro-grid, .newsletter-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--max)); }
  .season-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .lang-btn { padding: 6px 9px; }
  .hero-content { padding: 72px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
