/* ============================================================
   SULEPACK UI - Global Design System
   Loaded via mu-plugins/sulepack-ui.php on every front-end page.
   ============================================================ */

:root {
	--sp-blue: #1768b5;
	--sp-blue-dark: #0f5292;
	--sp-blue-deep: #0c3d6e;
	--sp-blue-soft: #eef5fc;
	--sp-blue-line: #cfe2f3;
	--sp-ink: #0e2a47;
	--sp-muted: #51637a;
	--sp-line: #dce7f2;
	--sp-bg-soft: #f5f9fe;
	--sp-radius: 16px;
	--sp-shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
	--sp-shadow-hover: 0 18px 40px rgba(14, 42, 71, 0.14);
}

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--sp-ink);
	letter-spacing: -0.01em;
}

::selection {
	background: rgba(23, 104, 181, 0.18);
}

/* ---------- Layout helpers ---------- */

.sp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.sp-bleed {
	/* Full-bleed: beat Astra's ".entry-content[data-ast-blocks-layout] > *" centering */
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none !important;
	width: auto !important;
}

.sp-section {
	padding: clamp(56px, 7vw, 88px) 0;
}

.sp-section--soft {
	background: var(--sp-bg-soft);
	border-top: 1px solid var(--sp-line);
	border-bottom: 1px solid var(--sp-line);
}

.sp-eyebrow {
	color: var(--sp-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.sp-head {
	margin: 0 auto 46px;
	max-width: 720px;
	text-align: center;
}

.sp-head h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 14px;
}

.sp-head p {
	color: var(--sp-muted);
	font-size: 16.5px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Buttons ---------- */

.sp-btn {
	background: var(--sp-blue);
	border: 2px solid var(--sp-blue);
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(23, 104, 181, 0.25);
	color: #fff !important;
	cursor: pointer;
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	padding: 16px 30px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sp-btn:hover {
	background: var(--sp-blue-dark);
	border-color: var(--sp-blue-dark);
	box-shadow: 0 12px 26px rgba(23, 104, 181, 0.32);
	color: #fff !important;
	transform: translateY(-2px);
}

.sp-btn--ghost {
	background: #fff;
	border-color: var(--sp-blue-line);
	box-shadow: none;
	color: var(--sp-blue) !important;
}

.sp-btn--ghost:hover {
	background: var(--sp-blue-soft);
	border-color: var(--sp-blue);
	box-shadow: none;
	color: var(--sp-blue-dark) !important;
}

.sp-btn--light {
	background: #fff;
	border-color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	color: var(--sp-blue-dark) !important;
}

.sp-btn--light:hover {
	background: var(--sp-blue-soft);
	border-color: var(--sp-blue-soft);
	color: var(--sp-blue-deep) !important;
}

.sp-btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	box-shadow: none;
	color: #fff !important;
}

.sp-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff !important;
}

/* ---------- Hero ---------- */

.sp-hero {
	background:
		radial-gradient(720px 420px at 88% -10%, rgba(23, 104, 181, 0.12), transparent 65%),
		linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--sp-line);
	padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 92px);
}

.sp-hero__grid {
	align-items: center;
	display: grid;
	gap: clamp(36px, 5vw, 64px);
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.sp-hero h1 {
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	margin: 0 0 18px;
}

.sp-hero__lede {
	color: var(--sp-muted);
	font-size: 18px;
	line-height: 1.65;
	margin: 0 0 30px;
	max-width: 520px;
}

.sp-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 26px;
}

.sp-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sp-chip {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 999px;
	color: var(--sp-ink);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	padding: 8px 14px;
}

.sp-chip::before {
	background: var(--sp-blue);
	border-radius: 50%;
	content: "";
	flex: 0 0 7px;
	height: 7px;
}

.sp-hero__media {
	position: relative;
}

.sp-hero__media-main {
	aspect-ratio: 5 / 4;
	border-radius: 20px;
	box-shadow: var(--sp-shadow-hover);
	display: block;
	object-fit: cover;
	width: 100%;
}

.sp-hero__media-sub {
	border: 6px solid #fff;
	border-radius: 16px;
	bottom: -34px;
	box-shadow: var(--sp-shadow-hover);
	display: block;
	height: auto;
	left: -28px;
	position: absolute;
	width: 44%;
}

/* ---------- Trust strip ---------- */

.sp-strip {
	background: #fff;
	border-bottom: 1px solid var(--sp-line);
	padding: 26px 0;
}

.sp-strip__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 44px;
	justify-content: center;
}

.sp-strip__item {
	align-items: center;
	color: var(--sp-ink);
	display: flex;
	font-size: 14.5px;
	font-weight: 700;
	gap: 10px;
}

.sp-strip__item svg {
	color: var(--sp-blue);
	flex: 0 0 22px;
	height: 22px;
	width: 22px;
}

/* ---------- Category cards ---------- */

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

.sp-cat {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	color: inherit !important;
	display: block;
	overflow: hidden;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-cat:hover {
	border-color: var(--sp-blue);
	box-shadow: var(--sp-shadow-hover);
	transform: translateY(-4px);
}

.sp-cat img {
	aspect-ratio: 1 / 1;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
	width: 100%;
}

.sp-cat:hover img {
	transform: scale(1.045);
}

.sp-cat__body {
	padding: 16px 18px 20px;
}

.sp-cat__body h3 {
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 6px;
}

.sp-cat__body p {
	color: var(--sp-muted);
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0;
}

.sp-cats-more {
	background: linear-gradient(135deg, var(--sp-blue-soft), #fff);
	border: 1px dashed var(--sp-blue-line);
	border-radius: var(--sp-radius);
	color: var(--sp-ink);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding: 18px 24px;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-cats-more:hover {
	border-color: var(--sp-blue);
	box-shadow: var(--sp-shadow);
}

.sp-cats-more strong {
	color: var(--sp-blue);
	font-size: 15px;
}

/* ---------- Product cards ---------- */

.sp-products {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-product {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	color: inherit !important;
	display: block;
	overflow: hidden;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-product:hover {
	border-color: var(--sp-blue);
	box-shadow: var(--sp-shadow-hover);
	transform: translateY(-4px);
}

.sp-product img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
	width: 100%;
}

.sp-product:hover img {
	transform: scale(1.04);
}

.sp-product__body {
	padding: 20px 22px 24px;
}

.sp-product__body h3 {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px;
}

.sp-product__body p {
	color: var(--sp-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.sp-product__link {
	color: var(--sp-blue) !important;
	font-size: 14px;
	font-weight: 700;
}

.sp-product__link::after {
	content: " \2192";
}

/* ---------- Steps ---------- */

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

.sp-step {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	padding: 26px 24px;
	position: relative;
}

.sp-step__num {
	align-items: center;
	background: var(--sp-blue);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 16px;
	font-weight: 800;
	height: 42px;
	justify-content: center;
	margin-bottom: 16px;
	width: 42px;
}

.sp-step h3 {
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 8px;
}

.sp-step p {
	color: var(--sp-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

/* ---------- Logistics flow ---------- */

.sp-flow {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sp-flow__card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 14px;
	box-shadow: var(--sp-shadow);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-flow__card:hover {
	box-shadow: var(--sp-shadow-hover);
	transform: translateY(-4px);
}

.sp-flow__num {
	align-items: center;
	background: var(--sp-blue);
	border-radius: 999px;
	color: #fff;
	display: flex;
	font-size: 12.5px;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	left: 12px;
	position: absolute;
	top: 12px;
	width: 28px;
}

.sp-flow__card img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.sp-flow__label {
	font-size: 15px;
	font-weight: 700;
	padding: 14px 16px 4px;
}

.sp-flow__card p {
	color: var(--sp-muted);
	font-size: 13px;
	line-height: 1.4;
	margin: 0;
	padding: 0 16px 16px;
}

/* ---------- Why Sulepack ---------- */

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

.sp-why__card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	padding: 28px 24px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-why__card:hover {
	box-shadow: var(--sp-shadow-hover);
	transform: translateY(-4px);
}

.sp-why__card svg {
	color: var(--sp-blue);
	display: block;
	height: 40px;
	margin-bottom: 16px;
	width: 40px;
}

.sp-why__card h3 {
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 8px;
}

.sp-why__card p {
	color: var(--sp-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

/* ---------- FAQ ---------- */

.sp-faq {
	margin: 0 auto;
	max-width: 780px;
}

.sp-faq details {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.sp-faq details[open] {
	border-color: var(--sp-blue);
}

.sp-faq summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 15.5px;
	font-weight: 700;
	justify-content: space-between;
	list-style: none;
	padding: 17px 22px;
}

.sp-faq summary::-webkit-details-marker {
	display: none;
}

.sp-faq summary::after {
	color: var(--sp-blue);
	content: "+";
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	margin-left: 16px;
}

.sp-faq details[open] summary::after {
	content: "\2013";
}

.sp-faq__a {
	color: var(--sp-muted);
	font-size: 14.5px;
	line-height: 1.65;
	padding: 0 22px 18px;
}

/* ---------- CTA band ---------- */

.sp-cta {
	background:
		radial-gradient(560px 300px at 12% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
		linear-gradient(135deg, var(--sp-blue) 0%, var(--sp-blue-deep) 100%);
	border-radius: 24px;
	color: #fff;
	padding: clamp(44px, 5.5vw, 64px) clamp(24px, 4vw, 56px);
	text-align: center;
}

.sp-cta h2 {
	color: #fff !important;
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	margin: 0 0 14px;
}

.sp-cta p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 16.5px;
	line-height: 1.6;
	margin: 0 auto 30px;
	max-width: 560px;
}

.sp-cta__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-bottom: 26px;
}

.sp-cta__contact {
	color: rgba(255, 255, 255, 0.92);
	font-size: 14.5px;
}

.sp-cta__contact a {
	color: #fff !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- WooCommerce: single product ---------- */

.woocommerce div.product .product_title {
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.woocommerce div.product div.images img {
	border-radius: 14px;
}

.woocommerce div.product .woocommerce-product-details__short-description p,
.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--sp-muted);
	font-size: 15px;
	line-height: 1.65;
}

.woocommerce div.product .woocommerce-product-details__short-description .sp-quote-btn {
	background: var(--sp-blue) !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 20px rgba(23, 104, 181, 0.25);
	color: #fff !important;
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	margin-top: 6px;
	padding: 15px 28px !important;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.15s ease;
}

.woocommerce div.product .woocommerce-product-details__short-description .sp-quote-btn:hover {
	background: var(--sp-blue-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	border-radius: 10px;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--sp-blue);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	font-size: 24px;
	font-weight: 800;
}

/* ---------- WooCommerce: shop & archive ---------- */

.woocommerce .woocommerce-products-header__title.page-title {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
}

.woocommerce .woocommerce-result-count {
	color: var(--sp-muted);
}

.woocommerce .woocommerce-ordering select {
	border: 1px solid var(--sp-line);
	border-radius: 8px;
	padding: 8px 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.sp-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-why {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.sp-hero__grid {
		grid-template-columns: 1fr;
	}
	.sp-hero__media {
		margin-top: 10px;
		max-width: 560px;
	}
	.sp-hero__media-sub {
		left: -10px;
	}
}

@media (max-width: 600px) {
	.sp-cats,
	.sp-products,
	.sp-steps,
	.sp-flow,
	.sp-why {
		grid-template-columns: 1fr;
	}
	.sp-hero__media-sub {
		display: none;
	}
	.sp-cta {
		border-radius: 18px;
	}
	.sp-cta__btns .sp-btn {
		width: 100%;
	}
}
