/* =========================================================
   LIV Undangan — style.css
   Palet: krem hangat + navy gelap + aksen emas
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Jost:wght@400;500;600&display=swap');

:root {
  --cream: #F7F2EA;
  --cream-soft: #FBF8F3;
  --navy: #14213D;
  --navy-deep: #0D1730;
  --gold: #B08D57;
  --gold-soft: #D9C7A3;
  --ink: #2A2620;
  --ink-muted: #6B6459;
  --white: #FFFFFF;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --max-width: 1200px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 26px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.nav-links .btn { margin-left: 8px; }

.topbar-solid {
  position: static;
  background: var(--navy);
  padding: 18px 0;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn:hover { opacity: 0.88; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 780px;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,23,48,0.55) 0%, rgba(13,23,48,0.15) 55%, rgba(13,23,48,0.35) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  padding-bottom: 64px;
}
.hero-content .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.hero-text-left {
  color: var(--white);
  max-width: 360px;
}
.hero-text-left h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}
.hero-text-right {
  text-align: right;
  color: var(--white);
  max-width: 460px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
  white-space: pre-line;
}
.hero-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 22px;
}
.hero-cta { text-align: right; }

.hero-dots {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.is-active { background: var(--gold); width: 22px; border-radius: 4px; }

/* feature row under hero (desktop only, overlaps bottom edge) */
.hero-features {
  position: relative;
  z-index: 5;
  background: var(--white);
  margin: 0 auto;
  max-width: 900px;
  transform: translateY(50%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-feature {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid #EEE6D8;
}
.hero-feature:last-child { border-right: none; }
.hero-feature .icon { color: var(--gold); margin-bottom: 8px; }
.hero-feature .label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
}

/* ---------- Section: product carousels ---------- */
.section {
  padding: 90px 0 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-header h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}
.section-header .view-all {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #E6DCC8;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}
.carousel-arrow.prev { left: -17px; }
.carousel-arrow.next { right: -17px; }

.product-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #EFE7D6;
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: #EDE6D8;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-thumb img.is-loaded { opacity: 1; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.product-info { padding: 12px 14px 16px; }
.product-info .name {
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.35;
  min-height: 36px;
}
.product-info .price-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0 0 2px;
}
.product-info .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Grid produk (halaman kategori) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.category-hero {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
  margin-bottom: 36px;
}
.category-hero .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.category-hero h1 { font-family: var(--font-display); font-size: 26px; margin: 0; }
.category-hero .breadcrumb { font-size: 12px; color: rgba(255,255,255,0.6); }
.category-hero .breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Halaman Detail Produk ---------- */
.breadcrumb-line { font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; }
.breadcrumb-line a { color: var(--ink-muted); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 60px;
}
.product-detail-image {
  position: sticky;
  top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #EDE6D8;
}
.product-detail-image img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 14px;
}
.spec-block {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 14px;
}
.spec-block strong { color: var(--ink); font-weight: 500; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spec-chip {
  font-size: 11.5px; padding: 4px 10px;
  background: var(--cream); border: 1px solid #E6DCC8; border-radius: 20px;
  color: var(--ink-muted);
}
.product-desc { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 24px; }

.order-step .form-row { margin-bottom: 18px; }
.order-step label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 7px; }
.order-step input[type="text"],
.order-step input[type="number"],
.order-step textarea,
.order-select {
  width: 100%; padding: 11px 13px;
  border: 1px solid #E6DCC8; border-radius: 4px;
  font-family: inherit; font-size: 13.5px; background: #fff;
}
.order-step textarea { resize: vertical; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.variant-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #E6DCC8; border-radius: 4px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  font-size: 13.5px;
}
.variant-card:has(input:checked) { border-color: var(--navy); background: #F3F1EA; }

.addon-check {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 13px; border-bottom: 1px solid #F0EAE0;
}
.addon-check .addon-name { flex: 1; }
.addon-check .addon-price { color: var(--gold); font-size: 12px; font-weight: 500; }

.total-box {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0 16px;
}
.total-label { font-size: 11.5px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.total-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.total-note { font-size: 10.5px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.btn-back-link {
  display: block; margin: 12px auto 0; background: none; border: none;
  color: var(--ink-muted); font-size: 12.5px; cursor: pointer; font-family: inherit;
}

.order-recap {
  background: var(--cream); border: 1px solid #E6DCC8; border-radius: 4px;
  padding: 14px 16px; margin-bottom: 20px; font-size: 13px; line-height: 1.7;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  margin: 26px 0 14px;
  padding-top: 14px;
  border-top: 1px solid #EFE7D6;
}
.form-section-title:first-of-type { border-top: none; padding-top: 0; }

@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-image { position: static; }
  .form-row-split { grid-template-columns: 1fr; }
}

.not-found-block { text-align: center; padding: 80px 20px; }
.not-found-block h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.not-found-block p { color: var(--ink-muted); margin-bottom: 24px; }

/* ---------- Cetak Apa Hari Ini (quick category grid) ---------- */
.section-alt { background: var(--cream); padding: 70px 0; margin-top: 40px; }
.section-title-center { text-align: center; margin-bottom: 40px; }
.section-title-center .kicker {
  font-size: 12px; letter-spacing: 3px; color: var(--gold); margin-bottom: 10px;
}
.section-title-center h3 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 10px;
}
.section-title-center p { color: var(--ink-muted); font-size: 14px; margin: 0; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.quick-card {
  background: var(--white);
  border: 1px solid #EFE7D6;
  border-radius: var(--radius);
  padding: 22px 10px;
  text-align: center;
}
.quick-card .icon { color: var(--gold); margin-bottom: 10px; }
.quick-card .label { font-size: 12.5px; font-weight: 500; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.trust-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid #EFE7D6;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.trust-card .icon-wrap {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.trust-card .title { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.trust-card .desc { font-size: 11.5px; color: var(--ink-muted); margin: 0; }

/* ---------- 5-step process ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--white);
  border: 1px solid #EFE7D6;
  border-radius: var(--radius);
  padding: 22px 16px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.step-card .title { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.step-card .desc { font-size: 11.5px; color: var(--ink-muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: var(--white);
  margin: 60px auto 0;
}
.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 10px;
}
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin: 0 0 22px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 26px;
  margin-top: 70px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 { color: var(--white); font-size: 13px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom {
  padding-top: 22px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-content .container { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-text-right { text-align: left; max-width: 100%; }
  .hero-cta { text-align: left; }
  .hero-title { font-size: 32px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: -1px; }
  .hero-feature { border-bottom: 1px solid #EEE6D8; }
  .nav-links { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 50px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
