:root {
  --red-main: #d91e36;
  --red-dark: #9e1124;
  --red-deep: #6b0816;
  --red-soft: #ffe5ea;
  --red-blush: #fff5f7;
  --cream: #fff9f5;
  --ink: #2b1216;
  --muted: #6f424a;
  --white: #ffffff;
  --gold: #ffb703;
  --shadow: 0 12px 30px rgba(158, 17, 36, 0.14);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--red-blush);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Fredoka', sans-serif;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--red-dark);
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-main), var(--red-dark));
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 6px 14px rgba(217, 30, 54, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  text-decoration: none;
  color: var(--red-dark);
  background: var(--red-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--red-main);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-bg.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(107, 8, 22, 0.72) 0%,
    rgba(158, 17, 36, 0.78) 60%,
    rgba(58, 4, 12, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.12;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero-title span {
  color: #ffe066;
}

.animate-bounce-soft {
  animation: floatHero 2.8s ease-in-out infinite;
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #fff0f2;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn-primary-cute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff3b56, var(--red-dark));
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-cute:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
}

.btn-secondary-cute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red-dark);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-secondary-cute:hover {
  transform: translateY(-3px);
}

.custom-upload-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--red-dark);
  border: 2px dashed var(--red-main);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-chip:hover {
  background: var(--red-soft);
}

.upload-chip.small {
  padding: 5px 11px;
  font-size: 0.78rem;
}

.reset-chip {
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  border: 1px solid #e5b8bf;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.reset-chip.small {
  padding: 5px 10px;
  font-size: 0.76rem;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--red-dark);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
}

/* About */
.about-section {
  background: var(--white);
}

.about-top-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

.about-photo-card {
  background: var(--red-blush);
  border: 2px solid var(--red-soft);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}

.about-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.photo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.photo-caption {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.info-highlight-box {
  background: linear-gradient(135deg, var(--red-blush), var(--red-soft));
  border: 2px solid #ffc9d2;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}

.info-highlight-box h3 {
  font-size: 1.5rem;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.social-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tiktok-pill,
.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.tiktok-pill {
  background: var(--red-main);
  color: var(--white);
}

.hours-pill {
  background: var(--white);
  color: var(--red-dark);
  border: 1px solid #f0b8c2;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--white);
  border: 2px solid var(--red-soft);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(217, 30, 54, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-main);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 1.12rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Menu Buku 3D */
.menu-section {
  background: linear-gradient(180deg, #ffeef1 0%, #ffdce3 100%);
}

.menu-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.menu-tab-btn {
  background: var(--white);
  color: var(--red-dark);
  border: 2px solid var(--red-main);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-tab-btn.active,
.menu-tab-btn:hover {
  background: var(--red-main);
  color: var(--white);
}

.cover-global-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.books-showcase {
  display: flex;
  justify-content: center;
}

.book-wrapper {
  display: none;
  width: min(520px, 100%);
  perspective: 1600px;
}

.book-wrapper.active-book {
  display: block;
}

.book-3d {
  position: relative;
  min-height: 460px;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(107, 8, 22, 0.25);
}

.book-page {
  border-radius: 22px;
  overflow: hidden;
}

.book-inside {
  background: var(--white);
  border: 3px solid var(--red-main);
  padding: 28px 26px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-header {
  text-align: center;
  border-bottom: 2px dashed var(--red-soft);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.page-badge {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.page-header h3 {
  font-size: 1.55rem;
  color: var(--red-dark);
}

.page-header p {
  font-size: 0.86rem;
  color: var(--muted);
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--red-blush);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
}

.price-list strong {
  color: var(--red-main);
  white-space: nowrap;
}

.page-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

/* Sampul depan yang bisa dianimasikan terbuka */
.book-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.book-3d.is-open .book-cover {
  transform: rotateY(-115deg);
  opacity: 0;
  pointer-events: none;
}

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

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(107, 8, 22, 0.55), rgba(75, 5, 15, 0.86));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 12px;
}

.cover-tag {
  background: rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.cover-overlay h3 {
  font-size: 1.9rem;
  line-height: 1.2;
}

.cover-overlay p {
  font-size: 0.92rem;
  color: #ffe3e8;
}

.arrow-btn {
  background: #ffe066;
  color: var(--red-deep);
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.arrow-btn:hover {
  transform: translateX(3px) scale(1.03);
}

.close-arrow {
  background: var(--red-soft);
  color: var(--red-dark);
}

/* Kontak & Maps */
.kontak-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  background: var(--red-blush);
  border: 2px solid var(--red-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-emoji {
  font-size: 1.6rem;
  background: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 30, 54, 0.1);
}

.contact-item h4 {
  color: var(--red-dark);
  font-size: 1.08rem;
}

.contact-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.action-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  transition: transform 0.2s ease;
}

.action-link:hover {
  transform: translateY(-2px);
}

.wa-btn {
  background: #16a34a;
}

.maps-btn {
  background: var(--red-main);
}

.tt-btn {
  background: #1f1f23;
}

.map-embed-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--red-soft);
  min-height: 360px;
  box-shadow: var(--shadow);
}

.map-embed-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Gallery */
.gallery-section {
  background: var(--red-blush);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--white);
  border: 2px solid var(--red-soft);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.gallery-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  height: 230px;
  margin-bottom: 12px;
}

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

.gallery-body h4 {
  color: var(--red-dark);
  font-size: 1.15rem;
}

.gallery-body p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.gallery-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.anim-float-1 {
  animation: galleryFloat1 3.6s ease-in-out infinite;
}

.anim-float-2 {
  animation: galleryFloat2 4.1s ease-in-out infinite;
}

.anim-float-3 {
  animation: galleryFloat3 3.8s ease-in-out infinite;
}

@keyframes galleryFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes galleryFloat2 {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}

@keyframes galleryFloat3 {
  0%, 100% { transform: translateY(0px) rotate(-0.4deg); }
  50% { transform: translateY(-7px) rotate(0.4deg); }
}

/* Buku Tamu */
.guestbook-section {
  background: var(--white);
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.guestbook-form,
.guestbook-results-panel {
  background: var(--red-blush);
  border: 2px solid var(--red-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 800;
  color: var(--red-dark);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid #f2c2ca;
  background: var(--white);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-main);
}

.rating-stars {
  display: flex;
  gap: 6px;
}

.star-btn {
  background: var(--white);
  border: 2px solid #f2c2ca;
  color: #d1d5db;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}

.star-btn.active {
  color: var(--gold);
  border-color: var(--gold);
}

.full-width {
  width: 100%;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.results-header h3 {
  color: var(--red-dark);
  font-size: 1.3rem;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.guest-entry {
  background: var(--white);
  border: 1.5px solid #f5c9d1;
  border-radius: 16px;
  padding: 14px 16px;
}

.guest-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.guest-name {
  font-weight: 800;
  color: var(--red-dark);
}

.guest-wa {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.guest-stars {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.guest-msg {
  font-size: 0.92rem;
  color: var(--ink);
}

.guest-time {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Footer */
.footer {
  background: var(--red-dark);
  color: var(--white);
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .about-top-grid,
  .contact-grid,
  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    position: static;
  }

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

@media (max-width: 600px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
  }
}
