/*
Theme Name: Laptop Bekas Jogja
Theme URI: https://laptopbekasjogja.id
Author: Laptop Bekas Jogja
Description: Custom classic theme (no page builder) for laptopbekasjogja.id — high-converting, lightweight e-commerce for second-hand laptops in Yogyakarta. WooCommerce templates overridden under /woocommerce/. Mobile-first, BEM naming, minimal JS.
Version: 1.7.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lbj
*/

/*
 * DESIGN TOKENS
 * All visual tokens live here as CSS custom properties so styling stays
 * consistent and client re-branding is a one-file change.
 */

/*
 * Font self-hosted (variable woff2, subset latin) — tanpa request Google Fonts.
 * Inter 400–700 ; Plus Jakarta Sans 600–800.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette (default; swap here on client approval). */
  --color-primary: #0e4d92;      /* Biru toko utama */
  --color-primary-dark: #0a3a6e;
  --color-accent: #f59e0b;       /* CTA / harga */
  --color-accent-dark: #d97706;
  --color-whatsapp: #128c4a;     /* Tombol WA (deep, lebih kalem dr #25d366) */
  --color-whatsapp-dark: #0d7a3f;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-grade-a: #16a34a;      /* Grade A (Like New) */
  --color-grade-b: #2563eb;      /* Grade B (Good) */
  --color-grade-c: #f59e0b;      /* Grade C (Fair) */

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-band: #f7f8fa;        /* Latar selang-seling antar section */

  /* Typography scale (mobile-first). */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --lh-tight: 1.25;
  --lh-normal: 1.6;

  /* Spacing scale. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;

  /* Layout */
  --container: 76rem;           /* Home: lebih lega di desktop (dari 68rem). */
  --header-h: 4.5rem;           /* Tinggi header sticky — dipakai hitung hero 1 layar. */
  --gap-card: var(--space-4);   /* Jarak antar kartu: SAMA di semua grid/baris. */
  --section-gap: clamp(3rem, 7vh, 5rem);   /* Jarak antar chapter (satu sumber). */
  --block-gap: var(--space-8);             /* Jarak antar blok di dalam chapter. */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);

  /* Sistem kartu (permukaan) — dipakai konsisten di kartu beranda. */
  --card-radius: 16px;
  --card-border: 1px solid var(--color-border);
  --card-shadow: var(--shadow-sm);
}

/* ---- Base reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-heading);
}

ul, ol { padding-left: 1.25rem; }

button { font-family: inherit; }

input, select, textarea {
  font-family: inherit;
  font-size: var(--fs-base);
}

/* ---- Layout helpers ---- */
.lbj-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.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;
}

/* Screen-reader skip link (accessibility). */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #fff;
  padding: var(--space-2) var(--space-4);
}
.skip-link:focus { left: 0; }

/* ---- Typography helpers ---- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

/* ---- Design system: focus & spacing polish (v1.2.1) ---- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible, .wa-float:focus-visible {
  outline: 3px solid rgba(14, 77, 146, 0.5);
  outline-offset: 3px;
}
.section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Sticky header tinggi ±70px → anchor jangan tertutup. */
html { scroll-padding-top: 84px; }

/* Tidak ada scroll horizontal: web selalu pas di lebar viewport.
   clip (bukan hidden) agar position:sticky tetap berfungsi. */
html, body { overflow-x: clip; }
