/*
Theme Name: Jowalokos
Theme URI: https://jowalokos.com
Author: Harjo Waloko Satrio
Description: Tema personal branding Jowalokos (Harjo Waloko Satrio — Founder AMD Media). Mereproduksi desain asli + CMS untuk Portofolio, Karya, dan Tulisan, serta kompatibel WooCommerce.
Version: 1.8.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jowalokos
*/

/* Styling utama dimuat dari assets/css/site.css (di-enqueue lewat functions.php). */

/* Fix: featured image (logo) agar pas di dalam kotak .portfolio-logo */
.portfolio-logo { overflow: hidden; padding: 0; }
.portfolio-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Fix responsif HP: kolom grid boleh menyusut agar tidak meluber ke samping */
.stat-strip,
.video-grid,
.tulisan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-box, .stat-box > div,
.video-card, .tulisan-card { min-width: 0; }
img { max-width: 100%; height: auto; }
/* overflow-x:hidden mematahkan position:sticky -> pakai clip (tetap cegah geser horizontal) */
body { overflow-x: clip; }

@media (max-width: 540px) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* Kontak: hover kartu keperluan + responsif HP */
.purpose-card:hover { border-color: var(--green); transform: translateY(-2px); }
@media (max-width: 560px) { .purpose-grid { grid-template-columns: 1fr; } }

/* Hero stats — ramping & lebih kecil (borderless, responsif HP) */
.jwl-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 24px; margin-top: clamp(20px, 3.2vw, 30px);
  max-width: 660px; margin-inline: auto;
}
.jwl-stat { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 70px; }
.jwl-stat-ic { color: var(--green); display: inline-flex; margin-bottom: 5px; }
.jwl-stat-ic svg { width: 16px; height: 16px; }
.jwl-stat-v { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; line-height: 1; font-size: clamp(18px, 2.3vw, 23px); color: var(--charcoal); }
.jwl-stat-l { font-size: 11px; line-height: 1.3; color: var(--warm-gray); margin-top: 5px; max-width: 116px; }
@media (max-width: 540px) {
  .jwl-stats { gap: 14px 10px; }
  .jwl-stat { flex: 1 1 27%; min-width: 0; }
  .jwl-stat-v { font-size: 18px; }
  .jwl-stat-l { font-size: 10.5px; }
}

/* Logo gambar (Custom Logo) */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { height: 34px; width: auto; max-width: 200px; display: block; object-fit: contain; }
.site-header.scrolled .brand-logo img { height: 30px; }
.drawer-head .brand-logo img { height: 30px; }
.site-footer .brand-logo img { height: 32px; max-width: 180px; }
@media (max-width: 600px) { .brand-logo img { height: 28px; } }

/* Logo partner — statis, abu-abu, berwarna saat hover */
.jwl-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.jwl-partners img { height: 64px; max-width: 200px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.jwl-partners img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 540px) { .jwl-partners { gap: 22px 30px; } .jwl-partners img { height: 48px; max-width: 150px; } }

/* Form: notifikasi sukses/gagal */
.jwl-notice { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.jwl-notice.ok { background: var(--accent-soft); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.jwl-notice.err { background: #fdecea; color: #b3261e; border: 1px solid #f3c6c0; }

/* Newsletter: form langganan inline */
.nl-form { display: flex; gap: 10px; flex: none; align-items: stretch; }
.nl-form input[type="email"] { border: 1px solid var(--taupe); background: #fff; border-radius: 999px; padding: 0 18px; height: 46px; font: inherit; font-size: 15px; color: var(--charcoal); min-width: 220px; outline: none; transition: border-color .2s; }
.nl-form input[type="email"]:focus { border-color: var(--green); }
.nl-form .nl-btn { white-space: nowrap; }
@media (max-width: 720px) {
  .newsletter-banner { flex-wrap: wrap; }
  .nl-form { width: 100%; }
  .nl-form input[type="email"] { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 460px) {
  .nl-form { flex-direction: column; }
  .nl-form input[type="email"], .nl-form .nl-btn { width: 100%; }
}

/* Kartu Speaking Topics — animasi hover seperti "Format acara" */
.topic-row { background: #fff; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.topic-row:hover { border-color: var(--green) !important; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.06); }
.topic-row:hover .head { color: var(--green); }

/* Header sticky (pertegas) + offset admin bar WordPress saat login */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Kartu artikel (Tulisan) */
.article-card .head { transition: color .2s; }
.article-card:hover .head { color: var(--green); }
.article-card .article-thumb { transition: transform .25s var(--ease), box-shadow .25s; }
.article-card:hover .article-thumb { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Media Kit */
.mk-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .mk-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .mk-photos { grid-template-columns: 1fr; } }
.mk-photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mk-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
.mk-photo .mk-dl { align-self: flex-start; }
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kolom baca di tengah (long-form): lebar nyaman, ruang kiri-kanan seimbang */
.jwl-col { width: 100%; max-width: 760px; margin-inline: auto; }

/* Journey: timeline zig-zag (garis tengah, item selang-seling) */
.jwl-timeline { position: relative; }
.jwl-timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; background: var(--taupe); transform: translateX(-50%); }
.jwl-tl-item { position: relative; width: 50%; padding: 0 34px 32px; box-sizing: border-box; }
.jwl-tl-item.right { left: 50%; text-align: left; }
.jwl-tl-item.left  { left: 0;  text-align: right; }
.jwl-tl-item:last-child { padding-bottom: 4px; }
.jwl-tl-dot { position: absolute; top: 4px; width: 16px; height: 16px; border-radius: 99px; background: var(--ivory); border: 2px solid var(--green); box-sizing: border-box; z-index: 1; }
.jwl-tl-item.right .jwl-tl-dot { left: -8px; }
.jwl-tl-item.left  .jwl-tl-dot { right: -8px; }
@media (max-width: 760px) {
  .jwl-timeline::before { left: 7px; transform: none; }
  .jwl-tl-item, .jwl-tl-item.right, .jwl-tl-item.left { width: 100%; left: 0; text-align: left; padding: 0 0 28px 38px; }
  .jwl-tl-item.right .jwl-tl-dot, .jwl-tl-item.left .jwl-tl-dot { left: 0; right: auto; }
}

/* Kolom komentar */
.jwl-comments { width: 100%; }
.jwl-comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.jwl-comment-list .comment, .jwl-comment-list .pingback { border-top: 1px solid var(--taupe); padding: 20px 0; }
.jwl-comment-list > li:first-child { border-top: 0; padding-top: 4px; }
.jwl-comment-list .children { list-style: none; margin: 16px 0 0 22px; padding-left: 20px; border-left: 2px solid var(--taupe); }
.jwl-comments .comment-body { position: relative; }
.jwl-comments .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--charcoal); }
.jwl-comments .comment-author .avatar { border-radius: 99px; }
.jwl-comments .comment-author .says { display: none; }
.jwl-comments .comment-metadata { margin: 4px 0 0 56px; font-size: 12.5px; color: var(--warm-gray); }
.jwl-comments .comment-metadata a { color: inherit; }
.jwl-comments .comment-content { margin: 10px 0 0 56px; color: var(--charcoal); font-size: 15.5px; line-height: 1.7; }
.jwl-comments .reply { margin: 8px 0 0 56px; }
.jwl-comments .reply a { font-size: 13px; font-weight: 600; color: var(--green); }
.jwl-comments .comment-awaiting-moderation { display: block; margin-left: 56px; font-size: 12.5px; color: var(--gold); }
@media (max-width: 540px) {
  .jwl-comments .comment-metadata, .jwl-comments .comment-content, .jwl-comments .reply, .jwl-comments .comment-awaiting-moderation { margin-left: 0; }
}

/* Form komentar */
.comment-respond .comment-reply-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--charcoal); margin: 6px 0 14px; }
.comment-respond .comment-reply-title small { font-size: 13px; margin-left: 10px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.comment-form > p { margin: 0; grid-column: 1 / -1; }
.comment-form .jwl-c-half { grid-column: span 1; }
@media (max-width: 600px) { .comment-form .jwl-c-half { grid-column: 1 / -1; } }
.jwl-c-field label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 7px; }
.jwl-c-field input, .jwl-c-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--taupe); border-radius: 12px; background: #fff; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--charcoal); outline: none; transition: border-color .2s; }
.jwl-c-field input:focus, .jwl-c-field textarea:focus { border-color: var(--green); }
.comment-form .form-submit { margin-top: 4px; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--warm-gray); }
.comment-form .comment-form-cookies-consent input { margin-top: 3px; }

/* Banner tautan khusus */
.jwl-banner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 16px 20px; }
.jwl-banner-img { width: clamp(210px, 27%, 265px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; flex: none; display: block; }
.jwl-banner-text { flex: 1; min-width: 240px; }
.jwl-banner .btn { flex: none; }
@media (max-width: 640px) {
  .jwl-banner-img { width: 100%; aspect-ratio: 16 / 9; }
  .jwl-banner .btn { width: 100%; justify-content: center; }
}

/* Tipografi konten artikel panjang (page & single) */
.article-body h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 38px 0 14px; }
.article-body h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin: 7px 0; line-height: 1.7; }
.article-body a { color: var(--green); font-weight: 600; }
.article-body blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--green); background: var(--accent-soft); border-radius: 0 12px 12px 0; font-style: italic; }
.article-body img { border-radius: 14px; }
.article-body hr { border: 0; border-top: 1px solid var(--taupe); margin: 32px 0; }
