/* ==========================================
   KE'TE' KESU' — SOFT & ELEGANT THEME
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;500;600;700&display=swap');

:root {
  --green: #657568;
  --green-dark: #48594D;
  --green-light: #849486;
  --gold: #C7A878;
  --gold-light: #E4D2B2;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --text: #2F332C;
  --muted: #5A5B53;
  --border: #E8E1D6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 85px; }

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
}

img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- HALAMAN TERPISAH PER MENU ---------- */

.page-hidden { display: none !important; }
main { min-height: 70vh; }

/* ---------- NAVIGASI ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 82px;
  padding: 14px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #F8F5EE;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--green-dark);
}

.logo small {
  display: block;
  margin-top: 5px;
  color: #7A5E33;
  font-size: 9px;
  letter-spacing: 2px;
}

.logo-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: #7A5E33;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
}

.nav-menu { display: flex; align-items: center; gap: 25px; }

.nav-menu a {
  color: #3F4A41;
  font-size: 12px;
  transition: color 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active { color: #8A6B3E; }

.menu-toggle {
  display: none;
  padding: 5px 10px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 23px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: min(760px, 85vh);
  display: flex;
  align-items: center;
  padding: 100px 9%;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(35,49,40,.78), rgba(35,49,40,.45), rgba(35,49,40,.12)),
    url("https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=2000&q=90")
    center 45% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35,49,40,.3), transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 710px; }

.eyebrow {
  margin-bottom: 17px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero h1,
.section-heading h2,
.information-content h2,
.event-content h3,
.information-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.15;
}

.hero h1 {
  margin-bottom: 32px;
  font-size: clamp(46px, 6.5vw, 82px);
  letter-spacing: 0.5px;
}

.hero h1 span { color: #E9D7B8; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.btn-gold { background: #D8C3A0; color: #3F4C41; }
.btn-gold:hover { background: #E8D8BB; transform: translateY(-2px); }

.btn-outline {
  color: white;
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Tombol hero: berwarna saat disentuh/ditekan, tidak berwarna saat tidak */
.hero-buttons .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.8);
  transform: none;
}

.hero-buttons .btn:hover,
.hero-buttons .btn:active,
.hero-buttons .btn:focus-visible {
  background: #D8C3A0;
  color: #3F4C41;
  border-color: #D8C3A0;
}

/* ---------- SECTION & JUDUL ---------- */

.section { padding: 95px 8%; }

.section-heading { max-width: 750px; margin: 0 auto 48px; text-align: center; }

.section-heading h2,
.information-content h2 {
  color: #3F5244;
  font-size: clamp(38px, 4.5vw, 54px);
}

.section-heading h2 span { color: #8A6B3E; }

.section-description { margin-top: 15px; color: #55564E; font-size: 14px; }

.about-section .eyebrow,
.tour-section .eyebrow,
.event-section .eyebrow,
.gallery-section .eyebrow { color: #8A6B3E; }

/* ---------- ABOUT ---------- */

.about-section { background: var(--cream); }

.about-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-image { position: relative; }
.about-image img { height: 420px; border-radius: 3px; }

.image-caption {
  position: absolute;
  right: -15px;
  bottom: 25px;
  padding: 13px 20px;
  background: var(--green);
  color: #F4E7D0;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.about-text { min-width: 0; }
.about-text p { margin-bottom: 18px; color: #3F423B; font-size: 14px; }

/* Deskripsi 3 lembar (swipe) */
.about-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about-slider::-webkit-scrollbar { display: none; }

.about-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-right: 6px;
  scroll-snap-align: start;
}

.about-dots { display: flex; gap: 8px; margin-top: 14px; }

.about-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #8A6B3E;
  border-radius: 50%;
  background: transparent;
  transition: 0.25s;
}
.about-dots button.active { width: 26px; border-radius: 6px; background: #8A6B3E; }

.swipe-hint { margin-top: 8px; color: #55564E; font-size: 11px; }

/* ---------- VIRTUAL TOUR ---------- */

.tour-section { padding: 90px 8%; background: #E9EDE5; }

.tour-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #D8C5AD;
  border-radius: 12px;
  background: #111;
}

.tour-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.tour-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 14px 28px;
  color: #fff;
  background: rgba(0,0,0,.65);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.25s;
}
.tour-start:hover { background: rgba(199,168,120,.9); }
.tour-frame.is-active .tour-start { display: none; }

.tour-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 8px 16px;
  color: #fff;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
}
.tour-close[hidden] { display: none; }

.tour-frame:fullscreen,
.tour-frame:-webkit-full-screen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

/* cadangan untuk iPhone */
.tour-frame.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  max-width: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.tour-note {
  max-width: 1100px;
  margin: 15px auto 0;
  color: #4A4E45;
  font-size: 11px;
}

/* ---------- GALLERY ---------- */

.gallery-section { background: #FFFFFF; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E4E0D6;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: transform 0.45s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(43,52,44,.78));
}

.gallery-caption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  left: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- EVENT ---------- */

.event-section { background: var(--cream); }

.events-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.event-card {
  overflow: hidden;
  border: 1px solid #E9E2D7;
  background: white;
  border-radius: 4px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.event-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(82,91,78,.10); }

.event-card img { aspect-ratio: 16 / 10; }

.event-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.event-content { padding: 22px; }

.event-number { color: #8A6B3E; font-size: 10px; font-weight: 700; letter-spacing: 2px; }

.event-content h3 { margin: 8px 0 10px; color: #3F5244; font-size: 25px; line-height: 1.25; }

.event-content p { color: #55564E; font-size: 12px; }

.event-note {
  max-width: 900px;
  margin: 25px auto 0;
  color: #55564E;
  text-align: center;
  font-size: 11px;
}

/* ---------- PREVIEW DI BERANDA ---------- */

.home-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-more { margin-top: 35px; text-align: center; }

/* ---------- INFORMASI ---------- */

.information-section { padding: 90px 8%; color: white; background: #657568; }

.information-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.information-content h2 { color: white; margin-bottom: 22px; }
.information-content h2 span { color: #F1E2C4; }

.information-content > div:first-child > p:last-child {
  max-width: 480px;
  color: #FFFFFF;
  font-size: 14px;
}

.information-card { padding: 30px; background: #FDFBF5; color: var(--text); border-radius: 4px; }

.information-card h3 { margin-bottom: 22px; color: #3F5244; font-size: 30px; }

.information-card a:not(.btn) { color: #7A5E33 !important; }

.info-row { display: flex; gap: 14px; margin-bottom: 20px; }

.info-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #D8C3A0;
  color: #8A6B3E;
}

.info-row strong { color: #3F5244; font-size: 12px; }
.info-row p { margin-top: 3px; color: #55564E; font-size: 11px; }

.btn-full { width: 100%; margin-top: 5px; }

/* ---------- FOOTER ---------- */

.footer {
  padding: 35px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #E9EDE5;
  color: #3F5244;
}

.footer p { font-size: 11px; }
.footer .logo { color: #3F5244; }
.footer .logo small { color: #7A5E33; }

.footer .copyright {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid #D8DED4;
  color: #55564E;
  text-align: center;
}

/* ---------- TABLET ---------- */

@media (max-width: 1000px) {
  .header { padding-right: 5%; padding-left: 5%; }
  .nav-menu { gap: 13px; }
  .nav-menu a { font-size: 11px; }

  .section, .tour-section, .information-section { padding-right: 5%; padding-left: 5%; }

  .about-grid { gap: 35px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- HP ---------- */

@media (max-width: 700px) {
  .header { min-height: 72px; padding: 12px 5%; }
  .logo { font-size: 12px; }
  .logo-symbol { width: 38px; height: 38px; }

  .menu-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 5% 18px;
    background: #F8F5EE;
    border-top: 1px solid var(--border);
  }

  .nav-menu.show { display: flex; }

  .nav-menu a {
    padding: 12px 0;
    color: #3F5244;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }

  .hero { min-height: 78svh; padding: 85px 7%; background-position: center; }
  .hero h1 { font-size: clamp(42px, 10vw, 60px); }

  .section, .tour-section, .information-section { padding: 65px 6%; }

  .section-heading { margin-bottom: 35px; }

  .about-grid, .information-content { grid-template-columns: 1fr; gap: 30px; }

  .about-image img { height: 300px; }
  .image-caption { right: 0; }

  .tour-frame { aspect-ratio: 4 / 3; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-item { aspect-ratio: 1 / 1; }
  .gallery-caption { right: 8px; bottom: 8px; left: 8px; font-size: 10px; }

  .home-gallery { grid-template-columns: 1fr; gap: 14px; }
  .home-gallery .gallery-item { aspect-ratio: 4 / 3; }
  .home-more { margin-top: 25px; }

  .events-grid { grid-template-columns: 1fr; gap: 18px; }

  .information-card { padding: 22px; }

  .footer { flex-direction: column; align-items: flex-start; padding: 30px 6%; }
  .footer .copyright { text-align: left; }
}

/* ---------- DESKRIPSI SINGKAT DI BERANDA ---------- */

.home-intro { background: var(--cream); padding: 80px 8%; }

.home-intro-box {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.home-intro-photo { position: relative; }

.home-intro-photo::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold);
  border-radius: 3px;
}

.home-intro-photo img {
  position: relative;
  height: 400px;
  border-radius: 3px;
}

.home-intro .eyebrow { color: #8A6B3E; }

.home-intro h2 {
  margin-bottom: 20px;
  color: #3F5244;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.15;
  font-size: clamp(34px, 4.2vw, 48px);
}

.home-intro h2 span { color: #8A6B3E; }

.home-intro-text {
  margin-bottom: 28px;
  color: #3F423B;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .home-intro-box { gap: 35px; }
}

@media (max-width: 700px) {
  .home-intro { padding: 55px 6%; }
  .home-intro-box { grid-template-columns: 1fr; gap: 30px; }
  .home-intro-photo img { height: 280px; }
  .home-intro-photo::before { top: -10px; left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}