/* THE BALI ROUTE — style.css */

:root {
  --sand: #F5EDD6;
  --ocean: #1A4A5C;
  --reef: #2D7D8A;
  --coral: #D4704A;
  --dark: #0F2530;
  --mist: #8BADA8;
  --text: #2C1810;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #FAF8F3;
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ── NAV ── */
nav {
  width: 100%;
  height: 56px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  border-bottom: 3px solid var(--ocean);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--sand);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  height: 56px;
}

.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 237, 214, 0.8);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(245, 237, 214, 0.08);
}

.nav-links li:first-child a {
  border-left: 1px solid rgba(245, 237, 214, 0.08);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--ocean);
  color: var(--sand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 22px;
  cursor: pointer;
}

/* ── HERO (Home) ── */
#home {
  height: 350px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(45, 125, 138, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #0F2530 0%, #1A4A5C 50%, #0F2530 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 32px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--sand);
}

.hero-title em {
  font-style: italic;
  color: var(--coral);
  display: block;
}

/* ── PAGE HERO (Gallery, Merch, Komentar) ── */
.page-hero {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  text-align: center;
  padding-top: 20px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 37, 48, 0.75) 0%, rgba(45, 125, 138, 0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px;
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  color: var(--sand);
  margin: 6px 0 10px;
}

.page-hero-title em {
  font-style: italic;
  color: var(--coral);
}

.hero-eyebrow-sm {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mist);
}

/* ── HOME ── */
.home-section {
  background: #FAF8F3;
  padding: 80px;
}

.home-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}

.home-row:last-child {
  margin-bottom: 0;
}

.home-row.reverse {
  flex-direction: row-reverse;
}

.home-row-img {
  flex: 0 0 420px;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(26, 74, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-row-img-placeholder {
  font-size: 64px;
  color: rgba(26, 74, 92, 0.2);
}

.home-row-body {
  flex: 1;
}

.home-row-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.home-row-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(44, 24, 16, 0.6);
}

/* ── GALLERY ── */
/* ── GALLERY ── */
.gallery-section {
  padding: 60px 80px;
  background: #FAF8F3;
}

.gallery-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ocean);
  text-align: center;
  margin-bottom: 28px;
}

.gallery-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* CARD */
.gallery-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none; /* biar <a> ga biru */
  color: inherit;
  display: block;
  transition: 0.3s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* IMAGE */
.gallery-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 48px;
  color: rgba(0, 0, 0, 0.15);
}

/* BODY */
.gallery-card-body {
  padding: 16px 18px 20px;
}

.gallery-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.gallery-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(44, 24, 16, 0.55);
  margin-bottom: 12px;
}

.gallery-card-meta {
  margin-top: 30px;
  font-size: 13px;
  color: var(--ocean);
}

.gallery-card-label {
  font-weight: 700;
  color: var(--coral);
}


/* ── MODAL (POPUP) ── */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

/* ini kunci biar muncul */
.gallery-modal:target {
  display: flex;
}

.gallery-modal-box {
  width: 900px;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* tombol close */
.gallery-close {
  position: absolute;
  top: 10px;
  right: 15px;
  text-decoration: none;
  font-size: 20px;
  color: #333;
  background: #fff;
  border-radius: 50%;
  padding: 5px 10px;
}

/* kiri (gambar besar) */
.gallery-modal-left {
  width: 50%;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.gallery-modal-left img {
  max-width: 100%;
  border-radius: 8px;
}

/* kanan (detail) */
.gallery-modal-right {
  width: 50%;
  padding: 25px;
}

.gallery-modal-right h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.gallery-modal-right p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(44,24,16,0.6);

}

/* SECTION */
.merch-section {
  padding: 60px 80px;
  background: #FAF8F3;
}

.merch-section-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

/* GRID */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.merch-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.merch-img-wrap {
  height: 180px;
  background: #eee;
}

.merch-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BODY */
.merch-body {
  padding: 15px;
}

.merch-name {
  font-size: 18px;
  font-weight: bold;
}

.merch-price {
  font-size: 14px;
  color: #1a4a5c;
  margin-bottom: 8px;
}

.merch-desc {
  font-size: 13px;
  color: #555;
}

/* READ MORE */
.merch-readmore {
  display: inline-block;
  margin-top: 5px;
  color: #2e7d32;
  cursor: pointer;
  font-size: 13px;
}

.merch-readmore:hover {
  text-decoration: underline;
}

/* BUTTON */
.merch-buy {
  display: block;
  margin-top: 12px;
  padding: 10px;
  background: #5a9e3a;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}

/* MODAL */
.merch-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.merch-modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  position: relative;
}

.merch-close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

/* SECTION */
.komentar-section {
  padding: 60px 20px;
  background: #FAF8F3;
}

/* CENTER CONTAINER */
.komentar-container {
  max-width: 700px;
  margin: 0 auto;
}

/* CARD */
.komen-form-card,
.komen-list-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* TITLE */
.komen-form-title,
.komen-list-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* FORM */
.komen-form input,
.komen-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
}

/* BUTTON */
.komen-submit {
  padding: 10px 20px;
  background: #0f2d36;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* LIST */
.komen-list {
  list-style: none;
  padding: 0;
}

.komen-item {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* HEADER */
.komen-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.komen-username {
  font-weight: bold;
}

.komen-date {
  font-size: 12px;
  color: #888;
}

/* ISI */
.komen-isi {
  font-size: 14px;
  color: #444;
}

/* ALERT */
.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.form-error {
  background: #fdecea;
  color: #c62828;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
/* ── FOOTER ── */
.footer-bottom {
  background: var(--dark);
  padding: 16px 60px;
  text-align: center;
  border-top: 2px solid var(--ocean);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(245, 237, 214, 0.5);
  letter-spacing: 1px;
}

/* ── MISC ── */
.empty-msg {
  color: rgba(44, 24, 16, 0.4);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 60px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    height: auto;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 8px 0;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    height: auto;
  }

  .nav-links a {
    padding: 12px 28px;
    border: none;
    height: auto;
  }

  .home-section {
    padding: 40px 24px;
  }

  .home-row,
  .home-row.reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
  }

  .home-row-img {
    flex: none;
    width: 100%;
    height: 240px;
  }

  .gallery-section,
  .merch-section,
  .komentar-section {
    padding: 40px 24px;
  }
}

/* ── HOME KOMENTAR SECTION ── */
.home-komen-section {
  background: #FAF8F3;
  padding: 60px 80px;
  border-top: 1px solid rgba(26, 74, 92, 0.1);
}

.home-komen-wrap {
  max-width: 680px;
}

.home-komen-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.home-komen-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-komen-form label {
  font-size: 13px;
  color: var(--text);
}

.home-komen-form input,
.home-komen-form textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
  background: #fff;
}

.home-komen-form input:focus,
.home-komen-form textarea:focus {
  border-color: var(--ocean);
}

.home-komen-submit {
  padding: 9px 24px;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.home-komen-submit:hover {
  background: var(--reef);
}

.home-komen-form-box {
  margin-bottom: 48px;
}

.home-komen-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.home-komen-item:last-child {
  border-bottom: none;
}

.home-komen-meta {
  font-size: 14px;
  margin-bottom: 4px;
}

.home-komen-meta strong {
  color: var(--text);
}

.home-komen-meta span {
  font-size: 12px;
  color: #aaa;
  margin-left: 6px;
}

.home-komen-item p {
  font-size: 14px;
  color: rgba(44, 24, 16, 0.65);
  line-height: 1.6;
}

/* ── HOME KOMENTAR ── */
.home-komen-section {
  background: #FAF8F3;
  padding: 60px 80px;
  border-top: 1px solid rgba(26, 74, 92, 0.1);
}

.home-komen-inner {
  max-width: 680px;
}

.home-komen-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.home-komen-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-komen-form label {
  font-size: 13px;
  color: var(--text);
}

.home-komen-form input,
.home-komen-form textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
  background: #fff;
}

.home-komen-form input:focus,
.home-komen-form textarea:focus {
  border-color: var(--ocean);
}

.home-komen-submit {
  padding: 9px 24px;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.home-komen-submit:hover {
  background: var(--reef);
}

.home-komen-form-box {
  margin-bottom: 48px;
}

.home-komen-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.home-komen-item:last-child {
  border-bottom: none;
}

.home-komen-meta {
  font-size: 14px;
  margin-bottom: 4px;
}

.home-komen-meta strong {
  color: var(--text);
}

.home-komen-meta span {
  font-size: 12px;
  color: #aaa;
  margin-left: 6px;
}

.home-komen-item p {
  font-size: 14px;
  color: rgba(44, 24, 16, 0.65);
  line-height: 1.6;
}