/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2222CC;
  --bg-color: #ffffff;
  --text-color: #333333;
  --gray-light: #e0e0e0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background: var(--bg-color);
}

a {
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

/* NAVBAR */
#navbar {
  background: var(--primary);
  color: #fff;
  padding: 15px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo-img {
  height: 35px;
  width: auto;
}

.hamburger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--primary);
  padding: 0 20px;
  transition: all 0.4s ease-in-out;
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  padding: 0 20px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
}

.mobile-menu-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  transition: opacity 0.3s;
}

.mobile-menu-link:hover {
  opacity: 0.8;
}

/* HERO */
#hero {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-img {
  max-width: 100%;
  width: 300px;
  height: auto;
}

.hero-right {
  flex: 1.2;
}

.hero-title {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  /* Efek stroke putih dan drop shadow */
  -webkit-text-stroke: 5px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
}

.hero-desc {
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.hero-desc p {
  margin-bottom: 15px;
}

.hero-stats {
  display: flex;
  gap: 15px;
}

.hero-stat-card {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 15px 15px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-card .num {
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-stat-card .label {
  font-size: 0.75rem;
  line-height: 1.2;
}

/* TESTIMONIALS */
#testimonials {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
}

.testimonials-inner {
  display: flex;
  gap: 40px;
}

.testimonials-left {
  width: 220px;
  flex-shrink: 0;
}

.quote-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.testimonials-left p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.testimonials-right {
  flex: 1;
}

.section-title.text-white {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.testimonial-card {
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  font-size: 0.65rem;
  flex-grow: 1;
  margin-bottom: 15px;
  line-height: 1.4;
}

.stars {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 28px;
  height: 28px;
  background: #d9d9d9;
  border-radius: 50%;
}

.author .info strong {
  display: block;
  font-size: 0.75rem;
}

.author .info span {
  font-size: 0.6rem;
  color: #888;
}

.testimonial-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 6px;
  border: none;
  margin-top: 20px;
  font-family: 'Manrope', sans-serif;
  background: #dcdcdc;
  font-size: 0.85rem;
}

/* KATALOG */
#catalog {
  padding: 60px 0;
}

.section-title.text-primary {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.catalog-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.catalog-item {
  text-align: center;
}

.catalog-img {
  background: #d9d9d9;
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
}

.catalog-item p {
  font-size: 0.85rem;
  color: #333;
}

/* CARA PESAN */
#how-it-works {
  padding: 40px 0 80px;
}

.text-desc {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto 50px;
}

.step-item {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 5px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-text {
  margin-left: 15px;
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.contact-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
  }

  .testimonials-inner {
    flex-direction: column;
  }

  .testimonials-left {
    width: 100%;
    text-align: center;
  }

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

  .catalog-grid-12,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-body {
    flex-direction: column;
    align-items: center;
  }
}

/* ====================================================
   NEW CSS FOR DYNAMIC CATALOG, MODAL, TOAST
   ==================================================== */

/* --- CATALOG FILTERS & GRID --- */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
}

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

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.catalog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.catalog-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

.catalog-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.catalog-card-info {
  padding: 15px;
  text-align: center;
}

.catalog-card-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.theme-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.catalog-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.catalog-card:hover .catalog-card-overlay {
  opacity: 1;
}

.preview-btn {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

/* --- BUTTONS --- */
.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: opacity 0.3s;
}

.primary-btn:hover {
  opacity: 0.9;
}

.primary-btn.full-width {
  width: 100%;
}

.outline-btn {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.outline-btn:hover {
  background: #f5f5f5;
}

/* --- MODALS --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* PREVIEW MODAL SPECIFIC */
.preview-body {
  display: flex;
  gap: 30px;
}

.preview-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  border: 12px solid #333;
  border-radius: 35px;
  overflow: auto;
  position: relative;
  background: #000;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone-mockup::-webkit-scrollbar {
  display: none;
}

.phone-mockup img {
  width: 100%;
  display: block;
}

.preview-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-features-list {
  margin: 15px 0 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.preview-price-box {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.price-label {
  font-size: 0.8rem;
  color: #666;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* ORDER MODAL SPECIFIC */
.order-modal-content {
  max-width: 500px;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 20px;
}

.step-progress-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eee;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-progress-item.active {
  background: var(--primary);
  color: #fff;
}

.step-progress-item.done {
  background: var(--primary);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #eee;
  margin: 0 10px;
}

.order-step {
  display: none;
}

.order-step.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.payment-method.selected {
  border-color: var(--primary);
  background: rgba(34, 34, 204, 0.05);
}

.step-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.summary-box {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.terms-text {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 20px;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.sample-link {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
}

.fake-link {
  font-weight: 700;
  color: var(--primary);
  margin-top: 5px;
}

/* --- TOAST --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #333;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s forwards;
}

.toast.success {
  background: #22c55e;
}

.toast.info {
  background: #3b82f6;
}

.toast.exiting {
  animation: fadeOut 0.4s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* --- COMMENT FORM (TESTIMONIALS) --- */
.comment-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row input,
.form-row select,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
}

.form-row-rating {
  margin: 10px 0;
  color: #fff;
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}

.submit-comment-btn {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  width: 100%;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.author-info strong {
  display: block;
  font-size: 0.8rem;
}

.author-info span {
  font-size: 0.65rem;
  color: #888;
}