﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --base: #F5F8FC;
  --base-raised: #EAF1F8;
  --ink: #0B1F45;
  --ink-soft: #45526B;
  --accent: #1496FA;
  --accent-deep: #0B78D1;
  --forest: #1F7DA0;
  --muted: #6C7A90;
  --line: #DCE4EE;
  --white: #FFFFFF;
  --danger: #C0392B;
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow-card: 0 1px 2px rgba(11,31,69,0.04), 0 8px 24px rgba(11,31,69,0.06);
  --shadow-card-hover: 0 4px 10px rgba(11,31,69,0.07), 0 16px 36px rgba(11,31,69,0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.tentang-hero-title {
  font-variation-settings: "opsz" 20;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(245,248,252,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11,31,69,0.06); }
.site-header .container { display: flex; align-items: center; justify-content: flex-start; gap: 40px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: 'Fraunces', serif; font-size: 1.4rem; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.62rem; letter-spacing: 0.04em; color: var(--muted); }
.brand-logo { display: flex; align-items: center; gap: 14px; }
.logo-ruanghuni { height: 55px; width: auto; }
.logo-csi { height: 35px; width: auto; opacity: 0.85; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.nav-links { display: flex; gap: 30px; font-size: 1.05rem; margin-left: auto; }
.nav-links a { border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color .15s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--accent); }
.nav-cta {
  border: 1px solid var(--ink); padding: 9px 18px; border-radius: var(--radius-s);
  font-size: 0.9rem; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius-s);
  font-size: 0.95rem; border: 1px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-primary:hover { background: #185F79; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,125,160,0.28); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn-wa { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-wa:hover { background: #185F79; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,125,160,0.28); }

/* ---------- Hero ---------- */
.hero { padding: 15px 0 5px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 0.9rem; }
.hero-eyebrow-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-stat b { font-family: 'Fraunces', serif; font-size: 1.6rem; display: block; font-weight: 500; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); }
.hero-visual {
  aspect-ratio: 4/5; border: 1px solid var(--line);
  border-radius: var(--radius-m); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 22px;
  background: var(--ink);
}
.hero-visual-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,31,69,0.05) 0%, rgba(11,31,69,0.75) 100%);
}
.hero-visual::after {
  content: ''; position: absolute; width: 220px; height: 250px; z-index: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent); opacity: 0.22; top: -60px; right: -70px;
}
.hero-visual .tag { position: relative; z-index: 2; color: var(--ink); }
.hero-visual .tag {
  background: var(--white); border: 1px solid var(--line); padding: 10px 14px;
  border-radius: var(--radius-s); font-size: 0.85rem;
}

/* ---------- Kategori strip ---------- */
.kategori-strip { padding: 8px 0 60px; }
.kategori-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kategori-chip {
  border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px;
  font-size: 0.88rem; color: var(--ink-soft); background: var(--white);
  transition: border-color .15s, color .15s;
}
.kategori-chip:hover, .kategori-chip.active { border-color: var(--accent); color: var(--ink); }

/* ---------- Section ---------- */
.section { padding: 20px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; gap: 20px; flex-wrap: wrap; }
.section-head p { margin: 8px 0 0; }
.section-head h2 { position: relative; padding-left: 18px; }
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 0.28em; width: 4px; height: 1em;
  background: var(--accent); border-radius: 2px;
}
.section-alt { background: var(--base-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Produk grid & card ---------- */
.produk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.produk-card {
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
  box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease;
}
.produk-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.produk-thumb { aspect-ratio: 4/3; background: var(--base-raised); position: relative; overflow: hidden; }
.produk-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.produk-card:hover .produk-thumb img { transform: scale(1.05); }
.produk-status {
  position: absolute; top: 12px; left: 12px; background: var(--white); border: 1px solid var(--line);
  font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; color: var(--ink-soft);
}
.produk-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.produk-kota { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.produk-body h3 { margin-bottom: 8px; }
.produk-body p { font-size: 0.92rem; margin-bottom: 14px; }
.produk-harga { font-family: 'Fraunces', serif; font-size: 1.05rem; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.produk-harga a { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.86rem; color: var(--forest); border-bottom: 1px solid var(--forest); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; padding: 18px; background: var(--base-raised); border: 1px solid var(--line); border-radius: var(--radius-m); }
.filter-bar select, .filter-bar input {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 0.9rem; background: var(--white); color: var(--ink);
}
.filter-bar input[type="text"] { flex: 1; min-width: 180px; }

/* ---------- Detail produk ---------- */
.detail-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; padding: 50px 0; }
.detail-thumb { aspect-ratio: 4/3; background: var(--base-raised); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; background: var(--white); height: fit-content; box-shadow: var(--shadow-card); position: sticky; top: 100px; }
.detail-info-card dl { margin: 18px 0; }
.detail-info-card dt { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.detail-info-card dd { margin: 2px 0 0; font-size: 0.98rem; }
.unit-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.unit-table th, .unit-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.unit-table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }

/* Unit type photo cards (halaman detail publik) */
.unit-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0 10px; }
.unit-type-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); display: flex; box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease; }
.unit-type-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.unit-type-photo { width: 130px; flex-shrink: 0; background: var(--base-raised); }
.unit-type-photo img { width: 100%; height: 100%; object-fit: cover; }
.unit-type-body { padding: 14px 16px; flex: 1; }
.unit-type-body h4 { margin-bottom: 8px; }
.unit-type-specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.unit-type-specs span { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.unit-type-harga { font-size: 0.9rem; color: var(--ink-soft); }
.unit-type-harga b { color: var(--ink); }

/* Unit row card (admin form) */
.unit-row-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; margin-bottom: 16px; background: var(--base-raised); }
.unit-row-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.unit-row-grid .form-row { margin-bottom: 10px; }
.keunggulan-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.keunggulan-list li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.keunggulan-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }

/* ---------- Tentang ---------- */
.tentang-lead { max-width: 720px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.value-item {
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 24px;
  background: var(--white); box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease;
}
.value-item:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.value-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--base-raised);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--forest);
}

/* ---------- Kontak / Form ---------- */
.form-card { max-width: 560px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; background: var(--white); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; background: var(--base); color: var(--ink);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.alert-success { background: #EAF1EA; border: 1px solid var(--forest); color: var(--forest); padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 20px; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.85rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- WA float ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; background: var(--forest); color: var(--white);
  border-radius: 999px; padding: 14px 22px; font-size: 0.9rem; z-index: 60; border: 1px solid var(--forest);
  box-shadow: 0 8px 22px rgba(31,125,160,0.35); transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,125,160,0.42); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--base); padding: 26px 20px; }
.admin-side a { display: block; padding: 9px 0; color: #CFCABF; font-size: 0.92rem; }
.admin-side a:hover { color: var(--white); }
.admin-main { padding: 36px 40px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { background: var(--base-raised); font-weight: 500; color: var(--ink-soft); }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--line); }
.badge-tersedia { border-color: var(--forest); color: var(--forest); }
.badge-terbatas { border-color: var(--accent); color: var(--accent-deep); }
.badge-sold_out { border-color: var(--danger); color: var(--danger); }
.admin-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--base-raised); }
.repeatable-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.link-btn { background: none; border: none; color: var(--danger); font-size: 0.85rem; cursor: pointer; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .detail-hero { grid-template-columns: 1fr; }
  .produk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .unit-type-grid, .unit-row-grid { grid-template-columns: 1fr; }
  .unit-type-card { flex-direction: column; }
  .unit-type-photo { width: 100%; height: 160px; }
}
@media (max-width: 560px) {
  .produk-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

/* ---------- Animasi ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in-view { opacity: 1; transform: none; }

  @keyframes kenburns {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
  }
  .hero-visual-img { animation: kenburns 9s ease-out forwards; }

  @keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(31,125,160,0.45); }
    70% { box-shadow: 0 0 0 14px rgba(31,125,160,0); }
    100% { box-shadow: 0 0 0 0 rgba(31,125,160,0); }
  }
  .wa-float { animation: waPulse 2.6s ease-out infinite; }
  .wa-float:hover { animation-play-state: paused; }
}

.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(11,31,69,0.08); }

.btn { transition: tran
sform 0.18s ease, background 0.18s ease, color 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.nav-cta { transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease; }
.nav-cta:hover { transform: translateY(-2px); }

.kategori-chip { transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.kategori-chip:hover { transform: translateY(-2px); }

.produk-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.produk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(11,31,69,0.12);
}
.produk-thumb img { transition: transform 0.5s ease; }
.produk-card:hover .produk-thumb img { transform: scale(1.07); }
.produk-harga a { transition: color 0.18s ease; }

.value-item { transition: transform 0.25s ease; }
.value-item:hover { transform: translateY(-4px); }

.unit-type-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.unit-type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11,31,69,0.1); }
.unit-type-photo img { transition: transform 0.5s ease; }
.unit-type-card:hover .unit-type-photo img { transform: scale(1.06); }

.wa-float { transition: transform 0.18s ease; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
