:root {
  --primary: #2E7D32;
  --primary-hover: #1B5E20;
  --bg: #FFFFFF;
  --bg-alt: #F4F7F4;
  --text: #1F2937;
  --text-muted: #6B7280;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --max-w: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 20px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-right: 8px;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
}

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

.nav-login {
  background: #E3F2E4;
  color: var(--primary) !important;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 8px;
  font-weight: 600;
}

.nav-login:hover {
  background: var(--primary);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--primary-hover);
  overflow: hidden;
  padding: 72px 20px;
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27, 94, 32, 0.92) 0%, rgba(46, 125, 50, 0.78) 40%, rgba(46, 125, 50, 0.25) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-price {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

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

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1eb457;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Tentang */
.tentang {
  background: var(--bg);
}

.tentang-grid p + p {
  margin-top: 12px;
}

.tentang-grid p {
  color: var(--text);
}

/* Fasilitas */
.fasilitas {
  background: var(--bg-alt);
}

.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.fasilitas-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.fasilitas-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E3F2E4;
  color: var(--primary);
  flex-shrink: 0;
}

.fasilitas-icon svg {
  width: 22px;
  height: 22px;
}

.fasilitas-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Kamar */
.kamar {
  background: var(--bg);
}

.harga {
  background: var(--bg-alt);
}

.harga-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  margin-bottom: 32px;
}

.harga-table th,
.harga-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.harga-table thead th {
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
}

.harga-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.harga-table tbody tr:last-child td {
  border-bottom: none;
}

.harga-table td:first-child {
  font-weight: 600;
}

.harga-table td:nth-child(2) {
  color: var(--primary);
  font-weight: 700;
}

.kamar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kamar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.kamar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.kamar-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text);
}

.kamar-card li {
  position: relative;
  padding-left: 16px;
}

.kamar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

.kamar-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.promo-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.promo-list li {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
}

.jasa-note {
  margin-top: -16px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Galeri */
.galeri {
  background: var(--bg-alt);
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.galeri-slot,
.galeri-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

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

.galeri-slot {
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--card-bg);
}

/* Testimoni */
.testimoni {
  background: #000;
  color: #fff;
}

.testimoni-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.testimoni-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
}

.testimoni-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimoni-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.testimoni-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.testimoni-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.testimoni-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.testimoni-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.testimoni-play:hover {
  background: rgba(255, 255, 255, 0.15);
}

.testimoni-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimoni-play-ico {
  display: none;
}

.testimoni-play .testimoni-play-ico {
  display: block;
}

.testimoni-play.playing .testimoni-play-ico {
  display: none;
}

.testimoni-play.playing .testimoni-pause-ico {
  display: block;
}

.testimoni-pause-ico {
  display: none;
}

.testimoni-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.testimoni-carousel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.testimoni-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
  margin: 0;
}

.testimoni-slide.active {
  opacity: 1;
}

.testimoni-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
}

.testimoni-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.testimoni-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.testimoni-stay {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 700px) {
  .testimoni-title {
    font-size: 2rem;
  }

  .testimoni-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimoni-carousel {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .testimoni-carousel {
    aspect-ratio: 3 / 4;
  }
}

/* Lokasi */
.lokasi {
  background: var(--bg);
  text-align: center;
}

.lokasi-alamat {
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 20px;
}

/* Form */
.daftar {
  background: var(--bg-alt);
}

#registration-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}

#registration-form[hidden] {
  display: none;
}

#registration-form label,
.field-label {
  font-weight: 600;
  margin-top: 12px;
}

#registration-form input[type="text"],
#registration-form input[type="tel"],
#registration-form input[type="email"],
#registration-form input[type="date"],
#registration-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
}

#registration-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

#registration-form input:focus,
#registration-form select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}

#registration-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#registration-form fieldset legend {
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 4px;
}

#registration-form fieldset label {
  font-weight: 400;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#registration-form input[type="checkbox"],
#registration-form input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

#reg-submit {
  margin-top: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

#reg-submit:hover {
  background: var(--primary-hover);
}

#reg-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-error {
  color: #b91c1c;
  font-weight: 600;
  margin-top: 12px;
}

.form-success {
  color: var(--primary);
  font-weight: 700;
  margin-top: 12px;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* S&K */
.snk {
  background: var(--bg);
}

.snk details {
  background: var(--card-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.snk summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style: none;
  position: relative;
}

.snk summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-weight: 700;
}

.snk details[open] summary::after {
  content: "-";
}

.snk summary::-webkit-details-marker {
  display: none;
}

.details-content {
  padding: 0 20px 16px;
  color: var(--text);
}

.details-content ul,
.details-content ol {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* Kontak */
.kontak {
  background: var(--bg-alt);
}

.kontak-items p {
  margin-bottom: 8px;
}

.kontak-items a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.kontak-items a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--text);
  color: #e5e7eb;
}

.footer .section-inner {
  padding: 24px 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Mobile-first adjustments */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card-bg);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 8px 20px 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links a {
    display: block;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    display: block;
    align-self: center;
    text-align: center;
    margin: 12px auto 4px;
    width: fit-content;
    min-width: 200px;
    padding: 10px 24px;
    box-sizing: border-box;
  }

  .nav-login {
    display: block;
    align-self: center;
    text-align: center;
    width: fit-content;
    min-width: 200px;
    margin: 4px auto 0;
    padding: 10px 24px;
    box-sizing: border-box;
    background: #E3F2E4;
    color: var(--primary);
    border: none;
  }
}

@media (min-width: 768px) {
  .section-inner {
    padding: 72px 24px;
  }

  .hero {
    padding: 96px 24px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .tentang-grid p + p {
    margin-top: 0;
  }
}

/* Aplikasi */
.aplikasi {
  background: var(--bg);
}

.aplikasi-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.aplikasi-phone {
  display: flex;
  justify-content: center;
}

.aplikasi-screen {
  width: 220px;
  aspect-ratio: 9 / 19;
  background: #F4F7F4;
  border: 10px solid #1f2937;
  border-radius: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.aplikasi-screen img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.aplikasi-appname {
  font-weight: 800;
  color: var(--primary);
}

.aplikasi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  line-height: 1.15;
}

.badge small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
}

a.badge:hover {
  background: #1f2937;
}

.badge-ios {
  cursor: not-allowed;
  opacity: 0.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Sticky mobile app bar */
.app-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 10px 14px;
}

.app-bar[hidden] {
  display: none;
}

.app-bar-label {
  font-weight: 700;
  color: var(--text);
}

.app-bar-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .aplikasi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-bar {
    display: none;
  }
}
