/*
Theme Name: Steamantech
Theme URI: https://steamantech.com
Author: Steamantech
Description: A dark, blue-lit block theme for Steamantech: computer repairs, sales, IT support, managed services, networking and cybersecurity.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steamantech
Tags: block-themes, full-site-editing, dark, business, one-column, custom-colors
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
:where(a, button, input, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
	border-radius: 4px;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--wp--preset--color--signal); color: #fff; }

/* ---------- Header ---------- */
.stm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 10, 28, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(57, 168, 247, 0.18);
}
.admin-bar .stm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .stm-header { top: 46px; } }
.stm-header .stm-logo img { width: 210px; }
@media (max-width: 600px) { .stm-header .stm-logo img { width: 170px; } .stm-header .stm-header-cta { display: none; } }
.stm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--sky); }
.stm-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--midnight) !important;
	color: var(--wp--preset--color--ice) !important;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	background-image: linear-gradient(180deg, #3A8BFF 0%, #1F6BFF 55%, #1452D6 100%);
	box-shadow: 0 0 0 1px rgba(108, 196, 255, 0.35) inset, 0 8px 24px -8px rgba(31, 107, 255, 0.7);
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.wp-block-button .wp-block-button__link:hover {
	background-image: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	background-image: none;
	box-shadow: none;
	border: 2px solid rgba(57, 168, 247, 0.6);
	color: var(--wp--preset--color--ice);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--sky);
	background: rgba(57, 168, 247, 0.1);
	color: #fff;
}

/* ---------- Hero ---------- */
.stm-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--midnight);
	background-image:
		radial-gradient(ellipse 60% 70% at 78% 40%, rgba(31, 107, 255, 0.28), transparent 70%),
		linear-gradient(rgba(57, 168, 247, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(57, 168, 247, 0.06) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
}
.stm-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(57, 168, 247, 0.7), transparent);
}
.stm-hero .stm-hero-title { text-wrap: balance; }
.stm-hero .stm-hero-lede { max-width: 34rem; color: #C3D3F0; }
.stm-hero .stm-tagline {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	color: var(--wp--preset--color--sky);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.stm-hero .stm-tagline::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: var(--wp--preset--color--sky);
	box-shadow: 0 0 10px var(--wp--preset--color--sky);
}
.stm-hero .stm-hero-art img { filter: drop-shadow(0 30px 60px rgba(31, 107, 255, 0.35)); }

/* ---------- Section headings ---------- */
.stm-section-head h2 { margin-bottom: 0; }
.stm-section-head p { color: var(--wp--preset--color--slate); max-width: 36rem; }

/* ---------- Service tiles ---------- */
.stm-tile {
	position: relative;
	background: linear-gradient(160deg, #0F2350 0%, #081430 100%);
	border: 1px solid rgba(57, 168, 247, 0.28);
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(5, 10, 28, 0.6), inset 0 1px 0 rgba(108, 196, 255, 0.15);
	height: 100%;
}
.stm-tile::before {
	content: "";
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	top: -1px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--sky), transparent);
	opacity: .8;
}
.stm-tile .stm-icon img { width: 52px; height: 52px; }
.stm-tile { padding: 2rem !important; }
.stm-tile h3 { margin-top: 1rem; }
.stm-tile p { color: #B6C6E6; margin-top: 0.5rem; }

/* ---------- Angled slogan banner ---------- */
.stm-banner-wrap { --stm-cut: 3.25rem; --stm-chev: clamp(3rem, 8vw, 6rem); position: relative; }
.stm-banner,
.stm-banner-inner {
	clip-path: polygon(var(--stm-cut) 0, calc(100% - var(--stm-cut)) 0, 100% 50%, calc(100% - var(--stm-cut)) 100%, var(--stm-cut) 100%, 0 50%);
}
.stm-banner {
	padding: 2px;
	background: linear-gradient(90deg, #39A8F7, #1F6BFF 50%, #39A8F7);
	filter: drop-shadow(0 0 18px rgba(31, 107, 255, 0.45));
}
.stm-banner-inner {
	padding: 2.1rem calc(var(--stm-cut) + 1.5rem);
	text-align: center;
	background: linear-gradient(180deg, #13306E 0%, #0A1A3E 100%);
}
.stm-banner p {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
	font-size: clamp(1.9rem, 4.6vw, 3.4rem);
}
.stm-banner .stm-banner-line-2 { color: var(--wp--preset--color--sky); text-shadow: 0 0 24px rgba(57, 168, 247, 0.55); }
.stm-banner-wrap::before,
.stm-banner-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	width: var(--stm-chev);
	height: 2.5rem;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='none' stroke='%2339A8F7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 6L8 20l14 14' opacity='.35'/%3E%3Cpath d='M36 6L22 20l14 14' opacity='.65'/%3E%3Cpath d='M50 6L36 20l14 14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stm-banner-wrap::before { left: calc(-1 * var(--stm-chev) - 0.25rem); }
.stm-banner-wrap::after { right: calc(-1 * var(--stm-chev) - 0.25rem); transform: translateY(-50%) scaleX(-1); }
@media (max-width: 1140px) { .stm-banner-wrap::before, .stm-banner-wrap::after { display: none; } }
@media (max-width: 600px) { .stm-banner-wrap { --stm-cut: 1.5rem; } .stm-banner-inner { padding-inline: 2.25rem; } }

/* ---------- Trust strip ---------- */
.stm-trust { border-top: 1px solid rgba(57, 168, 247, 0.2); border-bottom: 1px solid rgba(57, 168, 247, 0.2); }
.stm-trust-item { position: relative; }
.stm-trust-item .stm-icon { flex: 0 0 44px; margin: 0; }
.stm-trust-item .stm-icon img { width: 44px !important; height: 44px; }
.stm-trust-item h3 { font-size: 1.0625rem; margin: 0; }
.stm-trust-item p { color: var(--wp--preset--color--slate); font-size: 0.9375rem; margin: 0.35rem 0 0; }
@media (min-width: 782px) {
	.stm-trust-grid > .stm-trust-item + .stm-trust-item::before {
		content: "";
		position: absolute;
		left: calc(-0.5 * var(--wp--style--block-gap, 2rem));
		top: 0.25rem;
		bottom: 0.25rem;
		width: 1px;
		background: rgba(57, 168, 247, 0.25);
	}
}

/* ---------- Contact ---------- */
.stm-contact {
	background:
		radial-gradient(ellipse 70% 90% at 50% 100%, rgba(31, 107, 255, 0.3), transparent 70%),
		var(--wp--preset--color--midnight);
}
.stm-contact .stm-message-btn .wp-block-button__link {
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	padding: 1.1rem 2.5rem 1.1rem 4.25rem;
	position: relative;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	box-shadow: 0 0 0 2px rgba(108, 196, 255, 0.55) inset, 0 0 40px -6px rgba(31, 107, 255, 0.9);
}
.stm-contact .stm-message-btn .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 50%;
	width: 2.25rem;
	height: 2.25rem;
	transform: translateY(-50%);
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231F6BFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 8C14 8 7 14 7 22c0 4.5 2.2 8.5 6.3 11.2L12 40l7.6-4c1.4.3 2.9.4 4.4.4 10 0 17-6 17-14.4S34 8 24 8z'/%3E%3Ccircle cx='17' cy='22' r='.8' fill='%231F6BFF'/%3E%3Ccircle cx='24' cy='22' r='.8' fill='%231F6BFF'/%3E%3Ccircle cx='31' cy='22' r='.8' fill='%231F6BFF'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.stm-contact-details p { margin: 0; color: var(--wp--preset--color--slate); }
.stm-contact-details strong { display: block; color: #fff; font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; }

/* ---------- Footer ---------- */
.stm-footer { border-top: 1px solid rgba(57, 168, 247, 0.18); }
.stm-footer .stm-logo img { width: 190px; }
.stm-footer p { color: var(--wp--preset--color--slate); }
.stm-footer a { color: var(--wp--preset--color--ice); text-decoration: none; }
.stm-footer a:hover { color: var(--wp--preset--color--sky); }

/* ---------- Inner pages ---------- */
.stm-page-head { border-bottom: 1px solid rgba(57, 168, 247, 0.18); background: linear-gradient(180deg, #0B1A3A, var(--wp--preset--color--midnight)); }
.wp-block-post-content a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
