/* ===== Theme 1 — PSN Demo (Theme Park Style) ===== */
/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-alt: #334155;
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-accent: #38bdf8;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #475569;
  --header-bg: rgba(15, 23, 42, 0.9);
  --hero-overlay: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.75) 50%,
    #0f172a 100%
  );
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --btn-ghost-hover-bg: rgba(245, 158, 11, 0.1);
}

/* Light theme */
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #e2e8f0;
  --color-primary: #d97706;
  --color-primary-hover: #b45309;
  --color-accent: #0284c7;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --header-bg: rgba(248, 250, 252, 0.95);
  --hero-overlay: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.3) 0%,
    rgba(248, 250, 252, 0.7) 50%,
    #f8fafc 100%
  );
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --btn-ghost-hover-bg: rgba(217, 119, 6, 0.12);
}

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-bg) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg) !important;
}

/* Nav dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-trigger:hover {
  color: var(--color-primary);
}

.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.2rem;
}

.nav-item-dropdown.nav-dropdown-open .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 50;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.nav-dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  text-decoration: none;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.lang-toggle-label {
  pointer-events: none;
}

/* Header actions: lang + theme (+ menu on mobile) grouped together */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.theme-icon {
  font-size: 1.25rem;
  line-height: 1;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="light"] .theme-icon-light {
  display: inline;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
}

.hero-tagline {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
}

.hero-desc {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--btn-ghost-hover-bg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ----- Layout ----- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
}

.section-lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ----- Destination cards ----- */
.destinations {
  background: var(--color-surface);
}

.destination-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 16 / 10;
  background: var(--color-surface-alt);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.card-meta,
.card-hours {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-desc {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ----- Visit info ----- */
.visit-info {
  background: var(--color-bg);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.visit-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.visit-block p,
.visit-block ul {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list strong {
  color: var(--color-primary);
  margin-left: 0.5rem;
}

.visit-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

/* ----- Programmes ----- */
.programmes {
  background: var(--color-surface);
}

.programme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.programme-card .card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.programme-card .card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Galleries ----- */
.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.gallery-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.gallery-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- CTA section ----- */
.cta-section {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  text-align: center;
}

.cta-section .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-block {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-block p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-block a {
  color: var(--color-accent);
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ----- Full pages (Phase 2: Galeri, Program, Aktiviti) ----- */
.page-main {
  padding: calc(var(--header-height) + 1.5rem) 0 3rem;
}

.page-back {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.page-back a {
  color: var(--color-accent);
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
}

.page-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 56ch;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.content-subtitle {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.content-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.content-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-list h3,
.content-list h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.content-list h4 {
  font-size: 1rem;
}

.content-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.content-notice {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.content-notice h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.content-notice p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.content-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.content-table th,
.content-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.content-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-alt);
}

.content-table td {
  color: var(--color-text-muted);
}

.content-note {
  margin-top: 0.75rem !important;
  font-size: 0.85rem !important;
}

.activity-list .activity-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.activity-list .activity-meta {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

/* Obskura XR exhibit blocks (image + text) */
.obsukura-list .obsukura-item {
  display: grid;
  grid-template-columns: minmax(200px, 360px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.obsukura-list .obsukura-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.obsukura-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-alt);
}

.obsukura-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 400 / 260;
  object-fit: cover;
}

.obsukura-body h4 {
  margin: 0 0 0.5rem;
}

.obsukura-body p {
  margin: 0;
}

@media (max-width: 640px) {
  .obsukura-list .obsukura-item {
    grid-template-columns: 1fr;
  }

  .obsukura-image {
    max-width: 100%;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-list a {
    padding: 0.75rem;
    display: block;
  }

  .nav-item-dropdown {
    position: static;
  }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 0.75rem;
    justify-content: space-between;
    text-align: left;
  }

  .nav-dropdown {
    position: static;
    min-width: auto;
    margin: 0;
    padding: 0 0 0 1rem;
    border: none;
    box-shadow: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.25s ease;
  }

  .nav-item-dropdown.nav-dropdown-open .nav-dropdown {
    max-height: 320px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .nav-dropdown a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .menu-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }

  .hero {
    min-height: 75vh;
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
