/*
Theme Name: Yusing Landing
Theme URI: https://yusing.my/
Author: Yusing Motor
Description: A lightweight classic WordPress landing-page theme for Yusing Motor.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yusing
*/

:root {
	--ys-ink: #14212f;
	--ys-ink-soft: #405163;
	--ys-panel: #ffffff;
	--ys-muted: #f4f7f8;
	--ys-line: #dce4e8;
	--ys-brand: #0f7b63;
	--ys-brand-dark: #075443;
	--ys-accent: #d8a21d;
	--ys-whatsapp: #25d366;
	--ys-whatsapp-dark: #1ebe57;
	--ys-gps: #15a9d4;
	--ys-call: #de1717;
	--ys-danger: #d32f2f;
	--ys-radius: 8px;
	--ys-shadow: 0 20px 50px rgba(20, 33, 47, 0.12);
	--ys-max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ys-panel);
	color: var(--ys-ink);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.6;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(12, 24, 34, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
	width: min(100% - 32px, var(--ys-max));
	min-height: 72px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.brand img {
	width: 190px;
	height: auto;
}

.brand__text {
	font-weight: 800;
	color: #fff;
	letter-spacing: 0;
	white-space: nowrap;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	font-weight: 700;
}

.site-nav a {
	padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus {
	color: #fff;
}

.button,
.wpforms-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--ys-radius);
	background: var(--ys-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus,
.wpforms-submit:hover,
.wpforms-submit:focus {
	background: var(--ys-brand-dark);
	transform: translateY(-1px);
}

.button--light {
	background: #fff;
	color: var(--ys-ink);
}

.button--light:hover,
.button--light:focus {
	background: #eef4f2;
}

.button--accent {
	background: var(--ys-whatsapp);
	color: #fff;
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2);
}

.button--accent:hover,
.button--accent:focus {
	background: var(--ys-whatsapp-dark);
}

.hero {
	position: relative;
	min-height: clamp(620px, 86vh, 780px);
	display: flex;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	background: #122332;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 21, 32, 0.92) 0%, rgba(8, 21, 32, 0.72) 43%, rgba(8, 21, 32, 0.18) 100%),
		linear-gradient(0deg, rgba(8, 21, 32, 0.78) 0%, rgba(8, 21, 32, 0) 42%);
}

.hero__inner {
	width: min(100% - 32px, var(--ys-max));
	margin: 0 auto;
	padding: 112px 0 92px;
	color: #fff;
}

.hero__content {
	max-width: 720px;
}

.eyebrow {
	margin: 0 0 14px;
	color: #f5cb54;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(42px, 6.2vw, 78px);
	line-height: 0.98;
	letter-spacing: 0;
}

.hero__lead {
	max-width: 620px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(18px, 2.1vw, 23px);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	max-width: 720px;
	margin-top: 52px;
	overflow: hidden;
	border-radius: var(--ys-radius);
	background: rgba(255, 255, 255, 0.18);
}

.hero__stat {
	min-height: 94px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.11);
}

.hero__stat strong {
	display: block;
	font-size: 25px;
	line-height: 1.1;
}

.hero__stat span {
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

.section {
	padding: 88px 0;
}

.section--muted {
	background: var(--ys-muted);
}

.section--compact {
	padding: 62px 0;
}

.wrap {
	width: min(100% - 32px, var(--ys-max));
	margin: 0 auto;
}

.section-head {
	max-width: 760px;
	margin: 0 auto 44px;
	text-align: center;
}

.section-head h2,
.split__copy h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: 0;
}

.section-head p,
.split__copy p {
	margin: 16px 0 0;
	color: var(--ys-ink-soft);
	font-size: 18px;
}

.benefit-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.benefit {
	min-height: 172px;
	padding: 22px;
	border: 1px solid var(--ys-line);
	border-radius: var(--ys-radius);
	background: #fff;
	box-shadow: 0 8px 22px rgba(20, 33, 47, 0.05);
}

.benefit__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #e8f5f1;
	color: var(--ys-brand-dark);
	font-weight: 900;
}

.benefit h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.benefit p {
	margin: 10px 0 0;
	color: var(--ys-ink-soft);
	font-size: 15px;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.photo-grid img,
.gallery-strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
	gap: 52px;
	align-items: center;
}

.split__media {
	position: relative;
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ys-radius);
	box-shadow: var(--ys-shadow);
}

.detail-list {
	display: grid;
	gap: 22px;
	margin-top: 32px;
}

.detail {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ys-line);
}

.detail:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.detail h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

.detail p,
.detail ul {
	margin: 0;
	color: var(--ys-ink-soft);
}

.detail ul {
	padding-left: 18px;
}

.cta-band {
	background: var(--ys-ink);
	color: #fff;
}

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
}

.cta-band h2 {
	margin: 0;
	font-size: clamp(28px, 3.7vw, 44px);
	line-height: 1.08;
}

.cta-band p {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.78);
}

.gallery-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.gallery-strip--wide {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-bottom: 0;
}

.form-shell {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 44px;
	align-items: start;
}

.contact-card {
	padding: 28px;
	border-radius: var(--ys-radius);
	background: var(--ys-ink);
	color: #fff;
}

.contact-card h2 {
	margin: 0;
	font-size: 32px;
	line-height: 1.1;
}

.contact-card p {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.78);
}

.contact-lines {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.form-area {
	min-height: 260px;
	padding: 28px;
	border: 1px solid var(--ys-line);
	border-radius: var(--ys-radius);
	background: #fff;
	box-shadow: 0 8px 22px rgba(20, 33, 47, 0.05);
}

.wpforms-container {
	margin: 0 !important;
}

.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
	border-radius: 6px !important;
	border-color: #cbd6dc !important;
	box-shadow: none !important;
}

.site-footer {
	padding: 28px 0;
	background: #0c1822;
	color: rgba(255, 255, 255, 0.74);
	font-size: 14px;
}

.site-footer__inner {
	width: min(100% - 32px, var(--ys-max));
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.mobile-action-bar {
	display: none;
}

@media (min-width: 981px) {
	html,
	body {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	html {
		padding-bottom: 0 !important;
	}

	.touchy-logo-wrapper,
	.touchy-logo-wrapper-bg,
	.touchy-wrapper,
	.touchy-by-bonfire-wrapper,
	.touchy-by-bonfire,
	.touchy-overlay,
	.touchy-search-wrapper {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}
}

@media (max-width: 980px) {
	html {
		margin-top: 0 !important;
		padding-bottom: 0 !important;
	}

	body {
		padding-bottom: 50px;
	}

	.site-header {
		display: none;
	}

	.site-nav {
		display: none;
	}

	.touchy-logo-wrapper,
	.touchy-logo-wrapper-bg,
	.touchy-wrapper,
	.touchy-by-bonfire-wrapper,
	.touchy-by-bonfire,
	.touchy-overlay,
	.touchy-search-wrapper {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.mobile-action-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		height: 50px;
		box-shadow: 0 -2px 12px rgba(20, 33, 47, 0.16);
	}

	.mobile-action {
		display: inline-flex;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 4px 2px;
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		line-height: 1;
		text-align: center;
	}

	.mobile-action i {
		display: block;
		font-size: 14px;
		line-height: 1;
	}

	.mobile-action span {
		display: block;
		overflow: hidden;
		width: 100%;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.mobile-action--whatsapp {
		background: var(--ys-whatsapp);
	}

	.mobile-action--gps {
		background: var(--ys-gps);
	}

	.mobile-action--phone {
		background: var(--ys-call);
	}

	.benefit-grid,
	.photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.split,
	.form-shell {
		grid-template-columns: 1fr;
	}

	.gallery-strip--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-header__inner {
		min-height: 64px;
	}

	.brand img {
		width: 160px;
	}

	.hero {
		min-height: 700px;
	}

	.hero::after {
		background:
			linear-gradient(90deg, rgba(8, 21, 32, 0.9) 0%, rgba(8, 21, 32, 0.72) 100%),
			linear-gradient(0deg, rgba(8, 21, 32, 0.7) 0%, rgba(8, 21, 32, 0) 42%);
	}

	.hero__inner {
		padding: 86px 0 62px;
	}

	.hero__stats {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 68px 0;
	}

	.benefit-grid,
	.photo-grid,
	.gallery-strip,
	.gallery-strip--wide {
		grid-template-columns: 1fr;
	}

	.cta-band__inner,
	.site-footer__inner {
		display: grid;
		grid-template-columns: 1fr;
	}
}
