/*
Theme Name: SimplyServices Tech
Theme URI: https://dnaie.com
Author: dnaie.com
Description: A dark-themed technology services and e-commerce hybrid WordPress block theme for SimplyServices Tech. Features deep navy backgrounds, electric blue accents, and a mobile-first landing page design optimized for tech support, server hosting, online shop, project portfolio, and personal branding.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simplyservices-tech
Tags: full-site-editing, block-themes, dark-mode, e-commerce, one-page, custom-colors, custom-fonts, wide-blocks
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================================================
   0. Foundations — scroll, root overflow, global resets
   ======================================================================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--wp--custom--scroll-padding-top, 80px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* ========================================================================
   1. Sticky header
   ======================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Pseudo-element for scrolled-state background — avoids backdrop-filter
   on the header itself so the mobile nav overlay's position:fixed isn't
   trapped inside a containing block. */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

/* Inner header group — the .site-header className from header.html */
.site-header {
	transition: padding 0.25s ease;
}

/* ========================================================================
   2. Landing-page anchor sections
   ======================================================================== */

.wp-site-blocks .alignfull[id] {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Short sections (contact / signup / about) shouldn't force empty space */
.wp-site-blocks .alignfull[id="signup"],
.wp-site-blocks .alignfull[id="contact"],
.wp-site-blocks .alignfull[id="about"] {
	min-height: auto;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

/* :target highlight — electric-blue left accent on jump */
.wp-site-blocks .alignfull[id]:target {
	box-shadow: inset 4px 0 0 var(--wp--preset--color--primary);
	transition: box-shadow 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks .alignfull[id]:target {
		box-shadow: none;
		transition: none;
	}
}

/* ========================================================================
   3. Typography polish
   ======================================================================== */

/* Body text — crisp, readable, modern */
p {
	line-height: 1.65;
}

/* Heading tighten — the deep navy / electric-blue palette demands
   sharper typographic edges */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

h1 {
	line-height: 1.08;
}

h2 {
	line-height: 1.12;
}

h3 {
	line-height: 1.18;
}

/* JetBrains Mono styling for technical pills, labels, metadata */
.has-mono-font-family {
	letter-spacing: 0.02em;
}

/* Small caps utility for section overlines / eyebrow text */
.is-style-section-label,
h6 {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

/* ========================================================================
   4. Link styles
   ======================================================================== */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

a:hover {
	text-decoration: none;
}

/* Navigation link styling — steel-blue default, white on hover */
.wp-block-navigation a {
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
	border-radius: 6px;
	padding: 0.4rem 0.75rem;
}

.wp-block-navigation a:hover {
	color: var(--wp--preset--color--text);
	background: rgba(21, 84, 212, 0.1);
}

/* Active anchor underline for landing-page nav */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation a {
		position: relative;
	}

	.wp-block-navigation a::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: -4px;
		height: 2px;
		background: var(--wp--preset--color--primary);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.3s ease;
	}

	.wp-block-navigation a.is-active::after {
		transform: scaleX(1);
	}
}

/* ========================================================================
   5. Button variants
   ======================================================================== */

/* Primary button — electric blue with white text, punchy radius */
.wp-block-button .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	font-weight: 600;
	letter-spacing: -0.005em;
	border: none;
	cursor: pointer;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(21, 84, 212, 0.3);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(21, 84, 212, 0.2);
}

/* Outline (ghost) button — transparent bg, blue border, light-blue text */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--heading);
	border: 1.5px solid var(--wp--preset--color--primary);
}

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

/* Nav CTA button inside navigation — compact inline button */
.wp-block-navigation .wp-block-button .wp-block-button__link {
	padding: 0.45rem 1.15rem;
	font-size: var(--wp--preset--font-size--small);
}

/* ========================================================================
   6. Card / surface treatments
   ======================================================================== */

/* Service cards — the card-group pattern used in landing sections */
.has-surface-background-color,
.has-surface-alt-background-color {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.has-surface-background-color:hover,
.has-surface-alt-background-color:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 40px rgba(21, 84, 212, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.has-surface-background-color:hover,
	.has-surface-alt-background-color:hover {
		transform: none;
	}
}

/* ========================================================================
   7. Image treatments
   ======================================================================== */

/* Hero image frame — desaturated, blue-tinted, moody tech aesthetic */
.wp-block-cover img,
.wp-block-image img {
	border-radius: 8px;
}

/* Subtle image reveal on card hover */
.has-surface-background-color .wp-block-image img,
.has-surface-alt-background-color .wp-block-image img {
	filter: saturate(0.7) brightness(0.85);
	transition: filter 0.4s ease, transform 0.4s ease;
}

.has-surface-background-color:hover .wp-block-image img,
.has-surface-alt-background-color:hover .wp-block-image img {
	filter: saturate(0.9) brightness(0.95);
	transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
	.has-surface-background-color:hover .wp-block-image img,
	.has-surface-alt-background-color:hover .wp-block-image img {
		transform: none;
	}
}

/* Cover block overlays — ensure deep navy with controlled opacity */
.wp-block-cover::after {
	border-radius: inherit;
}

/* ========================================================================
   8. Hero-specific styling
   ======================================================================== */

/* Hero badge / pill — JetBrains Mono tech label */
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--accent-pill-bg);
	color: var(--wp--preset--color--accent-pill-text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	padding: 0.4rem 0.9rem;
	border-radius: 20px;
	width: fit-content;
	letter-spacing: 0.03em;
}

.hero-badge-dot {
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	display: inline-block;
}

/* Service strip pills — tech labels beneath hero headline */
.hero-services-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-dim);
	letter-spacing: 0.04em;
}

.hero-services-strip span {
	padding: 0.3rem 0.65rem;
	background: rgba(21, 84, 212, 0.08);
	border: 1px solid rgba(21, 84, 212, 0.15);
	border-radius: 4px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-services-strip span:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--accent-pill-text);
}

/* Hero image frame */
.hero-image-frame {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(21, 84, 212, 0.2);
	box-shadow:
		0 0 0 1px rgba(21, 84, 212, 0.05),
		0 8px 32px rgba(0, 0, 0, 0.4),
		0 0 120px rgba(21, 84, 212, 0.08);
}

.hero-image-frame::after {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary));
	z-index: 3;
	border-radius: 16px 16px 0 0;
}

.hero-image-frame img {
	opacity: 0.55;
	filter: saturate(0.7) brightness(0.8);
}

/* Stat cards overlay on hero image */
.stat-card {
	background: rgba(11, 22, 40, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(21, 84, 212, 0.2);
	border-radius: 8px;
	padding: 0.75rem 0.9rem;
}

.stat-card-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6rem;
	color: var(--wp--preset--color--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
}

.stat-card-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--wp--preset--color--text);
}

.stat-card-value span {
	color: var(--wp--preset--color--primary);
}

/* Hero background decorative layers */
.hero-bg-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.hero-bg-layer::before {
	content: '';
	position: absolute;
	top: 15%;
	right: 10%;
	width: 900px;
	height: 900px;
	background: radial-gradient(circle, rgba(16, 64, 160, 0.35) 0%, rgba(16, 64, 160, 0.08) 40%, transparent 70%);
	border-radius: 50%;
}

.hero-bg-layer::after {
	content: '';
	position: absolute;
	bottom: -10%;
	left: -5%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(10, 58, 138, 0.2) 0%, transparent 60%);
	border-radius: 50%;
}

/* Grid pattern overlay */
.hero-grid-pattern {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.04;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(21, 84, 212, 1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(21, 84, 212, 1) 1px, transparent 1px);
	background-size: 60px 60px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 20%, transparent 80%);
	mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 20%, transparent 80%);
}

/* Vertical accent stripe */
.hero-vertical-accent {
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 3px;
	background: linear-gradient(to bottom, transparent, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark), transparent);
	z-index: 1;
	border-radius: 2px;
}

/* Corner detail — version label */
.hero-corner-detail {
	position: absolute;
	top: 2rem;
	right: 2rem;
	z-index: 1;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	color: var(--wp--preset--color--watermark);
	text-align: right;
	line-height: 1.8;
	letter-spacing: 0.05em;
}

/* ========================================================================
   9. Section-specific utilities
   ======================================================================== */

/* Section overline / eyebrow badge */
.section-overline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--accent-pill-text);
	background: var(--wp--preset--color--accent-pill-bg);
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Glow separator between sections */
.section-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
	opacity: 0.2;
	border: none;
	margin-block: var(--wp--preset--spacing--60);
}

/* ========================================================================
   10. WooCommerce badge styling
   ======================================================================== */

.woo-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--accent-pill-text);
	background: var(--wp--preset--color--accent-pill-bg);
	padding: 0.3rem 0.7rem;
	border-radius: 4px;
	letter-spacing: 0.03em;
}

/* ========================================================================
   11. Footer
   ======================================================================== */

/* Footer surface — deepest layer of the palette */
.wp-site-blocks > footer.wp-block-template-part {
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Footer links — muted, shift to primary on hover */
footer a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* Watermark credit */
.footer-watermark {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--watermark);
	letter-spacing: 0.02em;
}

.footer-watermark a {
	color: var(--wp--preset--color--watermark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.footer-watermark a:hover {
	color: var(--wp--preset--color--text-secondary);
}

/* ========================================================================
   12. Separator / border refinements
   ======================================================================== */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* ========================================================================
   13. Form elements — for contact / service request forms
   ======================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 0.7rem 1rem;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(21, 84, 212, 0.15);
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--text-dim);
}

label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
	display: block;
	margin-bottom: 0.4rem;
}

/* ========================================================================
   14. Mobile hamburger overlay
   ======================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--text);
}

/* ========================================================================
   15. WooCommerce integration — basic dark overrides
   ======================================================================== */

.woocommerce .price,
.wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--text);
	font-weight: 600;
}

.woocommerce .badge,
.woocommerce .onsale {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	border-radius: 4px;
}

/* ========================================================================
   16. Responsive refinements
   ======================================================================== */

@media (max-width: 900px) {
	.hero-corner-detail,
	.hero-vertical-accent {
		display: none;
	}

	.hero-image-frame img {
		opacity: 0.35;
		filter: saturate(0.5) brightness(0.6) blur(1px);
	}
}

@media (max-width: 600px) {
	/* Full-width buttons on small screens */
	.wp-block-buttons {
		flex-direction: column;
	}

	.wp-block-button {
		width: 100%;
	}

	.wp-block-button .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.hero-services-strip span {
		font-size: 0.65rem;
		padding: 0.25rem 0.5rem;
	}

	/* Stack stat cards */
	.hero-image-overlay-stats {
		display: none;
	}
}

/* ========================================================================
   17. Selection color
   ======================================================================== */

::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
}

::-moz-selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
}

/* ========================================================================
   18. Scrollbar styling (thin, themed)
   ======================================================================== */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--background);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* Firefox scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) var(--wp--preset--color--background);
}

/* ========================================================================
   19. Focus visible — accessibility
   ======================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.wp-block-button .wp-block-button__link:focus-visible {
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(21, 84, 212, 0.25);
}

/* ========================================================================
   20. Loop layout utilities
   ======================================================================== */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
	opacity: 0.3;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}

@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}