:root {
  --paper: #fff7e8;
  --ink: #182522;
  --green: #315f4f;
  --night: #142d31;
  --white: #fffaf0;
  --gold: #e8ba50;
  --sand: #f1d9a2;
  --coral: #c85f4f;
  --muted: #68736e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: linear-gradient(
    180deg,
    rgba(17, 38, 41, .88),
    rgba(17, 38, 41, .45) 78%,
    transparent
  );
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  letter-spacing: .04em;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

nav a {
  opacity: .86;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  background: rgba(20,45,49,.5);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

/* HERO */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 6vw, 92px) 76px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(0deg, var(--paper), transparent);
  z-index: -1;
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  background-image: url("assets/belitung_aerial.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 26, 28, .74), rgba(8, 26, 28, .18) 48%, rgba(8, 26, 28, .5)),
    linear-gradient(0deg, rgba(8, 26, 28, .65), transparent 48%);
}

.hero-content {
  max-width: 940px;
  color: var(--white);
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4.8rem, 13vw, 12rem);
  text-shadow: 0 22px 54px rgba(0, 0, 0, .34);
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 32px;
  color: rgba(255, 250, 240, .9);
  font-size: clamp(1.06rem, 2vw, 1.38rem);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 250, 240, .6);
  background: rgba(255, 250, 240, .12);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.hero-link:hover,
.hero-link:focus-visible {
  background: rgba(255, 250, 240, .22);
}

/* SECTIONS */

.section {
  padding: clamp(76px, 10vw, 144px) clamp(20px, 6vw, 92px);
}

.section-head {
  max-width: 840px;
  margin-bottom: 40px;
}

h2 {
  color: var(--green);
  font-size: clamp(2.6rem, 6vw, 6rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.split > p {
  max-width: 820px;
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  line-height: 1.35;
}

.map-card {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 28px;
  color: var(--white);
  background-image: url("images/map-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 28px 60px rgba(24, 37, 34, .16);
}

.map-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.map-card small {
  max-width: 280px;
  color: rgba(255, 250, 240, .86);
  font-size: .98rem;
}

.map-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 12px rgba(200, 95, 79, .22);
}

.dark {
  color: var(--white);
  background: var(--night);
}

.dark h2,
.dark .eyebrow {
  color: var(--sand);
}

/* LANDSCAPE */

.feature-grid,
.gallery,
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.gallery article,
.menu-grid article {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 250, 240, .08);
  border: 1px solid rgba(255, 250, 240, .15);
}

.feature-grid article {
  padding: 0 0 26px;
}

.feature-grid article img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 22px;
  background: rgba(255,255,255,.04);
}

.feature-grid article h3,
.feature-grid article p {
  padding-left: 24px;
  padding-right: 24px;
}

.feature-grid p,
.timeline p {
  color: rgba(255, 250, 240, .75);
}

/* FLORA */

.flora-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: stretch;
}

.simpor {
  min-height: 560px;
  padding: 32px;
  display: grid;
  align-content: end;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(140deg, #234d3f, #57845d 55%, #e8ba50);
}

.simpur-image {
  width: min(520px, 90%);
  max-height: 420px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 34px;
}

.simpor p {
  color: rgba(255, 250, 240, .78);
}

.flora-chips-wrap {
  display: grid;
  gap: 24px;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.chip-list li {
  padding: 14px 18px;
  color: var(--green);
  background: #fff8e9;
  border: 1px solid rgba(49, 95, 79, .16);
  box-shadow: 0 14px 34px rgba(24, 37, 34, .07);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.chip-list li:hover,
.chip-list li:focus,
.chip-list li.active {
  outline: 2px solid rgba(49,95,79,.35);
  background: #fff1cf;
}

.flora-preview {
  max-width: 520px;
  overflow: hidden;
  background: #fff8e9;
  border: 1px solid rgba(49,95,79,.16);
  box-shadow: 0 16px 38px rgba(24,37,34,.08);
}

.flora-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.flora-preview p {
  padding: 12px 16px;
  color: var(--green);
  font-weight: 700;
}

/* CULTURE */

.culture {
  background:
    linear-gradient(90deg, rgba(49, 95, 79, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 79, .08) 1px, transparent 1px),
    #fff7e8;
  background-size: 48px 48px;
}

.culture-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 28px;
}

.culture-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 900px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0,0,0,.4);
  padding: clamp(14px, 3vw, 28px);
  border-radius: 8px;
}

.overlay h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 5vw, 4.2rem);
}

.culture .gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery article {
  padding: 28px;
  background: rgba(255, 250, 240, .82);
  border-color: rgba(49, 95, 79, .14);
}

.gallery p {
  color: var(--muted);
}

/* HISTORY */

.history {
  background:
    linear-gradient(rgba(20, 45, 49, .92), rgba(20, 45, 49, .94)),
    url("assets/hero-belitung.svg") center / cover fixed;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 250, 240, .2);
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(180px, .25fr) minmax(0, .75fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 250, 240, .2);
}

.timeline span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.history-card-image {
  width: 100%;
  margin-top: 22px;
}

.history-card-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.image-row img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.04);
}

/* CUISINE */

.cuisine {
  background: linear-gradient(180deg, #f8f1e4, #f1d9a2);
}

.cuisine-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  margin: 20px 0 32px;
}

.menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-grid article {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 250, 240, .9);
  border-color: rgba(49, 95, 79, .14);
  border-top: 8px solid var(--coral);
}

.menu-grid article img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fffaf0;
}

.menu-grid article h3 {
  padding: 18px 20px 10px;
}

.menu-grid article p {
  padding: 0 20px 22px;
  color: var(--muted);
}

/* FOOTER */

footer {
  padding: 30px clamp(20px, 6vw, 92px);
  color: rgba(255, 250, 240, .72);
  background: #0f2427;
}

/* TABLET */

@media (max-width: 900px) {
  .split,
  .flora-layout,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .culture .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history {
    background-attachment: scroll;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    padding: 14px 18px;
    background: rgba(15,36,39,.95);
  }

  .nav-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: rgba(15,36,39,.97);
    box-shadow: 0 14px 24px rgba(0,0,0,.18);
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .76rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .hero {
    min-height: 100svh;
    padding: 150px 20px 100px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 70px 20px;
  }

  .split > p {
    font-size: 1.3rem;
  }

  .map-card {
    min-height: 280px;
  }

  .feature-grid,
  .culture .gallery,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .gallery article,
  .menu-grid article {
    min-height: auto;
  }

  .simpor {
    min-height: 500px;
  }
  .simpur-image {
    width: min(360px, 92%);
    max-height: 340px;
  }

  .chip-list {
    gap: 8px;
  }

  .chip-list li {
    flex: 1 1 calc(50% - 8px);
    padding: 11px 12px;
    font-size: .9rem;
  }

  .flora-preview {
    max-width: none;
  }

  .overlay {
    padding: 14px;
  }

  .overlay h2 {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }

  .image-row {
    grid-template-columns: 1fr;
  }

  .image-row img {
    height: auto;
  }

  .cuisine-image {
    max-height: none;
  }


  .image-row {
    grid-template-columns: 1fr;
  }

  .image-row img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }

  footer {
    text-align: center;
  }
  img {
      -webkit-user-drag: none;
   user-select: none;
  }	
}

/* Colonial Traces Feature
   Kept inside the existing dark History timeline so colours and spacing
   remain consistent with the rest of the homepage. */

.history-feature {
  background: rgba(255, 250, 240, .025);
}

.history-feature__content h3 {
  margin: 0 0 18px;
  color: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

.history-feature__content p {
  margin: 0 0 16px;
  color: rgba(255, 250, 240, .78);
}

.history-period {
  display: block;
  margin-top: 9px;
  color: rgba(255, 250, 240, .58);
  font-size: .78rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: .03em;
}

.history-feature__image {
  width: 100%;
  margin-top: 24px;
}

.history-feature__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid rgba(232, 186, 80, .78);
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}

.history-source {
  display: block;
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 250, 240, .52);
  font-size: .78rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .history-feature__content h3 {
    margin-top: 4px;
  }
}
