/* ============================================
   SISI KREATIF — Design tokens
   Palette: warm charcoal + antique gold
   Type: General Sans (display + body/UI)
   ============================================ */

:root{
  --bg: #0A1A2F;
  --surface: #0F2440;
  --surface-2: #14304F;
  --border: #24425F;
  --gold: #F59E0B;
  --gold-bright: #FFB93D;
  --text: #F3F6FA;
  --text-muted: #A9BAD1;
  --text-faint: #7488A3;
  --on-gold: #1A1204;
  --navy-accent: #5B8DEF;
  --radius: 3px;
  --max-w: 1080px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  font-family: 'General Sans', sans-serif;
  margin-bottom: 10px;
  display: block;
}

.hairline{
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- Header ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21,18,14,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo{
  font-family: 'General Sans', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}

.logo span{ color: var(--gold); }

.logo img{
  height: 40px;
  width: auto;
  display: block;
}

.logo-text{
  font-family: 'General Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.logo-text .logo-navy{ color: var(--navy-accent); }
.logo-text .logo-gold{ color: var(--gold); }

.nav-links{
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover{ color: var(--gold-bright); }

.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 130px 0 100px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(245,158,11,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(245,158,11,0.08), transparent 65%),
    var(--bg);
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245,158,11,0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.hero-video-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,26,47,0.55) 0%, rgba(10,26,47,0.4) 25%, rgba(10,26,47,0.15) 45%, rgba(10,26,47,0) 60%);
  z-index: 1;
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0;
  padding-left: clamp(8px, 5vw, 64px);
}

.hero-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-tags span.star{ color: var(--gold); }

.hero h1{
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  margin-bottom: 26px;
}

.hero p{
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 36px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--on-gold);
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover{ background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); }

.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section heading ---------- */
.section{ padding: 90px 0; }
.section + .section{ border-top: 1px solid var(--border); }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.section-head p{ color: var(--text-muted); max-width: 420px; }

/* ---------- Services / Portfolio grid (shared card style) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* Carousel geser horizontal (dipakai di section Layanan, Portofolio & Review) */
.hscroll{
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.hscroll.dragging{ cursor: grabbing; scroll-behavior: auto; user-select: none; }

.hscroll .info-card,
.hscroll .review-card{
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.hscroll::-webkit-scrollbar{ height: 6px; }
.hscroll::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 999px; }

/* Wrapper + tombol panah untuk carousel */
.hscroll-wrap{ position: relative; }

.hscroll-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.hscroll-arrow:hover{ border-color: var(--gold); color: var(--gold-bright); }
.hscroll-arrow.left{ left: -8px; }
.hscroll-arrow.right{ right: -8px; }
.hscroll-arrow[disabled]{ opacity: 0.25; pointer-events: none; }

@media (max-width: 640px){
  .hscroll-arrow{ display: none; }
}

.section-head .more-link{
  color: var(--gold-bright);
  font-size: 0.9rem;
  white-space: nowrap;
}
.section-head .more-link:hover{ text-decoration: underline; }

.info-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}

.info-card:hover{ border-color: var(--gold); transform: translateY(-3px); }

.info-card .thumb{
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.info-card .thumb img,
.info-card .thumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: 'General Sans', sans-serif;
  font-style: italic;
  font-size: 0.9rem;
}

.media-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10,26,47,0.85);
  color: var(--gold-bright);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.info-card .body{ padding: 22px; flex: 1; display: flex; flex-direction: column; }

.service-cat{
  font-family: 'General Sans', sans-serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: block;
}

.info-card h3{ font-size: 1.2rem; margin-bottom: 8px; }
.info-card p{ color: var(--text-muted); font-size: 0.92rem; flex: 1; }

.service-price{
  font-family: 'General Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin-top: 14px;
}

.empty-state{
  color: var(--text-faint);
  padding: 40px 0;
  font-style: italic;
  grid-column: 1 / -1;
}

/* ---------- Reviews ---------- */
.review-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  width: 280px;
}

.review-stars{ color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.review-text{ color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; font-style: italic; }
.review-name{ font-family: 'General Sans', sans-serif; font-size: 1rem; }

/* ---------- Detail modal (services / portfolio) ---------- */
.detail-overlay{
  position: fixed; inset: 0;
  background: rgba(6,12,20,0.75);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail-overlay.show{ display: flex; }

.detail-modal{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.detail-close{
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(10,26,47,0.85);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
  z-index: 2;
  cursor: pointer;
}

.detail-media{
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}

.detail-body{ padding: 32px; }
.detail-body h2{ font-size: 1.6rem; margin-bottom: 10px; }
.detail-body .service-cat{ margin-bottom: 14px; }
.detail-body p{ color: var(--text-muted); line-height: 1.7; }
.detail-body .service-price{ margin-top: 18px; display: block; font-size: 1.2rem; }

.doc-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius);
  color: var(--gold-bright);
  margin-top: 10px;
}
.doc-link:hover{ border-color: var(--gold); }

/* ---------- Tombol konsultasi (WhatsApp) ---------- */
.btn-konsultasi{
  display: block;
  margin-top: 14px;
  background: var(--gold);
  color: var(--on-gold);
  padding: 11px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  font-family: 'General Sans', sans-serif;
}
.btn-konsultasi:hover{ background: var(--gold-bright); }

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid p{ color: var(--text-muted); margin-bottom: 18px; }

.stat-list{ list-style: none; }
.stat-list li{
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.stat-list li:last-child{ border-bottom: 1px solid var(--border); }
.stat-list b{ color: var(--text); font-family: 'General Sans', sans-serif; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-box h2{ font-size: 2rem; max-width: 420px; }

.contact-links{ display: flex; flex-direction: column; gap: 14px; }

.contact-links a{
  color: var(--text-muted);
  font-size: 1.02rem;
  border-bottom: 1px solid transparent;
}
.contact-links a:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------- Footer ---------- */
footer{
  padding: 32px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-shell{ min-height: 100vh; display: flex; flex-direction: column; }

.login-screen{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card{
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 38px;
}

.login-card h1{ font-size: 1.6rem; margin-bottom: 6px; }
.login-card > p{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 30px; }

.field{ margin-bottom: 18px; }

.field label{
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  outline: none;
  border-color: var(--gold);
}

.field textarea{ resize: vertical; min-height: 90px; }

.form-msg{
  font-size: 0.88rem;
  margin-top: 14px;
  min-height: 1.2em;
}

.form-msg.error{ color: #E08A6B; }
.form-msg.success{ color: var(--gold-bright); }

.admin-header{
  border-bottom: 1px solid var(--border);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header .logo{ font-size: 1.2rem; }

.admin-tabs{
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.admin-tab{
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.admin-tab.active{ color: var(--gold-bright); border-bottom-color: var(--gold); }

.file-preview-img{
  max-width: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.upload-status{ font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }

.admin-main{
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 48px 28px 80px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}

.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.panel h2{ font-size: 1.25rem; margin-bottom: 24px; }

.admin-list{ list-style: none; }

.admin-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}

.admin-list li:last-child .admin-row{ border-bottom: 1px solid var(--border); }

.admin-row-info b{ font-family: 'General Sans', sans-serif; font-weight: 500; font-size: 1.05rem; }
.admin-row-info .meta{ color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.row-actions{ display: flex; gap: 10px; }

.icon-btn{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.icon-btn:hover{ border-color: var(--gold); color: var(--gold-bright); }
.icon-btn.danger:hover{ border-color: #E08A6B; color: #E08A6B; }

@media (max-width: 860px){
  .admin-main{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .nav-links{ display: none; }
  .admin-tabs{ overflow-x: auto; }
}
