/*
Theme Name: Skyline
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: skyline
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;
}

:root {
	--rule: 1px solid var(--wp--preset--color--line);
	--rule-dark: 1px solid rgba(255, 255, 255, 0.12);
	--shadow-soft: 0 2px 14px rgba(18, 19, 21, 0.05);
	--shadow-hover: 0 18px 34px -24px rgba(18, 19, 21, 0.42);
}

/* === masthead header === */
.masthead {
	border-bottom: var(--rule);
}

.masthead-logo {
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0;
	font-family: var(--wp--preset--font-family--montserrat);
}

.masthead-brand {
	gap: 0.75rem;
	align-items: center;
}

.skyline-mark {
	width: 2rem;
	height: 1.33rem;
	flex: none;
	color: var(--wp--preset--color--accent);
}

.footer-brand {
	gap: 0.7rem;
	align-items: center;
}

.masthead-sub {
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin: 0;
	padding-left: 0.14em;
	font-family: var(--wp--preset--font-family--montserrat);
}

.masthead-nav ul {
	gap: 2.2rem;
}

.masthead-nav .wp-block-navigation-item a,
.masthead-nav .wp-block-pages-list__item a {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--montserrat);
}

.masthead-nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--accent);
}

.masthead-phone-ctr {
	margin: 0;
}

/* Phone pill in the header (matches the concept) */
.masthead-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--accent);
	color: #fff !important;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.6rem 1.05rem;
	border-radius: 2px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.masthead-phone:hover {
	background: var(--wp--preset--color--accent-2);
	color: #fff !important;
}

.masthead-phone::before {
	content: "\260E";
	font-size: 0.85rem;
	opacity: 0.85;
}

/* === dateline rule === */
.dateline {
	border-top: var(--rule);
	border-bottom: var(--rule);
}

.dateline p {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
	padding: 0.6rem 0;
	font-family: var(--wp--preset--font-family--montserrat);
}

.dateline .dateline-tag {
	margin: 0 auto;
	text-align: center;
	color: var(--wp--preset--color--accent);
}

/* === labels + rules === */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--montserrat);
}

.eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: var(--wp--preset--color--accent);
	flex: none;
}

.rule-top {
	border-top: var(--rule);
}

.rule-top-dark {
	border-top: var(--rule-dark);
}

.rule-bottom {
	border-bottom: var(--rule);
}

.rule-left {
	/* vertical divider intentionally removed: side columns separate on gap alone */
	border-left: none;
}

/* === lead / hero story === */
.lead-cover {
	min-height: min(72vh, 700px);
}

/* Hero image loading reveal — final state is sharp and settled by default,
   so non-JS / reduced-motion render the image fully visible. When the
   frontend script adds html.hero-loading the image jumps to a blurred, muted,
   slightly zoomed state, then transitions back to sharp as hero-entered is
   set. A one-pass diagonal sheen sweeps across once under the content. */
.lead-cover .wp-block-cover__image-background {
	transition: opacity 0.9s ease, filter 0.9s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, filter, transform;
}

html.hero-loading .lead-cover .wp-block-cover__image-background {
	opacity: 0.12;
	filter: blur(16px) saturate(0.7);
	transform: scale(1.14);
	transition: none;
}

.lead-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
	transform: translateX(-120%);
	opacity: 0;
}

html.hero-entered .lead-cover::after {
	animation: hero-sheen 1.05s ease 0.1s forwards;
}

.lead-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

@keyframes hero-sheen {
	0%   { transform: translateX(-120%); opacity: 0; }
	35%  { opacity: 1; }
	100% { transform: translateX(120%); opacity: 0; }
}

.lead-headline {
	font-size: clamp(2.4rem, 5.5vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #fff;
	font-family: var(--wp--preset--font-family--cormorant);
}

.eyebrow-on-dark {
	color: #fff;
}

.lead-cols > .wp-block-columns .wp-block-column p {
	font-size: 1.05rem;
}

.lede-cols p {
	column-count: 2;
	column-gap: 2.5rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 1.05rem;
}

.link-forward {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--montserrat);
}

.link-forward a,
.link-forward .wp-block-button__link {
	text-decoration: none;
	color: var(--wp--preset--color--accent-2);
}

.link-forward a,
.link-forward .wp-block-button__link {
	text-decoration: none;
}

.link-forward a:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--accent);
}

/* === stats === */
.stat {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--cormorant);
	font-variant-numeric: tabular-nums;
}

.stat-label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	font-family: var(--wp--preset--font-family--montserrat);
}

/* === services — ruled rows === */
.service-row .wp-block-column {
	min-height: 100%;
}

.service {
	background: var(--wp--preset--color--surface-1);
	border-top: 2px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--rounded--sm);
	box-shadow: var(--shadow-soft);
	padding: 1.8rem 1.6rem 2.1rem;
	min-height: 100%;
}

.service .service-number,
.rule-item .service-number,
.service-number {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--montserrat);
}

.service h3 {
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0.7rem 0 0.5rem;
	font-family: var(--wp--preset--font-family--montserrat);
}

.service p {
	font-size: 0.95rem;
	color: var(--wp--preset--color--text-muted);
}

/* === side column / why choose us items === */
.rule-item {
	border-top: var(--rule);
	padding-top: 1.25rem;
	padding-right: 1.5rem;
}

.rule-item:first-child {
	border-top: none;
}

/* "What we stand for" stats: keep the top rule on the leading label so every
   row reads with the same hairline separator. */
.stat-label.rule-item:first-child {
	border-top: var(--rule);
	margin-top: 1.5rem;
}

.rule-item h3 {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--montserrat);
}

.rule-item p {
	font-size: 0.9rem;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

/* === testimonial pull-quote === */
.testimonial-quote {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.35;
	color: var(--wp--preset--color--primary);
	border-top: var(--rule);
	border-bottom: var(--rule);
	font-family: var(--wp--preset--font-family--cormorant);
}

.testimonial-attribution {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	font-family: var(--wp--preset--font-family--montserrat);
}

/* === testimonial cards (homepage) === */
.testimonial-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface-1);
	border-top: 2px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--rounded--sm);
	box-shadow: var(--shadow-soft);
	padding: 1.7rem 1.6rem 1.9rem;
}

.testimonial-stars {
	margin: 0 0 0.9rem;
	color: var(--wp--preset--color--accent);
	font-size: 1.2rem;
	line-height: 1;
	letter-spacing: 0.18em;
}

.testimonial-card .testimonial-quote {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--text);
	border: 0;
	padding: 0 0 1.1rem;
	font-family: var(--wp--preset--font-family--inter);
}

.testimonial-card .testimonial-attribution {
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: var(--rule);
}

/* === CTA navy band === */
.cta-band {
	background: var(--wp--preset--color--dark);
}

.cta-band .cta-heading {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	line-height: 1.05;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--cormorant);
}

.cta-band p {
	color: rgba(255, 255, 255, 0.72);
}

.cta-band .eyebrow {
	color: var(--wp--preset--color--accent);
}

.cta-band .eyebrow::before {
	background: var(--wp--preset--color--accent);
}

/* outline button on white/navy */
.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--primary);
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	padding-inline: 1.6rem;
}

.cta-band .is-style-fill .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--primary);
}

.cta-band .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #ffffff;
	color: #ffffff;
}

.lead-cover .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #ffffff;
	color: #ffffff;
}

.lead-cover .wp-block-button.is-style-fill .wp-block-button__link {
	background: #1A1C20;
	color: #F4F3EF;
}

/* === footer === */
.site-footer {
	background: var(--wp--preset--color--dark);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
}

.footer-logo {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--montserrat);
}

.footer-label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--montserrat);
}

.footer-nav ul {
	flex-direction: column;
	gap: 0.7rem;
}

.footer-nav a {
	font-size: 0.92rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
}

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

.site-footer .footer-cols p {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.92rem;
}

.site-footer .footer-cols a {
	color: var(--wp--preset--color--accent);
}

.copyright {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright p {
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
	padding: 1.1rem 0;
}

/* === Jetpack form === */
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form input[type="url"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select {
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
	color: #1c2632;
	border: 1px solid var(--wp--preset--color--surface-2);
	border-radius: 6px;
	padding: 0.85rem 1rem;
	width: 100%;
	margin-top: 0.4rem;
}

.wp-block-jetpack-contact-form textarea {
	min-height: 140px;
}

.wp-block-jetpack-contact-form .wp-block-jetpack-contact-form label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 2px rgba(36, 87, 214, 0.15);
}

/* === Skyline quote card (mirrors the homepage estimate modal) === */
.skyline-quote-card {
	background: #fff;
	border-top: 4px solid var(--wp--preset--color--accent);
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(18, 19, 21, 0.06), 0 18px 40px -24px rgba(18, 19, 21, 0.18);
	padding: 2rem 1.75rem 2.25rem;
}

.skyline-quote-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.5rem;
}

.skyline-quote-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.4rem;
}

.skyline-quote-sub {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

/* === Skyline theme contact form === */
.skyline-contact-form .skyline-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

.skyline-contact-form .skyline-field {
	display: block;
	margin-bottom: 1.1rem;
}

.skyline-contact-form .skyline-form-grid .skyline-field {
	margin-bottom: 0;
}

.skyline-contact-form > label.skyline-field {
	margin-top: 1.1rem;
}

.skyline-contact-form .skyline-field-label {
	display: block;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--montserrat);
	margin-bottom: 0.45rem;
}

.skyline-contact-form input,
.skyline-contact-form textarea,
.skyline-contact-form select {
	font-family: inherit;
	font-size: 0.85rem;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	padding: 0.8rem 1rem;
	width: 100%;
	box-sizing: border-box;
}

.skyline-contact-form input::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 0.7;
}

.skyline-contact-form textarea {
	min-height: 96px;
}

.skyline-contact-form input:focus,
.skyline-contact-form textarea:focus,
.skyline-contact-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 2px rgba(184, 142, 82, 0.18);
	background: #fff;
}

.skyline-contact-form .wp-block-button {
	margin-top: 1.25rem;
}

.skyline-form-status {
	padding: 1rem 1.25rem;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.skyline-form-status ul {
	margin: 0;
	padding-left: 1.2rem;
}

.skyline-form-success {
	background: var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--accent-2);
}

.skyline-form-error {
	background: var(--wp--preset--color--surface-2);
	border: 1px solid #c95b5b;
}

.skyline-contact-form .wp-block-button__link {
	background: var(--wp--preset--color--primary);
}

@media (max-width: 640px) {
	.skyline-contact-form .skyline-form-grid {
		grid-template-columns: 1fr;
	}
}

/* === responsive === */
@media (max-width: 781px) {
	.masthead-logo {
		font-size: 1.25rem;
	}

	.lede-cols p {
		column-count: 1;
	}

	.service,
	.rule-item {
		padding-right: 0;
	}

	.rule-left {
		border-left: none;
	}

	.process-tree::before {
		display: none;
	}
}
}

/* === motion === */
/* Scroll reveal. Default (no JS / reduced-motion) is fully visible;
   motion.js adds `.reveal`, then `.in-view` when the section scrolls in. */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.in-view {
	opacity: 1;
	transform: none;
}

/* Hero content load-in (above the fold) */
.lead-cover .wp-block-cover__inner-container > .wp-block-group {
	animation: rise 0.7s ease-out both;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Hover micro-interactions — short, functional (150-200ms ease-out) */
.wp-block-button__link {
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
		background-color 0.18s ease-out;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
	box-shadow: 0 12px 22px -14px rgba(18, 19, 21, 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: 0 12px 22px -14px rgba(18, 19, 21, 0.3);
}

/* Numbered service cards lift 2px with a deepened soft shadow */
.service {
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.service {
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.service:hover,
.testimonial-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* Masthead nav underline slide-in on hover */
.masthead-nav .wp-block-navigation-item {
	position: relative;
}

.masthead-nav .wp-block-navigation-item a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease-out;
}

.masthead-nav .wp-block-navigation-item a:hover::after {
	transform: scaleX(1);
}

/* Inline forward links tint on hover */
.link-forward a {
	transition: color 0.15s ease-out;
}

.link-forward a:hover {
	color: var(--wp--preset--color--accent);
}

/* Respect reduced motion: collapse all animation/transitions */
@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;
	}
}

/* === featured projects carousel === */
.wp-block-jetpack-slideshow {
	border-radius: 2px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.wp-block-jetpack-slideshow .swiper-slide {
	aspect-ratio: 16 / 9;
}

.wp-block-jetpack-slideshow .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-jetpack-slideshow .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.55);
}

.wp-block-jetpack-slideshow .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--accent);
}

/* === process tree (About) === */
/* The connecting trunk runs between the nodes; visible by default so no-JS /
   reduced-motion users still see it. Scroll reveal draws it then reveals
   each node in sequence (motion.js adds .reveal / .in-view). */
.process-tree {
	position: relative;
}

.process-tree::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 12.5%;
	right: 12.5%;
	height: 2px;
	background: var(--wp--preset--color--line);
	transform: scaleX(1);
	transform-origin: left center;
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
	z-index: 0;
}

.process-tree.reveal::before {
	transform: scaleX(0);
}

.process-tree.in-view::before {
	transform: scaleX(1);
}

.process-step {
	text-align: center;
	position: relative;
	z-index: 1;
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Icon node: white circle, hairline border, cobalt line icon, soft shadow. */
.process-icon {
	display: block;
	margin: 0 auto;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	padding: 15px;
	border-radius: 50%;
	background: var(--wp--preset--color--surface-1);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 8px 18px -14px rgba(18, 19, 21, 0.3);
	color: var(--wp--preset--color--accent);
}

.process-step h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 1rem 0 0.35rem;
}

.process-step p {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
	max-width: 240px;
	margin-inline: auto;
}

/* Scroll reveal: nodes rise and fade in, staggered left to right. */
.process-tree.reveal .process-step {
	opacity: 0;
	transform: translateY(18px);
}

.process-tree.reveal .process-step:nth-child(1) {
	transition-delay: 0.12s;
}

.process-tree.reveal .process-step:nth-child(2) {
	transition-delay: 0.34s;
}

.process-tree.reveal .process-step:nth-child(3) {
	transition-delay: 0.56s;
}

.process-tree.reveal .process-step:nth-child(4) {
	transition-delay: 0.78s;
}

.process-tree.in-view .process-step {
	opacity: 1;
	transform: none;
}

/* === process timeline SVG (About) === */
/* The inline timeline SVG; animation classes are scoped under .process-svg.
   Styled here (not inside the SVG) so the editor sanitizer cannot strip the
   animation or the reduced-motion guard. */
.process-svg {
	display: block;
	width: min(560px, 100%);
	height: auto;
	margin-inline: auto;
}

.process-svg .fc-n {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: process-fc-n 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes process-fc-n {
	from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.94); }
	to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

.process-svg .fc-e {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: process-fc-e 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes process-fc-e {
	to { stroke-dashoffset: 0; }
}

.process-svg .fc-t {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: process-fc-t 0.18s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes process-fc-t {
	from { opacity: 0; transform: scale(0.2); }
	to   { opacity: 1; transform: scale(1); }
}

.process-svg .fc-l {
	opacity: 0;
	animation: process-fc-l 0.3s ease-out both;
}

@keyframes process-fc-l {
	to { opacity: 1; }
}

.process-svg .fc-axis {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: process-fc-axis 2.38s cubic-bezier(0.4, 0, 0.25, 1) both;
	animation-delay: 0.15s;
}

@keyframes process-fc-axis {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.process-svg .fc-n,
	.process-svg .fc-e,
	.process-svg .fc-t,
	.process-svg .fc-l,
	.process-svg .fc-axis {
		opacity: 1 !important;
		animation: none !important;
		transform: none !important;
		stroke-dashoffset: 0 !important;
	}
}

/* === service card photos === */
.service .service-photo,
.rule-item .service-photo {
	margin: 0 0 1.25rem;
}

.service .service-photo img,
.rule-item .service-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--rounded--sm);
}

/* === clickable service cards (whole card links to contact) === */
.service {
	position: relative;
}

.service .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.service:hover,
	.testimonial-card:hover {
		transform: none;
		box-shadow: none;
	}
}

/* === Front page: imported landing page renders standalone === */
/* The front page (front-page.html) outputs the imported Skyline HTML, which
   carries its own sticky header, footer, and section chrome. Remove the
   theme's page padding and any leftover main chrome so its full-bleed
   sections meet the viewport edge and it isn't double-wrapped. */
body.home .wp-site-blocks {
	padding: 0 !important;
}

body.home .wp-site-blocks .wp-block-post-content,
body.home .wp-site-blocks .entry-content {
	padding-inline: 0 !important;
	max-width: none !important;
}

body.home .wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* The imported one-page HTML lives in post content. wpautop wraps the
   leading Tailwind <script>/<style> blocks in empty <p> tags, and the
   block layout's block-gap shoves the page's own sticky header down.
   Collapse the content flow's block gap and hide those empty wrappers
   so the header sits flush at the top. The inline <svg> gradient defs
   stay (they're referenced by the visible logo). */
body.home .wp-block-post-content.is-layout-flow > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

body.home .wp-block-post-content > p:has(> script, > style) {
	display: none;
}

/* === homepage hover motion (progressive enhancement) ===
   Scoped to the home page's imported one-page HTML. All motion is a
   no-op under prefers-reduced-motion and on touch-capable devices, so
   the default (still) state is the resting state. */
/* === homepage hover motion (progressive enhancement) ===
   Scoped to the home page's imported one-page HTML. Elements rest in
   their final visible state; hover adds a gentle lift. A dedicated
   prefers-reduced-motion block disables it below. */
body.home div.group.overflow-hidden {
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
	            box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
	            border-color 0.5s ease;
	will-change: transform;
}
body.home div.group.overflow-hidden:hover,
body.home div.group.cursor-pointer:hover {
	transform: translateY(-7px);
	box-shadow: 0 24px 48px -26px rgba(18, 19, 21, 0.4);
	border-color: rgba(184, 142, 82, 0.45);
}

/* Gallery tiles — lift plus a thin gold inner ring */
body.home div.group.cursor-pointer {
	position: relative;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
	            box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
body.home div.group.cursor-pointer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(184, 142, 82, 0);
	transition: box-shadow 0.4s ease;
}
body.home div.group.cursor-pointer:hover::after {
	box-shadow: inset 0 0 0 1px rgba(184, 142, 82, 0.65);
}

/* Buttons & CTA links — micro-lift; keep the header logo pill static */
body.home a.smooth-transition,
body.home button.smooth-transition {
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
	            box-shadow 0.35s ease, background-color 0.3s ease,
	            color 0.3s ease, border-color 0.3s ease;
}
body.home a.smooth-transition:hover,
body.home button.smooth-transition:hover {
	transform: translateY(-2px);
}
body.home header.sticky a.smooth-transition,
body.home header.sticky a.smooth-transition:hover {
	transform: none;
}

/* Hero image — slow cinematic zoom on hover */
body.home section.relative figure,
body.home section.relative figure img {
	transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
body.home section.relative figure:hover img {
	transform: scale(1.045);
}

/* Desktop nav — animated gold underline that slides in from the left */
body.home nav a:not(.text-black) {
	position: relative;
}
body.home nav a:not(.text-black)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
body.home nav a:not(.text-black):hover::after {
	transform: scaleX(1);
}

/* Honor reduced-motion: collapse all hover motion to instant state */
@media (prefers-reduced-motion: reduce) {
	body.home div.group.overflow-hidden,
	body.home div.group.cursor-pointer,
	body.home div.group.cursor-pointer::after,
	body.home a.smooth-transition,
	body.home button.smooth-transition,
	body.home section.relative figure,
	body.home section.relative figure img,
	body.home nav a:not(.text-black)::after {
		transition: none !important;
	}
	body.home div.group.overflow-hidden:hover,
	body.home div.group.cursor-pointer:hover,
	body.home a.smooth-transition:hover,
	body.home button.smooth-transition:hover,
	body.home section.relative figure:hover img,
	body.home nav a:not(.text-black):hover::after {
		transform: none;
	}
}
