/* =========================================================
   Tambahan di luar Tailwind compiled CSS (tailwind.css)
   ========================================================= */

/* ---- Entrance reveal animation (meniru Framer Motion Reveal.tsx) ---- */
[data-reveal] {
  opacity: 0;
  transition: opacity .6s cubic-bezier(0.22, 1, 0.36, 1), transform .6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="up"]    { transform: translateY(32px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* ---- Mobile sheet menu (meniru Radix Sheet, slide-in dari kanan) ---- */
#mobileSheetOverlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#mobileSheetOverlay.open {
  opacity: 1;
  pointer-events: auto;
}
#mobileSheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 24rem;
  background: var(--color-background, #fff);
  z-index: 91;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: -20px 0 50px -20px rgb(0 0 0 / 0.25);
}
#mobileSheet.open {
  transform: translateX(0);
}

/* ---- Prisma-style hero: giant word letter stagger ---- */
.giant-word .letter-pop {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: letterPop .7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
@keyframes letterPop {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .giant-word .letter-pop { opacity: 1; transform: none; animation: none; }
}

/* ---- Prisma-style hero: subtle noise texture over the canvas/gradient ---- */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* ---- Prisma-style hero: custom hand-written layout (TIDAK pakai utility Tailwind arbitrary,
   karena tailwind.css di project ini adalah file statis hasil compile lama, bukan JIT live,
   jadi class baru seperti mx-3/gap-10/text-[22vw]/grid-cols-12 dll TIDAK akan punya style) ---- */
.hero-card {
  position: relative;
  margin: 12px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  min-height: 82vh;
}
@media (min-width: 768px) {
  .hero-card { margin: 16px; border-radius: 28px; }
}

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

.hero-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
  pointer-events: none;
}

.hero-card__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}
@media (min-width: 768px) {
  .hero-card__content { left: 40px; right: 40px; bottom: 28px; }
}

.hero-card__row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-card__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; }
}

.hero-giant { flex: 1 1 auto; min-width: 0; }
.hero-giant h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: #fff;
  font-size: 18vw;
}
@media (min-width: 640px)  { .hero-giant h1 { font-size: 15vw; } }
@media (min-width: 768px)  { .hero-giant h1 { font-size: 12vw; } }
@media (min-width: 1024px) { .hero-giant h1 { font-size: 9.5vw; } }
@media (min-width: 1280px) { .hero-giant h1 { font-size: 8vw; } }

.hero-side {
  flex: 0 0 auto;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 4px;
}
@media (min-width: 1024px) { .hero-side { padding-bottom: 12px; } }

.hero-side p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  line-height: 1.5;
}
@media (min-width: 768px) { .hero-side p { font-size: .95rem; } }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  background: var(--brand);
  color: var(--brand-foreground);
  border-radius: 9999px;
  padding: 4px 4px 4px 20px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: gap .2s ease;
  width: fit-content;
}
.hero-cta:hover { gap: .85rem; }
.hero-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--ink);
  flex-shrink: 0;
}
@media (min-width: 640px) { .hero-cta__icon { width: 40px; height: 40px; } }

.fld {
  width: 100%;
  background: var(--color-secondary);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  border: 1px solid transparent;
  transition: border-color .15s;
  font-family: inherit;
}
.fld:focus {
  border-color: var(--color-brand);
  background: white;
}
textarea.fld { resize: vertical; }

/* Fix: .fld men-override padding shorthand, bikin prefix "Rp" numpuk sama teks input harga */
.fld.pl-10 { padding-left: 2.5rem; }

/* ---- Accordion (FAQ) chevron rotate ---- */
.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-chevron {
  transition: transform .2s ease;
}
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.accordion-panel > div { overflow: hidden; }
.accordion-item[data-open="true"] .accordion-panel {
  grid-template-rows: 1fr;
}

/* ---- Range input accent color ---- */
input[type="range"] { accent-color: var(--color-brand); }

/* ---- Konten artikel blog (pengganti @tailwindcss/typography yang tak tersedia) ---- */
.prose h2 { font-size: 1.5rem; font-weight: 900; margin-top: 2rem; margin-bottom: .75rem; color: var(--color-foreground, #111); }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin-top: 1.5rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--color-brand, #E71D24); font-weight: 700; text-decoration: underline; }
.prose strong, .prose b { font-weight: 800; color: var(--color-foreground, #111); }
.prose blockquote { border-left: 3px solid var(--color-brand, #E71D24); padding-left: 1rem; font-style: italic; margin: 1.25rem 0; }
.prose img { border-radius: 1rem; margin: 1.5rem 0; }

/* ---- Toast notification (meniru sonner) ---- */
#toastRoot {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--color-ink, #171717);
  color: #fff;
  border-radius: 14px;
  padding: .85rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -16px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 22rem;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .toast-desc { display: block; font-weight: 400; color: rgb(255 255 255 / 0.7); margin-top: .15rem; }

/* ---- Order service: ringkasan desain terpilih (order-service.php) ----
   Ditulis manual (bukan utility class Tailwind) karena tailwind.css di project ini
   adalah hasil compile statis yang cuma memuat class yang sudah terpakai — class baru
   tidak otomatis ikut ter-generate, jadi elemen dinamis begini lebih aman pakai CSS sendiri. */
#designSelectedSummary {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: .85rem;
  margin-bottom: .75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 2px solid var(--color-brand, #E71D24);
  background: rgb(231 29 36 / 0.06);
}
#designSelectedSummary.show { display: flex; }
#designSelectedSummary .design-summary-left { min-width: 0; }
#designSelectedSummary .design-summary-name {
  font-weight: 900;
  font-size: 1.05rem;
  margin-top: .2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#designSelectedSummary .design-summary-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-shrink: 0;
}
#designSelectedSummary .design-summary-price-col { text-align: left; }
#designSelectedSummary .design-summary-price-col #designSelectedPrice { font-size: 1.15rem; }
#changeTierBtn { display: none; flex-shrink: 0; }
#changeTierBtn.show { display: inline-flex; }
#changeTierBtn:hover { background: var(--color-brand, #E71D24); color: #fff; }

@media (min-width: 640px) {
  #designSelectedSummary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  #designSelectedSummary .design-summary-right { width: auto; }
  #designSelectedSummary .design-summary-price-col { text-align: right; }
}

/* ---- Order service: modal pilih tier harga ---- */
#designTierModal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#designTierModal.open { display: flex; }
#designTierModalBackdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); }
#designTierModalBox {
  position: relative;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-background, #fff);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.35);
}
#designTierModalTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close-btn {
  padding: .5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  color: inherit;
}
.modal-close-btn:hover { background: var(--color-secondary); }
.tier-modal-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  border: 2px solid var(--color-border, #e5e5e5);
  padding: 1rem 1.25rem;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: border-color .15s;
}
.tier-modal-btn:hover { border-color: var(--color-brand, #E71D24); }