/* =========================================================
   BUDDHA DHATU JADI — BANDARBAN GOLDEN TEMPLE
   Premium Heritage Stylesheet
   ========================================================= */

:root {
  --gold: #C9A14A;
  --gold-deep: #A4822F;
  --gold-soft: #E7D9A6;
  --ivory: #FAF6EC;
  --ivory-warm: #F4ECD8;
  --burgundy: #4A0F1A;
  --burgundy-deep: #350810;
  --stone: #6E6A60;
  --stone-light: #9F9A8E;
  --forest: #1F3A2E;
  --forest-light: #2E5A47;
  --saffron: #E08C36;
  --ink: #1B1612;
  --paper: #FFFCF6;
  --line: rgba(27, 22, 18, 0.10);
  --shadow-sm: 0 6px 20px rgba(27, 22, 18, 0.06);
  --shadow-md: 0 18px 50px rgba(27, 22, 18, 0.10);
  --shadow-lg: 0 30px 80px rgba(27, 22, 18, 0.16);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { color: #3a322b; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* =====================  ACCESS PORTAL  ===================== */

.portal {
  position: fixed; inset: 0;
  background: #0a0805 url('../images/Buddha-Dhatu-Jadi-Golden-Temple.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  overflow: hidden;
  padding: 24px;
}
.portal::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,0,0,0.25), rgba(0,0,0,0.78) 75%),
    linear-gradient(180deg, rgba(10,8,5,0.55), rgba(10,8,5,0.85));
  z-index: 1;
}
.portal::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(201,161,74,0.22), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.portal-panel {
  position: relative; z-index: 2;
  width: 100%; max-width: 520px;
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201,161,74,0.5);
  padding: 64px 52px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.4);
  animation: portalRise 1.2s var(--ease) both;
}
@keyframes portalRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.portal-mark {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.portal-mark::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201,161,74,0.5);
  border-radius: 50%;
}
.portal-mark span {
  font-family: var(--serif); font-size: 28px; color: var(--gold-deep);
  font-weight: 500; letter-spacing: 0.05em;
}
.portal-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
  font-weight: 500;
}
.portal h1 {
  font-size: 38px;
  color: var(--burgundy);
  margin-bottom: 10px;
  font-weight: 500;
}
.portal-sub {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}
.portal-form { display: flex; flex-direction: column; gap: 14px; }
.portal-input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid rgba(74, 15, 26, 0.18);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.portal-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.6); }
.portal-input.shake { animation: shake .5s; border-color: #B0381F; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.portal-btn {
  padding: 16px 24px;
  background: var(--burgundy);
  color: var(--ivory);
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), letter-spacing .3s var(--ease);
}
.portal-btn:hover { background: var(--burgundy-deep); letter-spacing: 0.38em; }
.portal-error {
  font-size: 12px;
  color: #B0381F;
  height: 16px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity .3s;
}
.portal-error.show { opacity: 1; }
.portal-foot {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.portal-foot span { color: var(--gold-deep); }

/* =====================  HEADER NAV  ===================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.site-header.transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-header.transparent .nav-link,
.site-header.transparent .brand-name,
.site-header.transparent .brand-sub { color: #fff; }
.site-header.transparent .nav-link::after { background: var(--gold-soft); }
.site-header.scrolled.transparent {
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled.transparent .nav-link,
.site-header.scrolled.transparent .brand-name,
.site-header.scrolled.transparent .brand-sub { color: var(--ink); }
.site-header.scrolled.transparent .brand-sub { color: var(--gold-deep); }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  max-width: 1480px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 20px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(201,161,74,0.4);
  border-radius: 50%;
}
.site-header.transparent .brand-mark { border-color: var(--gold-soft); color: var(--gold-soft); }
.site-header.scrolled.transparent .brand-mark { border-color: var(--gold); color: var(--gold-deep); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}

.nav-menu {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-link {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link.active { color: var(--gold-deep); }

.nav-cta {
  background: var(--burgundy);
  color: var(--ivory) !important;
  padding: 12px 26px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--burgundy-deep); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.site-header.transparent:not(.scrolled) .nav-toggle span { background: #fff; }

/* =====================  BUTTONS / SHARED  ===================== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .35s var(--ease);
  font-weight: 500;
}
.btn-gold {
  background: var(--gold);
  color: var(--burgundy);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--ivory); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: var(--ivory); color: var(--burgundy); border-color: var(--ivory); }
.btn-dark {
  background: var(--burgundy);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--burgundy-deep); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow.on-dark { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.section-lead {
  font-size: 17px;
  color: #4d433a;
  max-width: 720px;
  line-height: 1.75;
}
.divider-orn {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin: 0 auto 28px;
  width: fit-content;
}
.divider-orn .line {
  width: 60px; height: 1px; background: var(--gold);
}
.divider-orn .dot {
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.divider-orn .dot.fill { background: var(--gold); }

/* =====================  HERO  ===================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 140px 40px 90px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--gold-soft);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 28px;
  color: #fff;
  letter-spacing: -0.015em;
  max-width: 1100px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  max-width: 620px;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  bottom: 40px; left: 40px; right: 40px;
  display: flex; justify-content: space-between; align-items: end;
  z-index: 2;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-meta .scroll-cue {
  display: flex; align-items: center; gap: 10px;
}
.hero-meta .scroll-cue::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-soft));
  display: inline-block;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Page Hero (smaller version) */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: 80px;
}
.page-hero .hero-bg img { animation: heroZoom 14s var(--ease) forwards; }
.page-hero .hero-content { padding: 100px 40px 80px; }
.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  margin-bottom: 18px;
  color: #fff;
}
.page-hero h1 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.page-hero .hero-eyebrow { color: var(--gold-soft); }
.page-hero .hero-sub { color: rgba(255,255,255,0.88); }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.72); }
.page-hero .breadcrumb a:hover { color: var(--gold-soft); }
.page-hero .breadcrumb .sep { width: 14px; height: 1px; background: var(--gold-soft); }

/* =====================  SECTIONS  ===================== */

section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }

.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-head .section-lead { margin: 0 auto; }

/* PILLARS GRID (home) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  text-align: left;
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--ivory); }
.pillar .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  margin-bottom: 22px;
}
.pillar h3 {
  font-size: 24px;
  color: var(--burgundy);
  margin-bottom: 14px;
  font-weight: 500;
}
.pillar p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4d433a;
}

/* SPLIT (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1.2s var(--ease);
}
.split-media:hover img { transform: scale(1.04); }
.split-media .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--ivory);
  color: var(--burgundy);
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.split-media.tall { aspect-ratio: 3 / 4.5; }
.split-text h2 { margin-bottom: 28px; }
.split-text p { margin-bottom: 18px; font-size: 16px; line-height: 1.85; }
.split-text ul { list-style: none; margin: 24px 0; }
.split-text ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.split-text ul li::before {
  content: "✦";
  color: var(--gold);
  font-size: 12px;
  line-height: 1.6;
}

/* QUOTE BAND */
.quote-band {
  background: var(--burgundy);
  color: var(--ivory);
  padding: 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before, .quote-band::after {
  content: ""; position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(201,161,74,0.18);
  border-radius: 50%;
}
.quote-band::before { top: -140px; left: -140px; }
.quote-band::after { bottom: -140px; right: -140px; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  color: var(--ivory);
  position: relative;
  z-index: 1;
}
.quote-band cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
}
.quote-band .om {
  font-family: var(--serif);
  font-size: 60px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
  position: relative;
  z-index: 1;
}

/* HIGHLIGHTS SLIDER */
.highlights {
  padding: 120px 0;
  background: var(--ivory);
}
.slider {
  position: relative;
  margin-top: 50px;
}
.slider-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 0 30px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.slide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.slide-card .img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.slide-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1.1s var(--ease);
}
.slide-card:hover .img-wrap img { transform: scale(1.06); }
.slide-card .body {
  padding: 28px;
}
.slide-card .body h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--burgundy);
}
.slide-card .body p {
  font-size: 14px;
  color: #5a5048;
  line-height: 1.7;
}
.slider-controls {
  display: flex; gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.slider-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--burgundy);
  transition: all .3s var(--ease);
}
.slider-btn:hover { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }

/* VISITOR ESSENTIALS */
.essentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.essential-card {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--gold);
}
.essential-card .ico {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.essential-card h4 {
  font-size: 18px;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.essential-card p {
  font-size: 14px;
  color: #5a5048;
}

/* FEATURED STORY */
.story {
  background: linear-gradient(135deg, var(--ivory-warm) 0%, var(--ivory) 100%);
}
.story-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-media {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  position: relative;
}
.story-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.story-media .frame {
  position: absolute; inset: 16px;
  border: 1px solid rgba(201,161,74,0.6);
  pointer-events: none;
}

/* MANAGEMENT */
.management {
  background: var(--ivory);
}
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 70px;
}
.mgmt-card {
  background: var(--paper);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
  border: 1px solid var(--line);
}
.mgmt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mgmt-photo {
  width: 220px; height: 100%;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
.mgmt-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s var(--ease);
}
.mgmt-card:hover .mgmt-photo img { transform: scale(1.04); }
.mgmt-body {
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.mgmt-eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.mgmt-name {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--burgundy);
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.15;
}
.mgmt-role {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.55;
  margin-bottom: 18px;
}
.mgmt-link {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  width: fit-content;
}
.mgmt-link:hover { color: var(--burgundy); border-color: var(--burgundy); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 8, 5, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9000;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper);
  width: 100%; max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform .5s var(--ease);
  box-shadow: 0 60px 120px rgba(0,0,0,0.4);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.modal-photo {
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
}
.modal-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.modal-head-text {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.modal-head-text h2 {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--burgundy);
  margin-bottom: 8px;
  font-weight: 500;
}
.modal-head-text .role {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.55;
}
.modal-body { padding: 40px 44px 50px; }
.modal-body h3 {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 30px 0 14px;
  font-family: var(--sans);
  font-weight: 600;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #3d342c;
  margin-bottom: 14px;
}
.modal-body ul {
  list-style: none;
  margin: 12px 0 18px;
}
.modal-body ul li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.7;
  color: #3d342c;
  position: relative;
}
.modal-body ul li::before {
  content: "✦";
  color: var(--gold);
  font-size: 11px;
  position: absolute;
  left: 0; top: 11px;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 10;
  transition: all .3s var(--ease);
}
.modal-close:hover { background: var(--burgundy); border-color: var(--burgundy); }

/* TIMELINE (history page) */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 80px;
}
.tl-marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold);
  margin: 0 auto;
}
.tl-card {
  background: var(--paper);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.tl-item:nth-child(odd) .tl-card:first-child { text-align: right; }
.tl-item:nth-child(even) > div:first-child { visibility: hidden; }
.tl-item:nth-child(odd) > div:last-child { visibility: hidden; }
.tl-card h3 { font-size: 24px; color: var(--burgundy); margin-bottom: 8px; }
.tl-card .year {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.tl-card p { font-size: 14.5px; line-height: 1.75; color: #4d433a; }

/* ARCHITECTURE FEATURES */
.arch-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.arch-features .pillar {
  padding: 56px 40px;
}

.arch-spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.spec-card {
  background: var(--paper);
  padding: 36px 30px;
  text-align: center;
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.spec-card:hover { border-color: var(--gold); }
.spec-card .big {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold-deep);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}
.spec-card h4 {
  font-size: 16px;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.spec-card p {
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.05em;
}

/* VISIT INFO */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.info-card {
  background: var(--paper);
  padding: 40px 34px;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.info-card .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.28em;
  margin-bottom: 18px;
}
.info-card h3 {
  font-size: 22px;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.info-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #4d433a;
}
.info-card ul { list-style: none; margin-top: 8px; }
.info-card ul li {
  padding: 8px 0;
  font-size: 14px;
  color: #4d433a;
  display: flex; gap: 10px;
}
.info-card ul li::before { content: "—"; color: var(--gold); }

/* GALLERY */
.masonry {
  column-count: 3;
  column-gap: 20px;
  margin-top: 50px;
}
.masonry .m-item {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.masonry .m-item img {
  width: 100%;
  display: block;
  transition: transform .9s var(--ease);
}
.masonry .m-item:hover img { transform: scale(1.05); }
.masonry .m-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(74,15,26,0.45));
  opacity: 0; transition: opacity .4s var(--ease);
}
.masonry .m-item:hover::after { opacity: 1; }
.masonry .m-item .cap {
  position: absolute;
  bottom: 18px; left: 22px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry .m-item:hover .cap { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 8, 5, 0.95);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
  padding: 40px;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox .lb-close {
  position: absolute; top: 30px; right: 30px;
  width: 50px; height: 50px;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent; color: #fff;
  cursor: pointer; font-size: 24px;
}
.lightbox .lb-close:hover { background: var(--burgundy); border-color: var(--burgundy); }
.lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 80px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent; color: #fff;
  cursor: pointer; font-size: 22px;
}
.lightbox .lb-nav.prev { left: 30px; }
.lightbox .lb-nav.next { right: 30px; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.1); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 60px;
}
.contact-info-card {
  background: var(--burgundy);
  color: var(--ivory);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: ""; position: absolute;
  width: 300px; height: 300px;
  bottom: -150px; right: -150px;
  border: 1px solid rgba(201,161,74,0.2);
  border-radius: 50%;
}
.contact-info-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ivory);
  margin-bottom: 14px;
}
.contact-info-card .lead {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  line-height: 1.7;
}
.contact-row {
  display: flex; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: flex-start;
  position: relative; z-index: 1;
}
.contact-row .ico {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-row .label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.contact-row .val {
  font-size: 16px;
  color: var(--ivory);
  font-family: var(--serif);
}
.contact-row a { color: var(--ivory); }
.contact-row a:hover { color: var(--gold-soft); }

.form-card {
  background: var(--paper);
  padding: 56px 50px;
  border: 1px solid var(--line);
}
.form-row { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input, .form-field textarea, .form-field select {
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { margin-top: 14px; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 90px 0 30px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-mark { border-color: var(--gold); color: var(--gold-soft); }
.footer-brand .brand-mark::after { border-color: rgba(201,161,74,0.3); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--gold-soft); }
.footer-brand p {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  max-width: 360px;
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
  font-family: var(--sans);
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer-col ul li a:hover { color: var(--gold-soft); }
.footer-contact .row {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact .row span:first-child { color: var(--gold); }
.footer-contact a { color: rgba(255,255,255,0.78); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-soft); }
.footer-bottom a:hover { color: var(--gold); }
.footer-credit {
  font-size: 12px;
  letter-spacing: 0.18em;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* DISCOVER BANDARBAN */
.bandarban-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bb-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}
.bb-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1.1s var(--ease);
}
.bb-card:hover img { transform: scale(1.07); }
.bb-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.78));
}
.bb-card .text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 30px;
  color: #fff;
  z-index: 1;
}
.bb-card .text .num {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.bb-card .text h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 500;
}
.bb-card .text p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.itinerary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}
.itin-day {
  background: var(--paper);
  padding: 40px 38px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.itin-day h3 {
  font-size: 22px;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.itin-day .sub {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}
.itin-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  gap: 16px;
}
.itin-step .time {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-deep);
}
.itin-step .desc h5 { font-size: 15px; color: var(--burgundy); margin-bottom: 4px; }
.itin-step .desc p { font-size: 13.5px; color: #5a5048; line-height: 1.65; }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--ivory);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/Buddha_Dhatu_Jadi_(01).jpg') center/cover;
  opacity: 0.10;
  mix-blend-mode: overlay;
}
.cta-band h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--ivory);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto 40px;
  position: relative; z-index: 1;
}
.cta-band .btn { position: relative; z-index: 1; }

/* FADE-IN ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .pillars, .arch-features { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar { border-bottom: 1px solid var(--line); }
  .pillar:nth-last-child(-n+2) { border-bottom: none; }
  .essentials { grid-template-columns: repeat(2, 1fr); }
  .arch-spec, .info-grid, .bandarban-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 2; }
}

@media (max-width: 820px) {
  section { padding: 90px 0; }
  .container, .narrow { padding: 0 24px; }
  .nav-wrap { padding: 16px 24px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--paper);
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open li { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .split, .story-inner, .contact-grid, .itinerary { grid-template-columns: 1fr; gap: 50px; }
  .split.flip { direction: ltr; }
  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 20px; }
  .tl-item:nth-child(even) > div:first-child,
  .tl-item:nth-child(odd) > div:last-child { display: none; }
  .tl-marker { margin: 0; }
  .tl-item:nth-child(odd) .tl-card:first-child { text-align: left; }
  .mgmt-grid { grid-template-columns: 1fr; gap: 32px; }
  .mgmt-card { grid-template-columns: 1fr; }
  .mgmt-photo { width: 100%; height: 320px; min-height: 0; }
  .modal-head { grid-template-columns: 1fr; }
  .modal-photo { aspect-ratio: 16 / 10; max-height: 280px; }
  .essentials, .arch-spec, .info-grid, .bandarban-cards, .pillars, .arch-features { grid-template-columns: 1fr; }
  .pillar, .arch-features .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 28px 26px 36px; }
  .form-card { padding: 36px 28px; }
  .contact-info-card { padding: 40px 32px; }
  .masonry { column-count: 1; }
  .hero-content { padding: 130px 24px 70px; }
  .hero-meta { left: 24px; right: 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .portal-panel { padding: 48px 32px; }
  .portal h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .slide-card { flex: 0 0 86vw; }
  .nav-wrap { padding: 14px 20px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9px; }
  .brand-mark { width: 38px; height: 38px; font-size: 16px; }
}

/* PRINT */
@media print {
  .site-header, .site-footer, .nav-cta { display: none; }
}
