:root {
  --ink: #172033;
  --muted: #647084;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --blue: #1463d9;
  --teal: #0b9b8f;
  --amber: #f2a900;
  --red: #ef4b4b;
  --shadow: 0 22px 60px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(20, 99, 217, 0.09), rgba(11, 155, 143, 0.08)),
    var(--paper);
}

.hero h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(20, 99, 217, 0.25);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.wide {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.status-card,
.service-card,
.steps article,
.price-grid article,
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-card {
  padding: 28px;
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.status-card p {
  font-size: 16px;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(11, 155, 143, 0.12);
  animation: pulseOpen 2.2s ease-in-out infinite;
}

.status-dot.closed {
  background: #e03b3b;
  box-shadow: 0 0 0 7px rgba(224, 59, 59, 0.12);
  animation: none;
}

@keyframes pulseOpen {
  0%, 100% { box-shadow: 0 0 0 0   rgba(11, 155, 143, 0.40); }
  50%       { box-shadow: 0 0 0 10px rgba(11, 155, 143, 0.0); }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  text-align: center;
}

.quick-grid span:nth-child(1) {
  background: var(--blue);
}

.quick-grid span:nth-child(2) {
  background: var(--teal);
}

.quick-grid span:nth-child(3) {
  background: var(--amber);
  color: var(--ink);
}

.quick-grid span:nth-child(4) {
  background: var(--red);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.section h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-card {
  padding: 24px;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: white;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 900;
}

.service-card:nth-child(2) .icon {
  background: var(--teal);
}

.service-card:nth-child(3) .icon {
  background: var(--red);
}

.service-card h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.service-card p,
.steps p,
.price-grid p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: var(--ink);
  color: white;
}

.process .eyebrow {
  color: #7de0d7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.steps article {
  padding: 24px;
  color: var(--ink);
  box-shadow: none;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--soft);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.testi-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(23, 32, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.12);
}

.testi-stars {
  font-size: 18px;
  color: #f2a900;
  letter-spacing: 2px;
}

.testi-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.testi-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 17px;
  display: grid;
  place-items: center;
}

.testi-author strong {
  display: block;
  font-size: 15px;
}

.testi-author span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.pricing {
  background: white;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.price-grid article {
  padding: 22px;
  box-shadow: none;
}

.price-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.price-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.gallery-item {
  min-height: 220px;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(180deg, rgba(23, 32, 51, 0.1), rgba(23, 32, 51, 0.74)),
    linear-gradient(135deg, var(--blue), var(--teal));
}

.gallery-item .gallery-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.gallery-item .gallery-title {
  margin-top: auto;
  font-size: 18px;
}

.gallery-item .gallery-actions {
  display: flex;
  justify-content: flex-end;
}

.gallery-item .gallery-delete {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(23, 32, 51, 0.55);
  cursor: pointer;
}

.gallery-item.printer {
  background-image:
    linear-gradient(180deg, rgba(23, 32, 51, 0.08), rgba(23, 32, 51, 0.76)),
    linear-gradient(135deg, var(--teal), #40b7ff);
}

.gallery-item.laptop {
  background-image:
    linear-gradient(180deg, rgba(23, 32, 51, 0.08), rgba(23, 32, 51, 0.76)),
    linear-gradient(135deg, #4354d8, var(--red));
}

.gallery-item.banner {
  background-image:
    linear-gradient(180deg, rgba(23, 32, 51, 0.08), rgba(23, 32, 51, 0.76)),
    linear-gradient(135deg, var(--amber), var(--red));
}

.upload-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: white;
  position: relative;
  z-index: 0;
}

.file-picker {
  position: relative;
}

.file-picker input {
  padding: 11px 14px;
}

.field input::placeholder {
  color: #92a0b3;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  background: var(--paper);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-panel {
  padding: 24px;
  margin-top: 0;
}

.contact-row {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.contact-row strong {
  display: block;
  margin-top: 2px;
}

.contact-panel .btn {
  margin-top: 18px;
}

/* ── Map ── */
.contact-map {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .map-embed {
  filter: invert(90%) hue-rotate(180deg) brightness(0.85) contrast(0.9);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-link:hover {
  color: var(--teal);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-login {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 32px clamp(18px, 5vw, 72px);
}

.admin-login-card {
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-login-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.admin-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-status.is-error {
  color: var(--red);
}

.admin-status.is-success {
  color: var(--teal);
}

main.admin-page {
  padding-bottom: 48px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: end;
  padding: clamp(32px, 6vw, 64px) clamp(18px, 5vw, 72px) 0;
}

.admin-hero .admin-note {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.admin-meta {
  display: grid;
  gap: 12px;
}

.admin-stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px) 0;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-panel-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-panel-box h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.admin-panel-box p {
  margin-top: 0;
  color: var(--muted);
}

.gallery-manager {
  display: grid;
  gap: 12px;
}

.gallery-manager-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gallery-manager-thumb {
  width: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.gallery-manager-title {
  display: grid;
  gap: 4px;
}

.gallery-manager-title strong {
  font-size: 16px;
}

.gallery-manager-title span {
  color: var(--muted);
  font-size: 13px;
}

.gallery-manager-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfd;
}

.ghost-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--ink);
}

footer span {
  line-height: 1.4;
}

footer a {
  color: white;
  font-weight: 800;
}

/* ── Global color transition ── */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ── Dark Mode Variables ── */
[data-theme="dark"] {
  --ink:    #e8edf4;
  --muted:  #8a97aa;
  --line:   #2a3548;
  --paper:  #1a2336;
  --soft:   #111827;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] body {
  background: var(--soft);
  color: var(--ink);
}

[data-theme="dark"] .site-header {
  background: rgba(26, 35, 54, 0.92);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .nav-links a:hover {
  background: #243047;
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(120deg, rgba(20, 99, 217, 0.12), rgba(11, 155, 143, 0.10)),
    #131d2e;
}

[data-theme="dark"] .process {
  background: #0d1520;
}

[data-theme="dark"] .pricing,
[data-theme="dark"] .contact {
  background: #1a2336;
}

[data-theme="dark"] .status-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .steps article,
[data-theme="dark"] .price-grid article,
[data-theme="dark"] .contact-panel,
[data-theme="dark"] .testi-card {
  background: #1f2e46;
  border-color: var(--line);
}

[data-theme="dark"] .quick-grid span {
  opacity: 0.9;
}

[data-theme="dark"] .nav-toggle {
  background: #1f2e46;
  border-color: var(--line);
}

[data-theme="dark"] .nav-toggle span {
  background: var(--ink);
}

[data-theme="dark"] .nav-links {
  background: #1a2336;
  border-color: var(--line);
}

[data-theme="dark"] footer {
  background: #0d1520;
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select {
  background: #1f2e46;
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .ghost-btn {
  background: #1f2e46;
  border-color: var(--line);
  color: var(--ink);
}

/* ── Theme Toggle Button ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background: var(--soft);
  border-color: #9baab8;
  transform: rotate(20deg);
}

/* Tampilkan ikon sesuai tema */
.icon-moon { display: none; }
.icon-sun  { display: block; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* ── Floating WhatsApp Button ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: waBounce 2.8s ease-in-out 1.2s infinite;
}

.wa-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-float:hover {
  background: #1ebe5b;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
  animation-play-state: paused;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateX(8px) translateY(-50%);
  white-space: nowrap;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #111827;
}

@keyframes waBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-7px) scale(1.04); }
}

[data-theme="dark"] .wa-tooltip {
  background: #e8edf4;
  color: #111827;
}

[data-theme="dark"] .wa-tooltip::after {
  border-left-color: #e8edf4;
}


@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-map {
    position: static;
  }

  .map-embed {
    aspect-ratio: 16 / 9;
  }

  .hero {
    min-height: auto;
  }

  .steps,
  .price-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-panel {
    grid-template-columns: 1fr 1fr;
  }

.upload-panel .btn {
    width: 100%;
  }

  .admin-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 160px;
    line-height: 1.15;
  }

  .hero-actions,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .quick-grid,
  .steps,
  .price-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .upload-panel {
    grid-template-columns: 1fr;
  }

  .gallery-manager-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .gallery-manager-item .ghost-btn {
    grid-column: 1 / -1;
  }
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

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