/* ============================================
   SNC Coffee Space — Modern Luxury Theme
   Warna: bg #FAF8F5 | accent #C9A96E | text #222
============================================ */
:root {
  --bg: #FAF8F5;
  --accent: #C9A96E;
  --text: #222;
  --dark: #1c1814;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw; transition: all .35s ease; color: #fff;
}
.navbar.solid, .navbar.scrolled {
  background: rgba(250,248,245,.95); color: var(--text);
  box-shadow: 0 2px 18px rgba(0,0,0,.07); backdrop-filter: blur(8px);
  padding: 12px 6vw;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  color: inherit; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: inherit; text-decoration: none; font-size: .95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem;
  color: inherit; cursor: pointer; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center; }
.hero-fallback { background: linear-gradient(135deg, #2b211a, #C9A96E); }
.hero-overlay { position: absolute; inset: 0; background: rgba(15,10,5,.55); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 760px; padding: 0 24px; }
.hero-eyebrow { letter-spacing: 5px; text-transform: uppercase; color: var(--accent);
  font-size: .85rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.15; margin-bottom: 22px; }
.hero-desc { font-weight: 300; line-height: 1.8; margin-bottom: 36px; opacity: .92; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn { padding: 14px 34px; border-radius: 50px; text-decoration: none;
  font-size: .92rem; transition: all .3s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(201,169,110,.45); }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--text); }
.btn-outline-dark { border: 1.5px solid var(--text); color: var(--text); background: none; }
.btn-danger { background: #c0392b; color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 100px 6vw; text-align: center; }
.section-title { font-size: 2.2rem; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 16px auto 0; border-radius: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px; max-width: 1100px; margin: 0 auto; }
.card { background: #fff; border-radius: var(--radius); padding: 48px 32px;
  box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.card-icon { font-size: 2.6rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .92rem; font-weight: 300; line-height: 1.7; color: #555; }
.about-text { max-width: 680px; margin: 0 auto; font-size: 1.15rem;
  font-weight: 300; line-height: 2; color: #444; font-style: italic; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: #eee; text-align: center; padding: 60px 6vw 30px; }
.footer-brand { color: var(--accent); font-size: 1.6rem; margin-bottom: 22px; }
.footer-item { display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #ccc; text-decoration: none; margin: 12px auto; max-width: 560px;
  font-size: .9rem; line-height: 1.6; transition: color .3s; }
.footer-item:hover { color: var(--accent); }
.footer-item.wa { color: #25D366; font-weight: 500; }
.footer-copy { margin-top: 30px; font-size: .78rem; color: #777; }

/* ===== FADE ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: all .8s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== GALLERY ===== */
.page main { padding-top: 90px; }
.gallery-layout { display: flex; min-height: calc(100vh - 90px); padding-top: 90px; }
.gallery-sidebar { width: 30%; padding: 24px; border-right: 1px solid #eee;
  display: flex; flex-direction: column; gap: 14px; }
.search-box { padding: 12px 16px; border: 1px solid #ddd; border-radius: 50px;
  font-family: inherit; outline: none; }
.search-box:focus { border-color: var(--accent); }
.filter-tabs { display: flex; gap: 8px; }
.filter-btn { flex: 1; padding: 8px; border: 1px solid #ddd; background: #fff;
  border-radius: 50px; cursor: pointer; font-family: inherit; font-size: .82rem; transition: .25s; }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.media-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.media-item { display: flex; align-items: center; gap: 12px; padding: 8px;
  border-radius: 12px; cursor: pointer; transition: background .25s; }
.media-item:hover, .media-item.selected { background: rgba(201,169,110,.15); }
.media-item img, .media-item video { width: 58px; height: 58px; object-fit: cover;
  border-radius: 10px; flex-shrink: 0; }
.media-item .mi-name { font-size: .8rem; word-break: break-all; }
.media-item .mi-type { font-size: .7rem; color: #999; }
.gallery-preview { width: 70%; display: flex; align-items: center;
  justify-content: center; padding: 32px; }
.preview-media { max-width: 100%; max-height: 78vh; border-radius: var(--radius);
  box-shadow: var(--shadow); animation: fadeUp .45s ease; }
img.preview-media { transition: transform .5s ease; cursor: zoom-in; }
img.preview-media:hover { transform: scale(1.06); } /* zoom saat hover */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } }
.empty-state { text-align: center; color: #999; padding: 60px 20px; }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 120px 24px 80px; }
.dropzone { border: 2px dashed var(--accent); border-radius: var(--radius);
  padding: 56px 24px; text-align: center; cursor: pointer;
  background: #fff; transition: background .3s; }
.dropzone:hover, .dropzone.dragover { background: rgba(201,169,110,.12); }
.dropzone small { color: #999; display: block; margin-top: 8px; }
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.progress-bar { flex: 1; height: 10px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload-msg { margin-top: 12px; font-size: .88rem; min-height: 1.2em; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px; margin-top: 40px; }
.admin-item { background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s; }
.admin-item:hover { transform: translateY(-6px); }
.admin-item img, .admin-item video { width: 100%; height: 140px; object-fit: cover; }
.admin-filename { font-size: .75rem; padding: 10px 12px 0; word-break: break-all; }
.admin-actions { display: flex; gap: 8px; padding: 12px; }
.btn-small { flex: 1; padding: 8px; border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: .78rem; background: #f1ede6; transition: .25s; }
.btn-small:hover { background: var(--accent); color: #fff; }
.btn-small.danger:hover { background: #c0392b; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-box { max-width: 90vw; max-height: 85vh; }
.modal-box img, .modal-box video { max-width: 88vw; max-height: 82vh; border-radius: 12px; }
.modal-box.confirm { background: #fff; border-radius: var(--radius);
  padding: 36px; text-align: center; }
.modal-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; }
.modal-close { position: absolute; top: 20px; right: 28px; background: none;
  border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,248,245,.98); color: var(--text);
    flex-direction: column; align-items: center; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .4s; }
  .nav-links.open { max-height: 240px; box-shadow: 0 12px 24px rgba(0,0,0,.1); }
  .nav-links li { padding: 14px 0; }
  .gallery-layout { flex-direction: column; }
  .gallery-sidebar, .gallery-preview { width: 100%; }
  .gallery-sidebar { border-right: none; border-bottom: 1px solid #eee; max-height: 45vh; }
}
