/* =====================================================================
   WISATA ALAM GOA LAWAH — DESIGN TOKENS
   Palet terinspirasi dari mulut goa kapur, kanopi hutan, air sungai,
   dan cahaya senja yang masuk ke celah goa.
   ===================================================================== */

:root {
  /* Warna */
  --canopy: #1f3a2e;        /* hijau hutan tua — header, footer, malam */
  --canopy-deep: #142822;   /* lebih gelap, untuk gradasi & bayangan */
  --moss: #3f6b4f;          /* hijau lumut — aksen sekunder */
  --limestone: #f2ecdd;     /* krem batu kapur — latar konten */
  --limestone-dim: #e8e0cb; /* sedikit lebih gelap, untuk garis/batas */
  --river: #2f6e6a;         /* teal air sungai — tautan, ikon */
  --dusk: #c97d3d;          /* jingga senja — aksen hangat, CTA */
  --dusk-deep: #a8621f;
  --ink: #23261f;           /* teks utama */
  --ink-soft: #52584a;      /* teks sekunder */
  --paper: #fbf8f1;         /* putih hangat untuk kartu di atas krem */

  /* Tipografi */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* Tata letak */
  --maxw: 1140px;
  --radius: 6px;
}

/* Selaraskan variabel Bootstrap dengan tema Goa Lawah (dimuat setelah bootstrap.min.css) */
:root {
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--limestone);
  --bs-link-color: var(--river);
  --bs-link-hover-color: var(--dusk-deep);
  --bs-border-radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--limestone);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: var(--river); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--canopy-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* Visible focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--dusk);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------------
   HEADER / NAV (Bootstrap navbar, direstyle dengan tema Goa Lawah)
   --------------------------------------------------------------------- */
.site-navbar {
  background: var(--canopy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--limestone) !important;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--limestone-dim);
  opacity: 0.75;
}

.site-navbar .nav-link {
  color: var(--limestone);
  opacity: 0.88;
  font-size: 0.96rem;
  padding: 6px 0 !important;
  margin: 0 14px;
  border-bottom: 2px solid transparent;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  opacity: 1;
  color: var(--limestone);
  border-bottom-color: var(--dusk);
}
.site-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(242,236,221,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
  .site-navbar .navbar-nav { padding: 10px 0; }
  .site-navbar .nav-link { margin: 0; padding: 10px 0 !important; }
}

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(175deg, var(--canopy) 0%, var(--canopy-deep) 100%);
  color: var(--limestone);
  overflow: hidden;
  padding-bottom: 90px;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--dusk);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero h1 { color: var(--limestone); }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--limestone-dim);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 22px;
}
.hero-facts div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--limestone);
}
.hero-facts div span {
  font-size: 0.85rem;
  color: var(--limestone-dim);
}

.hero-art { position: relative; }

/* Wave/cave-mouth divider at the bottom of the hero */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero-divider svg { width: 100%; height: 70px; display: block; }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--dusk);
  color: #fff;
}
.btn-primary:hover { background: var(--dusk-deep); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--limestone);
}
.btn-outline:hover { border-color: var(--limestone); background: rgba(255,255,255,0.08); }

.btn-outline.on-light {
  border-color: var(--canopy);
  color: var(--canopy-deep);
}
.btn-outline.on-light:hover { background: rgba(31,58,46,0.06); }

.btn-whatsapp {
  background: #25603f;
  color: #fff;
}
.btn-whatsapp:hover { background: #1c4b31; }

/* ---------------------------------------------------------------------
   SECTIONS (generic)
   --------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper); }
.section-canopy { background: var(--canopy); color: var(--limestone); }
.section-canopy h2, .section-canopy h3 { color: var(--limestone); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .lede { margin: 0; }

.section-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--river);
  margin-bottom: 6px;
  display: block;
}

/* ---------------------------------------------------------------------
   ATTRACTION ROWS (alternating image/text, not identical cards)
   --------------------------------------------------------------------- */
.attraction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--limestone-dim);
}
.attraction:last-child { border-bottom: none; }
.attraction:nth-child(even) .attraction-art { order: 2; }

.attraction-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.attraction-art svg { width: 100%; height: 100%; }

.attraction-index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--river);
  font-size: 1.05rem;
}

.attraction ul.tags {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.attraction ul.tags li {
  font-size: 0.82rem;
  border: 1px solid var(--limestone-dim);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .attraction, .hero .container { grid-template-columns: 1fr; }
  .attraction:nth-child(even) .attraction-art { order: 0; }
  .hero-art { display: none; }
}

/* ---------------------------------------------------------------------
   PRICING TABLE
   --------------------------------------------------------------------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--limestone-dim);
}
.price-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--canopy-deep);
  background: var(--limestone);
}
.price-table td.amount {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--dusk-deep);
  white-space: nowrap;
}
.price-table tr:last-child td { border-bottom: none; }

.price-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--river);
  padding-left: 14px;
}

/* ---------------------------------------------------------------------
   GALLERY
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--canopy);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-item .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
}
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

/* ---------------------------------------------------------------------
   MAP / LOCATION
   --------------------------------------------------------------------- */
.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.05);
}
.direction-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.direction-list li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 6px 40px;
  margin-bottom: 4px;
}
.direction-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--canopy);
  color: var(--limestone);
  font-family: var(--font-display);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-item svg { flex-shrink: 0; margin-top: 3px; }
.contact-item strong { display: block; color: var(--limestone); }
.contact-item a, .contact-item span { color: var(--limestone-dim); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   FLOATING WHATSAPP
   --------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: #25603f;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.wa-float:hover { background: #1c4b31; text-decoration: none; }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--canopy-deep);
  color: var(--limestone-dim);
  padding: 54px 0 26px;
  font-size: 0.92rem;
}
.footer-grid { margin-bottom: 36px; }
.footer-grid h4 { color: var(--limestone); font-size: 1rem; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--limestone-dim); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------------
   BREADCRUMB / PAGE HEADER (inner pages)
   --------------------------------------------------------------------- */
.page-head {
  background: var(--canopy);
  color: var(--limestone);
  padding: 54px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-head h1 { color: var(--limestone); margin-bottom: 8px; }
.page-head .lede { color: var(--limestone-dim); }
.page-head .hero-divider svg { height: 46px; }

/* ---------------------------------------------------------------------
   MISC UTILITIES
   --------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--limestone);
  color: var(--canopy-deep);
  border: 1px solid var(--limestone-dim);
}
.badge-status.dot-green::before { content:"●"; color:#3f8a5b; }
.badge-status.dot-yellow::before { content:"●"; color:#c9a13d; }
.badge-status.dot-red::before { content:"●"; color:#b0503f; }

/* ---------------------------------------------------------------------
   FORM (booking & cek booking)
   --------------------------------------------------------------------- */
.form-label { font-weight: 600; color: var(--canopy-deep); font-size: 0.92rem; }
.form-control:focus {
  border-color: var(--dusk);
  box-shadow: 0 0 0 0.2rem rgba(201, 125, 61, 0.2);
}

/* ---------------------------------------------------------------------
   PRINT (halaman e-tiket)
   --------------------------------------------------------------------- */
@media print {
  .site-navbar, .site-footer, .wa-float, .page-head .hero-divider, .no-print {
    display: none !important;
  }
  .page-head { background: #fff !important; color: #000 !important; padding: 0 0 16px; }
  .page-head h1, .page-head .lede { color: #000 !important; }
  body { background: #fff; }
  .ticket-print { box-shadow: none !important; }
}
