/* =========================================================
   新竹市廣澤慈善協會 — 全站樣式
   品牌色：朱紅 / 古金 / 墨黑 / 暖米白
   風格參考：charity: water（大圖、留白、強敘事、醒目 CTA）
   ========================================================= */

:root {
  --red: #9e1b1b;
  --red-dark: #7a1414;
  --red-deep: #5c0f0f;
  --gold: #c8a04c;
  --gold-dark: #a8741f;
  --ink: #2b2320;
  --ink-soft: #5b524c;
  --cream: #fbf8f3;
  --cream-2: #f3ece1;
  --white: #ffffff;
  --line: #e7ddcd;

  --shadow-sm: 0 2px 10px rgba(43, 35, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(43, 35, 32, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 35, 32, 0.18);

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --nav-h: 124px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* iOS Safari 停用「雙擊縮放」，避免每次點擊要等 300ms 或誤判成 zoom；
     仍保留兩指 pinch-zoom（無障礙可用） */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
}
button, a, [role="button"], input, textarea, select { touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; color: var(--ink); }
/* Force CJK bold to stay in Noto Sans TC family (avoid Windows fallback to MS JhengHei Bold) */
strong, b { font-family: inherit; font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream2 { background: var(--cream-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  font-family: var(--sans);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section__head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; }

/* gold divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; }
.divider::before, .divider::after { content: ""; height: 1px; width: 56px; background: var(--gold); }
.divider span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  /* Safari / iOS 保險：清掉原生 button 樣式與 tap 高亮 */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  user-select: none;
  touch-action: manipulation;
}
.toss__btn__char { pointer-events: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--red); }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  background: rgba(251, 248, 243, .94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s ease;
  border-bottom: 1px solid rgba(200, 160, 76, .25);
}
.header__inner { width: min(100% - 48px, var(--maxw)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { height: 100px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 15px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink); transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--red); background: rgba(158,27,27,.08); }
.nav a.nav__cta { background: var(--red); color: #fff !important; }
.nav a.nav__cta:hover { background: var(--red-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1100; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero Carousel ---------- */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.4s ease, transform 7s ease;
  transform: scale(1.08);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,9,9,.58) 0%, rgba(22,9,9,.46) 45%, rgba(22,9,9,.78) 100%); }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 24px;
}
.hero__content h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.4); letter-spacing: .04em; }
.hero__content p { font-size: clamp(1.05rem, 2.4vw, 1.5rem); margin-top: 20px; max-width: 760px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px; }
.hero__dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: .3s; padding: 0; }
.hero__dots button.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.hero__scroll { position: absolute; bottom: 26px; right: 36px; z-index: 3; color: #fff; font-size: .8rem; letter-spacing: .2em; writing-mode: vertical-rl; opacity: .8; animation: bob 2s infinite; }
.hero__visitor { position: absolute; top: calc(var(--nav-h) + 14px); right: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.32); backdrop-filter: blur(8px); color: #fff; font-size: .88rem; font-weight: 500; border: 1px solid rgba(255,255,255,.18); animation: fadeInVisitor .6s ease both; }
.hero__visitor__icon { color: #ff8a8a; animation: pulseHeart 1.4s infinite; display: inline-block; }
@keyframes pulseHeart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes fadeInVisitor { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .hero__visitor { top: calc(var(--nav-h) + 8px); right: 12px; font-size: .76rem; padding: 6px 12px; }
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ---------- Mission strip ---------- */
.mission { text-align: center; }
.mission .seal { width: 64px; margin: 0 auto 24px; }
.mission h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.mission p { max-width: 760px; margin: 22px auto 0; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Impact stats ---------- */
.impact { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; }
.impact .eyebrow { color: var(--gold); }
.impact .section__head h2, .impact .mission p { color: #fff; }
.impact .section__head p { color: rgba(255,255,255,.92); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.stat { text-align: center; padding: 24px 12px; }
.stat > div:first-child { white-space: nowrap; }
.stat__num { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat__unit { font-size: .95rem; color: var(--gold); margin-left: 3px; }
.stat__label { margin-top: 12px; font-size: .98rem; opacity: .92; }

/* ---------- Feature (rice) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.feature__body h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.feature__body p { color: var(--ink-soft); margin-top: 18px; font-size: 1.05rem; }
.feature__body .btn { margin-top: 28px; }
.feature--reverse .feature__media { order: 2; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(158,27,27,.08); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-soft); margin-top: 10px; font-size: .98rem; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
/* 寬幅合照不裁人：以特定來源檔名套用 contain */
.news-card__img img[src*="scene-thanks-letter"],
.news-card__img img[src*="all-members"] { object-fit: contain; }
.news-card:hover .news-card__img img[src*="scene-thanks-letter"],
.news-card:hover .news-card__img img[src*="all-members"] { transform: scale(1.02); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { color: var(--gold-dark); font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.news-card__body h3 { font-size: 1.2rem; margin: 10px 0; }
.news-card__body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.news-card__more { color: var(--red); font-weight: 700; margin-top: 16px; font-size: .95rem; }

/* ---------- Story cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.story { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story__body { padding: 30px; }
.story__quote { font-family: var(--serif); font-size: 1.3rem; color: var(--red); line-height: 1.7; }
.story__body h3 { margin: 16px 0 10px; font-size: 1.15rem; }
.story__body p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--ink); text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { max-width: 640px; margin: 18px auto 32px; font-size: 1.1rem; }
.cta .btn--primary { background: var(--red); }
.cta .btn--primary:hover { background: var(--red-deep); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 32px) 0 42px; background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.95rem, 4.6vw, 2.8rem); }
.page-hero p { margin-top: 12px; opacity: .9; max-width: 680px; margin-inline: auto; font-size: 1rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Rich content ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 1.3em; color: var(--ink-soft); font-size: 1.05rem; }
.prose h3 { margin: 1.6em 0 .6em; color: var(--red); }
.lead { font-size: 1.2rem !important; color: var(--ink) !important; }

/* ---------- Values / about ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value { text-align: center; padding: 30px; }
.value__num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); }
.value h3 { margin: 12px 0 8px; }
.value p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.contact-list span, .contact-list a { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc6bd; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 100px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 20px; }
.footer__brand p { font-size: .92rem; line-height: 1.9; opacity: .8; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 1rem; margin-bottom: 16px; letter-spacing: .05em; }
.footer a { display: block; padding: 6px 0; font-size: .95rem; opacity: .8; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; text-align: center; font-size: .85rem; opacity: .6; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; padding: 0; }
.social a:hover { background: var(--gold); color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; border: 0; cursor: pointer; z-index: 900; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- Worship page ---------- */
.worship { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.worship__deity { position: relative; display: grid; place-items: center; padding: 20px; }
.worship__halo {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,210,140,.7), rgba(200,160,76,.2) 35%, rgba(200,160,76,0) 65%);
  filter: blur(20px); pointer-events: none;
  animation: haloBreathe 4s infinite ease-in-out;
}
@keyframes haloBreathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* 飄動的金色光點 */
.worship__sparkles { position: absolute; inset: 0; pointer-events: none; }
.worship__sparkles span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0%, #fbc04a 60%, transparent 80%);
  box-shadow: 0 0 6px #fbc04a, 0 0 14px rgba(251,192,74,.6);
  opacity: 0;
  animation: sparkleFloat 4.5s infinite ease-in-out;
}
.worship__sparkles span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.worship__sparkles span:nth-child(2) { top: 22%; right: 10%; animation-delay: .5s; }
.worship__sparkles span:nth-child(3) { top: 38%; left: 4%; animation-delay: 1s; width: 4px; height: 4px; }
.worship__sparkles span:nth-child(4) { top: 50%; right: 6%; animation-delay: 1.5s; }
.worship__sparkles span:nth-child(5) { top: 62%; left: 12%; animation-delay: 2s; width: 5px; height: 5px; }
.worship__sparkles span:nth-child(6) { top: 75%; right: 16%; animation-delay: 2.5s; }
.worship__sparkles span:nth-child(7) { top: 8%; left: 50%; animation-delay: 3s; width: 4px; height: 4px; }
.worship__sparkles span:nth-child(8) { top: 88%; left: 42%; animation-delay: 3.5s; }
.worship__sparkles span:nth-child(9) { top: 30%; left: 95%; animation-delay: 1.8s; width: 5px; height: 5px; }
.worship__sparkles span:nth-child(10) { top: 70%; left: 90%; animation-delay: 3.2s; }
@keyframes sparkleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.5); }
  40%, 60% { opacity: 1; transform: translateY(-15px) scale(1); }
}

/* 蓮花花瓣（合十後降下） */
.worship__petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.worship__petals span {
  position: absolute; top: -8%; font-size: 1.6rem;
  animation: petalFall linear forwards;
  filter: drop-shadow(0 2px 4px rgba(158,27,27,.3));
}
@keyframes petalFall {
  to { transform: translateY(calc(100vh)) rotate(720deg); opacity: 0; }
}

.worship__deity img {
  position: relative; max-width: 460px; width: 100%; border-radius: 22px;
  box-shadow: var(--shadow-lg); z-index: 1; cursor: pointer;
  animation: deityFloat 6s infinite ease-in-out;
  transition: box-shadow .5s, transform .4s, filter .4s;
}
.worship__deity img:hover {
  transform: scale(1.025);
  filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 0 30px rgba(251,192,74,.55), 0 0 60px rgba(251,192,74,.25), var(--shadow-lg);
}
.worship__deity img:active { transform: scale(.98); }
.worship__deity.praying img {
  box-shadow: 0 0 36px rgba(251,192,74,.85), 0 0 72px rgba(251,192,74,.45), var(--shadow-lg);
  transform: scale(1.04);
  animation-play-state: paused;
}
@keyframes deityFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 點擊神尊：光環漣漪 */
.worship__ripple {
  position: absolute; border: 3px solid var(--gold);
  border-radius: 22px; pointer-events: none; opacity: 0; z-index: 2;
  animation: rippleOut 1.2s ease-out forwards;
}
@keyframes rippleOut { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* 點擊神尊：書法字飛升 */
.worship__charfly {
  position: absolute; font-family: var(--serif); font-size: 2.2rem; font-weight: 900;
  color: #ffd96b; text-shadow: 0 0 8px rgba(251,192,74,.8), 0 1px 4px rgba(0,0,0,.4);
  pointer-events: none; z-index: 3; opacity: 0;
  animation: charFly 1.6s ease-out forwards;
}
@keyframes charFly {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -20px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -120px) scale(1.3); }
}

/* 表單欄位 focus 動畫 */
.worship__form input:focus, .worship__form select:focus, .worship__form textarea:focus {
  box-shadow: 0 0 0 3px rgba(200,160,76,.15);
  border-color: var(--gold);
}

/* 合十按鈕 hover：emoji 跳動 */
.worship__btn { transition: transform .25s ease, box-shadow .3s ease; }
.worship__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(158,27,27,.35); }
.worship__btn:hover:not(:disabled)::first-letter { display: inline-block; animation: prayHand .7s infinite; }
@keyframes prayHand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) scale(1.1); } }
.worship__incense { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; opacity: 0; transition: opacity .8s; pointer-events: none; }
.worship__incense.lit { opacity: 1; }
.worship__incense span { display: block; width: 3px; height: 90px; background: linear-gradient(to top, #6a3a14 0%, #a85e1d 30%, #ffb066 70%, #fff4d0 95%); border-radius: 1.5px; position: relative; }
.worship__incense span::after { content: ""; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 14px; height: 24px; background: radial-gradient(ellipse, rgba(255,225,180,.85), rgba(255,225,180,0) 70%); filter: blur(6px); animation: smoke 3s infinite ease-out; }
.worship__incense span:nth-child(2)::after { animation-delay: .6s; }
.worship__incense span:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes smoke { 0% { opacity: .85; transform: translate(-50%, 0) scale(.6); } 100% { opacity: 0; transform: translate(calc(-50% + 12px), -60px) scale(1.6); } }

.worship__panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 8px; }
.worship__hint { color: var(--ink-soft); margin-bottom: 22px; }
.worship__form label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.worship__form input, .worship__form select, .worship__form textarea { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; font-size: 1rem; color: var(--ink); }
.worship__form input:focus, .worship__form select:focus, .worship__form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.worship__form textarea { resize: vertical; min-height: 92px; }
.worship__btn { width: 100%; padding: 14px; font-size: 1.05rem; }
.worship__btn.done { background: var(--gold); color: var(--ink); pointer-events: none; }
.worship__btn.done::before { content: "✓ "; }
.worship__count { margin-top: 14px; font-size: .92rem; color: var(--gold-dark); font-weight: 700; text-align: center; }

@media (max-width: 800px) { .worship { grid-template-columns: 1fr; } .worship__deity img { max-width: 360px; } }

/* ---------- 書法風格浮動圈圈（全站皆顯示，左下角） ---------- */
/* 位置：左下角，堆疊在「近期活動」圈圈上方（避免重疊） */
.worship-floats { position: fixed; left: 24px; bottom: 100px; z-index: 970; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; pointer-events: none; }
.worship-float { pointer-events: auto; }
/* 若無近期活動圈圈，可貼底；用 :has 動態調整 */
body:not(:has(.upcoming)) .worship-floats { bottom: 24px; }
.worship-float { display: flex; align-items: center; gap: 0; background: transparent; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.worship-float__icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.worship-float__char {
  font-family: var(--serif); font-size: 1.95rem; font-weight: 900;
  line-height: 1; letter-spacing: 0;
  display: block; text-align: center;
  /* Noto Serif TC 字框上緣留白偏多，補一點視覺差讓字在圓心 */
  transform: translateY(.06em);
}
.worship-float--pray .worship-float__icon {
  background: radial-gradient(circle at 30% 30%, #c33b3b 0%, #9e1b1b 55%, #5c0f0f 100%);
  border: 2px solid #ffd96b;
}
.worship-float--pray .worship-float__char { color: #ffd96b; text-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 12px rgba(255,217,107,.6); }
.worship-float--oracle .worship-float__icon {
  background: radial-gradient(circle at 30% 30%, #e3c275 0%, #c8a04c 55%, #8a6620 100%);
  border: 2px solid #fff7e2;
}
.worship-float--oracle .worship-float__char { color: #fff; text-shadow: 0 1px 2px rgba(122,77,18,.6); }

/* 脈動光圈（單環、跟大聲公一致） */
.worship-float__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulseRing 2s infinite;
}
.worship-float--pray .worship-float__icon::before { color: var(--red); }
.worship-float--oracle .worship-float__icon::before { color: var(--gold); }

/* 標籤（hover 才展開） */
.worship-float__label {
  background: #fff; color: var(--ink); font-size: .92rem; font-weight: 700;
  height: 38px; line-height: 38px; align-self: center;
  border-radius: 999px;
  max-width: 0; padding: 0; border: 0; opacity: 0;
  overflow: hidden; white-space: nowrap;
  transform: translateX(-14px);
  transition: max-width .35s ease, padding .35s ease, opacity .2s ease;
  box-shadow: var(--shadow-sm);
}
.worship-float:hover .worship-float__label { max-width: 130px; padding: 0 22px 0 22px; opacity: 1; }
.worship-float:hover .worship-float__icon { transform: scale(1.06); }
.worship-float:active .worship-float__icon { transform: scale(.96); }

@keyframes pulseRing { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

@media (max-width: 600px) {
  .worship-floats { left: 14px; bottom: 90px; gap: 10px; }
  body:not(:has(.upcoming)) .worship-floats { bottom: 18px; }
  .worship-float__icon { width: 56px; height: 56px; }
  .worship-float__char { font-size: 1.7rem; }
}

/* ---------- 擲筊問事＋籤詩（神廳沉浸區） ---------- */
/* 用 wrapper 統一背景，避免兩個 section 之間深淺交接 */
.temple-wrap { position: relative; background: #1a0808; overflow: hidden; }
.temple-wrap__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(251,192,74,.18), transparent 65%),
    linear-gradient(180deg, rgba(10,4,4,.78) 0%, rgba(10,4,4,.78) 100%),
    url("../img/temple-bg.jpg") center 28% / cover;
}
.temple-wrap .toss-section { background: transparent !important; overflow: visible; }
.toss-section { position: relative; color: #fff; }
.toss-bg[hidden] { display: none; }
.toss-section .section__head h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.toss-section .section__head p { color: rgba(255,255,255,.85); }
.toss-section .section__head .eyebrow { color: var(--gold); }
.toss-section .divider::before, .toss-section .divider::after { background: var(--gold); }
.toss-section .divider span { background: var(--gold); }

.toss { position: relative; max-width: 620px; margin: 0 auto; text-align: center; }
.toss__stage {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 16px;
  height: 320px; margin: 30px auto 24px; perspective: 1200px;
}

/* 紅筊（飽滿半月形，加大） */
.toss__poe { width: 140px; height: 240px; position: relative; transform-style: preserve-3d; transition: transform .2s; }
.poe__inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.poe__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
}
.poe__face img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
/* 反面翻過去 */
.poe__face--back { transform: rotateY(180deg); }
/* 右邊聖筊水平鏡像（兩個合在一起像滿月） */
.poe--right .poe__face img { transform: scaleX(-1); }
.poe__shadow {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 70%);
  filter: blur(4px);
}

/* 初始：兩筊靠攏直立（雙手合握的姿態） */
.poe--left .poe__inner { transform: rotateZ(8deg); }
.poe--right .poe__inner { transform: rotateZ(-8deg); }

/* 擲筊動畫：飛起、翻轉、落下（更流暢） */
.toss__poe.tossing { animation: poeToss 1.9s cubic-bezier(.32, .04, .29, 1) forwards; }
.poe--left.tossing  { --tx: -80px; --rotz: -420deg; }
.poe--right.tossing { --tx:  80px; --rotz:  420deg; animation-delay: .05s; }
@keyframes poeToss {
  0%   { transform: translate(0, 0) rotateZ(0); }
  18%  { transform: translate(calc(var(--tx) * .25), -170px) rotateZ(calc(var(--rotz) * .25)); }
  38%  { transform: translate(calc(var(--tx) * .55), -280px) rotateZ(calc(var(--rotz) * .55)); }
  60%  { transform: translate(calc(var(--tx) * .82), -210px) rotateZ(calc(var(--rotz) * .82)); }
  82%  { transform: translate(calc(var(--tx) * .96), -50px) rotateZ(calc(var(--rotz) * .96)); }
  92%  { transform: translate(var(--tx), 10px) rotateZ(var(--rotz)); }
  100% { transform: translate(var(--tx), 0) rotateZ(var(--rotz)); }
}
/* 翻轉 - 結束時的正反面 */
.toss__poe.tossing .poe__inner { animation: poeFlip 1.9s cubic-bezier(.4, .1, .3, 1) forwards; }
.toss__poe.tossing[data-final="yang"] .poe__inner { --final-y: 0deg; }
.toss__poe.tossing[data-final="yin"] .poe__inner { --final-y: 180deg; }
@keyframes poeFlip {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(var(--final-y, 720deg)); }
}
/* 影子隨高度變化 */
.toss__poe.tossing ~ .poe__shadow, .toss__poe.tossing .poe__shadow { animation: shadowFade 1.9s ease-in-out forwards; }
.poe__shadow { transition: opacity .3s, transform .3s; }
@keyframes shadowFade {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  35% { opacity: .25; transform: translateX(-50%) scale(.5); }
}

/* 擲筊按鈕（書法字） */
.toss__btn {
  display: inline-block;                       /* 蓋掉 .btn 的 inline-flex — iOS Safari 對 inline-flex + letter-spacing 有 tap area 錯位 bug */
  background: linear-gradient(135deg, #b2221c, #7a1414);
  color: #ffd96b; border: 2px solid #ffd96b;
  padding: 18px 44px; border-radius: 999px;   /* 加大 padding — 讓 hit area 遠超過 iOS 44pt 建議最小值 */
  min-width: 120px; min-height: 52px;          /* 明確最小尺寸，避免 iOS 判定為過小需 zoom */
  font-family: var(--serif); font-size: 1.4rem; font-weight: 900;
  letter-spacing: .6em; padding-right: calc(44px - .6em);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 0 12px rgba(255,217,107,.2);
  transition: transform .2s, box-shadow .3s;
  position: relative; z-index: 3;              /* 保險：確保按鈕在點擊層之上，不被 poe 或背景蓋到 */
  pointer-events: auto;                        /* 防禦性宣告：不論祖先如何，本身可以接受 tap */
  touch-action: manipulation;                  /* 明確覆蓋祖先設定 */
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.toss__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(178,34,28,.5), inset 0 0 16px rgba(255,217,107,.3); }
.toss__btn:disabled { opacity: .6; cursor: not-allowed; }

/* 擲筊結果 */
.toss__result {
  margin-top: 36px; padding: 28px 30px; position: relative; z-index: 1;
  background: rgba(26,8,8,.7); border: 1px solid var(--gold); border-radius: 16px;
  backdrop-filter: blur(10px); animation: tossResultIn .6s ease both;
  text-align: center;
}
@keyframes tossResultIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.toss__result__halo {
  position: absolute; inset: -2px; border-radius: 16px; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(251,192,74,.35), transparent 60%);
  opacity: 0; transition: opacity .6s;
}
.toss__result.is-yang .toss__result__halo { opacity: 1; }
.toss__result__eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .25em; color: var(--gold); margin-bottom: 8px; }
.toss__result h3 { font-family: var(--serif); color: #ffd96b; font-size: 2rem; margin-bottom: 12px; text-shadow: 0 0 12px rgba(251,192,74,.4); }
.toss__result.is-laugh h3 { color: #ffb8a0; }
.toss__result.is-yin h3 { color: #d8c5a8; }
.toss__result p { color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.9; margin-bottom: 18px; }

@media (max-width: 600px) {
  .toss__stage { height: 220px; gap: 8px; }
  .toss__poe { width: 70px; height: 140px; }
  .poe__shadow { width: 68px; }
  .toss__btn { font-size: 1.2rem; padding: 12px 28px; }
  .toss__result h3 { font-size: 1.6rem; }
}

/* ---------- 古卷軸（今日籤詩）---------- */
.oracle { max-width: 640px; margin: 0 auto; perspective: 1500px; }
.scroll { display: flex; flex-direction: column; align-items: center; }

/* 抽籤前的占位 */
.scroll__placeholder { background: rgba(0,0,0,.42); border: 1px solid var(--gold); border-radius: 14px; padding: 44px 32px; text-align: center; backdrop-filter: blur(10px); max-width: 520px; margin: 0 auto; }
.scroll__big { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; letter-spacing: .18em; }
.scroll__hint { color: rgba(255,255,255,.78); font-size: .98rem; margin-top: 12px; }

/* 卷軸主體 */
.scroll__container { display: flex; flex-direction: column; align-items: center; }

/* 卷軸木軸 */
.scroll__rod {
  width: 320px; max-width: 88vw; height: 22px; position: relative; z-index: 3;
  background: linear-gradient(180deg, #c89a4e 0%, #8a5a1f 30%, #6a420f 50%, #8a5a1f 70%, #c89a4e 100%);
  border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 0 4px rgba(0,0,0,.3);
}
.scroll__rod::before, .scroll__rod::after {
  content: ""; position: absolute; top: -10px; width: 38px; height: 42px;
  border-radius: 12px 14px 14px 12px;
  background: radial-gradient(ellipse at 35% 30%, #e0b56b 0%, #a0721f 55%, #5a380a 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,.55), inset -3px 0 4px rgba(0,0,0,.3);
}
.scroll__rod::before { left: -26px; }
.scroll__rod::after  { right: -26px; }

/* 紙張面板 — 展開動畫 */
.scroll__paper {
  width: 320px; max-width: 88vw;
  background:
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(120,80,30,.05) 28px 29px),
    radial-gradient(ellipse at 50% 0%, rgba(220,180,120,.35), transparent 70%),
    linear-gradient(180deg, #f9eccd 0%, #f5e1b9 50%, #efd4a3 100%);
  box-shadow:
    inset 6px 0 12px rgba(140,90,40,.18),
    inset -6px 0 12px rgba(140,90,40,.18),
    inset 0 4px 8px rgba(140,90,40,.12),
    inset 0 -4px 8px rgba(140,90,40,.12);
  position: relative;
  max-height: 0; overflow: hidden;
  transition: max-height 1.4s cubic-bezier(.32, .04, .29, 1), padding 1.4s cubic-bezier(.32, .04, .29, 1);
  padding: 0 28px;
}
.scroll.is-open .scroll__paper { max-height: 1200px; padding: 36px 32px; }

/* 紙張左右邊緣的舊感 */
.scroll__paper::before, .scroll__paper::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(90deg, rgba(140,90,40,.45), transparent);
}
.scroll__paper::before { left: 0; }
.scroll__paper::after { right: 0; transform: scaleX(-1); }

/* 紙上的內容 */
.oracle__content { animation: scrollContentIn 1.6s cubic-bezier(.32, .04, .29, 1) both; text-align: center; }
.scroll.is-open .oracle__content { animation-delay: .4s; }
@keyframes scrollContentIn { 0%, 30% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 1; transform: none; } }
.oracle__no { font-family: var(--serif); font-size: 1.1rem; color: var(--red); font-weight: 700; letter-spacing: .12em; margin-bottom: 4px; }
.scroll__paper h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--ink); margin-bottom: 8px; }
.oracle__divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px auto; }
.oracle__divider::before, .oracle__divider::after { content: ""; width: 36px; height: 1px; background: rgba(140,90,40,.55); }
.oracle__divider span { width: 6px; height: 6px; border-radius: 50%; background: rgba(140,90,40,.7); }
.oracle__verse { font-family: var(--serif); font-size: 1.1rem; line-height: 2.2; color: var(--ink); white-space: pre-wrap; margin: 0; letter-spacing: .04em; }
.oracle__modern { color: var(--ink-soft); font-size: .96rem; line-height: 1.9; margin-top: 12px; padding: 0 4px; }
.oracle__hint { color: var(--gold-dark); font-size: .85rem; font-weight: 700; margin-top: 10px; }

@media (max-width: 600px) { .scroll__rod { width: 280px; } .scroll__paper { width: 280px; } .scroll__big { font-size: 1.35rem; } }

/* ---------- Service categories (services page) ---------- */
.cat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 28px 30px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.cat__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.cat__icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(158,27,27,.08); display: grid; place-items: center; font-size: 1.9rem; flex-shrink: 0; }
.cat__heading { flex: 1; min-width: 0; }
.cat__heading h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; line-height: 1.35; }
.cat__sub { font-size: .9rem; color: var(--gold-dark); font-weight: 700; letter-spacing: .03em; }
.cat__count { flex-shrink: 0; font-size: .82rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 5px 14px; align-self: flex-start; }
.cat__desc { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; padding-left: 78px; }
.cat__items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cat__item { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px dashed var(--line); color: var(--ink); transition: background .2s, padding .2s; }
.cat__item:last-child { border-bottom: 0; }
.cat__item:hover { background: rgba(200,160,76,.08); padding-left: 14px; }
.cat__date { flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--gold-dark); width: 110px; }
.cat__title { flex: 1; font-size: .98rem; font-weight: 500; }
.cat__item:hover .cat__title { color: var(--red); }
.cat__arrow { flex-shrink: 0; color: var(--red); font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; }
.cat__item:hover .cat__arrow { opacity: 1; transform: translateX(4px); }
@media (max-width: 600px) {
  .cat { padding: 22px 18px; }
  .cat__icon { width: 50px; height: 50px; font-size: 1.5rem; }
  .cat__head { gap: 14px; }
  .cat__heading h3 { font-size: 1.15rem; }
  .cat__desc { padding-left: 0; font-size: .92rem; }
  .cat__date { width: 88px; font-size: .76rem; }
  .cat__title { font-size: .9rem; }
  .cat__item { padding: 12px 4px; }
}

/* ---------- Upcoming events section ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.event-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; text-align: left; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-card__date { flex-shrink: 0; width: 60px; text-align: center; color: var(--red); padding-top: 2px; }
.event-card__month { font-size: .88rem; font-weight: 700; }
.event-card__day { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.event-card__body { flex: 1; }
.event-card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 8px; }
.event-card__body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.event-card__link { font-size: .9rem; font-weight: 700; color: var(--red); }
@media (max-width: 600px) { .event-card { padding: 18px; gap: 14px; } .event-card__date { width: 50px; } .event-card__day { font-size: 2rem; } }

/* ---------- Upcoming event badge ---------- */
.upcoming { position: fixed; left: 24px; bottom: 24px; z-index: 950; display: flex; align-items: flex-end; gap: 12px; }
.upcoming__row { display: flex; align-items: center; position: relative; }
.upcoming__label {
  position: absolute; left: calc(100% + 10px); top: 50%;
  background: #fff; color: var(--ink); font-size: .92rem; font-weight: 700;
  padding: 9px 20px; border-radius: 999px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none;
  transform: translateY(-50%) translateX(-12px) scale(.88);
  transform-origin: left center;
  transition: opacity .25s ease, transform .25s ease;
}
.upcoming__row:hover .upcoming__label,
.upcoming__dot:focus-visible + .upcoming__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}
.upcoming__dot {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  position: relative; transition: transform .2s;
}
.upcoming__dot:hover { transform: scale(1.06); }
.upcoming__dot svg { width: 28px; height: 28px; }
.upcoming__dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--red); animation: upPulse 2s infinite;
}
@keyframes upPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.upcoming__badge { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; background: var(--gold); border: 2px solid #fff; border-radius: 50%; }

.upcoming__card {
  width: min(300px, calc(100vw - 110px)); background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 18px 18px 16px;
  transform-origin: bottom left; transition: opacity .25s ease, transform .25s ease;
}
.upcoming__card.hide { opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; visibility: hidden; }
.upcoming__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 8px; }
.upcoming__eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.upcoming__card h4 { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; margin-bottom: 6px; }
.upcoming__date { font-size: .82rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.upcoming__card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; }
.upcoming__card a.upcoming__link { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--red); }
.upcoming__close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.upcoming__close:hover { color: var(--ink); }

@media (max-width: 600px) {
  .upcoming { left: 16px; bottom: 16px; }
  .upcoming__dot { width: 52px; height: 52px; }
}

/* ---------- Empty state ---------- */
.empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; height: 100dvh;
    width: min(82%, 320px); z-index: 1050;
    background: var(--cream); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--nav-h) + 20px) 24px 32px; gap: 6px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .header:not(.is-solid) .nav a, .nav a { color: var(--ink) !important; text-shadow: none; background: none; }
  .nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav__cta { margin: 14px 0 0; border-radius: 999px; text-align: center; background: var(--red); color: #fff !important; border-bottom: 0; padding: 14px 16px; font-weight: 700; }
  .nav a.nav__cta:hover { background: var(--red-dark); }
  .nav-toggle { display: flex; }
  .header { height: 92px; }
  .brand img { height: 72px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header:not(.is-solid) .nav-toggle.open span { background: var(--ink); }
  body.nav-open { overflow: hidden; }
  .brand__name { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
