/* Shared styles for all pages. Loaded after each page's inline styles. */

/* ── Self-hosted fonts (SIL Open Font Licence, see fonts/LICENCE.txt) ── */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/libre-caslon-text-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/libre-caslon-text-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/libre-caslon-text-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --ff-serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --ff-sans:  'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}
/* Chinese pages use the reader's own system fonts for Chinese characters */
html[lang="zh-Hans"] {
  --ff-serif: 'Libre Caslon Text', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'SimSun', serif;
  --ff-sans:  'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}
html[lang="zh-Hant"] {
  --ff-serif: 'Libre Caslon Text', 'Songti TC', 'Noto Serif CJK TC', 'PMingLiU', serif;
  --ff-sans:  'Source Sans 3', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', sans-serif;
}
/* Slanted Chinese characters are not real italics and read badly */
html[lang^="zh"] .hero__subtitle,
html[lang^="zh"] .highlight,
html[lang^="zh"] .scenic-strip__caption { font-style: normal !important; }

body { font-size: 1.04rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
h3 { font-weight: 700; }
.nav__wordmark { font-size: 1.05rem; }
.footer__wordmark { font-size: 1rem; }

/* ── Calmer layout: no scroll animation, hover lifts, glass blur or parallax ── */
.fade-in { opacity: 1; transform: none; transition: none; }
.btn:hover, .guardian-card:hover, .service-card:hover { transform: none; }
.guardian-card:hover { box-shadow: var(--shadow); }
.service-card:hover { box-shadow: none; }
.guardian-card { border-top: 1px solid var(--gold-light); }
.nav, .hero__card { backdrop-filter: none; }
.nav { background: var(--primary); }
.hero__card { background: rgba(15,53,34,.78); }
.scenic-strip { background-attachment: scroll; }
.section .tag { display: none; }
.gold-rule { height: 2px; width: 40px; margin: 16px 0 28px; }
.section { padding: 80px 0; }

/* Keyboard focus must stay visible */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero__card input:focus-visible, .hero__card select:focus-visible, .hero__card textarea:focus-visible,
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ── Language links ── */
a.lang-btn { display: inline-block; text-decoration: none; }

/* ── Form notes ── */
.form-note a, .hero__card .form-note a { color: var(--gold-light); text-decoration: underline; }
.hero__card .form-note { font-size: .78rem; color: var(--steel); margin: 12px 0 0; text-align: center; }

/* ── Footer legal block ── */
.footer__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(201,168,76,.2); font-size: .78rem; line-height: 1.7; color: var(--steel); }
.footer__legal p + p { margin-top: 6px; }
.footer__legal a, .footer__legal button { color: var(--gold-light); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer__links { flex-wrap: wrap; }

/* ── Cookie choice ── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 560px; margin-inline: auto;
  background: #fff; color: #2C2C2C;
  border: 1px solid #d9d2c3; border-radius: 6px;
  box-shadow: 0 6px 28px rgba(0,0,0,.22);
  padding: 18px 20px; font-family: var(--ff-sans); font-size: .9rem; line-height: 1.55;
}
.cookie-bar p { margin: 0 0 14px; }
.cookie-bar a { color: #1B5E3B; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar button {
  flex: 1 1 140px; padding: 10px 14px; border-radius: 4px; cursor: pointer;
  font: inherit; font-weight: 700;
  background: #1B5E3B; color: #fff; border: 2px solid #1B5E3B;
}

/* Keep the name on one line on phones */
.nav__wordmark { white-space: nowrap; }
@media (max-width: 480px) { .nav__wordmark { font-size: .9rem; } }

/* ── Watercolours ── */
.hero { background-image: linear-gradient(100deg, rgba(20,72,45,.9) 0%, rgba(27,94,59,.72) 45%, rgba(27,94,59,.5) 100%), url('../images/hero-gateway.jpg'); background-position: center; }
.scenic-strip { height: 400px; background-image: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(15,53,34,.45) 100%), url('../images/strip-courtyard.jpg'); background-position: center; }
@media (max-width: 768px) { .scenic-strip { height: 240px; } }
.about__image-block { min-height: 0; aspect-ratio: 4 / 3; }
.explainer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; max-width: 1000px; margin-inline: auto; align-items: start; }
.explainer__img { width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 820px) {
  .explainer { grid-template-columns: 1fr; gap: 28px; }
  .explainer__img { max-height: 300px; object-fit: cover; object-position: center 30%; }
}
.gallery__title { text-align: center; }
.gallery__intro { text-align: center; color: #555; margin: 12px auto 40px; max-width: 560px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
@media (max-width: 820px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ── Form hint ── */
.form-hint { font-size: .8rem; line-height: 1.5; color: var(--gold-light); margin: 6px 0 0 !important; }
.map-badge { background: rgba(15,53,34,.88); border-color: rgba(201,168,76,.6); }
