/* SmarterHost theme stylesheet */

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

html {
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	background: var( --wp--preset--color--base );
	color: var( --wp--preset--color--foreground );
}

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

[id] {
	scroll-margin-top: calc( 84px + var( --wp--preset--spacing--30 ) );
}

@media ( prefers-reduced-motion: no-preference ) {
	html {
		scroll-behavior: smooth;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect( 1px, 1px, 1px, 1px );
	clip-path: inset( 50% );
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Focus visibility -- never remove without a replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var( --wp--preset--color--accent );
	outline-offset: 3px;
	border-radius: var( --wp--custom--radius--sm );
}

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

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba( 10, 15, 26, 0.85 );
	backdrop-filter: blur( 10px );
	-webkit-backdrop-filter: blur( 10px );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.smarterhost-header-inner {
	max-width: var( --wp--style--global--wide-size, 1280px );
	margin-inline: auto;
	padding: var( --wp--preset--spacing--30 ) var( --wp--preset--spacing--40 );
	align-items: center;
	gap: var( --wp--preset--spacing--30 );
}

.smarterhost-header-inner .smarterhost-logo {
	margin: 0;
	font-weight: 700;
	font-size: var( --wp--preset--font-size--large );
	letter-spacing: -0.01em;
}

.smarterhost-logo a {
	color: var( --wp--preset--color--contrast );
	text-decoration: none;
}

.smarterhost-logo span {
	color: var( --wp--preset--color--accent );
}

#primary-menu {
	display: flex;
	align-items: center;
	gap: var( --wp--preset--spacing--40 );
	list-style: none;
	margin: 0;
	padding: 0;
}

#primary-menu a {
	color: var( --wp--preset--color--foreground );
	text-decoration: none;
	font-size: var( --wp--preset--font-size--medium );
	font-weight: 500;
	transition: color 0.15s ease;
}

#primary-menu a:hover {
	color: var( --wp--preset--color--contrast );
}

.smarterhost-header-cta {
	margin: 0;
}

.smarterhost-header-cta .wp-block-button__link {
	font-size: var( --wp--preset--font-size--small );
	padding: 0.6em 1.2em;
}

.smarterhost-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--sm );
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var( --wp--preset--color--contrast );
}

.smarterhost-nav-toggle__bars,
.smarterhost-nav-toggle__bars::before,
.smarterhost-nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
	border-radius: 2px;
}

.smarterhost-nav-toggle__bars::before {
	content: "";
	position: absolute;
	top: -6px;
}

.smarterhost-nav-toggle__bars::after {
	content: "";
	position: absolute;
	top: 6px;
}

/* -------------------------------------------------- */
/* Sections & shared layout                            */
/* -------------------------------------------------- */

.smarterhost-section {
	padding-block: var( --wp--preset--spacing--60 );
	max-width: var( --wp--style--global--wide-size, 1280px );
	margin-inline: auto;
	padding-inline: var( --wp--preset--spacing--40 );
}

.smarterhost-section-heading {
	max-width: 640px;
	margin: 0 auto var( --wp--preset--spacing--50 );
	text-align: center;
}

.smarterhost-section-heading h2 {
	font-size: var( --wp--preset--font-size--xx-large );
	margin-bottom: var( --wp--preset--spacing--20 );
}

.smarterhost-section-lead {
	color: var( --wp--preset--color--foreground-muted );
	font-size: var( --wp--preset--font-size--large );
}

.smarterhost-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: var( --wp--custom--radius--pill );
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --wp--preset--color--surface );
	border: 1px solid var( --wp--preset--color--border );
	color: var( --wp--preset--color--accent );
	box-shadow: var( --wp--custom--glow--primary );
	margin-bottom: var( --wp--preset--spacing--30 );
}

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

.smarterhost-hero {
	padding-block-start: var( --wp--preset--spacing--70 );
	position: relative;
}

.smarterhost-hero-grid {
	gap: var( --wp--preset--spacing--60 );
	align-items: center;
}

.smarterhost-hero-copy {
	flex: 1 1 480px;
	max-width: 600px;
}

.smarterhost-eyebrow {
	display: inline-block;
	font-size: var( --wp--preset--font-size--small );
	font-weight: 600;
	color: var( --wp--preset--color--accent );
	background: rgba( 37, 99, 235, 0.12 );
	border: 1px solid rgba( 37, 99, 235, 0.35 );
	border-radius: var( --wp--custom--radius--pill );
	padding: 0.4em 1em;
	margin-bottom: var( --wp--preset--spacing--30 );
}

.smarterhost-hero-title {
	font-size: var( --wp--preset--font-size--xxx-large );
	line-height: 1.15;
	margin: 0 0 var( --wp--preset--spacing--30 );
}

.smarterhost-hero-lead {
	font-size: var( --wp--preset--font-size--large );
	color: var( --wp--preset--color--foreground-muted );
	margin-bottom: var( --wp--preset--spacing--40 );
	max-width: 52ch;
}

.smarterhost-hero-visual {
	flex: 1 1 380px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.smarterhost-hero-glow {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 60%;
	height: 60%;
	background: radial-gradient( closest-side, rgba( 37, 99, 235, 0.35 ), transparent 70% );
	filter: blur( 40px );
	z-index: 0;
}

.smarterhost-hero-svg {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
}

/* -------------------------------------------------- */
/* Benefits                                            */
/* -------------------------------------------------- */

.smarterhost-benefits-grid {
	gap: var( --wp--preset--spacing--40 );
}

.smarterhost-benefit {
	background: var( --wp--preset--color--surface );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--md );
	padding: var( --wp--preset--spacing--40 );
}

.smarterhost-benefit-title {
	font-size: var( --wp--preset--font-size--x-large );
	margin: 0 0 var( --wp--preset--spacing--20 );
}

.smarterhost-benefit p {
	color: var( --wp--preset--color--foreground-muted );
	margin: 0;
}

/* -------------------------------------------------- */
/* Card grid (services)                                */
/* -------------------------------------------------- */

.smarterhost-card-grid {
	gap: var( --wp--preset--spacing--40 );
}

.smarterhost-card {
	background: var( --wp--preset--color--surface );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--lg );
	padding: var( --wp--preset--spacing--40 );
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.smarterhost-card:hover {
	transform: translateY( -4px );
	border-color: rgba( 37, 99, 235, 0.4 );
}

.smarterhost-card h3 {
	font-size: var( --wp--preset--font-size--x-large );
	margin: 0 0 var( --wp--preset--spacing--20 );
}

.smarterhost-card p {
	color: var( --wp--preset--color--foreground-muted );
	margin: 0;
}

/* -------------------------------------------------- */
/* Audience grid                                       */
/* -------------------------------------------------- */

.smarterhost-audience {
	background: var( --wp--preset--color--surface-alt );
	border-radius: var( --wp--custom--radius--lg );
	padding-block: var( --wp--preset--spacing--60 );
}

.smarterhost-audience-grid {
	gap: var( --wp--preset--spacing--40 );
}

.smarterhost-audience-item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.smarterhost-audience-item .smarterhost-icon-badge {
	width: 40px;
	height: 40px;
	color: var( --wp--preset--color--accent-2 );
}

.smarterhost-audience-label {
	margin: 0;
	font-weight: 600;
	font-size: var( --wp--preset--font-size--small );
}

/* -------------------------------------------------- */
/* Method / steps                                      */
/* -------------------------------------------------- */

.smarterhost-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var( --wp--preset--spacing--40 );
}

.smarterhost-step {
	background: var( --wp--preset--color--surface );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--md );
	padding: var( --wp--preset--spacing--40 );
}

.smarterhost-step-number {
	width: 40px;
	height: 40px;
	border-radius: var( --wp--custom--radius--pill );
	background: rgba( 37, 99, 235, 0.15 );
	color: var( --wp--preset--color--accent );
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var( --wp--preset--spacing--30 );
	font-weight: 700;
}

.smarterhost-step h3 {
	font-size: var( --wp--preset--font-size--x-large );
	margin: 0 0 var( --wp--preset--spacing--20 );
}

.smarterhost-step p {
	color: var( --wp--preset--color--foreground-muted );
	margin: 0;
}

/* -------------------------------------------------- */
/* Contact                                             */
/* -------------------------------------------------- */

.smarterhost-contact-wrap {
	max-width: 760px;
	margin: 0 auto;
	background: var( --wp--preset--color--surface );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--lg );
	padding: var( --wp--preset--spacing--50 );
}

.smarterhost-alert {
	border-radius: var( --wp--custom--radius--sm );
	padding: var( --wp--preset--spacing--30 );
	margin-bottom: var( --wp--preset--spacing--40 );
	font-weight: 500;
}

.smarterhost-alert--success {
	background: rgba( 16, 185, 129, 0.12 );
	border: 1px solid rgba( 16, 185, 129, 0.4 );
	color: #6ee7b7;
}

.smarterhost-alert--error {
	background: rgba( 239, 68, 68, 0.12 );
	border: 1px solid rgba( 239, 68, 68, 0.4 );
	color: #fca5a5;
}

.smarterhost-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var( --wp--preset--spacing--30 );
}

.smarterhost-field--wide,
.smarterhost-form-actions {
	grid-column: 1 / -1;
}

.smarterhost-field label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 500;
	font-size: var( --wp--preset--font-size--small );
}

.smarterhost-field input,
.smarterhost-field select,
.smarterhost-field textarea {
	width: 100%;
	background: var( --wp--preset--color--base );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--sm );
	color: var( --wp--preset--color--contrast );
	padding: 0.75em 1em;
	font-size: var( --wp--preset--font-size--medium );
	font-family: inherit;
}

.smarterhost-field textarea {
	resize: vertical;
}

.smarterhost-field [aria-invalid="true"] {
	border-color: #f87171;
}

.smarterhost-field-error {
	color: #fca5a5;
	font-size: var( --wp--preset--font-size--small );
	margin: 0.4em 0 0;
}

.smarterhost-field-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.smarterhost-form-actions {
	display: flex;
	align-items: center;
	gap: var( --wp--preset--spacing--30 );
	flex-wrap: wrap;
}

.smarterhost-btn {
	font: inherit;
	border: none;
	border-radius: 8px;
	padding: 0.75em 1.6em;
	cursor: pointer;
}

.smarterhost-btn--primary {
	background: var( --wp--preset--color--accent );
	color: #fff;
	font-weight: 600;
	transition: background 0.15s ease;
}

.smarterhost-btn--primary:hover {
	background: var( --wp--preset--color--accent-hover );
}

.smarterhost-btn--primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.smarterhost-form-feedback {
	font-size: var( --wp--preset--font-size--small );
}

.smarterhost-form-feedback--success {
	color: #6ee7b7;
}

.smarterhost-form-feedback--error {
	color: #fca5a5;
}

/* -------------------------------------------------- */
/* Buttons (core block overrides)                      */
/* -------------------------------------------------- */

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var( --wp--preset--color--border );
	color: var( --wp--preset--color--contrast );
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var( --wp--preset--color--accent );
	color: var( --wp--preset--color--accent );
}

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

footer.wp-block-template-part {
	border-top: 1px solid var( --wp--preset--color--border );
	background: var( --wp--preset--color--surface-alt );
	margin-top: var( --wp--preset--spacing--60 );
}

.smarterhost-footer-inner {
	max-width: var( --wp--style--global--wide-size, 1280px );
	margin-inline: auto;
	padding: var( --wp--preset--spacing--50 ) var( --wp--preset--spacing--40 );
	gap: var( --wp--preset--spacing--40 );
	align-items: flex-start;
}

.smarterhost-footer-brand .smarterhost-logo {
	margin: 0 0 0.4em;
	font-weight: 700;
}

.smarterhost-footer-tagline {
	color: var( --wp--preset--color--foreground-muted );
	max-width: 32ch;
	margin: 0;
}

.smarterhost-footer-nav {
	display: flex;
	gap: var( --wp--preset--spacing--30 );
	flex-wrap: wrap;
}

.smarterhost-footer-nav a {
	color: var( --wp--preset--color--foreground );
	text-decoration: none;
	font-size: var( --wp--preset--font-size--small );
}

.smarterhost-footer-nav a:hover {
	color: var( --wp--preset--color--accent );
}

.smarterhost-footer-meta {
	font-size: var( --wp--preset--font-size--small );
	color: var( --wp--preset--color--foreground-muted );
	text-align: right;
}

.smarterhost-footer-meta p {
	margin: 0 0 0.4em;
}

.smarterhost-footer-meta a {
	color: var( --wp--preset--color--foreground-muted );
}

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

@media ( max-width: 1024px ) {
	.smarterhost-audience-grid {
		grid-template-columns: repeat( 3, 1fr ) !important;
	}

	.smarterhost-benefits-grid,
	.smarterhost-card-grid,
	.smarterhost-steps {
		grid-template-columns: repeat( 2, 1fr ) !important;
	}
}

@media ( max-width: 781px ) {
	.smarterhost-nav-toggle {
		display: flex;
	}

	#primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: var( --wp--preset--spacing--20 );
		background: var( --wp--preset--color--surface );
		border-bottom: 1px solid var( --wp--preset--color--border );
		padding: var( --wp--preset--spacing--30 ) var( --wp--preset--spacing--40 );
	}

	#primary-menu.is-open {
		display: flex;
	}

	.smarterhost-header-inner {
		position: relative;
		flex-wrap: wrap;
	}

	.smarterhost-hero-title {
		font-size: var( --wp--preset--font-size--xx-large );
	}

	.smarterhost-audience-grid {
		grid-template-columns: repeat( 2, 1fr ) !important;
	}

	.smarterhost-benefits-grid,
	.smarterhost-card-grid,
	.smarterhost-steps {
		grid-template-columns: 1fr !important;
	}

	.smarterhost-form {
		grid-template-columns: 1fr;
	}

	.smarterhost-footer-inner {
		flex-direction: column;
	}

	.smarterhost-footer-meta {
		text-align: left;
	}
}

@media ( max-width: 480px ) {
	.smarterhost-audience-grid {
		grid-template-columns: 1fr !important;
	}

	.smarterhost-contact-wrap {
		padding: var( --wp--preset--spacing--40 );
	}
}
