/*
Theme Name: ZG Sourcing Site
Theme URI: https://example.com/
Author: ZG Sourcing
Description: A complete, responsive one-page WordPress website for China sourcing and dropshipping fulfillment services.
Version: 1.0.4
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: zg-sourcing-site
*/

:root {
	--zg-blue: #1049d8;
	--zg-blue-dark: #09285d;
	--zg-blue-soft: #f3f7ff;
	--zg-green: #20ad5a;
	--zg-text: #0b2348;
	--zg-body: #4e607a;
	--zg-muted: #748198;
	--zg-border: #dce5f1;
	--zg-white: #fff;
	--zg-shadow: 0 14px 36px rgba(11, 35, 72, .08);
	--zg-radius: 12px;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--zg-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .zg-mobile-bar {
	bottom: 0;
}

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

a {
	color: inherit;
}

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

.zg-site {
	min-height: 100vh;
	overflow: hidden;
	background: #fff;
}

.zg-container {
	width: min(1800px, calc(100% - 48px));
	margin-inline: auto;
}

.zg-hero {
	position: relative;
	background:
		linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 40%, rgba(255,255,255,.84) 51%, rgba(255,255,255,0) 72%),
		#f7faff;
}

.zg-hero-inner {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
}

.zg-hero-image {
	position: absolute;
	inset: 0 0 0 48%;
	background-size: cover;
	background-position: center;
}

.zg-hero-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.70) 18%, rgba(255,255,255,0) 55%);
}

.zg-hero-copy {
	position: relative;
	z-index: 2;
	width: 57%;
	padding: 28px 0 70px;
}

.zg-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 78px;
	text-decoration: none;
}

.zg-brand-logo {
	display: block;
	width: clamp(310px, 29vw, 430px);
	max-width: 100%;
	height: auto;
}

.zg-logo-mark {
	width: 37px;
	height: 37px;
	display: grid;
	place-items: center;
	transform: rotate(30deg);
	border-radius: 9px;
	background: linear-gradient(145deg, #2467ee, #063eb9);
	box-shadow: 0 8px 18px rgba(16, 73, 216, .24);
}

.zg-logo-mark::after {
	content: "";
	width: 17px;
	height: 17px;
	border: 3px solid #fff;
	border-radius: 3px;
}

.zg-brand-copy strong {
	display: block;
	font-size: 21px;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.zg-brand-copy small {
	display: block;
	margin-top: 5px;
	color: var(--zg-muted);
	font-size: 10px;
	letter-spacing: .025em;
}

.zg-hero h1 {
	max-width: 730px;
	margin: 0 0 24px;
	color: var(--zg-text);
	font-size: clamp(49px, 5.1vw, 72px);
	line-height: 1.08;
	letter-spacing: -.047em;
}

.zg-hero-lead {
	max-width: 670px;
	margin: 0;
	color: var(--zg-body);
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.55;
}

.zg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.zg-button {
	min-height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	border: 0;
	border-radius: 7px;
	text-decoration: none;
	font-size: 17px;
	font-weight: 780;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.zg-button:hover {
	transform: translateY(-2px);
	filter: brightness(.98);
}

.zg-button svg,
.zg-footer svg,
.zg-form-button svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.zg-button-whatsapp {
	background: var(--zg-green);
	color: #fff;
	box-shadow: 0 11px 25px rgba(32, 173, 90, .21);
}

.zg-button-primary {
	background: linear-gradient(135deg, #1557e8, #073dba);
	color: #fff;
	box-shadow: 0 11px 25px rgba(16, 73, 216, .21);
}

.zg-section {
	padding: 68px 0;
}

.zg-section-label {
	margin: 0 0 18px;
	text-align: center;
	color: var(--zg-blue);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: .05em;
}

.zg-section-title {
	margin: -4px 0 34px;
	text-align: center;
	font-size: clamp(29px, 3vw, 40px);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.zg-service-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.zg-service-card {
	min-height: 235px;
	padding: 31px 23px;
	border: 1px solid var(--zg-border);
	border-radius: var(--zg-radius);
	background: #fff;
	text-align: center;
	box-shadow: var(--zg-shadow);
}

.zg-icon {
	display: inline-grid;
	place-items: center;
	color: var(--zg-blue);
}

.zg-icon svg {
	width: 56px;
	height: 56px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.zg-service-card h2,
.zg-step h2 {
	margin: 19px 0 8px;
	color: var(--zg-text);
	font-size: 18px;
	line-height: 1.3;
}

.zg-service-card p,
.zg-step p {
	margin: 0;
	color: var(--zg-muted);
	font-size: 15px;
	line-height: 1.65;
}

.zg-process {
	background: linear-gradient(180deg, #f8faff 0%, #f1f6ff 100%);
}

.zg-steps {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
	gap: 25px;
	align-items: center;
}

.zg-step {
	position: relative;
	text-align: center;
	padding: 12px 5px;
}

.zg-step-number {
	position: absolute;
	top: -15px;
	left: 50%;
	width: 35px;
	height: 35px;
	display: grid;
	place-items: center;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--zg-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 850;
}

.zg-step .zg-icon {
	margin-top: 27px;
}

.zg-step .zg-icon svg {
	width: 50px;
	height: 50px;
}

.zg-step-arrow {
	color: #7d8ba0;
	font-size: 29px;
	font-weight: 300;
}

.zg-contact {
	padding: 72px 0 58px;
}

.zg-form-wrap {
	max-width: 900px;
}

.zg-form {
	display: grid;
	gap: 13px;
}

.zg-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 13px;
}

.zg-form label {
	display: block;
}

.zg-form input,
.zg-form textarea {
	width: 100%;
	margin: 0;
	padding: 16px 17px;
	border: 1px solid #ced9e7;
	border-radius: 7px;
	background: #fff;
	color: var(--zg-text);
	font: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.zg-form textarea {
	min-height: 105px;
	resize: vertical;
}

.zg-form input:focus,
.zg-form textarea:focus {
	border-color: var(--zg-blue);
	box-shadow: 0 0 0 3px rgba(16, 73, 216, .1);
}

.zg-form-button {
	min-height: 59px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 7px;
	background: linear-gradient(135deg, #1557e8, #073dba);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 820;
	cursor: pointer;
	box-shadow: 0 11px 25px rgba(16, 73, 216, .18);
}

.zg-form-button[disabled] {
	opacity: .72;
	cursor: wait;
}

.zg-form-note {
	margin: 0;
	text-align: center;
	color: var(--zg-muted);
	font-size: 13px;
}

.zg-alert {
	margin: 0 0 19px;
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 650;
}

.zg-alert-success {
	border: 1px solid #bfe5cc;
	background: #edfdf3;
	color: #14753b;
}

.zg-alert-error {
	border: 1px solid #efc7c7;
	background: #fff2f2;
	color: #9d2c2c;
}

.zg-honeypot {
	position: absolute !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.zg-footer {
	border-top: 1px solid #e8edf4;
	background: #fff;
	padding: 25px 0;
	color: #6d7b90;
	font-size: 14px;
}

.zg-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.zg-footer p {
	margin: 0;
}

.zg-footer-links {
	display: flex;
	align-items: center;
	gap: 23px;
}

.zg-footer a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: #596a82;
}

.zg-footer svg {
	width: 18px;
	height: 18px;
}

.zg-privacy {
	border-top: 1px solid #eef2f7;
	background: #fbfcfe;
}

.zg-privacy details {
	max-width: 900px;
	margin: 0 auto;
	padding: 18px 0;
	color: #64748b;
	font-size: 13px;
}

.zg-privacy summary {
	display: inline-block;
	cursor: pointer;
	color: var(--zg-blue);
	font-weight: 750;
}

.zg-privacy p {
	margin: 9px 0 0;
	line-height: 1.65;
}

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

.zg-basic-page {
	max-width: 860px;
	margin: 0 auto;
	padding: 70px 20px;
}

.zg-basic-page h1 {
	font-size: 42px;
}

.zg-basic-page-content {
	color: var(--zg-body);
	font-size: 17px;
	line-height: 1.75;
}

@media (min-width: 1500px) {
	.zg-hero-image {
		background-size: auto 135%;
		background-position: center center;
		background-repeat: no-repeat;
	}
}

@media (max-width: 930px) {
	.zg-hero {
		background: #fff;
	}

	.zg-hero-inner {
		display: block;
		min-height: auto;
	}

	.zg-hero-copy {
		width: 100%;
		padding: 24px 0 42px;
	}

	.zg-brand {
		margin-bottom: 43px;
	}

	.zg-brand-logo {
		width: min(390px, 70vw);
	}

	.zg-hero h1 {
		font-size: clamp(41px, 8vw, 60px);
	}

	.zg-hero-image {
		position: relative;
		inset: auto;
		width: 100vw;
		height: 380px;
		margin-left: calc(50% - 50vw);
		background-size: auto 140%;
		background-position: center center;
		background-repeat: no-repeat;
	}

	.zg-hero-image::before {
		background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
	}

	.zg-service-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.zg-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.zg-step-arrow {
		display: none;
	}
}

@media (max-width: 620px) {
	body {
		padding-bottom: 66px;
	}

	.zg-container {
		width: min(100% - 28px, 1160px);
	}

	.zg-hero-copy {
		padding-top: 18px;
	}

	.zg-brand {
		margin-bottom: 31px;
	}

	.zg-brand-logo {
		width: min(315px, 88vw);
	}

	.zg-brand-copy strong {
		font-size: 18px;
	}

	.zg-brand-copy small {
		font-size: 9px;
	}

	.zg-logo-mark {
		width: 33px;
		height: 33px;
	}

	.zg-hero h1 {
		font-size: clamp(31px, 10vw, 39px);
		line-height: 1.08;
	}

	.zg-hero-lead {
		font-size: 17px;
	}

	.zg-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.zg-button {
		width: 100%;
		min-height: 56px;
	}

	.zg-hero-image {
		height: 285px;
	}

	.zg-section {
		padding: 49px 0;
	}

	.zg-section-title {
		margin-bottom: 26px;
		font-size: 29px;
	}

	.zg-service-grid,
	.zg-form-row {
		grid-template-columns: 1fr;
	}

	.zg-service-card {
		min-height: auto;
		padding: 26px 20px;
	}

	.zg-steps {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.zg-step {
		display: grid;
		grid-template-columns: 49px 1fr;
		column-gap: 15px;
		padding: 12px 0;
		text-align: left;
	}

	.zg-step-number {
		top: 7px;
		left: 24px;
		width: 25px;
		height: 25px;
		transform: none;
		font-size: 12px;
	}

	.zg-step .zg-icon {
		grid-row: 1 / span 2;
		margin-top: 15px;
	}

	.zg-step .zg-icon svg {
		width: 43px;
		height: 43px;
	}

	.zg-step h2 {
		margin: 10px 0 4px;
		font-size: 17px;
	}

	.zg-step p {
		font-size: 14px;
	}

	.zg-contact {
		padding-bottom: 49px;
	}

	.zg-footer-inner {
		flex-direction: column;
		text-align: center;
	}

	.zg-footer-links {
		gap: 18px;
	}

	.zg-mobile-bar {
		position: fixed;
		z-index: 9998;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 8px 10px max(8px, env(safe-area-inset-bottom));
		background: rgba(255,255,255,.96);
		border-top: 1px solid #dfe7f1;
		box-shadow: 0 -8px 24px rgba(9, 40, 93, .09);
		backdrop-filter: blur(10px);
	}

	.zg-mobile-bar a {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 4px;
		border-radius: 7px;
		color: #fff;
		text-decoration: none;
		font-size: 14px;
		font-weight: 800;
	}

	.zg-mobile-whatsapp {
		background: var(--zg-green);
	}

	.zg-mobile-request {
		background: var(--zg-blue);
	}
}


.zg-float-whatsapp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	border-radius: 999px;
	background: var(--zg-green);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 760;
	line-height: 1;
	box-shadow: 0 14px 34px rgba(32, 173, 90, .28);
	z-index: 90;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.zg-float-whatsapp:hover {
	transform: translateY(-2px);
	filter: brightness(.98);
	box-shadow: 0 18px 38px rgba(32, 173, 90, .34);
}

.zg-float-whatsapp svg {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 782px) {
	body.admin-bar .zg-float-whatsapp {
		bottom: 70px;
	}
}

@media (max-width: 767px) {
	.zg-float-whatsapp {
		right: 16px;
		bottom: 22px;
		width: 56px;
		height: 56px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.zg-float-whatsapp span {
		display: none;
	}
}

@media (max-width: 620px) {
	/* The mobile bottom contact bar already contains WhatsApp, so hide the duplicate floating button. */
	.zg-float-whatsapp {
		display: none;
	}
}

@media (max-width: 420px) {
	.zg-hero-image {
		height: 245px;
	}
}
