/*
Theme Name: Hitec Construction
Theme URI: https://example.com/
Author: Hitec Construction Services, Inc.
Description: Block theme for Hitec Construction Services, Inc. Includes Home, Services, ICF Construction, About and Contact page layouts, a quote request form, and a safety-amber construction look. Activating the theme creates the starter pages automatically.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hitec-construction
Tags: full-site-editing, block-patterns, business, one-column, wide-blocks
*/

/* ---------- Base ---------- */
:root {
	--hitec-amber: var(--wp--preset--color--amber);
	--hitec-ink: var(--wp--preset--color--ink);
	--hitec-line-dark: rgba(247, 245, 240, 0.14);
	--hitec-stripe: repeating-linear-gradient(-45deg, var(--hitec-amber) 0 14px, var(--hitec-ink) 14px 28px);
}

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

/* Sections sit flush against each other. */
.wp-site-blocks > *,
.wp-block-post-content > .alignfull,
.site-main > .alignfull,
.site-main > .wp-block-post-content {
	margin-block-start: 0;
}

:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible,
:where(.wp-site-blocks) input:focus-visible,
:where(.wp-site-blocks) select:focus-visible,
:where(.wp-site-blocks) textarea:focus-visible {
	outline: 2px solid var(--hitec-amber);
	outline-offset: 2px;
}

mark.has-inline-color {
	background: none;
}

/* ---------- Type helpers ---------- */
.eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hitec-amber);
	margin-bottom: 0;
}

.eyebrow.is-dark {
	color: var(--wp--preset--color--amber-dark);
}

.eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 3px;
	margin-right: 0.75rem;
	vertical-align: middle;
	background: currentColor;
}

.hero-title {
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	line-height: 0.98;
	max-width: 16ch;
}

.hitec-hero--page .hero-title {
	font-size: var(--wp--preset--font-size--x-large);
	max-width: 22ch;
}

.hero-lede {
	max-width: 46ch;
	opacity: 0.86;
}

/* ---------- Logo ---------- */
/* The text site title is a fallback that hides once a logo is set. */
.brand:has(.wp-block-site-logo img) .wp-block-site-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wp-block-site-logo img {
	height: auto;
}

.footer-brand .wp-block-site-logo {
	margin-bottom: 1.25rem;
}

@media (max-width: 599px) {
	.header-logo img {
		width: 120px !important;
	}
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--hitec-line-dark);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header a,
.site-footer a {
	text-decoration: none;
}

.site-header .wp-block-site-title a {
	color: inherit;
}

.site-header .wp-block-site-title a:hover {
	color: var(--hitec-amber);
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus {
	color: var(--hitec-amber);
}

.site-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--hitec-amber);
}

.header-cta .wp-block-button__link {
	padding: 0.65rem 1.1rem;
	font-size: 0.875rem;
}

@media (max-width: 899px) {
	.site-header .header-cta {
		display: none !important;
	}
}

@media (max-width: 599px) {
	.site-header .wp-block-site-title {
		font-size: 1rem;
		line-height: 1.15;
	}
}

/* ---------- Heroes ---------- */
.hitec-hero {
	position: relative;
	overflow: hidden;
	background-image:
		linear-gradient(var(--hitec-line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--hitec-line-dark) 1px, transparent 1px);
	background-size: 64px 64px;
	background-position: -1px -1px;
}

.hitec-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 15% 20%, transparent 0%, var(--hitec-ink) 75%);
	opacity: 0.85;
	pointer-events: none;
}

.hitec-hero > * {
	position: relative;
}

.hitec-hero--home::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 10px;
	background: var(--hitec-stripe);
}

.hitec-hero .wp-block-buttons {
	margin-top: 2.25rem;
}

.license-chip {
	display: inline-block;
	margin-top: 2.5rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--hitec-line-dark);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	padding: calc(0.95rem - 2px) calc(1.6rem - 2px);
}

.wp-block-button.is-ghost-light > .wp-block-button__link {
	color: var(--wp--preset--color--paper);
}

.wp-block-button.is-ghost-light > .wp-block-button__link:hover {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--hitec-ink);
}

.wp-block-button.is-ghost-dark > .wp-block-button__link {
	color: var(--hitec-ink);
}

.wp-block-button.is-ghost-dark > .wp-block-button__link:hover {
	background: var(--hitec-ink);
	border-color: var(--hitec-ink);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-dark > .wp-block-button__link {
	background: var(--hitec-ink);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-dark > .wp-block-button__link:hover {
	background: var(--wp--preset--color--steel);
}

/* ---------- Stats strip ---------- */
.hitec-stats .wp-block-column {
	border-left: 3px solid var(--hitec-amber);
	padding-left: 1.25rem;
}

.stat-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	line-height: 1;
	margin: 0 0 0.6rem;
	color: var(--hitec-amber);
}

.stat-label {
	margin: 0;
	opacity: 0.82;
	max-width: 30ch;
}

/* ---------- ICF benefits ---------- */
.benefits .wp-block-column {
	border-top: 3px solid var(--hitec-amber);
	padding-top: 1.25rem;
}

.benefits.is-dark .step-num {
	color: var(--hitec-amber);
}

.muted-on-dark {
	opacity: 0.8;
}

.arrow-link.is-light a {
	color: var(--wp--preset--color--paper);
}

.arrow-link.is-light a:hover {
	color: var(--hitec-amber);
}

.hitec-icf-detail h3 {
	font-size: var(--wp--preset--font-size--medium);
}

/* ---------- Leadership ---------- */
.person-role {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-dark);
	margin-top: 0.25rem;
}

.license-classes {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
}

.license-classes li {
	padding: 0.5rem 0;
	border-top: 1px solid var(--hitec-line-dark);
	opacity: 0.9;
}

.license-classes strong {
	display: inline-block;
	min-width: 3.25rem;
	font-family: var(--wp--preset--font-family--display);
	color: var(--hitec-amber);
}

/* ---------- Values strip ---------- */
.hitec-values .wp-block-column {
	border-left: 3px solid var(--hitec-amber);
	padding-left: 1.25rem;
}

.hitec-values p {
	opacity: 0.8;
}

/* ---------- Service grid ---------- */
.hitec-grid {
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
}

.service-card {
	height: 100%;
	transition: background-color 0.2s ease;
}

.service-card:hover {
	background-color: var(--wp--preset--color--concrete) !important;
}

.service-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 0.9375rem;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--amber-dark);
}

.service-card__top {
	align-items: center;
}

.service-card__top p {
	margin: 0;
}

.service-tag {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--slate);
}

.service-row .service-tag {
	display: inline-block;
	margin-top: 0.75rem;
}

.service-num.is-large {
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--hitec-ink);
}

.arrow-link {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.arrow-link a {
	text-decoration: none;
	border-bottom: 3px solid var(--hitec-amber);
	padding-bottom: 0.2rem;
}

/* ---------- Service rows ---------- */
.service-row {
	border-top: 1px solid var(--wp--preset--color--line);
}

.service-row:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.check-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.check-list li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.6rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--hitec-amber);
}

/* ---------- Process ---------- */
.steps .wp-block-column {
	border-top: 3px solid var(--hitec-ink);
	padding-top: 1.25rem;
}

.step-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--wp--preset--color--amber-dark);
}

/* ---------- CTA band ---------- */
.hitec-cta {
	position: relative;
}

.hitec-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	background: var(--hitec-stripe);
}

.hitec-cta h2 {
	margin-top: 0;
}

/* ---------- About / license ---------- */
.license-card {
	border: 2px solid var(--hitec-amber);
	position: relative;
}

.license-card::after {
	content: "";
	position: absolute;
	left: -2px;
	right: -2px;
	bottom: -12px;
	height: 10px;
	background: var(--hitec-stripe);
}

.license-card__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hitec-amber);
}

.license-card__number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	line-height: 1;
}

.license-card__name {
	opacity: 0.75;
}

/* ---------- Contact ---------- */
.contact-label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hitec-amber);
	margin: 0;
}

.contact-value {
	margin: 0;
}

.contact-card a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
}

.contact-card a:hover {
	color: var(--hitec-amber);
}

@media (min-width: 782px) {
	.contact-card {
		position: sticky;
		top: 7rem;
	}
}

/* ---------- Quote form ---------- */
.hitec-quote__form {
	display: grid;
	gap: 1.1rem;
}

.hitec-quote__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

@media (max-width: 599px) {
	.hitec-quote__row {
		grid-template-columns: 1fr;
	}
}

.hitec-quote__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
}

.hitec-quote__field label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hitec-quote input[type="text"],
.hitec-quote input[type="email"],
.hitec-quote input[type="tel"],
.hitec-quote select,
.hitec-quote textarea {
	width: 100%;
	min-height: 3.25rem;
	box-sizing: border-box;
	padding: 0.8rem 0.9rem;
	border: 1px solid #b9b2a4;
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	color: var(--hitec-ink);
	font: inherit;
	font-size: 1rem;
}

.hitec-quote input:focus,
.hitec-quote select:focus,
.hitec-quote textarea:focus {
	border-color: var(--hitec-ink);
	outline: 2px solid var(--hitec-amber);
	outline-offset: 0;
}

.hitec-quote__hint {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--slate);
}

.hitec-quote__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hitec-quote button.wp-block-button__link {
	border: 0;
	cursor: pointer;
}

.hitec-quote__notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-left: 4px solid;
}

.hitec-quote__notice.is-success {
	background: #eef6ea;
	border-color: #3c7a2a;
}

.hitec-quote__notice.is-error {
	background: #fbecea;
	border-color: #b3261e;
}

/* ---------- Footer ---------- */
.site-footer a:hover {
	color: var(--hitec-amber);
}

.site-footer .wp-block-site-title a {
	color: inherit;
}

.footer-label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hitec-amber);
	margin-bottom: 0.5rem;
}

.site-footer .muted {
	opacity: 0.68;
}

.site-footer .footer-rule {
	border-color: var(--hitec-line-dark);
	opacity: 1;
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
}

.footer-bottom p {
	margin: 0;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 781px) {
	.hero-title {
		max-width: none;
	}

	.service-card__top {
	align-items: center;
}

.service-card__top p {
	margin: 0;
}

.service-tag {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--slate);
}

.service-row .service-tag {
	display: inline-block;
	margin-top: 0.75rem;
}

.service-num.is-large {
		font-size: 2.5rem;
	}

	.hitec-cta .wp-block-buttons {
		justify-content: flex-start !important;
	}
}
