/* StayIn Homestay Harian — CSS */
:root {
  --primary: #ff6f00;
  --accent: #fff9c4;
  --bg: #fffde7;
  --text: #1a1200;
  --border: #f4d03f;
  --light: #ffffeb3b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Demo bar */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  z-index: 1000;
  text-align: center;
}

.demo-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.demo-bar a:hover {
  border-bottom: 1px solid #fff;
}

body {
  padding-top: 2.5rem;
}

/* Header & nav */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 2.5rem;
  z-index: 100;
}

header h1 {
  font-size: 1.5rem;
  color: var(--primary);
  padding: 1rem;
  text-align: center;
}

nav {
  padding: 0;
  background: #fff;
}

/* Checkbox hack untuk mobile menu */
#menu-toggle {
  display: none;
}

.menu-label {
  display: none;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  border-right: 1px solid var(--border);
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a:active {
  background: var(--accent);
  color: var(--primary);
}

/* Mobile menu */
@media (max-width: 640px) {
  .menu-label {
    display: block;
  }

  nav ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  nav ul li {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  #menu-toggle:checked ~ ul {
    max-height: 500px;
  }

  nav ul li a {
    padding: 0.6rem 1rem;
  }
}

/* Main content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Hero / banner */
.hero {
  background: linear-gradient(135deg, var(--primary), #ff8a50);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  color: #fff;
  border: none;
  font-size: 2rem;
}

.hero p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(255, 111, 0, 0.1);
}

.card h3 {
  color: var(--primary);
  margin-top: 0;
}

.price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0.75rem 0;
}

.price-per {
  font-size: 0.9rem;
  color: #666;
}

.features {
  list-style: none;
  margin: 1rem 0;
}

.features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #f57c00;
}

.btn-secondary {
  background: #666;
}

.btn-secondary:hover {
  background: #444;
}

.btn-block {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

/* Form */
form {
  background: #fff;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  max-width: 600px;
  margin: 1rem 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
}

.pricing-table th {
  background: var(--primary);
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table tr:hover {
  background: var(--accent);
}

/* Detail gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item {
  background: linear-gradient(135deg, var(--accent), var(--light));
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  border: 2px solid var(--border);
}

/* Simulator */
.simulator {
  background: #fff;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.simulator-result {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  border-left: 4px solid var(--primary);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
}

.result-value {
  text-align: right;
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--text);
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  main {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.5rem;
  }

  .result-row {
    flex-direction: column;
  }

  .result-value {
    text-align: left;
    margin-top: 0.25rem;
  }
}
