/**
 * ============================================================
 * JAYA PC — BASE CSS
 * Template Version : 1.0.0
 * Description      : Reset, typography global, dan utility
 *                    dasar. Selalu load setelah variables.css
 *                    dan sebelum file CSS lainnya.
 * Dependency       : variables.css
 * ============================================================
 */

/* ──────────────────────────────────────────
 * 📦 GOOGLE FONTS IMPORT
 * Inter — font utama seluruh template
 * ────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* ──────────────────────────────────────────
 * 🔄 RESET & BOX MODEL
 * ────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--jp-font-primary);
  font-size: var(--jp-text-base);
  font-weight: var(--jp-fw-normal);
  line-height: var(--jp-lh-normal);
  color: var(--jp-gray-900);
  background-color: var(--jp-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Offset scroll untuk sticky navbar */
html {
  scroll-padding-top: var(--jp-navbar-total);
}


/* ──────────────────────────────────────────
 * 🖼️ MEDIA
 * ────────────────────────────────────────── */

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}


/* ──────────────────────────────────────────
 * 🔗 LINK
 * ────────────────────────────────────────── */

a {
  color: var(--jp-text-xs);
  text-decoration: none;
  transition: color var(--jp-transition-fast);
}

a:hover {
  color: var(--jp-primary-dark);
  text-decoration: none;
}


/* ──────────────────────────────────────────
 * ✏️ TYPOGRAPHY — HEADING
 * ────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--jp-font-display);
  font-weight: var(--jp-fw-bold);
  line-height: var(--jp-lh-tight);
  color: var(--jp-gray-900);
  margin-bottom: 0;
}

h1,
.h1 {
  font-size: var(--jp-text-4xl);
  font-weight: var(--jp-fw-extrabold);
}

h2,
.h2 {
  font-size: var(--jp-text-3xl);
  font-weight: var(--jp-fw-bold);
}

h3,
.h3 {
  font-size: var(--jp-text-2xl);
  font-weight: var(--jp-fw-bold);
}

h4,
.h4 {
  font-size: var(--jp-text-xl);
  font-weight: var(--jp-fw-semibold);
}

h5,
.h5 {
  font-size: var(--jp-text-lg);
  font-weight: var(--jp-fw-semibold);
}

h6,
.h6 {
  font-size: var(--jp-text-md);
  font-weight: var(--jp-fw-semibold);
}


/* ──────────────────────────────────────────
 * ✏️ TYPOGRAPHY — BODY & PARAGRAF
 * ────────────────────────────────────────── */

p {
  margin-bottom: var(--jp-space-4);
  line-height: var(--jp-lh-relaxed);
  color: var(--jp-gray-600);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: var(--jp-fw-semibold);
  color: var(--jp-gray-900);
}

small,
.text-small {
  font-size: var(--jp-text-sm);
}

.text-xs {
  font-size: var(--jp-text-xs);
}

.text-sm {
  font-size: var(--jp-text-sm);
}

.text-base {
  font-size: var(--jp-text-base);
}

.text-md {
  font-size: var(--jp-text-md);
}

.text-lg {
  font-size: var(--jp-text-lg);
}

.text-xl {
  font-size: var(--jp-text-xl);
}

/* ──────────────────────────────────────────
 * ✏️ TYPOGRAPHY — SECTION TITLE PATTERN
 * Pola heading yang konsisten di setiap section
 * ────────────────────────────────────────── */

/* Label kecil di atas section title */
.jp-section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--jp-space-2);
  font-size: var(--jp-text-xs);
  font-weight: var(--jp-fw-semibold);
  letter-spacing: var(--jp-ls-widest);
  text-transform: uppercase;
  color: var(--jp-primary);
  margin-bottom: var(--jp-space-3);
}

.jp-section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--jp-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Judul section utama */
.jp-section-title {
  font-size: var(--jp-text-3xl);
  font-weight: var(--jp-fw-extrabold);
  color: var(--jp-gray-900);
  line-height: var(--jp-lh-tight);
  text-transform: uppercase;
  letter-spacing: var(--jp-ls-tight);
  margin-bottom: var(--jp-space-4);
}

/* Kata yang diberi aksen warna di dalam judul */
.jp-section-title .accent {
  color: var(--jp-primary);
}

.jp-section-title .accent-orange {
  color: var(--jp-accent);
}

/* Deskripsi pendek di bawah section title */
.jp-section-desc {
  font-size: var(--jp-text-base);
  color: var(--jp-gray-500);
  line-height: var(--jp-lh-relaxed);
  max-width: 560px;
}


/* ──────────────────────────────────────────
 * 📋 LIST
 * ────────────────────────────────────────── */

ul,
ol {
  padding-left: var(--jp-space-6);
  margin-bottom: var(--jp-space-4);
}

ul li,
ol li {
  margin-bottom: var(--jp-space-2);
  color: var(--jp-gray-600);
  line-height: var(--jp-lh-relaxed);
}

/* List tanpa style */
.list-unstyled {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}


/* ──────────────────────────────────────────
 * 🗃️ TABLE
 * ────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-weight: var(--jp-fw-semibold);
  color: var(--jp-gray-700);
  background-color: var(--jp-gray-50);
  padding: var(--jp-space-3) var(--jp-space-4);
  text-align: left;
  font-size: var(--jp-text-sm);
  border-bottom: var(--jp-border-width) solid var(--jp-border-color);
}

td {
  padding: var(--jp-space-3) var(--jp-space-4);
  color: var(--jp-gray-600);
  font-size: var(--jp-text-sm);
  border-bottom: var(--jp-border-width) solid var(--jp-border-color);
  vertical-align: middle;
}


/* ──────────────────────────────────────────
 * 📝 FORM ELEMENTS — BASE RESET
 * Detail styling ada di components.css
 * ────────────────────────────────────────── */

input,
textarea,
select,
button {
  font-family: var(--jp-font-primary);
  font-size: var(--jp-text-base);
}

button {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}


/* ──────────────────────────────────────────
 * 🎨 COLOR UTILITY CLASSES
 * ────────────────────────────────────────── */

.text-primary {
  color: var(--jp-primary) !important;
}

.text-accent {
  color: var(--jp-accent) !important;
}

.text-success {
  color: var(--jp-success) !important;
}

.text-danger {
  color: var(--jp-danger) !important;
}

.text-warning {
  color: var(--jp-warning) !important;
}

.text-muted-jp {
  color: var(--jp-gray-500) !important;
}

.text-dark-jp {
  color: var(--jp-gray-900) !important;
}

.text-white {
  color: var(--jp-white) !important;
}

.bg-primary-jp {
  background-color: var(--jp-primary) !important;
}

.bg-accent {
  background-color: var(--jp-accent) !important;
}

.bg-surface {
  background-color: var(--jp-bg-surface) !important;
}

.bg-surface-2 {
  background-color: var(--jp-bg-surface-2) !important;
}

.bg-footer {
  background-color: var(--jp-bg-footer) !important;
}

.bg-topbar {
  background-color: var(--jp-bg-topbar) !important;
}


/* ──────────────────────────────────────────
 * 🔲 BORDER UTILITY CLASSES
 * ────────────────────────────────────────── */

.border-jp {
  border: var(--jp-border-width) solid var(--jp-border-color) !important;
}

.border-primary-jp {
  border-color: var(--jp-primary) !important;
}

.border-accent-jp {
  border-color: var(--jp-accent) !important;
}

.rounded-jp-sm {
  border-radius: var(--jp-radius-sm) !important;
}

.rounded-jp-md {
  border-radius: var(--jp-radius-md) !important;
}

.rounded-jp-lg {
  border-radius: var(--jp-radius-lg) !important;
}

.rounded-jp-xl {
  border-radius: var(--jp-radius-xl) !important;
}

.rounded-jp-full {
  border-radius: var(--jp-radius-full) !important;
}


/* ──────────────────────────────────────────
 * 🌫️ SHADOW UTILITY CLASSES
 * ────────────────────────────────────────── */

.shadow-jp-sm {
  box-shadow: var(--jp-shadow-sm) !important;
}

.shadow-jp-md {
  box-shadow: var(--jp-shadow-md) !important;
}

.shadow-jp-lg {
  box-shadow: var(--jp-shadow-lg) !important;
}

.shadow-jp-card {
  box-shadow: var(--jp-shadow-card) !important;
}

.shadow-none {
  box-shadow: none !important;
}


/* ──────────────────────────────────────────
 * ⚡ TRANSITION UTILITY CLASSES
 * ────────────────────────────────────────── */

.transition-fast {
  transition: all var(--jp-transition-fast) !important;
}

.transition-base {
  transition: all var(--jp-transition-base) !important;
}

.transition-slow {
  transition: all var(--jp-transition-slow) !important;
}


/* ──────────────────────────────────────────
 * 📐 LAYOUT UTILITY
 * ────────────────────────────────────────── */

/* Section spacing */
.jp-section {
  padding-top: var(--jp-section-py);
  padding-bottom: var(--jp-section-py);
}

.jp-section-sm {
  padding-top: var(--jp-section-py-sm);
  padding-bottom: var(--jp-section-py-sm);
}

/* Divider */
.jp-divider {
  border: none;
  border-top: var(--jp-border-width) solid var(--jp-border-color);
  margin: 0;
}

/* Aspect ratio untuk gambar produk */
.jp-ratio-product {
  position: relative;
  padding-bottom: var(--jp-card-img-ratio);
  /* 75% = 4:3 */
  overflow: hidden;
}

.jp-ratio-product>img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--jp-space-3);
}

/* Aspect ratio untuk hero banner */
.jp-ratio-hero {
  position: relative;
  overflow: hidden;
}

/* Overlay gradient untuk hero dan banner */
.jp-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.50) 50%,
      rgba(15, 23, 42, 0.10) 100%);
  z-index: 1;
}

/* Pastikan konten di atas overlay */
.jp-overlay-content {
  position: relative;
  z-index: 2;
}


/* ──────────────────────────────────────────
 * 🖱️ SCROLL & SELECTION
 * ────────────────────────────────────────── */

/* Custom scrollbar — Webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--jp-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--jp-gray-300);
  border-radius: var(--jp-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--jp-primary);
}

/* Text selection */
::selection {
  background: var(--jp-primary);
  color: var(--jp-white);
}


/* ──────────────────────────────────────────
 * ♿ ACCESSIBILITY
 * ────────────────────────────────────────── */

/* Focus visible untuk keyboard navigation */
:focus-visible {
  outline: 2px solid var(--jp-primary);
  outline-offset: 3px;
  border-radius: var(--jp-radius-sm);
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--jp-space-4);
  background: var(--jp-primary);
  color: var(--jp-white);
  padding: var(--jp-space-2) var(--jp-space-4);
  border-radius: var(--jp-radius-md);
  font-weight: var(--jp-fw-semibold);
  z-index: 9999;
  transition: top var(--jp-transition-fast);
}

.skip-to-content:focus {
  top: var(--jp-space-4);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ──────────────────────────────────────────
 * 🔢 SEO — STRUCTURED VISUAL HELPERS
 * Class pembantu untuk struktur konten SEO
 * ────────────────────────────────────────── */

/* Breadcrumb base — detail di components.css */
.jp-breadcrumb {
  font-size: var(--jp-text-sm);
  color: var(--jp-gray-500);
  padding: var(--jp-space-3) 0;
}

/* Page title SEO — h1 yang visually hidden tapi tetap dibaca crawler */
.jp-seo-title {
  font-size: var(--jp-text-xl);
  font-weight: var(--jp-fw-bold);
  color: var(--jp-gray-900);
  margin-bottom: var(--jp-space-2);
}