/*
Theme Name: Gordon Window Services
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gordon-windows
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === tokens === */
:root {
	--header-h: 74px;
	--shadow-soft: 0 10px 30px rgba(18, 52, 91, 0.08);
	--shadow-card: 0 16px 40px rgba(18, 52, 91, 0.10);
	--line-soft: 1px solid rgba(18, 52, 91, 0.08);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
	-webkit-font-smoothing: antialiased;
}

/* === buttons === */
button.wp-block-button__link {
	border: 0;
}

/* === shared band rhythm === */
.band {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.band-tight {
	padding-block: clamp(2rem, 5vw, 4rem);
}

/* === eyebrow === */
.eyebrow {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bright);
	margin-bottom: 0.9rem;
}

/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--background);
	padding-inline: clamp(1.25rem, 5vw, 3rem);
	border-bottom: var(--line-soft);
	box-shadow: 0 2px 22px rgba(18, 52, 91, 0.06);
}
.site-header .header-inner {
	max-width: 1240px;
	margin-inline: auto;
	width: 100%;
	min-height: var(--header-h);
	gap: 1rem;
}
.header-brand {
	gap: 0.7rem;
}
.site-header .logo-mark {
	width: 42px;
	height: 42px;
	flex: none;
}
.site-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--wp--preset--color--primary);
	margin: 0;
	white-space: nowrap;
}
.site-header .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}
.header-nav {
	gap: 0.15rem;
}
.header-nav a {
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 600;
	font-size: 0.97rem;
	padding: 0.5rem 0.72rem;
	border-radius: 9px;
}
.header-nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
}
.header-cta {
	gap: 0.5rem;
}
.header-cta .wp-block-button__link {
	padding: 0.7rem 1.35rem;
	font-size: 0.78rem;
}

/* === hero === */
.hero {
	color: #fff;
}
.hero .hero-eyebrow {
	color: #dceffd;
}
.hero-content .wp-block-heading {
	color: #fff;
	font-size: clamp(2.5rem, 5.2vw, 4.1rem);
	line-height: 1.05;
	max-width: 13ch;
}
.hero-content > p {
	color: rgba(255, 255, 255, 0.92);
	max-width: 44ch;
	font-size: 1.12rem;
}
.hero-content .hero-cta {
	margin-top: 0.5rem;
}
.hero-content .hero-cta .wp-block-button__link {
	padding: 0.95rem 1.9rem;
	font-size: 0.82rem;
}
.hero-cta .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.hero-cta .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}
.hero-cred {
	margin-top: 1.9rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.hero {
	min-height: clamp(540px, 82vh, 780px);
}
.hero .wp-block-cover__inner-container {
	padding-block: clamp(4rem, 9vw, 7rem);
}
.hero .hero-content {
	max-width: 660px;
}
.service-row .wp-block-image img {
	border-radius: var(--wp--custom--rounded--lg);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: var(--shadow-soft);
}
.work-col .wp-block-image + .wp-block-image {
	margin-top: 1.75rem;
}

/* === quick quote === */
.quote-band {
	background: var(--wp--preset--color--surface);
}
.quote-panel {
	background: var(--wp--preset--color--background);
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: var(--shadow-card);
	padding: clamp(1.4rem, 3vw, 3rem);
	border: 1px solid rgba(18, 52, 91, 0.06);
}
.quote-panel .wp-block-jetpack-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
}
.quote-panel .wp-block-jetpack-contact-form > div {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.quote-panel .wp-block-jetpack-contact-form > .wp-block-button {
	display: block;
	align-self: flex-start;
	margin-top: 0.35rem;
}
.quote-panel .grunion-field-label {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--text);
}
.quote-panel input[type="text"],
.quote-panel input[type="email"],
.quote-panel input[type="tel"],
.quote-panel input[type="date"],
.quote-panel input[type="number"],
.quote-panel select,
.quote-panel textarea {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	color: var(--wp--preset--color--text);
	background: #fff;
	border: 1.5px solid rgba(18, 52, 91, 0.2);
	border-radius: 11px;
	padding: 0.75rem 0.95rem;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quote-panel input:focus,
.quote-panel select:focus,
.quote-panel textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--bright);
	box-shadow: 0 0 0 3px rgba(37, 131, 217, 0.18);
}
.quote-panel .grunion-field-file input[type="file"] {
	border: 1.5px dashed rgba(18, 52, 91, 0.28);
	border-radius: 11px;
	padding: 0.9rem;
}

/* === section headings === */
.section-head .wp-block-heading {
	max-width: 22ch;
}
.section-head > p {
	max-width: 55ch;
}

/* === services === */
.is-style-card {
	background: var(--wp--preset--color--background);
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: var(--shadow-card);
	padding: 0;
	border: 1px solid rgba(18, 52, 91, 0.06);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.is-style-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 48px rgba(18, 52, 91, 0.14);
}
.card-media img {
	width: 100%;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.card-body {
	padding: 1.9rem 1.9rem 2rem;
}
.card-body .wp-block-heading {
	font-size: 1.45rem;
	color: var(--wp--preset--color--primary);
}
.card-body > p {
	color: var(--wp--preset--color--text);
	opacity: 0.92;
}
.service-benefits {
	list-style: none;
	margin: 1rem 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.service-benefits li {
	position: relative;
	padding-left: 1.6rem;
	color: var(--wp--preset--color--text);
}
.service-benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	background: var(--wp--preset--color--bright);
}
.card-body .wp-block-buttons {
	margin-top: auto;
}

/* === student-run band === */
.student-band {
	background: var(--wp--preset--color--accent);
}
.student-band .wp-block-heading {
	color: var(--wp--preset--color--primary);
}
.student-band a {
	color: var(--wp--preset--color--primary);
}
.student-media img {
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: var(--shadow-card);
	display: block;
}
.student-note {
	margin-top: 0.9rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary);
	opacity: 0.8;
	font-style: italic;
}

/* === features === */
.feature-grid {
	gap: 2.2rem 1.8rem;
}
.feature-item .wp-block-heading {
	font-size: 1.1rem;
	color: var(--wp--preset--color--primary);
	margin: 0.95rem 0 0.5rem;
}
.feature-item p {
	color: var(--wp--preset--color--text);
	opacity: 0.92;
	font-size: 0.97rem;
}
.feature-icon {
	width: 54px;
	height: 54px;
	padding: 13px;
	border-radius: 15px;
	background: var(--wp--preset--color--accent);
	box-sizing: border-box;
	stroke: var(--wp--preset--color--bright);
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* === steps === */
.steps-band {
	background: var(--wp--preset--color--surface);
}
.step-grid {
	gap: 2rem;
}
.step-item {
	background: var(--wp--preset--color--background);
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: var(--shadow-soft);
	padding: 2.1rem 1.9rem;
	border: 1px solid rgba(18, 52, 91, 0.06);
	position: relative;
}
.step-num {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 1.1rem;
}
.step-item .wp-block-heading {
	font-size: 1.15rem;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.5rem;
}
.step-item p {
	color: var(--wp--preset--color--text);
	opacity: 0.92;
	font-size: 0.98rem;
}
p.step-num {
	color: #fff;
	opacity: 1;
}

/* === CTA band === */
.cta-band {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.cta-band .wp-block-heading {
	color: #fff;
}
.cta-band p {
	color: rgba(255, 255, 255, 0.9);
}
.cta-band .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	color: #fff;
}

/* === page hero (inner pages) === */
.page-hero {
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-hero .wp-block-heading {
	color: #fff;
	font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}
.page-hero .eyebrow {
	color: #dceffd;
}
.page-hero p {
	color: rgba(255, 255, 255, 0.92);
	max-width: 55ch;
}

/* === faq === */
.faq-item {
	background: var(--wp--preset--color--background);
	border: 1px solid rgba(18, 52, 91, 0.08);
	border-radius: var(--wp--custom--rounded--md);
}
.faq-item + .faq-item {
	margin-top: 0.85rem;
}
.faq-item .wp-block-heading {
	font-size: 1.08rem;
	color: var(--wp--preset--color--primary);
	padding: 1.25rem 1.5rem 0;
	margin: 0;
}
.faq-item p {
	padding: 0.5rem 1.5rem 1.3rem;
	margin: 0;
	opacity: 0.92;
}

/* === gallery === */
.work-grid .wp-block-image img {
	border-radius: var(--wp--custom--rounded--md);
	box-shadow: var(--shadow-soft);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* === footer === */
.site-footer {
	color: #fff;
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer .footer-columns {
	gap: 2.2rem;
}
.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}
.site-footer a:hover {
	color: #fff;
}
.site-footer .footer-brand {
	gap: 0.6rem;
}
.site-footer .footer-title {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	font-size: 1.05rem;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}
.site-footer .footer-blurb {
	color: rgba(255, 255, 255, 0.75);
	margin-top: 1rem;
	font-size: 0.97rem;
	max-width: 34ch;
}
.site-footer .footer-heading {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 1rem;
}
.site-footer .wp-block-list.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.site-footer .wp-block-list.footer-links a {
	color: rgba(255, 255, 255, 0.82);
}
.site-footer .wp-block-list.footer-links a:hover {
	color: #fff;
}
.site-footer .footer-rule {
	background: rgba(255, 255, 255, 0.16);
	border: none;
	height: 1px;
	margin: 2.8rem 0 1.5rem;
}
.site-footer .footer-bottom {
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.88rem;
	gap: 0.6rem 1.5rem;
}
.site-footer .footer-meta {
	margin: 0;
}

/* === responsive === */
@media (max-width: 900px) {
	.header-nav a {
		font-size: 0.92rem;
		padding: 0.45rem 0.55rem;
	}
	.header-cta .wp-block-button__link {
		padding: 0.65rem 1.05rem;
	}
}
@media (max-width: 680px) {
	.site-header {
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.header-inner {
		flex-wrap: wrap;
		row-gap: 10px;
	}
	.header-cta {
		order: 3;
		width: 100%;
		margin: 2px 0 0;
	}
	.header-cta .wp-block-button,
	.header-cta .wp-block-button__link {
		width: 100%;
	}
	.quote-panel .wp-block-jetpack-contact-form {
		grid-template-columns: 1fr;
	}
	.site-header .wp-block-site-title {
		font-size: 0.98rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001s !important;
	}
	.is-style-card:hover {
		transform: none;
	}
}
