/*
 * SmartGo front page 1.15.0.
 *
 * Loaded only on the selected front page. All content remains normal,
 * unlocked WordPress blocks; this file controls presentation only.
 */

.smartgo-blocksy.home .hero-section {
	display: none;
}

.smartgo-blocksy.home .site-main,
.smartgo-blocksy.home .entry-content,
.smartgo-blocksy.home [data-content="normal"] {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.smartgo-blocksy.home .entry-content > * {
	margin-block: 0;
}

.smartgo-blocksy .sgb-front-page,
.smartgo-blocksy .sgb-front-page__article {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.sgb-search-section {
	padding: 22px 0 0;
	background: #fff;
}

.sgb-product-search {
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.5fr) auto;
	gap: 12px;
	align-items: end;
	padding: 16px;
	border: 1px solid var(--sgb-border);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 48, 76, 0.06);
}

.sgb-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.sgb-field > span {
	color: #4e5968;
	font-size: 12px;
	font-weight: 750;
}

.sgb-product-search select,
.sgb-product-search input[type="search"] {
	width: 100%;
	height: 52px;
	min-width: 0;
	margin: 0;
	padding: 0 15px;
	border: 1px solid #d7dce4;
	border-radius: 9px;
	background: #fff;
	color: var(--sgb-ink);
	font: inherit;
	outline: none;
}

.sgb-product-search select:focus,
.sgb-product-search input[type="search"]:focus {
	border-color: var(--sgb-blue);
	box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12);
}

.sgb-product-search__button {
	min-width: 190px;
	min-height: 52px !important;
	cursor: pointer;
}

.sgb-hero-section {
	padding: 24px 0 0;
	background: #fff;
}

.sgb-hero {
	min-height: 500px;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #e8edf5;
	border-radius: var(--sgb-radius);
	background: linear-gradient(112deg, #fbfaf7 0%, #f8f9ff 47%, #eaf1ff 100%);
}

.sgb-hero > .wp-block-columns {
	min-height: 500px;
	margin: 0;
	align-items: stretch !important;
}

.sgb-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 52px 24px 52px 54px;
}

.sgb-eyebrow,
.sgb-kicker {
	margin: 0 0 14px !important;
	color: var(--sgb-coral);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sgb-hero h1 {
	max-width: 650px;
	margin: 0 !important;
	font-size: clamp(48px, 4.7vw, 70px);
	font-weight: 830;
	line-height: 1;
	letter-spacing: -0.052em;
}

.sgb-hero-copy > p:not(.sgb-eyebrow) {
	max-width: 560px;
	margin: 21px 0 26px !important;
	color: var(--sgb-muted);
	font-size: 18px;
	line-height: 1.6;
}

.sgb-hero .wp-block-buttons {
	gap: 12px;
}

.sgb-hero .is-style-outline .wp-block-button__link {
	border: 1px solid #cbd5e5 !important;
	background: #fff !important;
	color: var(--sgb-ink) !important;
	box-shadow: none;
}

.sgb-hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 28px 28px 20px 0;
}

.sgb-hero-visual .wp-block-image {
	width: 100%;
	height: 100%;
	margin: 0;
}

.sgb-hero-visual img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 460px;
	margin: auto;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 24px 24px rgba(33, 58, 103, 0.15));
}

.sgb-usp-section {
	position: relative;
	z-index: 3;
	padding: 0 0 22px;
	background: #fff;
}

.sgb-usp-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 0 !important;
	min-height: 82px;
	padding: 0 !important;
	border: 1px solid var(--sgb-border);
	border-radius: 0 0 14px 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 31, 60, 0.05);
}

.sgb-usp-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 18px !important;
}

.sgb-usp-grid > .wp-block-column {
	min-width: 0;
}

.sgb-usp-grid > .wp-block-column:not(:last-child) .sgb-usp-item::after {
	position: absolute;
	top: 22px;
	right: 0;
	width: 1px;
	height: 38px;
	background: var(--sgb-border);
	content: "";
}

.sgb-usp-icon {
	margin: 0 !important;
	color: var(--sgb-blue);
	font-size: 24px;
	line-height: 1;
}

.sgb-usp-item h3 {
	margin: 0 0 3px !important;
	font-size: 14px;
	line-height: 1.25;
}

.sgb-usp-item p {
	margin: 0 !important;
	color: var(--sgb-muted);
	font-size: 11px;
	line-height: 1.35;
}

.sgb-section {
	padding: 78px 0;
}

.sgb-section--soft {
	background: var(--sgb-off);
}

.sgb-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 28px;
}

.sgb-section-heading h2,
.sgb-guide h2 {
	margin: 0 !important;
	font-size: clamp(31px, 3vw, 43px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.sgb-section-link {
	color: var(--sgb-blue);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.sgb-category-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px !important;
}

.sgb-category-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 310px;
	margin: 0 !important;
	padding: 22px !important;
	overflow: hidden;
	border: 1px solid var(--sgb-border);
	border-radius: 14px;
	background: #fbfbfc;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sgb-category-card:nth-child(1) {
	background: #fbf8f5;
}

.sgb-category-card:nth-child(2) {
	background: #f1f5ff;
}

.sgb-category-card:nth-child(3) {
	background: #f6f7f9;
}

.sgb-category-card:nth-child(4) {
	background: #f7f4ff;
}

.sgb-category-card:hover {
	transform: translateY(-4px);
	border-color: #c9d5ea;
	box-shadow: var(--sgb-shadow);
}

.sgb-category-card h3 {
	margin: 0 0 7px !important;
	font-size: 20px;
}

.sgb-category-card > p {
	margin: 0 !important;
	color: var(--sgb-muted);
	font-size: 13px;
	line-height: 1.5;
}

.sgb-category-card .wp-block-image {
	display: flex;
	flex: 1;
	align-items: end;
	justify-content: center;
	min-height: 150px;
	margin: 12px 0 0;
}

.sgb-category-card .wp-block-image img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	object-position: center bottom;
}

.sgb-category-card .wp-block-button,
.sgb-category-card .wp-block-button__link {
	width: 100%;
}

.sgb-category-card .wp-block-button__link {
	min-height: 40px;
	padding: 9px 14px !important;
	font-size: 13px;
}

.sgb-guide {
	display: grid !important;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px !important;
	align-items: center !important;
}

.sgb-guide-copy > p:not(.sgb-kicker) {
	color: var(--sgb-muted);
	font-size: 17px;
	line-height: 1.75;
}

.sgb-guide-copy ul {
	margin: 24px 0 30px;
	padding: 0;
	list-style: none;
}

.sgb-guide-copy li {
	margin: 10px 0;
	font-weight: 650;
}

.sgb-guide-copy li::before {
	margin-right: 10px;
	color: var(--sgb-blue);
	content: "✓";
}

.sgb-guide-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 390px;
	padding: 34px !important;
	border-radius: 24px;
	background: linear-gradient(135deg, #f0f4ff, #fff6f3);
}

.sgb-guide-visual img {
	display: block;
	width: 100%;
	max-width: 430px;
	max-height: 330px;
	object-fit: contain;
}

@media (max-width: 1024px) {
	.sgb-product-search {
		grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr) auto;
	}

	.sgb-hero-copy {
		padding-left: 36px;
	}

	.sgb-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.sgb-shell {
		width: min(100% - 28px, var(--sgb-width)) !important;
	}

	.sgb-search-section,
	.sgb-hero-section {
		padding-top: 14px;
	}

	.sgb-product-search,
	.sgb-hero > .wp-block-columns,
	.sgb-guide {
		grid-template-columns: 1fr;
	}

	.sgb-product-search {
		padding: 13px;
	}

	.sgb-product-search__button,
	.sgb-hero .wp-block-buttons,
	.sgb-hero .wp-block-button,
	.sgb-hero .wp-block-button__link {
		width: 100%;
		min-width: 0;
	}

	.sgb-hero > .wp-block-columns {
		display: grid !important;
		min-height: 0;
	}

	.sgb-hero-copy {
		padding: 34px 22px 20px;
	}

	.sgb-hero h1 {
		font-size: clamp(36px, 10.5vw, 48px);
		line-height: 1.03;
		overflow-wrap: anywhere;
	}

	.sgb-hero-copy > p:not(.sgb-eyebrow) {
		margin: 17px 0 21px !important;
		font-size: 16px;
	}

	.sgb-hero-visual {
		min-height: 260px;
		padding: 4px 18px 20px;
	}

	.sgb-hero-visual img {
		max-height: 260px;
	}

	.sgb-usp-grid {
		grid-template-columns: 1fr 1fr;
		border-radius: 0 0 12px 12px;
	}

	.sgb-usp-item {
		justify-content: flex-start;
		padding: 14px !important;
	}

	.sgb-usp-grid > .wp-block-column .sgb-usp-item::after {
		display: none;
	}

	.sgb-usp-grid > .wp-block-column:nth-child(-n + 2) .sgb-usp-item {
		border-bottom: 1px solid var(--sgb-border);
	}

	.sgb-section {
		padding: 56px 0;
	}

	.sgb-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.sgb-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	.sgb-category-card {
		min-height: 280px;
		padding: 16px !important;
	}

	.sgb-category-card h3 {
		font-size: 17px;
		overflow-wrap: anywhere;
	}

	.sgb-category-card .wp-block-image img {
		height: 125px;
	}

	.sgb-guide {
		gap: 30px !important;
	}

	.sgb-guide-visual {
		min-height: 280px;
		padding: 24px !important;
	}
}

@media (max-width: 420px) {
	.sgb-category-card {
		min-height: 260px;
		padding: 13px !important;
	}

	.sgb-category-card h3 {
		font-size: 15px;
	}

	.sgb-category-card > p {
		font-size: 12px;
	}

	.sgb-category-card .wp-block-image img {
		height: 105px;
	}
}

@media (max-width: 340px) {
	.sgb-category-grid {
		grid-template-columns: 1fr !important;
	}
}
