/* =========================================================================
   JR Apparel – gaya global
   Ubah warna & font di bagian :root, seluruh website ikut berubah.
   ========================================================================= */

:root {
	/* Warna brand */
	--jr-navy: #14254F;
	--jr-navy-2: #2F4FA8;
	--jr-royal: #3B5BB5;
	--jr-sky: #7FA8F0;
	--jr-sand: #D6B378;
	--jr-sand-deep: #B8924F;
	--jr-wa: #25D366;
	--jr-wa-deep: #1DA851;

	/* Netral */
	--jr-ink: #1A1D29;
	--jr-muted: #5B6275;
	--jr-line: #DDE3EE;
	--jr-bg: #FFFFFF;
	--jr-bg-soft: #F4F6FA;

	/* Tipografi */
	--jr-font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--jr-font-body: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Ukuran */
	--jr-max: 1200px;
	--jr-gutter: clamp(20px, 5vw, 40px);
	--jr-space: clamp(64px, 9vw, 120px);

	/* Sudut: besar untuk blok, sedang untuk kartu, kapsul untuk tombol */
	--jr-r-xl: 28px;
	--jr-r-md: 18px;
	--jr-r-sm: 8px;
	--jr-r-pill: 999px;

	/* Garis miring khas JR Apparel (mengikuti sudut ikon logo) */
	--jr-slash: 14deg;
}

/* ---------- Dasar ---------------------------------------------------------- */

.jr-body {
	margin: 0;
	background: var(--jr-bg);
	color: var(--jr-ink);
	font-family: var(--jr-font-body);
	-webkit-font-smoothing: antialiased;
}

.jr-canvas > * {
	margin-block: 0 !important;
	max-width: none !important;
}

.jr-section,
.jr-section *,
.jr-section *::before,
.jr-section *::after,
.jr-wa,
.jr-wa * {
	box-sizing: border-box;
}

.jr-section {
	position: relative;
	padding-block: var(--jr-space);
	font-family: var(--jr-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--jr-ink);
	background: var(--jr-bg);
}

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

.jr-section p,
.jr-section h1,
.jr-section h2,
.jr-section h3,
.jr-section ul,
.jr-section figure,
.jr-section blockquote {
	margin: 0;
	padding: 0;
}

.jr-section a {
	color: inherit;
}

.jr-section--tight {
	padding-block: clamp(40px, 6vw, 72px);
}

.jr-section--muted {
	background: var(--jr-bg-soft);
}

.jr-section--navy {
	background: linear-gradient(135deg, var(--jr-navy) 0%, var(--jr-navy-2) 100%);
	color: #fff;
}

.jr-wrap {
	width: 100%;
	max-width: var(--jr-max);
	margin-inline: auto;
	padding-inline: var(--jr-gutter);
}

.jr-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--jr-navy);
	color: #fff;
	font-family: var(--jr-font-body);
}

.jr-skip:focus {
	left: 12px;
	top: 12px;
}

/* ---------- Tipografi ------------------------------------------------------ */

.jr-h1,
.jr-h2,
.jr-h3 {
	font-family: var(--jr-font-display);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.01em;
	color: inherit;
	text-wrap: balance;
}

.jr-h1 {
	font-size: clamp(46px, 7.4vw, 92px);
}

.jr-h2 {
	font-size: clamp(36px, 4.8vw, 60px);
}

.jr-h3 {
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.05;
}

.jr-lead {
	max-width: 62ch;
	font-size: clamp(16px, 1.4vw, 18px);
	color: var(--jr-muted);
}

.jr-section--navy .jr-lead {
	color: rgba(255, 255, 255, 0.78);
}

.jr-head {
	display: grid;
	gap: 14px;
	max-width: 760px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.jr-note {
	margin-top: 24px !important;
	max-width: 70ch;
	font-size: 14px;
	color: var(--jr-muted);
}

/* ---------- Tombol --------------------------------------------------------- */

.jr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--jr-r-pill);
	font-family: var(--jr-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.jr-btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.jr-btn:active {
	transform: translateY(1px);
}

/* Tombol utama: pasir keemasan di atas navy, kesan premium */
.jr-btn--primary {
	background: var(--jr-sand);
	color: var(--jr-navy) !important;
}

.jr-btn--primary:hover {
	background: #E2C38C;
}

/* Tombol WhatsApp */
.jr-btn--wa {
	background: var(--jr-wa);
	color: #fff !important;
}

.jr-btn--wa:hover {
	background: var(--jr-wa-deep);
}

/* Tombol garis, untuk aksi sekunder */
.jr-btn--outline {
	border-color: var(--jr-navy);
	color: var(--jr-navy) !important;
	background: transparent;
}

.jr-btn--outline:hover {
	background: var(--jr-navy);
	color: #fff !important;
}

.jr-section--navy .jr-btn--outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff !important;
}

.jr-section--navy .jr-btn--outline:hover {
	background: #fff;
	color: var(--jr-navy) !important;
}

/* Tombol lembut di kartu produk */
.jr-btn--soft {
	min-height: 42px;
	padding: 9px 16px;
	background: rgba(59, 91, 181, 0.1);
	color: var(--jr-royal) !important;
	font-size: 14px;
}

.jr-btn--soft:hover {
	background: var(--jr-royal);
	color: #fff !important;
}

.jr-more {
	margin-top: clamp(32px, 4vw, 48px);
	display: flex;
	justify-content: center;
}

/* Fokus keyboard yang jelas */
.jr-section a:focus-visible,
.jr-section button:focus-visible,
.jr-section [tabindex]:focus-visible,
.jr-wa a:focus-visible,
.jr-wa button:focus-visible {
	outline: 3px solid var(--jr-sky);
	outline-offset: 3px;
}

/* ---------- Elemen kecil --------------------------------------------------- */

.jr-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: var(--jr-r-pill);
	background: var(--jr-sand);
	color: var(--jr-navy);
	font-size: 12px;
	font-weight: 700;
}

.jr-chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--jr-r-sm);
	background: var(--jr-bg-soft);
	color: var(--jr-muted);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.jr-empty {
	padding: 18px 22px;
	border: 2px dashed var(--jr-sky);
	border-radius: var(--jr-r-md);
	background: #F2F6FF;
	color: var(--jr-navy);
	font-family: var(--jr-font-body);
	font-size: 14px;
}

/* =========================================================================
   SECTION DINAMIS
   ========================================================================= */

/* ---------- Logo klien ----------------------------------------------------- */

.jr-klien {
	border-block: 1px solid var(--jr-line);
}

.jr-klien__title {
	font-family: var(--jr-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--jr-muted);
	text-align: center;
}

.jr-klien__lead {
	margin: 8px auto 0 !important;
	text-align: center;
}

.jr-logos {
	list-style: none;
	margin-top: 28px !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
}

.jr-logos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
}

.jr-logos__img {
	max-height: 64px;
	max-width: 140px;
	width: auto !important;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter .25s ease, opacity .25s ease;
}

.jr-logos__item:hover .jr-logos__img,
.jr-logos__item a:focus-visible .jr-logos__img {
	filter: none;
	opacity: 1;
}

.jr-logos__text {
	font-weight: 700;
	color: var(--jr-muted);
}

/* ---------- Kartu produk --------------------------------------------------- */

.jr-pgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.jr-pcard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--jr-line);
	border-radius: var(--jr-r-md);
	background: #fff;
	overflow: hidden;
	transition: border-color .2s ease;
}

.jr-pcard:hover {
	border-color: var(--jr-sky);
}

.jr-pcard__media {
	position: relative;
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, var(--jr-navy) 0%, var(--jr-navy-2) 100%);
	overflow: hidden;
}

.jr-pcard__photo {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.jr-pcard__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.35);
}

.jr-pcard__placeholder svg {
	width: 40%;
	height: auto;
}

.jr-pcard__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
}

.jr-pcard__title {
	font-family: var(--jr-font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.05;
}

.jr-pcard__desc {
	font-size: 14px;
	color: var(--jr-muted);
}

.jr-pcard__foot {
	margin-top: auto;
	padding-top: 14px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.jr-price {
	display: grid;
	gap: 2px;
}

.jr-price__label {
	font-size: 12px;
	color: var(--jr-muted);
}

.jr-price__num {
	font-family: var(--jr-font-display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--jr-navy);
}

.jr-price__num small {
	margin-left: 2px;
	font-family: var(--jr-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--jr-muted);
}

.jr-price__ask {
	font-weight: 700;
	color: var(--jr-navy);
}

/* ---------- Portofolio ----------------------------------------------------- */

.jr-folio {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(180px, 20vw, 260px);
	gap: clamp(10px, 1.4vw, 16px);
}

.jr-folio__item {
	position: relative;
	border-radius: var(--jr-r-md);
	overflow: hidden;
	background: var(--jr-navy);
}

/* Foto pertama dibuat besar supaya galeri punya titik fokus */
.jr-folio__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.jr-folio__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.jr-folio__cap {
	position: absolute;
	inset: auto 0 0 0;
	display: grid;
	gap: 2px;
	padding: 40px 16px 14px;
	background: linear-gradient(to top, rgba(20, 37, 79, 0.92), rgba(20, 37, 79, 0));
	color: #fff;
	font-size: 13px;
}

.jr-folio__cap strong {
	font-family: var(--jr-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.jr-folio__cap span {
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 860px) {
	.jr-folio {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: clamp(160px, 42vw, 240px);
	}
}

/* ---------- Testimoni ------------------------------------------------------ */

.jr-quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 24px);
}

.jr-quote {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	padding: 28px;
	border-radius: var(--jr-r-md);
	background: var(--jr-bg-soft);
	border-left: 4px solid var(--jr-sand);
}

.jr-quote__text p {
	font-size: 16px;
	line-height: 1.65;
	color: var(--jr-ink);
}

.jr-quote__who {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.jr-quote__avatar {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.jr-quote__avatar--initial {
	display: grid;
	place-items: center;
	background: var(--jr-navy);
	color: #fff;
	font-family: var(--jr-font-display);
	font-size: 22px;
	font-weight: 700;
}

.jr-quote__meta {
	display: grid;
	flex: 1;
	min-width: 120px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--jr-muted);
}

.jr-quote__meta strong {
	font-size: 15px;
	color: var(--jr-ink);
}

/* Di layar kecil, testimoni bisa digeser ke samping */
@media (max-width: 960px) {
	.jr-quotes {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(85%, 380px);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 12px;
		margin-inline: calc(var(--jr-gutter) * -1);
		padding-inline: var(--jr-gutter);
		scroll-padding-inline: var(--jr-gutter);
	}

	.jr-quote {
		scroll-snap-align: start;
	}
}

/* =========================================================================
   TOMBOL WHATSAPP MELAYANG
   ========================================================================= */

.jr-wa {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--jr-font-body);
}

.jr-wa__fab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 0 22px 0 16px;
	border: 0;
	border-radius: var(--jr-r-pill);
	background: var(--jr-wa);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(29, 168, 81, 0.35);
	transition: background-color .2s ease;
}

.jr-wa__fab:hover {
	background: var(--jr-wa-deep);
}

.jr-wa__icon svg {
	display: block;
	width: 28px;
	height: 28px;
}

@media (max-width: 600px) {
	.jr-wa__fab {
		width: 58px;
		padding: 0;
		justify-content: center;
	}

	.jr-wa__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.jr-wa__panel {
	width: min(340px, calc(100vw - 32px));
	border-radius: var(--jr-r-md);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(20, 37, 79, 0.25);
	transform-origin: bottom right;
	animation: jr-pop .18s ease-out;
}

.jr-wa__panel[hidden] {
	display: none;
}

@keyframes jr-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.jr-wa__top {
	position: relative;
	padding: 20px 52px 18px 20px;
	background: linear-gradient(135deg, var(--jr-navy), var(--jr-navy-2));
	color: #fff;
}

.jr-wa__title {
	margin: 0;
	font-family: var(--jr-font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}

.jr-wa__sub {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.8);
}

.jr-wa__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.jr-wa__close svg {
	width: 18px;
	height: 18px;
}

.jr-wa__list {
	list-style: none;
	margin: 0;
	padding: 8px;
}

.jr-wa__admin {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	color: var(--jr-ink);
	text-decoration: none;
	transition: background-color .15s ease;
}

.jr-wa__admin:hover {
	background: var(--jr-bg-soft);
}

.jr-wa__avatar {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	background: var(--jr-navy);
	color: #fff;
	font-family: var(--jr-font-display);
	font-size: 22px;
	font-weight: 700;
}

.jr-wa[data-online="true"] .jr-wa__avatar::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--jr-wa);
}

.jr-wa__info {
	display: grid;
	flex: 1;
	line-height: 1.3;
}

.jr-wa__info strong {
	font-size: 15px;
}

.jr-wa__status {
	font-size: 12.5px;
	color: var(--jr-muted);
}

.jr-wa__go {
	color: var(--jr-wa-deep);
}

.jr-wa__go svg {
	display: block;
	width: 22px;
	height: 22px;
}

/* ---------- Gerak dikurangi bila pengguna memintanya ---------------------- */

@media (prefers-reduced-motion: reduce) {
	.jr-section *,
	.jr-wa * {
		animation: none !important;
		transition: none !important;
	}
}
