/* ═══════════════════════════════════════════════════════════════════════
   บ้านดอนคา — Design System v3.0  "ทองสดใส"
   Bright, cheerful Thai-heritage aesthetic
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────────────── */
:root {
  /* Palette */
  --gold:        #c8820a;
  --gold-deep:   #9a6008;
  --gold-light:  #e8a030;
  --gold-pale:   #fdf0d0;
  --gold-wash:   rgba(200,130,10,0.10);
  --gold-line:   rgba(200,130,10,0.22);

  --green:       #1a5c34;
  --green-deep:  #0e3d22;
  --green-light: #2d8a52;
  --green-wash:  rgba(26,92,52,0.08);

  --red:         #c84e2a;
  --red-wash:    rgba(200,78,42,0.08);

  --bg:          #fffdf5;
  --bg-warm:     #fff8e8;
  --bg-alt:      #f7f3ea;
  --surface:     #ffffff;

  --text:        #1a0e02;
  --text-soft:   #5a3a12;
  --text-muted:  #9a7a4a;

  --line:        rgba(200,130,10,0.15);
  --line-strong: rgba(200,130,10,0.30);

  --shadow:    0 20px 60px rgba(100,60,0,0.12);
  --shadow-sm: 0 4px 20px rgba(100,60,0,0.08);
  --shadow-xs: 0 2px 8px  rgba(100,60,0,0.06);

  /* Geometry */
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 999px;

  /* Spacing */
  --section-gap: 96px;
  --card-pad:    28px;

  /* Type */
  --font-body: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --font-heading: 'Noto Serif Thai', 'IBM Plex Sans Thai', Georgia, serif;
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-deep); }
ul, ol { padding-left: 1.5em; }

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-soft); line-height: 1.85; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.lbl {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section {
  padding: var(--section-gap) clamp(20px, 5vw, 80px);
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
}

.section-full {
  padding: var(--section-gap) 0;
  width: 100%;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-heading h2 { margin: 10px 0 16px; }
.section-heading p  { font-size: 1.05rem; }

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

/* Grid helpers */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-12 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 68px;
  background: rgba(255,253,245,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 2px 12px rgba(100,60,0,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand strong { font-family: var(--font-heading); font-size: 1.1rem; display: block; line-height: 1.1; }
.brand small  { font-size: .72rem; color: var(--text-muted); display: block; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(200,130,10,0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--gold-wash); color: var(--gold-deep); }
.site-nav a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(200,130,10,0.30);
}

/* ── Language Switcher ───────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--gold-line);
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.6;
}
.lang-btn:hover { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--gold); }
.lang-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 16px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--text-soft);
}

/* ── Hero (homepage) ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-deep) 0%, #1e6b3c 55%, #27904f 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(200,130,10,0.18) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 3 L57 30 L30 57 L3 30 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  background-size: auto, 60px 60px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 5vw, 80px);
}

.hero-copy .eyebrow { color: #ffd97a; margin-bottom: 16px; font-size: .82rem; letter-spacing: .04em; }

.hero-copy h1 {
  color: #fffdf5;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-tagline {
  color: rgba(255,253,245,0.82);
  font-size: 1.05rem;
  line-height: 1.88;
  max-width: 50ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 24px;
  gap: 20px;
}

.hero-quote {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 4px solid var(--gold-light);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  backdrop-filter: blur(6px);
}
.hero-quote .lbl { color: rgba(255,253,245,0.72); margin-bottom: 14px; }
.hero-quote blockquote { border: none; padding: 0; margin: 0; background: none; }
.quote-lines { display: flex; flex-direction: column; gap: 7px; }
.quote-lines span {
  font-family: var(--font-heading);
  font-size: .98rem;
  color: rgba(255,253,245,0.90);
  line-height: 1.65;
}

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-tile {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 16px 16px;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-tile:hover { background: rgba(255,255,255,0.13); }
.hero-tile strong {
  display: block;
  font-family: var(--font-heading);
  color: #fffdf5;
  font-size: .92rem;
  margin-bottom: 6px;
}
.hero-tile span {
  font-size: .78rem;
  color: rgba(255,253,245,0.68);
  line-height: 1.5;
}

/* ── Hero legacy (index.php compatibility) ───────────────────────────── */
.hero .hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.hero .card-label {
  color: rgba(255,235,160,0.90);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero .hero-card blockquote {
  color: rgba(255,253,245,0.88);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-style: italic;
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero .hero-grid article {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 14px 16px;
}
.hero .hero-grid article strong {
  display: block;
  color: #fffdf5;
  font-size: .88rem;
  margin-bottom: 5px;
}
.hero .hero-grid article span {
  color: rgba(255,253,245,0.70);
  font-size: .78rem;
  line-height: 1.5;
}

/* ── Hero (subpages) ─────────────────────────────────────────────────── */
.subpage-hero {
  background: linear-gradient(145deg, var(--green-deep) 0%, var(--green) 70%, #217a47 100%);
  padding: 72px clamp(24px, 8vw, 120px) 80px;
  position: relative;
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(200,130,10,0.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 3 L57 30 L30 57 L3 30 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  background-size: auto, 60px 60px;
  pointer-events: none;
}
.subpage-hero > * { position: relative; z-index: 1; }
.subpage-hero .eyebrow { color: var(--gold-light); }
.subpage-hero h1 { color: #fffdf5; margin: 12px 0 20px; max-width: 24ch; }
.subpage-hero p { color: rgba(255,253,245,0.82); max-width: 66ch; font-size: 1.05rem; line-height: 1.85; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,253,245,0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,253,245,0.70); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all .22s;
  text-decoration: none;
  letter-spacing: .01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200,130,10,0.38);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,130,10,0.48);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fffdf5;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold);
}
.btn-outline-dark:hover {
  background: var(--gold-wash);
  color: var(--gold-deep);
}

/* ── Stat Cards ──────────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }

/* ── Feature Cards ───────────────────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-line);
}
.feature-card h3 { margin: 16px 0 10px; color: var(--text); }
.feature-card p  { font-size: .92rem; }

.card-icon, .feature-icon {
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold-wash), var(--gold-pale));
  border-radius: var(--r);
  border: 1px solid var(--gold-line);
}

/* ── Rich Card ───────────────────────────────────────────────────────── */
.rich-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--card-pad) 32px;
  box-shadow: var(--shadow-xs);
}
.rich-card h3 { margin-bottom: 16px; }
.rich-card p + p { margin-top: 14px; }

/* ── Photo Card ──────────────────────────────────────────────────────── */
.photo-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold-line);
}
.photo-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .4s;
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card figcaption {
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--surface);
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

/* ── Navigation Cards ────────────────────────────────────────────────── */
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: all .22s;
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity .22s;
}
.nav-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--gold-line); color: var(--text); }
.nav-card:hover::before { opacity: 1; }
.nc-tag  { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.nav-card strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text); }
.nav-card p { font-size: .88rem; color: var(--text-muted); flex: 1; }
.nc-arrow { font-size: 1.4rem; color: var(--gold-light); margin-top: auto; }

/* ── Month Cards (traditions) ────────────────────────────────────────── */
.months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.month-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  transition: transform .22s, box-shadow .22s;
}
.month-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.month-badge {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.month-body { padding: 18px 18px 18px 14px; flex: 1; }
.month-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.month-thai { font-size: .76rem; color: var(--gold); font-weight: 600; margin-bottom: 10px; letter-spacing: .04em; }
.month-body p { font-size: .84rem; line-height: 1.65; }

/* ── Timeline ────────────────────────────────────────────────────────── */
.vert-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 32px;
}
.vert-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-light);
}
.tl-year {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-deep);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-full);
  padding: 3px 12px;
  margin-bottom: 10px;
}
.tl-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tl-item p  { font-size: .90rem; max-width: 60ch; }

/* ── Highlight Strip ─────────────────────────────────────────────────── */
.highlight-strip {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--gold-pale) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-xl);
  padding: 52px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

/* ── CTA Banner ──────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 60%, #217a47 100%);
  border-radius: var(--r-xl);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(200,130,10,0.18) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .eyebrow { color: var(--gold-light); }
.cta-banner h3 { color: #fffdf5; margin: 8px 0 12px; font-size: 1.6rem; font-family: var(--font-heading); }
.cta-banner p  { color: rgba(255,253,245,0.75); font-size: .92rem; }
.cta-banner .btn-primary { flex-shrink: 0; white-space: nowrap; }

/* ── List Card ───────────────────────────────────────────────────────── */
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-xs);
}
.list-card h3 { margin-bottom: 16px; }
.list-card ol, .list-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 1.4em;
}
.list-card li { font-size: .92rem; color: var(--text-soft); line-height: 1.6; }
.list-card li strong { color: var(--text); }

/* ── Village Table ───────────────────────────────────────────────────── */
.village-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.village-table thead tr {
  background: var(--gold-wash);
  color: var(--gold-deep);
}
.village-table th, .village-table td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.village-table th { font-weight: 700; text-align: left; white-space: nowrap; }
.village-table td:first-child { text-align: center; font-weight: 600; color: var(--text); white-space: nowrap; }
.village-table td:nth-child(2) { color: var(--text); font-weight: 500; }
.village-table tbody tr:nth-child(even) { background: var(--surface-alt, #fafaf8); }
.village-table tbody tr:hover { background: var(--gold-wash); }

/* ── Occupation Cards ────────────────────────────────────────────────── */
.occ-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .22s;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.occ-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.occ-card .eyebrow { margin-bottom: 0; }
.occ-card h3 { margin: 0; }
.occ-card p { font-size: .92rem; }
/* Header/body variant — reset padding so sub-elements control spacing */
.occ-card:has(.occ-card-header) { padding: 0; gap: 0; }
.occ-card-header {
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, var(--gold-wash), rgba(255,255,255,0));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.occ-card-header .card-icon { width: 48px; height: 48px; font-size: 1.6rem; }
.occ-card-header h3 { font-size: 1.05rem; margin: 0; }
.occ-card-body { padding: 18px 22px 22px; }
.occ-card-body p { font-size: .88rem; }

/* ── Contact Cards ───────────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: transform .22s, box-shadow .22s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-card p  { font-size: .88rem; }

/* ── Pill tags ───────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-full);
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.pill-green {
  background: var(--green-wash);
  border-color: rgba(26,92,52,0.18);
  color: var(--green);
}

/* ── Image banner ────────────────────────────────────────────────────── */
.img-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.img-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-banner figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 36px;
  background: linear-gradient(transparent, rgba(10,30,15,0.72));
  color: rgba(255,253,245,0.90);
  font-size: .84rem;
  text-align: center;
  line-height: 1.6;
}
.img-banner .img-caption-right {
  font-size: .72rem;
  opacity: 0.6;
  margin-top: 4px;
}

/* ── Section alternating bg ──────────────────────────────────────────── */
.bg-alt  { background: var(--bg-alt); }
.bg-warm { background: var(--bg-warm); }

/* ── Card generic ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-xs);
}
.card h3 { margin: 12px 0 8px; }
.card p { font-size: .88rem; }
.card .card-icon { margin-bottom: 4px; }

/* ── Big quote block ─────────────────────────────────────────────────── */
.big-quote {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  border-radius: var(--r-xl);
  padding: 52px 64px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.big-quote::before {
  content: '❝';
  position: absolute;
  top: -20px; left: 32px;
  font-size: 10rem;
  color: rgba(255,255,255,0.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.big-quote blockquote {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
}
.big-quote .quote-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.big-quote .quote-lines span {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,253,245,0.95);
  line-height: 1.7;
  letter-spacing: .01em;
}
.big-quote cite {
  display: block;
  font-style: normal;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  margin-top: 8px;
}

/* ── References section ──────────────────────────────────────────────── */
.ref-section {
  max-width: 900px;
  margin: 0 auto;
  border-top: 2px solid var(--gold-line);
  padding-top: 32px;
}
.ref-section h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ref-section ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .86rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── Photo grid ──────────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gold-line);
  transition: transform .3s;
}
.photo-grid img:hover { transform: scale(1.03); }

/* ── Menu card (shops — food section) ────────────────────────────────── */
.menu-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.menu-card .menu-img {
  background: linear-gradient(135deg, var(--green-wash) 0%, var(--gold-wash) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  height: 110px;
  border-bottom: 1px solid var(--line);
}
.menu-card .menu-body {
  padding: 14px 16px 16px;
}
.menu-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.4;
}
.menu-card p {
  font-size: .8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── Sub-category label (shops page) ─────────────────────────────────── */
.subcat-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-line);
}
.subcat-label:first-child { margin-top: 4px; }
.subcat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-wash);
  border: 1px solid rgba(26,92,52,0.20);
  padding: 5px 14px;
  border-radius: 99px;
}
.subcat-line {
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

/* ── Subcat "view all" link ──────────────────────────────────────────── */
.subcat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--gold-line);
  transition: background .18s, color .18s;
}
.subcat-link:hover { background: var(--gold-wash); color: var(--gold-deep); }

/* ── Detail card (sub-pages) ────────────────────────────────────────── */
.detail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-card .card-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.detail-card h3 { margin: 0; }
.detail-card p  { margin: 0; flex: 1; }
.card-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-meta span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.card-meta a { color: var(--gold); }
.card-meta a:hover { color: var(--gold-deep); }

/* ── Back link (sub-pages) ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,253,245,0.80);
  text-decoration: none;
  margin-bottom: 14px;
  transition: color .18s;
}
.back-link:hover { color: #fff; }

/* ── PDPA Cookie Consent Banner ─────────────────────────────────────── */
#consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--green-deep);
  border-top: 3px solid var(--gold-light);
  padding: 18px clamp(16px, 4vw, 48px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
#consent-banner.consent-visible {
  transform: translateY(0);
  opacity: 1;
}
#consent-banner.consent-hiding {
  transform: translateY(100%);
  opacity: 0;
}
.consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.consent-text { flex: 1; min-width: 220px; }
.consent-title {
  color: #fffdf5;
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 6px;
}
.consent-desc {
  color: rgba(255,253,245,0.75);
  font-size: .8rem;
  line-height: 1.65;
  margin: 0;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.consent-btn {
  padding: 10px 22px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.consent-decline {
  background: transparent;
  color: rgba(255,253,245,0.80);
  border-color: rgba(255,253,245,0.35);
}
.consent-decline:hover {
  background: rgba(255,253,245,0.10);
  color: #fffdf5;
  border-color: rgba(255,253,245,0.65);
}
.consent-accept {
  background: var(--gold-light);
  color: var(--green-deep);
  border-color: var(--gold-light);
}
.consent-accept:hover {
  background: #ffd97a;
  border-color: #ffd97a;
}
@media (max-width: 600px) {
  .consent-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .consent-actions { width: 100%; justify-content: flex-end; }
}

/* ── Site footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,253,245,0.75);
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 64px clamp(20px, 5vw, 80px) 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fffdf5;
  margin-bottom: 12px;
}
.footer-brand p { font-size: .88rem; line-height: 1.8; color: rgba(255,253,245,0.72); }
.footer-col h4 { color: var(--gold-light); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,253,245,0.65); font-size: .88rem; margin-bottom: 10px; transition: color .18s; }
.footer-col a:hover { color: var(--gold-light); }
.site-footer p { color: rgba(255,253,245,0.72); }
.footer-bottom {
  border-top: 1px solid rgba(255,253,245,0.10);
  padding: 20px clamp(20px, 5vw, 80px);
  text-align: center;
  font-size: .80rem;
  color: rgba(255,253,245,0.45);
}

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

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { padding: 0 clamp(24px, 5vw, 60px) 64px; }
  .hero-copy  { padding-top: 64px; padding-bottom: 40px; min-height: 60vh; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --section-gap: 64px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .months-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 36px; }
}

@media (max-width: 720px) {
  :root { --section-gap: 52px; --card-pad: 20px; }
  .grid-3, .grid-2, .grid-12, .grid-21, .media-split { grid-template-columns: 1fr; }
  .hero-tiles { grid-template-columns: 1fr; }
  .months-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .highlight-strip { padding: 28px 20px; }
  .cta-banner { padding: 32px 24px; }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,253,245,0.97);
    border-bottom: 1px solid var(--gold-line);
    padding: 16px;
    gap: 4px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(100,60,0,0.10);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; padding-top: 8px; border-top: 1px solid var(--gold-line); justify-content: center; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2rem; }
  .btn { padding: 10px 20px; font-size: .88rem; }
}
