/* ============================================================
   Chùa Chuông — Shared design system (Milestone M-UI, Phase UI-1)
   HTML ngữ nghĩa + CSS flow (grid/flex), responsive 3 breakpoint.
   Nhận diện trích từ site Pencil cũ: kem/nâu/gạch/vàng đồng + serif Newsreader.
   Mobile-first. Breakpoints: tablet >=768px, desktop >=1024px.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (đất/ấm — di sản) */
  --c-bg:          #faf7f1;   /* nền kem chính */
  --c-bg-alt:      #f1e9da;   /* nền kem đậm (section xen kẽ) */
  --c-surface:     #ffffff;   /* thẻ/card */
  --c-ink:         #33271b;   /* chữ nâu đậm */
  --c-ink-dk:      #382a1e;   /* nâu rất đậm (top bar / footer) */
  --c-ink-soft:    #6e6051;   /* chữ phụ (taupe) */
  --c-primary:     #8b3a2c;   /* gạch/terracotta — điểm nhấn, link, nút */
  --c-primary-dk:  #6f2d21;
  --c-gold:        #a97c2c;   /* vàng đồng */
  --c-gold-soft:   #c69a46;
  --c-sage:        #7b8467;   /* xanh rêu phụ */
  --c-border:      #e4dac8;
  --c-border-soft: #efe7d7;

  /* Typography */
  /* 1 font duy nhất cho toàn hệ thống (07 user): Newsreader */
  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui:      "Newsreader", Georgia, "Times New Roman", serif;
  --fs-hero:  clamp(2rem, 5vw, 3.25rem);
  --fs-h1:    clamp(1.75rem, 4vw, 2.5rem);
  --fs-h2:    clamp(1.4rem, 3vw, 1.9rem);
  --fs-h3:    clamp(1.15rem, 2vw, 1.35rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9rem;
  --lh-body:  1.7;

  /* Spacing scale */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;

  /* Structure */
  --container: 1120px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 6px 24px rgba(51, 39, 27, .10);
  --shadow-sm: 0 2px 8px rgba(51, 39, 27, .08);
  --header-h:  70px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
.top-bar__inner, .top-bar__left { flex-wrap: wrap; }
.prose, .card__text, figcaption, .top-bar a { overflow-wrap: anywhere; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: #e4dac8;   /* nền lề đậm hai bên khung (khớp mirror khoa-tu) */
  -webkit-font-smoothing: antialiased;
}

/* ---------- Khung trang căn giữa (khớp giao diện mirror, vd khoa-tu.html) ----------
   Toàn bộ shell (utility bar, brand, nav đỏ, hero, nội dung, footer) nằm gọn trong
   một khung 1024px căn giữa; hai bên lộ nền giấy đậm + đổ bóng nhẹ như một card. */
.page {
  max-width: 1024px;
  margin-inline: auto;
  background: var(--c-bg);
  box-shadow: 0 0 44px rgba(46, 35, 24, .18);
}
@media (max-width: 1100px) {
  body { background: var(--c-bg); }              /* mobile: bỏ lề, nền = giấy */
  .page { max-width: 100%; box-shadow: none; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dk); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--sp-4); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.section { padding-block: var(--sp-7); }
.section--alt { background: var(--c-bg-alt); }
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--c-ink);
  position: relative;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; background: var(--c-primary); border-radius: 2px;
}
.prose { max-width: 72ch; color: var(--c-ink); }
.prose p { color: var(--c-ink-soft); }
.grid { display: grid; gap: var(--sp-5); }
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .02em;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--c-primary-dk); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   TOP BAR (dải liên hệ tối — trên header, theo reference)
   ============================================================ */
.top-bar { background: var(--c-ink-dk, #382a1e); color: #f1e9da; font-family: var(--font-ui); font-size: .8rem; }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: .4rem; flex-wrap: wrap; }
.top-bar__left { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.top-bar a { color: #f1e9da; }
.top-bar a:hover { color: #e0b968; text-decoration: none; }
.top-bar__quote { color: #c9b197; font-style: italic; }
@media (max-width: 640px) { .top-bar__quote { display: none; } }

/* ============================================================
   HEADER + NAV (component dùng chung)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary); color: var(--c-gold-soft);
  font-size: 1.35rem; line-height: 1;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.2rem; font-weight: 600; color: var(--c-ink); }
.brand__name span { color: var(--c-primary); }
.brand__sub { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-soft); }
.brand:hover { text-decoration: none; }
@media (max-width: 400px) { .brand__sub { display: none; } }

/* Nav — desktop horizontal, mobile drawer */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--c-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.site-nav__link {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--c-ink);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-sm);
}
.site-nav__link:hover { background: var(--c-bg-alt); color: var(--c-primary); text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--c-primary); font-weight: 600; }
.site-nav__cta { margin-top: var(--sp-2); }

/* Mobile: drawer nav */
@media (max-width: 1023.98px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(320px, 84vw);
    background: var(--c-surface);
    border-left: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    padding: var(--sp-5);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-backdrop {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(51, 39, 27, .35);
    opacity: 0; visibility: hidden; transition: opacity .2s;
    z-index: 90;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* Desktop / large tablet: horizontal nav, no toggle */
@media (min-width: 1024px) {
  .nav-toggle, .nav-backdrop { display: none; }
  .site-nav { position: static; transform: none; width: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav__list { flex-direction: row; align-items: center; gap: var(--sp-1); flex-wrap: wrap; }
  .site-nav__link { padding: var(--sp-2) var(--sp-3); }
  .site-nav__cta { margin-top: 0; margin-left: var(--sp-2); }
  .site-nav__cta .site-nav__link { background: var(--c-primary); color: #fff; }
  .site-nav__cta .site-nav__link:hover { background: var(--c-primary-dk); }
}

/* ============================================================
   HERO (đầu trang nội dung)
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(220px, 40vw, 420px);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  color: #fff;
  background: var(--c-ink) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,39,27,.15) 0%, rgba(51,39,27,.72) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: var(--sp-7); }
.hero__eyebrow { font-family: var(--font-ui); letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-small); color: var(--c-gold-soft); margin-bottom: var(--sp-2); }
.hero__title { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 600; color: #fff; margin: 0 0 var(--sp-3); }
.hero__lead { max-width: 60ch; color: rgba(255,255,255,.92); font-size: 1.1rem; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Chips / tags dùng chung */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; padding: 0; list-style: none; }
.chip { font-family: var(--font-ui); font-size: .8rem; color: var(--c-ink-soft); background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: 999px; padding: .25rem .7rem; transition: background .15s, color .15s, border-color .15s; }
.chip.is-active, button.chip.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 600; }
.chip:hover:not(.is-active) { background: var(--c-border); color: var(--c-ink); border-color: var(--c-border); }
.tag { display: inline-block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); font-weight: 600; margin-bottom: var(--sp-2); }

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-primary));
  z-index: 9999; transition: width .1s linear;
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed; bottom: var(--sp-6); right: var(--sp-5);
  width: 44px; height: 44px;
  background: var(--c-primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); font-size: 1.1rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 200;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--c-primary-dk); }

/* Trích dẫn nguồn bài viết */
.article-source {
  margin-top: var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.article-source__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.article-source__badge {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 700;
}
.article-source__body {
  margin: 0 0 var(--sp-2);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-ink);
}
.article-source__body a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
}
.article-source__url {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  word-break: break-all;
}
.article-source__url a {
  color: var(--c-ink-soft);
  text-decoration: none;
}
.article-source__url a:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

/* ============================================================
   Content blocks (dùng lại giữa các trang)
   ============================================================ */
.cards { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); }
.card__media a { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: var(--sp-5); }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card__text { color: var(--c-ink-soft); margin: 0; }

.media-text { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; align-items: center; }
.media-text__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .media-text { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .media-text--reverse .media-text__img { order: 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   FOOTER (component dùng chung — 2 tầng)
   ============================================================ */
.site-footer { background: var(--c-ink); color: #e9e1d3; margin-top: var(--sp-8); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7); }
.footer-col__title { font-size: var(--fs-h3); color: #fff; margin-bottom: var(--sp-4); }
.footer-col p, .footer-col li { color: #cdbfa8; margin: 0 0 var(--sp-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #e0b968; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.footer-contact__icon { color: var(--c-gold-soft); flex: 0 0 auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  align-items: center; text-align: center;
  font-size: var(--fs-small); color: #b6a88f;
}
.footer-input { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.footer-input input { flex: 1 1 140px; min-width: 0; padding: .55rem .8rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #f1e9da; font-family: var(--font-ui); }
.footer-input input::placeholder { color: #b6a88f; }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1.2fr; gap: var(--sp-7); }
  .footer-bottom { flex-direction: row; justify-content: center; text-align: center; }
}

/* ============================================================
   Component nội dung tái sử dụng (breadcrumb, stat, inset, quote, info-card)
   ============================================================ */
.breadcrumb { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); padding-block: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--c-gold); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); }

.stat-band { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); text-align: center; }
.stat { padding: var(--sp-4); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border-soft); }
.stat__value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--c-primary); line-height: 1; }
.stat__label { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); margin-top: var(--sp-2); }
@media (min-width: 768px) { .stat-band { grid-template-columns: repeat(3, 1fr); } }

.inset { margin: var(--sp-6) 0; }
.inset img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.inset figcaption { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); margin-top: var(--sp-3); font-style: italic; }

.quote {
  margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-6);
  border-left: 4px solid var(--c-gold);
  background: var(--c-bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: 1.15rem; font-style: italic; color: var(--c-ink); margin-bottom: var(--sp-3); }
.quote cite { font-family: var(--font-ui); font-style: normal; font-size: var(--fs-small); letter-spacing: .04em; color: var(--c-primary); }

.info-card { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.info-card__label { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--sp-2); }
.info-card h3 { margin-bottom: var(--sp-1); }
.info-card__role { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); margin-bottom: var(--sp-4); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); color: var(--c-ink-soft); }
.contact-list .ic { color: var(--c-primary); flex: 0 0 auto; }
.lead { font-size: 1.15rem; color: var(--c-ink); }

/* Progress bar (kêu gọi từ thiện) */
.progress { margin: var(--sp-4) 0; }
.progress__track { height: 10px; background: var(--c-bg-alt); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--c-gold), var(--c-primary)); border-radius: 999px; }
.progress__meta { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); margin-top: var(--sp-2); }

/* Playlist / danh sách media (pháp âm) */
.media-list { list-style: none; margin: 0; padding: 0; }
.media-list li { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border-soft); }
.media-list li:last-child { border-bottom: 0; }
.media-list__title { color: var(--c-ink); }
.media-list__meta { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--c-ink-soft); white-space: nowrap; }

/* Ledger thu-chi (báo cáo minh bạch) */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border-soft); }
.ledger .plus { color: #4b7a52; font-family: var(--font-ui); white-space: nowrap; }
.ledger .minus { color: var(--c-primary); font-family: var(--font-ui); white-space: nowrap; }
.ledger .bal { color: var(--c-ink); font-weight: 600; font-family: var(--font-ui); white-space: nowrap; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }

/* ============================================================
   FRAME kiểu mirror (Utility Bar + Brand Row giữa + Nav Bar đỏ)
   — dùng cho trang component để GIỐNG các trang thông báo/tin tức (07 user)
   ============================================================ */
.utility-bar { background: var(--c-ink-dk); color: #e9e1d3; font-size: .8rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-block: .4rem; }
.utility-bar__mantra { font-style: italic; color: var(--c-gold-soft); }
.utility-bar__links { display: flex; gap: var(--sp-4); }
.utility-bar__links a { color: #e9e1d3; }
.utility-bar__links a:hover { color: #fff; text-decoration: none; }

.brand-row { background: var(--c-surface); border-bottom: 1px solid var(--c-border-soft); }
.brand-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-block: var(--sp-5); color: var(--c-primary); }
.brand-center:hover { text-decoration: none; }
.brand-center__mark { color: var(--c-gold); margin-bottom: 2px; }
.brand-center__name { font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: .04em; color: var(--c-ink); line-height: 1; }
.brand-center__sub { font-size: .72rem; letter-spacing: .22em; color: var(--c-ink-soft); }

.nav-bar { background: var(--c-primary); position: sticky; top: 0; z-index: 100; }
.nav-bar__inner { display: flex; align-items: center; justify-content: center; min-height: 52px; position: relative; }
.nav-bar .site-nav__list { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-bar .site-nav__link { display: block; color: #faf3ea; font-size: 1rem; padding: .7rem 1rem; border-radius: 6px; }
.nav-bar .site-nav__link:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-bar .site-nav__link[aria-current="page"] { background: var(--c-gold); color: #3a2410; font-weight: 600; }
.nav-bar .nav-toggle { display: none; }

@media (max-width: 1023.98px) {
  .nav-bar__inner { justify-content: flex-start; }
  .nav-bar .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; }
  .nav-bar .nav-toggle__bar { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){ opacity: 0; }
  .nav-bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-bar .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--c-primary-dk); box-shadow: var(--shadow); padding: var(--sp-5);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 130;
  }
  .nav-bar .site-nav.is-open { transform: translateX(0); }
  .nav-bar .site-nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav-bar .site-nav__link { color: #faf3ea; padding: var(--sp-3); }
}
@media (min-width: 1024px) {
  .nav-bar .nav-toggle, .nav-bar ~ .nav-backdrop { display: none; }
  .nav-bar .site-nav { position: static; transform: none; width: auto; background: none; box-shadow: none; padding: 0; }
}

/* ============================================================
   TRANG LIÊN HỆ (.lh) — nâng cấp 2026-10-11
   Hero ảnh Phố Hiến + thẻ liên hệ nhanh nổi + form 2 cột + bản đồ.
   ============================================================ */
.lh-hero { min-height: clamp(340px, 46vw, 480px); background-position: center 40%; align-items: center; }
.lh-hero::after {
  background:
    linear-gradient(90deg, rgba(40,28,18,.82) 0%, rgba(40,28,18,.55) 48%, rgba(40,28,18,.10) 100%),
    linear-gradient(180deg, rgba(40,28,18,0) 55%, rgba(40,28,18,.45) 100%);
}
.lh-hero__inner { padding-block: var(--sp-7) calc(var(--sp-8) + var(--sp-5)); }
.lh-hero .hero__title { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.lh-hero .hero__title::after { content: ""; display: block; width: 72px; height: 3px; margin-top: var(--sp-3); background: var(--c-gold-soft); border-radius: 2px; }
.lh-hero .hero__lead { max-width: 46ch; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.lh-btn-light { background: #fff; color: var(--c-primary); border-color: #fff; }
.lh-btn-light:hover { background: var(--c-bg-alt); color: var(--c-primary-dk); }
.lh-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.lh-btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }

.lh-ic {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(139,58,44,.09); color: var(--c-primary);
}
.lh-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.lh-quick { position: relative; z-index: 2; margin-top: calc(-1 * var(--sp-8)); }
.lh-quick__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 3px solid var(--c-gold-soft);
}
.lh-quick__item { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-5) var(--sp-4); min-width: 0; }
.lh-quick__item + .lh-quick__item { border-left: 1px solid var(--c-border-soft); }
.lh-quick__label { margin: 2px 0 2px; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); font-weight: 600; }
.lh-quick__value { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--c-ink); overflow-wrap: anywhere; }
.lh-quick__value a { color: var(--c-ink); }
.lh-quick__value a:hover { color: var(--c-primary); }

.lh-main { padding-top: var(--sp-7); }
.lh-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.lh-form-card { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.lh-form-card .section__title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: var(--sp-5); }
.lh-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.lh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lh-field--full { grid-column: 1 / -1; }
.lh-field label { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.lh-field input, .lh-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--c-ink);
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.lh-field textarea { resize: vertical; min-height: 140px; }
.lh-field input::placeholder, .lh-field textarea::placeholder { color: #a2958a; }
.lh-field input:focus, .lh-field textarea:focus { outline: none; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(139,58,44,.14); }
.lh-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-2); }
.lh-submit { padding: .75rem 1.6rem; font-size: .95rem; }
.lh-form__note { font-size: .88rem; color: var(--c-ink-soft); font-style: italic; }

.lh-aside { display: grid; gap: var(--sp-5); }
.lh-panel { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.lh-panel--soft { background: var(--c-bg-alt); border-color: var(--c-border); box-shadow: none; }
.lh-panel__title { font-size: 1.15rem; margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--c-border); color: var(--c-ink); }
.lh-hours { margin: 0; }
.lh-hours > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; }
.lh-hours > div + div { border-top: 1px dashed var(--c-border); }
.lh-hours dt { color: var(--c-ink-soft); }
.lh-hours dd { margin: 0; font-weight: 600; color: var(--c-primary); white-space: nowrap; }
.lh-notes { margin: 0; padding: 0; list-style: none; }
.lh-notes li { position: relative; padding-left: 1.2rem; margin-bottom: var(--sp-2); color: var(--c-ink-soft); font-size: .95rem; }
.lh-notes li:last-child { margin-bottom: 0; }
.lh-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold-soft); }

.lh-visit__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); align-items: stretch; }
.lh-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-border-soft); min-height: 360px; }
.lh-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.lh-visit__info { display: flex; flex-direction: column; align-items: flex-start; }
.lh-visit__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-4); }
.lh-visit__info h3 { margin: 0 0 var(--sp-2); }
.lh-visit__info p { color: var(--c-ink-soft); margin: 0 0 var(--sp-4); }
.lh-visit__info .btn { margin-top: auto; }

.lh-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.lh-way { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.lh-way:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lh-way .lh-ic { margin-bottom: var(--sp-3); }
.lh-way h3 { font-size: 1.1rem; margin: 0 0 var(--sp-2); }
.lh-way p { margin: 0; color: var(--c-ink-soft); font-size: .95rem; }

@media (max-width: 900px) {
  .lh-quick__list { grid-template-columns: 1fr 1fr; }
  .lh-quick__item:nth-child(3) { border-left: 0; }
  .lh-quick__item:nth-child(n+3) { border-top: 1px solid var(--c-border-soft); }
  .lh-grid, .lh-visit__grid { grid-template-columns: minmax(0, 1fr); }
  .lh-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-visit__img { max-height: 260px; }
}
@media (max-width: 560px) {
  .lh-hero { min-height: 380px; background-position: 60% center; }
  .lh-hero::after { background: linear-gradient(180deg, rgba(40,28,18,.35) 0%, rgba(40,28,18,.82) 100%); }
  .lh-hero__inner { padding-block: var(--sp-6) calc(var(--sp-7) + var(--sp-4)); }
  .lh-quick { margin-top: calc(-1 * var(--sp-7)); }
  .lh-quick__list { grid-template-columns: minmax(0, 1fr); }
  .lh-quick__item { padding: var(--sp-4); }
  .lh-quick__item + .lh-quick__item { border-left: 0; border-top: 1px solid var(--c-border-soft); }
  .lh-form-card { padding: var(--sp-5); }
  .lh-form { grid-template-columns: minmax(0, 1fr); }
  .lh-aside, .lh-ways { grid-template-columns: minmax(0, 1fr); }
  .lh-map, .lh-map iframe { min-height: 280px; }
}

/* Liên hệ — tinh chỉnh 2026-10-11 (goal 3): eyebrow rõ trên ảnh, bỏ dải trống trước footer */
.lh-hero .hero__eyebrow {
  display: inline-block; color: #f3d48f; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.lh-hero .hero__lead, .lh-hero h1 { text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.lh ~ .site-footer, .lh + .site-footer { margin-top: 0; }
.lh .lh-visit { padding-bottom: var(--sp-8); }
@media (max-width: 560px) {
  .lh-hero::after { background: linear-gradient(180deg, rgba(30, 20, 12, .55) 0%, rgba(30, 20, 12, .78) 100%); }
}
