/* =========================================================
   One Bear Museum 熊一博物館 — static HTML/CSS build
   Converted from React + Vite + Tailwind to plain HTML/CSS/JS
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream: #FFF8E7;
  --amber: #C8802E;
  --deep-brown: #2A1F16;
  --warm-beige: #E8D5B5;
  --soft-rust: #B8683A;
  --muted-gold: #D4A04A;
  --dark-amber: #1A1209;
  --text-muted: rgba(42, 31, 22, 0.55);
  --border-light: rgba(255, 248, 231, 0.15);
  --border-warm: rgba(200, 128, 46, 0.3);

  --shadow-card: 0 8px 32px rgba(26, 18, 9, 0.15);
  --shadow-card-dark: 0 8px 32px rgba(26, 18, 9, 0.4);
  --shadow-glow-amber: 0 0 24px rgba(200, 128, 46, 0.3);

  --radius-card: 12px;
  --radius-button: 50px;
  --radius-small: 8px;

  --font-display: 'Noto Serif TC', serif;
  --font-body: 'Noto Sans TC', sans-serif;

  --maxw: 1400px;
  --nav-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--deep-brown);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  word-break: normal;
  overflow-wrap: break-word;
  margin: 0;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

section { scroll-margin-top: var(--nav-h); }

/* ---------- Typography utilities ---------- */
.text-display {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.text-h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.text-h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}
.text-body {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
}
.text-body-large {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
}
.text-nav {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.text-caption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-button {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

.section-pad {
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .section-pad { padding-top: 128px; padding-bottom: 128px; }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .section-header { margin-bottom: 64px; }
}
.section-header .eyebrow {
  display: block;
  color: var(--amber);
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--amber);
  color: var(--deep-brown);
  border-radius: var(--radius-button);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover {
  background: var(--muted-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-dark);
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(26, 18, 9, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 12px; }
.bear-logo { color: var(--amber); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}
.brand-sub {
  color: var(--amber);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  padding: 4px 0;
  color: rgba(255, 248, 231, 0.9);
  transition: color .3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1.5px;
  width: 0;
  background: var(--amber);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--amber); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--amber); }
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: inline-flex;
  color: var(--cream);
  padding: 8px;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--dark-amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--cream);
  padding: 8px;
}
.mobile-link {
  color: var(--cream);
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  transition: color .3s ease, opacity .4s ease, transform .4s ease;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-link:hover { color: var(--amber); }
.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: .08s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: .16s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: .24s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: .32s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: .40s; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--dark-amber);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
  /* Homepage hero: no dark overlay on the image (per brand rule).
     Legibility is handled with text-shadow on the hero text instead. */
  position: absolute;
  inset: 0;
  background: transparent;
}
.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  perspective: 1000px;
}
.hero-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  transform-style: preserve-3d;
}
.hero-title {
  color: var(--cream);
  text-align: center;
  transform-origin: center bottom;
  text-shadow: 0 2px 24px rgba(26, 18, 9, 0.65), 0 1px 4px rgba(26, 18, 9, 0.7);
}
.hero-title span { display: block; }
.hero-subtitle {
  color: var(--cream);
  text-align: center;
  margin-top: 24px;
  max-width: 36rem;
  transform-origin: center bottom;
  text-shadow: 0 1px 12px rgba(26, 18, 9, 0.7), 0 1px 3px rgba(26, 18, 9, 0.75);
}
.hero-cta {
  margin-top: 40px;
  transform-origin: center bottom;
}

/* Hero load-in reveal */
.hero-title, .hero-subtitle, .hero-cta {
  opacity: 0;
  transform: perspective(1000px) rotateX(90deg) translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.hero.loaded .hero-title { opacity: 1; transform: none; transition-delay: .1s; }
.hero.loaded .hero-subtitle { opacity: 1; transform: none; transition-delay: .28s; }
.hero.loaded .hero-cta { opacity: 1; transform: none; transition-delay: .46s; }

/* =========================================================
   Museum Intro
   ========================================================= */
.intro { background: var(--cream); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 64px; }
}
.intro-text { order: 2; }
.intro-media { order: 1; }
@media (min-width: 1024px) {
  .intro-text { order: 1; }
  .intro-media { order: 2; }
}
.intro-text .eyebrow { display: block; color: var(--amber); margin-bottom: 16px; }
.intro-heading { color: var(--deep-brown); margin-bottom: 24px; }
.intro-heading .word {
  display: inline-block;
}
.intro-body {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat .num { color: var(--amber); font-family: var(--font-display); }
.stat .lbl { color: var(--text-muted); margin-top: 4px; }
.intro-media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.intro-media img { width: 100%; height: auto; object-fit: cover; display: block; }
@media (min-width: 1024px) {
  .intro-media { max-width: 400px; margin-left: auto; margin-right: 0; }
}

/* =========================================================
   Gallery (flip cards)
   ========================================================= */
.gallery { background: var(--warm-beige); }
.gallery-grid-wrap { perspective: 1000px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.gallery-card {
  position: relative;
  transform-style: preserve-3d;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}
.card-front, .card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.45,.05,.25,1);
}
.card-front {
  background: var(--dark-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
}
.card-front .dots {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, rgba(200,128,46,0.3) 1px, transparent 0);
  background-size: 24px 24px;
}
.card-front h3 {
  position: relative;
  z-index: 1;
  color: var(--cream);
  font-family: var(--font-display);
  transition: color .3s ease;
}
.gallery-card:hover .card-front h3 { color: var(--amber); }
.card-back {
  transform: rotateY(180deg);
}
.card-back img { width: 100%; height: 100%; object-fit: cover; }
.card-back .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,9,0.6), transparent 60%);
}
.card-back .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
}
@media (min-width: 1024px) { .card-back .caption { padding: 24px; } }
.card-back .caption .eyebrow { display: block; color: var(--amber); margin-bottom: 4px; }
.card-back .caption h3 { color: var(--cream); font-family: var(--font-display); }

/* Flip when in view */
.gallery-card.flipped .card-front { transform: rotateY(-180deg); }
.gallery-card.flipped .card-back { transform: rotateY(0deg); }

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--dark-amber); }
.services .section-header h2 { color: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.service-card {
  background: rgba(255, 248, 231, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
@media (min-width: 1024px) { .service-card { padding: 40px; } }
.service-card:hover {
  background: rgba(255, 248, 231, 0.1);
  border-color: rgba(200, 128, 46, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-dark);
}
.service-icon {
  color: var(--amber);
  margin-bottom: 24px;
  animation: float-drift 4s ease-in-out infinite;
}
.service-card h3 { color: var(--cream); margin-bottom: 16px; }
.service-card p { color: rgba(255, 248, 231, 0.6); margin-bottom: 24px; line-height: 1.7; }
.price-tag {
  display: inline-block;
  color: var(--amber);
  background: rgba(200, 128, 46, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-small);
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   News
   ========================================================= */
.news { background: var(--cream); }
.news-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .news-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 1024px) { .news-header { margin-bottom: 56px; } }
.news-header .eyebrow { display: block; color: var(--amber); margin-bottom: 12px; }
.news-header h2 { color: var(--deep-brown); }
.news-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  transition: gap .3s ease;
}
.news-all:hover { text-decoration: underline; }
.news-all svg { transition: transform .3s ease; }
.news-all:hover svg { transform: translateX(4px); }

.news-list { display: flex; flex-direction: column; }
.news-item {
  border-top: 1px solid var(--border-warm);
  padding: 24px 16px;
  margin: 0 -16px;
  cursor: pointer;
  transition: background .3s ease;
}
@media (min-width: 1024px) { .news-item { padding: 32px 16px; } }
.news-item:hover { background: rgba(232, 213, 181, 0.3); }
.news-list .news-bottom-border { border-top: 1px solid var(--border-warm); }
.news-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .news-row { flex-direction: row; align-items: center; gap: 24px; }
}
.news-date {
  color: var(--amber);
  white-space: nowrap;
  min-width: 90px;
}
.news-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-small);
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
  width: fit-content;
}
.tag-event { background: rgba(184, 104, 58, 0.15); color: var(--soft-rust); }
.tag-promo { background: rgba(200, 128, 46, 0.15); color: var(--amber); }
.tag-notice { background: rgba(212, 160, 74, 0.15); color: var(--muted-gold); }
.news-content { flex: 1; }
.news-content h3 {
  color: var(--deep-brown);
  margin-bottom: 4px;
  transition: color .3s ease;
}
.news-item:hover .news-content h3 { color: var(--amber); }
.news-excerpt { color: var(--text-muted); display: none; }
@media (min-width: 1024px) { .news-excerpt { display: block; } }
.news-arrow {
  color: var(--amber);
  flex-shrink: 0;
  display: none;
  transition: transform .3s ease;
}
@media (min-width: 1024px) { .news-arrow { display: block; } }
.news-item:hover .news-arrow { transform: translateX(4px); }

/* =========================================================
   Visit Info
   ========================================================= */
.visit { background: var(--warm-beige); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .visit-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.info-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
@media (min-width: 1024px) { .info-card { padding: 40px; } }
.info-card .icon { color: var(--amber); margin-bottom: 24px; }
.info-card h3 { color: var(--deep-brown); margin-bottom: 24px; }
.info-rows { display: flex; flex-direction: column; gap: 16px; }
.info-rows .label { color: var(--text-muted); display: block; margin-bottom: 2px; }
.info-rows .value { color: var(--deep-brown); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: var(--dark-amber);
  overflow: hidden;
}
.cta .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,128,46,0.05), transparent, rgba(212,160,74,0.05));
}
.cta-content {
  position: relative;
  z-index: 10;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  perspective: 1000px;
}
@media (min-width: 1024px) { .cta-content { padding: 128px 24px; } }
.cta-heading {
  font-family: var(--font-display);
  color: var(--cream);
  max-width: 48rem;
  line-height: 1.2;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  transform-origin: center bottom;
}
.cta-sub { color: var(--muted-gold); margin-top: 24px; max-width: 36rem; }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
.cta-link-text {
  color: var(--cream);
  text-underline-offset: 4px;
  transition: text-decoration .3s ease;
}
.cta-link-text:hover { text-decoration: underline; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--deep-brown); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 32px;
}
@media (min-width: 1024px) { .footer-inner { padding: 64px 32px 32px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.footer-brand .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand h3 { color: var(--cream); font-family: var(--font-display); font-size: 1.125rem; }
.footer-brand .brand-sub { color: var(--amber); }
.footer-brand .tagline { color: rgba(255, 248, 231, 0.5); }
.footer-col h4 { color: var(--amber); margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(255, 248, 231, 0.8); transition: color .3s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { color: rgba(255, 248, 231, 0.4); }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 40;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--deep-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-amber);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--muted-gold); transform: scale(1.05); }

/* =========================================================
   Scroll reveal system (replaces GSAP ScrollTrigger)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
[data-reveal="fade-up"]   { transform: translateY(40px); }
[data-reveal="fade-up-sm"]{ transform: translateY(20px); }
[data-reveal="slide-left"]{ transform: translateX(-40px); }
[data-reveal="slide-left-sm"]{ transform: translateX(-30px); }
[data-reveal="slide-right"]{ transform: translateX(40px); }
[data-reveal="scale-in"]  { transform: scale(0.95); }
[data-reveal="flip-3d"]   { transform: perspective(1000px) rotateX(90deg) translateY(20px); transition: opacity .8s ease, transform .8s ease; }

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* staggering via --i index */
[data-stagger] [data-reveal] { transition-delay: calc(var(--i, 0) * 0.1s); }

/* word-by-word heading */
.intro-heading .word {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.intro-heading.in-view .word {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .intro-heading .word,
  .hero-title, .hero-subtitle, .hero-cta {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   INNER PAGES (rebrand build) — dropdowns, banners,
   sidebar layout, prose, tables, news, contact form
   ========================================================= */

/* ---- Desktop dropdown menus ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(26, 18, 9, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  box-shadow: var(--shadow-card-dark);
  z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(255, 248, 231, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-dropdown a:hover { background: rgba(200, 128, 46, 0.18); color: var(--amber); }

/* ---- Page banner (inner hero) ---- */
.page-banner {
  position: relative;
  background: var(--dark-amber);
  padding: calc(var(--nav-h) + 56px) 0 56px;
  overflow: hidden;
}
.page-banner .dots {
  position: absolute; inset: 0; opacity: 0.12;
  background-image: radial-gradient(circle at 2px 2px, rgba(200,128,46,0.4) 1px, transparent 0);
  background-size: 26px 26px;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .eyebrow { display: block; color: var(--amber); margin-bottom: 12px; }
.page-banner h1 { color: var(--cream); font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 28px; color: var(--text-muted); font-size: 0.8rem; }
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ---- Page layout: sidebar + content ---- */
.page-body { background: var(--cream); }
.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .page-grid { grid-template-columns: 248px minmax(0, 1fr); gap: 48px; }
}

.sidemenu { align-self: start; }
.sidemenu .sidemenu-title {
  font-family: var(--font-display);
  color: var(--deep-brown);
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--amber);
}
.sidemenu ul { display: flex; flex-direction: column; }
.sidemenu li { border-bottom: 1px solid var(--border-warm); }
.sidemenu a {
  display: block;
  padding: 12px 6px 12px 14px;
  color: var(--deep-brown);
  font-size: 0.9rem;
  position: relative;
  transition: color .25s ease, padding .25s ease, background .25s ease;
}
.sidemenu a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 4px; height: 0; background: var(--amber);
  transform: translateY(-50%); transition: height .25s ease;
}
.sidemenu a:hover { color: var(--amber); padding-left: 18px; }
.sidemenu a:hover::before { height: 60%; }
.sidemenu a.current { color: var(--amber); font-weight: 600; background: rgba(200,128,46,0.07); }
.sidemenu a.current::before { height: 100%; }

/* On small screens, side menu becomes horizontal chips */
@media (max-width: 899px) {
  .sidemenu .sidemenu-title { border-bottom: none; padding-bottom: 4px; }
  .sidemenu ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sidemenu li { border-bottom: none; }
  .sidemenu a {
    padding: 8px 14px;
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-button);
    font-size: 0.82rem;
  }
  .sidemenu a:hover { padding-left: 14px; }
  .sidemenu a::before { display: none; }
  .sidemenu a.current { border-color: var(--amber); }
}

/* ---- Content prose ---- */
.content { color: var(--deep-brown); }
.content > * + * { margin-top: 1.1rem; }
.content h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--deep-brown);
  margin-top: 2.2rem;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--amber);
  margin-top: 1.8rem;
}
.content p { line-height: 1.85; color: rgba(42,31,22,0.78); }
.content strong { color: var(--deep-brown); }
.content ul, .content ol { padding-left: 1.3rem; line-height: 1.9; color: rgba(42,31,22,0.78); }
.content ul li, .content ol li { margin-top: 0.35rem; }
.content ul { list-style: none; padding-left: 0; }
.content ul > li { position: relative; padding-left: 1.4rem; }
.content ul > li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.content a { color: var(--amber); text-underline-offset: 3px; }
.content a:hover { text-decoration: underline; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.85;
  color: var(--deep-brown);
}

/* Callout / note */
.note {
  background: var(--warm-beige);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-small);
  padding: 18px 22px;
  color: var(--deep-brown);
  font-size: 0.92rem;
  line-height: 1.8;
}
.note strong { color: var(--soft-rust); }

/* Info card grid (for facility pages) */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.4rem;
}
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.fact .k { display: block; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.fact .v { color: var(--deep-brown); font-size: 1.02rem; }

/* ---- Price table ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.price-table caption { caption-side: top; text-align: left; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-warm); font-size: 0.92rem; }
.price-table thead th { background: var(--dark-amber); color: var(--cream); font-weight: 600; letter-spacing: 0.04em; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .price { color: var(--soft-rust); font-weight: 700; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: rgba(232,213,181,0.25); }

/* ---- Gallery thumbs inside content ---- */
.thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.3rem; }
.thumb-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-card); aspect-ratio: 4/3; }

/* ---- News listing ---- */
.news-page { background: var(--cream); }
.news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.news-filter a {
  padding: 8px 18px; border: 1px solid var(--border-warm); border-radius: var(--radius-button);
  color: var(--deep-brown); font-size: 0.82rem; transition: all .25s ease;
}
.news-filter a:hover, .news-filter a.current { background: var(--amber); color: var(--cream); border-color: var(--amber); }
.news-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .news-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .news-cards { grid-template-columns: 1fr 1fr 1fr; } }
.news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--radius-card); padding: 26px 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--amber); }
.news-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.news-card .date { color: var(--text-muted); font-size: 0.78rem; }
.news-card h3 { font-size: 1.1rem; color: var(--deep-brown); line-height: 1.45; transition: color .25s ease; }
.news-card:hover h3 { color: var(--amber); }
.news-card p { color: rgba(42,31,22,0.7); font-size: 0.88rem; line-height: 1.7; margin-top: 10px; flex: 1; }
.news-card .more { color: var(--amber); font-size: 0.82rem; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }

/* ---- News article ---- */
.article { max-width: 760px; }
.article .article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.article h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--deep-brown); line-height: 1.35; margin-bottom: 22px; }
.article .article-body p { line-height: 1.9; color: rgba(42,31,22,0.8); }
.article .article-body > * + * { margin-top: 1.1rem; }
.article .back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  color: var(--amber); font-size: 0.9rem;
}
.article .back-link:hover { text-decoration: underline; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 56px; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.82rem; color: var(--deep-brown); margin-bottom: 7px; font-weight: 500; }
.form-field label .req { color: var(--soft-rust); margin-left: 3px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-warm); border-radius: var(--radius-small);
  background: #fff; color: var(--deep-brown); font-family: inherit; font-size: 0.92rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,128,46,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.contact-info-card { background: var(--dark-amber); border-radius: var(--radius-card); padding: 32px 30px; align-self: start; }
.contact-info-card h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 20px; }
.contact-info-card .ci-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.contact-info-card .ci-row:last-child { border-bottom: none; }
.contact-info-card .ci-row svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.contact-info-card .ci-k { color: var(--amber); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.contact-info-card .ci-v { color: rgba(255,248,231,0.85); font-size: 0.9rem; line-height: 1.6; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* section intro paragraph on landing pages */
.section-lead { max-width: 760px; margin-bottom: 0.4rem; }

/* ---- News filter (working tabs) ---- */
.news-filter .filter-btn { cursor: pointer; user-select: none; }
.news-card[hidden] { display: none !important; }
.news-empty { color: var(--text-muted); padding: 28px 0; font-size: 0.95rem; }
