/* ==========================================================================
   Nugraha Showroom
   ========================================================================== */

:root {
	--accent: #0a5bd3;
	--accent-dark: #0847a6;
	--accent-soft: #e8f0fd;
	--booking: #f59e0b;
	--ink: #111827;
	--text: #374151;
	--muted: #6b7280;
	--bg: #ffffff;
	--soft: #f3f6fa;
	--line: #e5e7eb;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 10px;
	--header-h: 72px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.container--narrow {
	max-width: 820px;
}
@media (max-width: 600px) {
	.container {
		padding: 0 16px;
	}
}

.section {
	padding-top: 40px;
	padding-bottom: 64px;
}

.section-title {
	font-size: 24px;
	margin: 0 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	color: #fff;
	background: var(--accent);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 22px;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary {
	color: #fff;
	background: var(--accent);
}
.btn--primary:hover {
	color: #fff;
	background: var(--accent-dark);
}
.btn--wa {
	color: #fff;
	background: #1fae54;
}
.btn--wa:hover {
	color: #fff;
	background: #178a42;
}
.btn--ghost {
	color: var(--ink);
	background: #fff;
	border-color: var(--line);
}
.btn--ghost:hover {
	color: var(--accent);
	border-color: var(--accent);
}
.btn--block {
	width: 100%;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}
.site-header.is-scrolled {
	box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.site-brand .custom-logo-link,
.site-footer__logo .custom-logo-link {
	display: block;
}
.site-brand .custom-logo {
	display: block;
	width: auto;
	height: 40px;
	max-width: 100%;
}
@media (max-width: 600px) {
	.site-brand .custom-logo {
		height: 32px;
	}
}
.site-footer__logo .custom-logo {
	display: block;
	width: auto;
	height: 36px;
}
.site-brand__name {
	font-size: 22px;
	font-weight: 800;
	color: var(--ink);
	text-decoration: none;
}
.site-brand__name span {
	color: var(--accent);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.site-nav__menu {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav__menu a {
	display: block;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	border-radius: 8px;
}
.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a {
	color: var(--accent);
	background: var(--accent-soft);
}
.site-nav__menu .sub-menu {
	display: none;
}
.site-nav__cta {
	min-height: 42px;
	padding: 8px 18px;
}

.site-nav__toggle {
	display: none;
	padding: 8px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
}
.site-nav__toggle-close {
	display: none;
}
.site-nav__toggle svg {
	display: block;
	width: 22px;
	height: 22px;
}

@media (max-width: 960px) {
	.site-nav__toggle {
		display: block;
	}
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px 16px 24px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
		transform: translateY(-120%);
		visibility: hidden;
		transition: transform 0.25s, visibility 0.25s;
	}
	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}
	.nav-open .site-nav {
		transform: none;
		visibility: visible;
	}
	.nav-open .site-nav__toggle-open {
		display: none;
	}
	.nav-open .site-nav__toggle-close {
		display: block;
	}
	.site-nav__menu {
		flex-direction: column;
		gap: 2px;
	}
	.site-nav__menu a {
		padding: 12px;
		font-size: 16px;
	}
}

/* Halaman biasa ----------------------------------------------------------- */

.page-hero {
	padding: 48px 0 40px;
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}
.page-hero--center {
	padding: 96px 0;
	text-align: center;
}
.page-hero__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
}
.page-hero__meta {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 14px;
}
.page-hero .btn {
	margin-top: 20px;
}

.entry-content {
	padding-top: 40px;
	padding-bottom: 64px;
}
.entry-content > *:first-child {
	margin-top: 0;
}
.entry-featured {
	display: block;
	margin-bottom: 28px;
	border-radius: var(--radius);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.post-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.post-card__body {
	padding: 18px 20px 22px;
}
.post-card__date {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.post-card__title {
	margin: 6px 0 8px;
	font-size: 20px;
}
.post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Detail mobil ------------------------------------------------------------ */

.car__top {
	padding-top: 24px;
}
.car__back {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}
.car__back:hover {
	color: var(--accent);
}
.car__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (max-width: 900px) {
	.car__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
/* Slider foto */
.car__gallery {
	min-width: 0;
}
.car__stage {
	position: relative;
	overflow: hidden;
	background: var(--soft);
	border-radius: var(--radius);
}
.car__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.car__track::-webkit-scrollbar {
	display: none;
}
.car__track:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}
.car__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.car__slide img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.car__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.92);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.car__nav:hover {
	color: #fff;
	background: var(--accent);
}
.car__nav svg {
	width: 22px;
	height: 22px;
}
.car__nav--prev {
	left: 12px;
}
.car__nav--next {
	right: 12px;
}
.car__counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: rgba(17, 24, 39, 0.7);
	border-radius: 999px;
	pointer-events: none;
}
@media (max-width: 600px) {
	.car__nav {
		width: 36px;
		height: 36px;
	}
	.car__nav--prev {
		left: 8px;
	}
	.car__nav--next {
		right: 8px;
	}
}
.car__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 4px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}
.car__thumb {
	flex: 0 0 84px;
	padding: 0;
	overflow: hidden;
	background: none;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s, border-color 0.15s;
}
.car__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}
.car__thumb:hover,
.car__thumb.is-active {
	opacity: 1;
	border-color: var(--accent);
}
.car__ribbon {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	background: var(--booking);
	border-radius: 6px;
}
.car__ribbon--terjual {
	background: var(--muted);
}

.car__info {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	padding: 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
@media (max-width: 900px) {
	.car__info {
		position: static;
		padding: 20px;
	}
}
.car__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 30px);
}
.car__price {
	margin: 0 0 20px;
	font-size: 30px;
	font-weight: 800;
	color: var(--accent);
}
.car__specs {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
	font-size: 15px;
}
.car__specs th,
.car__specs td {
	padding: 10px 0;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
.car__specs th {
	width: 40%;
	font-weight: 500;
	color: var(--muted);
}
.car__specs td {
	font-weight: 700;
	color: var(--ink);
}
.car__actions {
	display: grid;
	gap: 10px;
}
.car__desc {
	padding: 48px 0 72px;
	background: var(--soft);
}
.car__desc .entry-content {
	padding: 0;
}
.car__desc ul {
	columns: 2;
	column-gap: 32px;
	padding-left: 20px;
}
@media (max-width: 600px) {
	.car__desc ul {
		columns: 1;
	}
}
.car__desc li {
	break-inside: avoid;
	margin-bottom: 6px;
}

/* Katalog dari plugin Nugraha Filter Product Showroom --------------------- */

/* "body" menaikkan prioritas di atas CSS plugin yang dimuat belakangan. */
body .nfps {
	--nfps-text: var(--ink);
	--nfps-muted: var(--muted);
	--nfps-border: var(--line);
	--nfps-surface: #fff;
	--nfps-soft: var(--soft);
	--nfps-accent: var(--accent);
	--nfps-radius: var(--radius);
	font-family: var(--font);
}
.nfps .nfps-filter {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}
.nfps .nfps-filter__field span {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}
.nfps .nfps-filter select {
	border-radius: 8px;
	background-color: #fff;
}
.nfps .nfps-filter select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.nfps .nfps-filter__reset {
	text-decoration: none;
	font-size: 14px;
}
.nfps .nfps-count {
	margin: 20px 0 14px;
}
.nfps .nfps-grid {
	gap: 20px;
}
@media (min-width: 1100px) {
	.nfps .nfps-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.nfps .nfps-card {
	transition: box-shadow 0.2s, border-color 0.2s;
}
.nfps .nfps-card:hover {
	border-color: #c9d6ea;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}
.nfps .nfps-card__badge {
	color: #fff;
	background: var(--booking);
	border-radius: 6px;
}
.nfps .nfps-card__title {
	font-size: 17px;
	font-weight: 800;
}
.nfps .nfps-card__specs li {
	color: var(--text);
}
.nfps .nfps-card__price {
	font-size: 20px;
	font-weight: 800;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	color: var(--text);
	background: var(--soft);
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}
@media (max-width: 800px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
.site-footer__about p {
	max-width: 360px;
	margin: 12px 0 0;
	color: var(--muted);
}
.site-footer__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 800;
	color: var(--ink);
}
.site-footer__contact,
.site-footer__menu,
.site-footer .site-nav__menu {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.site-footer__contact svg {
	flex: none;
	margin-top: 2px;
	color: var(--accent);
}
.site-footer a {
	color: var(--text);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--accent);
}
.site-footer .site-nav__menu {
	flex-direction: column;
}
.site-footer .site-nav__menu a {
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	background: none;
}
.site-footer__bottom {
	padding: 18px 0;
	font-size: 13px;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

/* WhatsApp melayang ------------------------------------------------------- */

.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: #fff;
	background: #25d366;
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}
.wa-float:hover {
	transform: scale(1.06);
	color: #fff;
}
.wa-float svg {
	width: 30px;
	height: 30px;
}

/* Elementor --------------------------------------------------------------- */

.elementor-page .site-main {
	overflow-x: clip;
}
.elementor-widget-google_maps iframe {
	border-radius: var(--radius);
}
