/*
 * Hamro Construction — component styles theme.json can't express.
 * Tokens (colours, fonts, sizes, spacing) live in theme.json; use the
 * --wp--preset--* variables here rather than raw values.
 */

:root {
	--hc-gold: var(--wp--preset--color--accent);
	--hc-ink: var(--wp--preset--color--contrast);
	--hc-radius: 8px;
	/* Shadow scale lives in theme.json (Shadow presets) so the editor can use it too. */
	--hc-shadow-sm: var(--wp--preset--shadow--sm);
	--hc-shadow: var(--wp--preset--shadow--md);
	--hc-shadow-lg: var(--wp--preset--shadow--lg);
	--hc-shadow-gold: var(--wp--preset--shadow--gold);
	--hc-font-heading: var(--wp--preset--font-family--heading);
	--hc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--hc-header-h: 76px;
}

/* ---------- Typography ---------- */

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

:where(h1, h2, h3, .wp-block-heading) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

/* Numbers and labels set in the display face. */
.hc-stat__number,
.hc-stats-band__number,
.hc-media-badge__number,
.hc-step__number,
.hc-rent-stat__value,
.hc-feature__number,
.hc-initials__letters,
.hc-badge,
.hc-badge-text,
.hc-tabs__tab,
.hc-footer__heading,
.hc-contact-card__label,
.hc-rent-table thead th {
	font-family: var(--hc-font-heading);
	font-variant-numeric: tabular-nums;
}

.hc-stat__number,
.hc-stats-band__number,
.hc-media-badge__number,
.hc-step__number {
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* Buttons: lift and a warm glow on hover. */
.wp-element-button,
.wp-block-button__link,
.hc-form__actions button {
	font-family: var(--hc-font-heading);
	letter-spacing: 0.01em;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--hc-ease), transform 0.35s var(--hc-ease) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.hc-form__actions button {
	box-shadow: var(--hc-shadow-gold);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.hc-form__actions button:hover,
.hc-form__actions button:focus-visible {
	transform: translateY(-2px);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible,
.hc-form__actions button:hover,
.hc-form__actions button:focus-visible {
	box-shadow: var(--hc-shadow-lg);
}

.wp-block-button__link:active,
.hc-form__actions button:active {
	transform: translateY(0);
	box-shadow: var(--hc-shadow-sm);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hc-header-h) + 1rem);
}

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

/* ---------- Utilities ---------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Gold highlight for key words inside headings and copy. */
mark.hc-hl {
	background: none;
	color: var(--hc-gold);
}

:where(a, button, input, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--hc-gold);
	outline-offset: 3px;
}

/* ---------- Block styles ---------- */

.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--hc-gold);
	padding: var(--wp--preset--spacing--40);
	height: 100%;
}

.wp-block-heading.is-style-eyebrow {
	font-family: var(--hc-font-heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
}

/* Section divider: two gold bars around the building icon. */
.wp-block-separator.is-style-hc-divider {
	position: relative;
	width: 170px;
	max-width: 100%;
	height: 24px;
	margin-inline: auto !important;
	border: 0;
	opacity: 1;
	background:
		linear-gradient(var(--hc-gold), var(--hc-gold)) left center / 70px 2px no-repeat,
		linear-gradient(var(--hc-gold), var(--hc-gold)) right center / 70px 2px no-repeat;
}

.wp-block-separator.is-style-hc-divider::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 24px;
	height: 24px;
	background: url(../images/icons/separator.svg) center / contain no-repeat;
	transform: scaleY(-1);
}

.hc-section-head {
	margin-bottom: var(--wp--preset--spacing--20);
}

.hc-section-head > p {
	max-width: 640px;
	margin-inline: auto !important;
}

/* ---------- Layout ---------- */

/* Sections sit flush: no root block gap between header, main and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/*
 * Blueprint grid on the pale full-width sections: a faint drafting-paper grid
 * that fades out toward the edges so it never reads as wallpaper.
 */
.wp-block-group.alignfull.has-base-2-background-color {
	position: relative;
	isolation: isolate;
}

.wp-block-group.alignfull.has-base-2-background-color::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M120 .5H0M.5 0v120' stroke='%23100E0D' stroke-opacity='.07'/%3E%3Cpath d='M0 24.5h120M0 48.5h120M0 72.5h120M0 96.5h120M24.5 0v120M48.5 0v120M72.5 0v120M96.5 0v120' stroke='%23100E0D' stroke-opacity='.03'/%3E%3C/svg%3E") center top / 120px 120px;
	-webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 80%);
	mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 80%);
	pointer-events: none;
}

/* ---------- Header ---------- */

/*
 * The header pattern sits inside the <header> template-part wrapper, which is
 * only as tall as the header, so the wrapper is what has to stick.
 */
.wp-site-blocks > header.wp-block-template-part:has(.hc-site-header),
.hc-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.hc-site-header {
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.hc-site-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.hc-site-header) {
		top: 0;
	}
}

/* Gold reading-progress bar under the header (width set by theme.js). */
.hc-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: var(--hc-gold);
	transform: scaleX(var(--hc-progress, 0));
	transform-origin: left;
	pointer-events: none;
}

.hc-site-header.is-scrolled {
	background-color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: var(--hc-shadow);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.hc-logo {
	margin: 0;
}

.hc-logo a,
.hc-logo img {
	display: block;
	height: auto;
}

.hc-main-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.4rem;
}

.hc-main-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--hc-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--hc-ease);
}

.hc-main-nav .wp-block-navigation-item__content:hover::after,
.hc-main-nav .wp-block-navigation-item__content:focus-visible::after,
.hc-main-nav .wp-block-navigation-item__content[aria-current]::after,
.hc-main-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/*
 * Eight menu items need ~1100px. Between 600px (core's breakpoint) and
 * 1149px, use the hamburger menu instead of letting the links wrap.
 */
@media (min-width: 600px) and (max-width: 1149px) {
	.hc-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hc-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Mobile overlay menu: give the links room to breathe. */
.hc-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 1.25rem;
	font-size: var(--wp--preset--font-size--x-large);
}

/* ---------- Hero ---------- */

.hc-hero {
	--hc-cut: clamp(1.5rem, 4vw, 4rem);
	padding-bottom: calc(var(--wp--preset--spacing--70) + 3rem) !important;
	/* Angled bottom edge; the stats card below overlaps it. */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hc-cut)), 0 100%);
}

.hc-hero .wp-block-cover__image-background {
	object-position: 70% center;
}

.hc-hero h1 {
	line-height: 1.08;
}

/* Gold key words get a highlighter stroke underneath. */
.hc-hero mark.hc-hl {
	background: linear-gradient(var(--hc-gold), var(--hc-gold)) 0 100% / 100% 0.09em no-repeat;
	padding-bottom: 0.04em;
}

/* Blueprint linework over covers (inc/visuals.php). */
.hc-linework {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.25;
	stroke-linecap: square;
	opacity: 0.55;
	pointer-events: none;
}

.hc-linework path {
	vector-effect: non-scaling-stroke;
}

.hc-linework--hero {
	inset: 0 0 var(--hc-cut);
	height: calc(100% - var(--hc-cut));
}

@media (max-width: 781px) {
	.hc-linework {
		display: none;
	}
}

.hc-hero .wp-block-cover__inner-container,
.hc-banner .wp-block-cover__inner-container {
	z-index: 2;
}

.hc-hero__content > p {
	max-width: 36ch;
	opacity: 0.92;
}

@media (max-width: 781px) {
	.hc-hero {
		min-height: 600px !important;
	}

	.hc-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 100%) !important;
	}
}

/* ---------- Stats + highlight card ---------- */

.hc-stats {
	position: relative;
	z-index: 2;
}

.hc-highlight-card {
	position: relative;
	margin-top: -7.5rem;
	box-shadow: var(--hc-shadow-lg);
}

/* Faint dimension ticks along the top of the gold card. */
.hc-highlight-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 2.5rem;
	right: 2.5rem;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M.5 0v10M6.5 0v5' stroke='%23100E0D' stroke-opacity='.22'/%3E%3C/svg%3E") left top / 12px 10px repeat-x;
	pointer-events: none;
}

.hc-stats__numbers {
	gap: 1.5rem 1.25rem;
}

.hc-stat {
	gap: 0.6rem !important;
}

@media (min-width: 1100px) {
	.hc-stats__numbers {
		flex-wrap: nowrap !important;
	}
}

.hc-stat {
	align-items: center;
}

.hc-stat__number {
	margin: 0;
	font-size: clamp(2.25rem, 3.2vw, 2.75rem) !important;
	white-space: nowrap;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.hc-stat__label {
	margin: 0;
	max-width: 6.5rem;
	line-height: 1.35;
}

@media (max-width: 781px) {
	.hc-highlight-card {
		margin-top: -4rem;
	}

	.hc-stats .wp-block-columns {
		flex-direction: column-reverse;
	}
}

/* Checklist with filled check icons. */
.hc-list-check {
	list-style: none;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.hc-list-check li {
	position: relative;
	padding-left: 2rem;
	line-height: 1.4;
}

.hc-list-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url(../images/icons/check-circle.svg) center / contain no-repeat;
	mask: url(../images/icons/check-circle.svg) center / contain no-repeat;
}

/* ---------- About ---------- */

.hc-about__image {
	margin: 0;
}

.hc-about__image img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 781px) {
	.hc-about {
		padding-left: var(--wp--preset--spacing--40) !important;
	}

	.hc-about__text {
		padding-left: 0 !important;
	}
}

/* ---------- Card grids (services, values, team) ---------- */

.hc-card-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.6rem;
}

.hc-card-grid > * {
	grid-column: span 2;
	margin: 0 !important;
}

/* Five cards: centre the last two under the first three. */
.hc-card-grid > :nth-child(4):nth-last-child(2) {
	grid-column: 2 / span 2;
}

@media (max-width: 960px) {
	.hc-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hc-card-grid > *,
	.hc-card-grid > :nth-child(4):nth-last-child(2) {
		grid-column: auto;
	}
}

@media (max-width: 600px) {
	.hc-card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hc-icon {
	margin: 0;
}

.hc-icon img,
.hc-icon .hc-svg-icon {
	display: block;
	transition: transform 0.4s var(--hc-ease);
}

/* Inline line icons (inc/visuals.php): gold strokes on any background. */
.hc-svg-icon {
	flex: none;
	color: var(--wp--preset--color--accent);
	overflow: visible;
}

/* Size comes from the width/height attributes (the block's icon size). */
.hc-icon .hc-svg-icon {
	max-width: 100%;
	height: auto;
}

.hc-service-card .hc-icon,
.hc-value .hc-icon {
	width: auto !important;
	height: auto !important;
}

/* Dark icon on the pale circle of the collaborator cards. */
.hc-aspect-card__icon .hc-svg-icon {
	color: var(--wp--preset--color--accent-dark);
}

.hc-service-card:hover .hc-icon .hc-svg-icon,
.hc-aspect-card:hover .hc-icon .hc-svg-icon {
	transform: scale(1.1) rotate(-3deg);
}

.hc-value:hover .hc-icon .hc-svg-icon {
	transform: translateY(-4px) scale(1.06);
}

/* Service cards */
.hc-service-card {
	position: relative;
	height: 100%;
	transition: transform 0.35s var(--hc-ease), box-shadow 0.35s var(--hc-ease), background-color 0.35s ease;
}


.hc-service-card:hover,
.hc-service-card:focus-within {
	transform: translateY(-6px);
	background-color: var(--wp--preset--color--base) !important;
	box-shadow: var(--hc-shadow-lg);
}


.hc-service-card:hover .hc-icon img {
	transform: scale(1.1);
}

.hc-service-card__text {
	flex-grow: 1;
}

.hc-more-link {
	margin-top: auto !important;
}

.hc-more-link a,
a.hc-more-link {
	color: var(--wp--preset--color--accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.hc-more-link a::after,
a.hc-more-link::after {
	content: " →";
	display: inline-block;
	margin-left: 0.15em;
	transition: transform 0.3s var(--hc-ease);
}

.hc-more-link a:hover::after,
.hc-more-link a:focus-visible::after,
a.hc-more-link:hover::after,
a.hc-more-link:focus-visible::after {
	transform: translateX(4px);
}

/* Values */
.hc-values-grid {
	row-gap: var(--wp--preset--spacing--50);
	column-gap: var(--wp--preset--spacing--50);
}

.hc-value h3 {
	margin-top: 0.25rem;
}

.hc-value p {
	max-width: 300px;
	margin-inline: auto;
}

.hc-value:hover .hc-icon img {
	transform: translateY(-4px) scale(1.06);
}

/* Team */
.hc-team-card {
	overflow: hidden;
	height: 100%;
	box-shadow: var(--hc-shadow);
	transition: transform 0.35s var(--hc-ease), box-shadow 0.35s var(--hc-ease);
}

.hc-team-card:hover,
.hc-team-card:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--hc-shadow-lg);
}

.hc-team-card__photo {
	margin: 0 0 1.25rem !important;
	width: 100%;
	overflow: hidden;
}

.hc-team-card__photo img {
	width: 100%;
	display: block;
	transition: transform 0.6s var(--hc-ease);
}

.hc-team-card:hover .hc-team-card__photo img {
	transform: scale(1.05);
}

.hc-team-card__name,
.hc-team-card__role {
	margin: 0 !important;
	padding-inline: 1rem;
}

.hc-team-card__name a {
	text-decoration: none;
}

.hc-team-card__name a:hover {
	color: var(--wp--preset--color--accent-dark);
}

/* ---------- Projects ---------- */

.hc-tabs {
	display: flex;
	justify-content: center;
	gap: 2.5rem;
	max-width: 728px;
	margin-inline: auto;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.hc-tabs__tab {
	position: relative;
	padding: 0.4rem 0.4rem 0.6rem;
	border: 0;
	background: none;
	color: var(--hc-ink);
	font: inherit;
	cursor: pointer;
	transition: color 0.2s ease;
}

.hc-tabs__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--hc-gold);
	transform: scaleX(0);
	transition: transform 0.3s var(--hc-ease);
}

.hc-tabs__tab:hover,
.hc-tabs__tab[aria-pressed="true"] {
	color: var(--wp--preset--color--accent-dark);
}

.hc-tabs__tab[aria-pressed="true"]::after {
	transform: scaleX(1);
}

/* Tabs only work with JavaScript. */
html:not(.hc-js) .hc-tabs {
	display: none;
}

.hc-project-grid {
	--hc-gap: clamp(1.5rem, 3vw, 3rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--hc-gap);
}

.hc-project-grid > *,
ul.hc-team-grid > * {
	flex: 0 1 calc((100% - 2 * var(--hc-gap)) / 3);
	min-width: min(100%, 280px);
}

@media (max-width: 960px) {
	.hc-project-grid > *,
	ul.hc-team-grid > * {
		flex-basis: calc((100% - var(--hc-gap)) / 2);
	}
}

@media (max-width: 600px) {
	.hc-project-grid > *,
	ul.hc-team-grid > * {
		flex-basis: 100%;
	}
}

.hc-project {
	margin: 0 !important;
}

.is-filtered-out {
	display: none;
}

.is-filtered-in {
	animation: hc-fade-up 0.45s var(--hc-ease) both;
}

.hc-project__image {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hc-radius);
	box-shadow: var(--hc-shadow);
}

.hc-project__image a {
	display: block;
}

.hc-project__image img {
	display: block;
	width: 100%;
	transition: transform 0.7s var(--hc-ease);
}

.hc-project__image {
	transition: box-shadow 0.4s var(--hc-ease), transform 0.4s var(--hc-ease);
}

.hc-project:hover .hc-project__image,
.hc-project:focus-within .hc-project__image {
	transform: translateY(-4px);
	box-shadow: var(--hc-shadow-lg);
}

.hc-project:hover .hc-project__image img,
.hc-project:focus-within .hc-project__image img {
	transform: scale(1.06);
}

.hc-project__title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.hc-project:hover .hc-project__title a {
	color: var(--wp--preset--color--accent-dark);
}

/* ---------- Testimonials slider ---------- */

.hc-slider {
	max-width: 1070px;
	margin-inline: auto;
}

.hc-slide + .hc-slide {
	margin-top: var(--wp--preset--spacing--50);
}

.hc-slide__quote {
	line-height: 1.6;
}

.hc-slide__name,
.hc-slide__role {
	margin: 0;
}

.hc-slide__avatar {
	margin-inline: auto !important;
}

.hc-slide__avatar img {
	border-radius: 50%;
}

/* Enhanced (JS) mode: one slide at a time, avatars move into the nav. */
.hc-slider.is-ready .hc-slide {
	display: none;
	margin-top: 0;
}

.hc-slider.is-ready .hc-slide.is-active {
	display: block;
	animation: hc-fade 0.5s ease both;
}

.hc-slider.is-ready .hc-slide__avatar {
	display: none;
}

.hc-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 2.25rem;
}

.hc-slider__arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem;
	border: 0;
	background: none;
	color: var(--hc-ink);
	font: inherit;
	cursor: pointer;
}

.hc-slider__arrow::before,
.hc-slider__arrow::after {
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url(../images/icons/chevron-left.svg) center / contain no-repeat;
	mask: url(../images/icons/chevron-left.svg) center / contain no-repeat;
}

.hc-slider__arrow--prev::before {
	content: "";
}

.hc-slider__arrow--next::after {
	content: "";
	-webkit-mask-image: url(../images/icons/chevron-right.svg);
	mask-image: url(../images/icons/chevron-right.svg);
}

.hc-slider__arrow:hover {
	color: var(--wp--preset--color--accent-dark);
}

.hc-slider__dots {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.hc-slider__dot {
	position: relative;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: visible;
	background: var(--wp--preset--color--base-2);
	opacity: 0.5;
	cursor: pointer;
	transition: width 0.35s var(--hc-ease), height 0.35s var(--hc-ease), opacity 0.35s ease;
}

.hc-slider__dot img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.hc-slider__dot:hover {
	opacity: 0.8;
}

.hc-slider__dot[aria-current="true"] {
	width: 70px;
	height: 70px;
	opacity: 1;
	box-shadow: 0 0 0 4px var(--wp--preset--color--base), 0 0 0 10px var(--hc-gold), 0 8px 30px rgba(235, 187, 28, 0.35);
}

/* ---------- Collaborators photo stack ---------- */

.hc-photo-stack {
	position: relative;
	max-width: 480px;
	margin-inline: auto;
	padding-bottom: 6%;
}

.hc-photo-stack figure {
	margin: 0 !important;
	width: 58%;
}

.hc-photo-stack img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--hc-shadow-lg);
	transition: transform 0.6s var(--hc-ease);
}

.hc-photo-stack figure.hc-photo-stack__front {
	margin: -34% 0 0 auto !important;
	position: relative;
}

.hc-photo-stack__front img {
	box-shadow: 0 0 0 8px var(--wp--preset--color--base), var(--hc-shadow-lg);
}

.hc-photo-stack:hover .hc-photo-stack__back img {
	transform: translate(-6px, -6px);
}

.hc-photo-stack:hover .hc-photo-stack__front img {
	transform: translate(6px, 6px);
}

/* ---------- Contact ---------- */

.hc-contact__intro {
	padding-right: 2.25rem;
	border-right: 1px solid #737b7d;
}

@media (max-width: 781px) {
	.hc-contact__intro {
		padding-right: 0;
		border-right: 0;
	}
}

.hc-form {
	display: grid;
	gap: 1.5rem;
	margin: 0;
}

.hc-form p {
	margin: 0;
}

.hc-field {
	position: relative;
}

.hc-field input,
.hc-field textarea {
	width: 100%;
	padding: 1.1rem 0 0.5rem;
	border: 0;
	border-bottom: 1px solid #737b7d;
	border-radius: 0;
	background: transparent;
	color: var(--hc-ink);
	font: inherit;
	resize: vertical;
	transition: border-color 0.2s ease;
}

.hc-field input:focus,
.hc-field textarea:focus {
	outline: none;
	border-bottom-color: var(--hc-gold);
	box-shadow: 0 1px 0 0 var(--hc-gold);
}

.hc-field label {
	position: absolute;
	left: 0;
	top: 1.1rem;
	color: #6b6b6b;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.2s var(--hc-ease), color 0.2s ease;
}

.hc-field input:focus + label,
.hc-field input:not(:placeholder-shown) + label,
.hc-field textarea:focus + label,
.hc-field textarea:not(:placeholder-shown) + label {
	transform: translateY(-1.1rem) scale(0.8);
	color: var(--wp--preset--color--accent-dark);
}

.hc-form__trap {
	position: absolute;
	left: -9999px;
}

.hc-form__actions button {
	border: 0;
	border-radius: 4px;
	padding: 0.75rem 3rem;
	background: var(--hc-gold);
	color: var(--hc-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hc-form__actions button:hover,
.hc-form__actions button:focus-visible {
	background: var(--hc-ink);
	color: var(--wp--preset--color--base);
}


.hc-form__notice {
	padding: 0.75rem 1rem !important;
	border-radius: 6px;
	border: 1px solid;
	font-size: var(--wp--preset--font-size--small);
}

.hc-form__notice--success {
	background: #eef8ef;
	border-color: #b9dfbc;
	color: #1b5e20;
}

.hc-form__notice--error {
	background: #fdecea;
	border-color: #f3b8b3;
	color: #8e1c1c;
}

.hc-map {
	position: relative;
	overflow: hidden;
	min-height: 390px;
	height: 100%;
	border-radius: 12px;
	box-shadow: var(--hc-shadow-lg);
	background: var(--wp--preset--color--base-2);
}

.hc-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hc-map__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: grid;
	gap: 0.1rem;
	max-width: 240px;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: var(--hc-gold);
	color: var(--hc-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
	box-shadow: var(--hc-shadow);
}

/* ---------- Footer ---------- */

.hc-footer {
	position: relative;
	isolation: isolate;
	color: rgba(255, 255, 255, 0.85);
}

.hc-footer__main {
	background: url(../images/footer-bg.jpg) center / cover no-repeat;
}

.hc-footer__logo {
	margin: 0;
}

.hc-footer__logo img {
	max-width: 100%;
	height: auto;
}

.hc-footer__heading {
	margin-bottom: 1.75rem !important;
	padding-bottom: 0.4rem;
	background: linear-gradient(var(--hc-gold), var(--hc-gold)) left bottom / 50px 1px no-repeat;
}

.hc-footer a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.hc-footer__main a:hover,
.hc-footer__main a:focus-visible {
	color: var(--hc-gold) !important;
}

.hc-list-chevron,
.hc-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.hc-list-chevron li,
.hc-contact-list li {
	position: relative;
	padding-left: 2.1rem;
}

.hc-list-chevron li::before,
.hc-contact-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	background: center / contain no-repeat;
	transform: scaleY(-1);
}

.hc-list-chevron li::before {
	background-image: url(../images/icons/double-chevron.svg);
	opacity: 0.7;
	transition: transform 0.25s var(--hc-ease);
}

.hc-list-chevron li:hover::before {
	transform: scaleY(-1) translateX(3px);
}

.hc-contact-list {
	gap: 1rem;
}

.hc-contact-list .hc-i-location::before {
	background-image: url(../images/icons/location.svg);
}

.hc-contact-list .hc-i-mail::before {
	background-image: url(../images/icons/mail.svg);
}

.hc-contact-list .hc-i-phone::before {
	background-image: url(../images/icons/phone.svg);
}

.hc-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.7);
}

.hc-footer__bar p {
	margin: 0;
}

/* ---------- Query Loop grids ---------- */

/* Post Template lists render as <ul>; make them behave like the static grids. */
ul.hc-card-grid,
ul.hc-project-grid,
ul.hc-side-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.hc-card-grid > li,
ul.hc-project-grid > li {
	margin: 0 !important;
}

ul.hc-card-grid > li > *,
ul.hc-project-grid > li > * {
	height: 100%;
}

/* Whole card clickable through its single Read More link. */
.hc-stretched-link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.hc-service-card .wp-block-post-title {
	margin: 0;
}

.hc-service-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.hc-service-card .wp-block-post-featured-image {
	margin: 0;
}

/* ---------- Project cards ---------- */

.hc-project {
	position: relative;
}

.hc-project__image {
	margin: 0 !important;
}

.hc-project__image a {
	display: block;
}

.hc-project__title {
	margin: 0;
}

.hc-project__title a {
	color: inherit;
}

/* Status pill */
.hc-badge {
	display: inline-flex;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hc-badge a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--hc-gold);
	color: var(--hc-ink) !important;
	text-decoration: none;
	line-height: 1.3;
}

.hc-badge .wp-block-post-terms__separator {
	display: none;
}

.hc-badge--card {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	box-shadow: var(--hc-shadow);
	border-radius: 999px;
}

.hc-location {
	position: relative;
	margin: 0;
	padding-left: 1.4rem;
}

.hc-location.has-text-align-center {
	display: inline-block;
	align-self: center;
}

.hc-location::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1em;
	height: 1em;
	transform: translateY(-50%) scaleY(-1);
	background: url(../images/icons/location.svg) center / contain no-repeat;
}

.hc-location:empty {
	display: none !important;
}

/* ---------- Page banner ---------- */

.hc-banner {
	background-color: var(--wp--preset--color--ink);
}

.hc-banner h1 {
	margin-block-end: 0;
	line-height: 1.15;
}

.hc-banner__tagline {
	max-width: 44ch;
	margin-block-end: 0;
	opacity: 0.9;
}

.hc-banner .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.hc-banner .hc-badge {
	margin-bottom: 0.25rem;
}

.hc-breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, 0.75);
}

.hc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.hc-breadcrumbs a:hover,
.hc-breadcrumbs a:focus-visible {
	color: var(--hc-gold);
}

.hc-breadcrumbs [aria-current] {
	color: var(--hc-gold);
}

@media (max-width: 781px) {
	.hc-banner {
		min-height: 320px !important;
	}

	.hc-banner .wp-block-cover__background {
		background: rgba(16, 14, 13, 0.75) !important;
	}
}

/* ---------- Page content ---------- */

/* Full-width section pages: sections sit flush against each other. */
.hc-sections > * + * {
	margin-block-start: 0;
}

.hc-entry .wp-block-post-content > * + h2 {
	margin-top: var(--wp--preset--spacing--50);
}

.hc-entry__icon {
	margin: 0 0 1.25rem !important;
}

.hc-entry__photo {
	margin: 0 0 var(--wp--preset--spacing--40) !important;
}

.hc-entry__photo img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--hc-shadow);
}

.hc-lead {
	line-height: 1.55;
}

/* "What we offer" groups on a service page. */
.hc-offer-grid {
	gap: 1.25rem !important;
}

.hc-offer {
	height: 100%;
	padding: 1.5rem 1.5rem 1.6rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hc-radius);
	background: var(--wp--preset--color--base);
	transition: border-color 0.3s ease, box-shadow 0.3s var(--hc-ease), transform 0.3s var(--hc-ease);
}

.hc-offer:hover {
	border-color: var(--hc-gold);
	box-shadow: var(--hc-shadow);
	transform: translateY(-3px);
}

.hc-offer h3 {
	margin: 0 0 0.9rem;
	font-size: var(--wp--preset--font-size--large);
}

.hc-offer .hc-list-check {
	gap: 0.55rem;
	font-size: 0.95rem;
}

.hc-offer .hc-list-check li {
	padding-left: 1.6rem;
}

.hc-offer .hc-list-check li::before,
.hc-list-check--gold li::before {
	width: 18px;
	height: 18px;
	background-color: var(--hc-gold);
}

/* ---------- Sidebar ---------- */

@media (min-width: 782px) {
	.hc-sidebar {
		position: sticky;
		top: calc(var(--hc-header-h) + 1.5rem);
	}
}

.hc-side-nav__title,
.hc-facts__title {
	margin: 0 0 0.25rem;
}

.hc-side-nav__list {
	display: grid;
	gap: 0.35rem;
}

.hc-side-nav__list li {
	margin: 0 !important;
}

.hc-side-nav__link {
	margin: 0;
	font-weight: 400;
}

.hc-side-nav__link a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, padding 0.25s var(--hc-ease);
}

.hc-side-nav__link a::after {
	content: "\2192";
	opacity: 0.4;
	transition: opacity 0.2s ease, transform 0.25s var(--hc-ease);
}

.hc-side-nav__link a:hover,
.hc-side-nav__link a:focus-visible {
	padding-left: 1.25rem;
	color: var(--wp--preset--color--accent-dark);
}

.hc-side-nav__link a:hover::after {
	opacity: 1;
	transform: translateX(3px);
}

.hc-side-nav__link a[aria-current="page"] {
	background: var(--hc-gold);
	color: var(--hc-ink);
	font-weight: 600;
}

.hc-side-nav__link a[aria-current="page"]::after {
	opacity: 1;
}

.hc-help-card h2 {
	margin-block: 0;
}

.hc-help-card p {
	margin-block-end: 0;
	color: rgba(255, 255, 255, 0.85);
}

.hc-help-card__phone a {
	font-weight: 600;
	text-decoration: none;
}

.hc-facts .hc-fact {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	gap: 1rem;
}

.hc-facts .hc-fact:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.hc-fact__label {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

.hc-fact__value {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.hc-fact__value a {
	text-decoration: none;
	color: var(--wp--preset--color--accent-dark);
}

/* ---------- How we work ---------- */

.hc-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
}

@media (max-width: 960px) {
	.hc-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hc-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hc-step {
	position: relative;
	margin: 0 !important;
	padding: 2rem 1.75rem;
	border-radius: var(--hc-radius);
	background: var(--wp--preset--color--base);
	box-shadow: var(--hc-shadow);
}

.hc-step h3,
.hc-step p {
	margin-block-end: 0;
}

.hc-step__number {
	margin-block-start: 0;
}

.hc-step__number {
	font-size: 2.5rem;
	line-height: 1;
	color: var(--hc-gold);
	font-variant-numeric: tabular-nums;
}

.hc-step {
	transition: transform 0.35s var(--hc-ease), box-shadow 0.35s var(--hc-ease);
}

.hc-step:hover {
	transform: translateY(-4px);
	box-shadow: var(--hc-shadow-lg);
}

/* Dashed connector between steps on wide screens; draws in when the step appears. */
@media (min-width: 961px) {
	.hc-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 3.25rem;
		right: -1.6rem;
		width: 1.6rem;
		height: 2px;
		background: repeating-linear-gradient(90deg, var(--hc-gold) 0 5px, transparent 5px 9px);
		transform-origin: left;
		transition: transform 0.6s var(--hc-ease) 0.5s;
	}

	.hc-js .hc-step.hc-reveal:not(.is-visible)::after {
		transform: scaleX(0);
	}
}

/* ---------- Stats band ---------- */

/* Measuring-tape ticks along the top and bottom edges. */
.hc-stats-band {
	position: relative;
	isolation: isolate;
}

.hc-stats-band::before,
.hc-stats-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: -1;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M.5 0v14M8.5 0v5M16.5 0v5M24.5 0v5M32.5 0v5M20.5 0v8' stroke='%23100E0D' stroke-opacity='.18'/%3E%3C/svg%3E") left top / 40px 14px repeat-x;
	pointer-events: none;
}

.hc-stats-band::before {
	top: 0;
}

.hc-stats-band::after {
	bottom: 0;
	transform: scaleY(-1);
}

.hc-stats-band__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.hc-stats-band__item {
	margin: 0 !important;
}

.hc-stats-band__item + .hc-stats-band__item {
	border-left: 1px solid rgba(51, 51, 51, 0.25);
}

.hc-stats-band__number {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.hc-stats-band__label {
	margin: 0;
	font-weight: 600;
}

@media (max-width: 600px) {
	.hc-stats-band__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.hc-stats-band__item + .hc-stats-band__item {
		border-left: 0;
		border-top: 1px solid rgba(51, 51, 51, 0.25);
		padding-top: 1.5rem;
	}
}

/* ---------- Photo with badge (About) ---------- */

.hc-media-badge {
	position: relative;
	max-width: 480px;
	margin-inline: auto;
	padding: 0 0 2.5rem 2.5rem;
}

.hc-media-badge::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 55%;
	height: 60%;
	border: 2px solid var(--hc-gold);
	border-radius: 16px;
	z-index: 0;
}

.hc-media-badge__image {
	position: relative;
	z-index: 1;
	margin: 0;
}

.hc-media-badge__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: var(--hc-shadow-lg);
}

.hc-media-badge__badge {
	position: absolute;
	z-index: 2;
	right: -1rem;
	bottom: 0.5rem;
	padding: 1.1rem 1.4rem;
	border-radius: 12px;
	box-shadow: var(--hc-shadow-lg);
	text-align: center;
}

.hc-media-badge__number {
	margin: 0;
	font-size: 2.5rem;
	line-height: 1;
}

.hc-media-badge__label {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

@media (max-width: 600px) {
	.hc-media-badge__badge {
		right: 0;
	}
}

/* ---------- CTA band ---------- */

.hc-cta-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hc-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(../images/footer-bg.jpg) center / cover no-repeat;
	opacity: 0.5;
}

/* Site-hoarding stripe along the top edge. */
.hc-cta-band::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--hc-gold) 0 12px, var(--wp--preset--color--ink) 12px 24px);
	opacity: 0.9;
}

.hc-cta-band__text h2 {
	margin-block: 0;
	max-width: 24ch;
}

.hc-cta-band__sub {
	margin-block-end: 0;
	color: rgba(255, 255, 255, 0.8);
}

.hc-cta-band__sub a {
	color: var(--hc-gold) !important;
	text-decoration: none;
	font-weight: 600;
}

.hc-cta-band__button .wp-block-button__link:hover,
.hc-cta-band__button .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--base);
	color: var(--hc-ink);
}

/* ---------- Pagination ---------- */

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 6px;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	background: var(--hc-gold);
}

/* ---------- Team ---------- */

ul.hc-team-grid {
	--hc-gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--hc-gap);
}

ul.hc-team-grid > li {
	margin: 0 !important;
}

ul.hc-team-grid > li > .hc-team-card {
	height: 100%;
}

.hc-team-card {
	position: relative;
}

.hc-team-card .hc-team-card__photo {
	margin: 0 0 1.25rem !important;
	width: 100%;
	overflow: hidden;
}

.hc-team-card .hc-team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--hc-ease);
}

.hc-team-card:hover .hc-team-card__photo img {
	transform: scale(1.05);
}

.hc-team-card__name a {
	color: inherit;
	text-decoration: none;
}

/* Whole card links to the profile. */
.hc-team-card__name a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 8px;
}

.hc-team-card:hover .hc-team-card__name a {
	color: var(--wp--preset--color--accent-dark);
}

.hc-team-card__intro {
	padding-inline: 1.5rem;
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.95rem;
}

.hc-team-card__intro .wp-block-post-excerpt__excerpt {
	margin: 0.5rem 0 0;
}

.hc-team-card .hc-more-link {
	margin-top: 0.75rem;
}

/* Initials avatar for people without a photo. */
.hc-initials {
	display: grid;
	place-items: center;
	width: 100%;
	background:
		radial-gradient(circle at 30% 20%, rgba(235, 187, 28, 0.35), transparent 60%),
		linear-gradient(135deg, #2a2623 0%, var(--wp--preset--color--ink) 100%);
}

.hc-initials__letters {
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	border: 2px solid var(--hc-gold);
	border-radius: 50%;
	color: var(--hc-gold);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Single profile */
.hc-banner__role {
	margin-block-end: 0;
}

.hc-banner__role:empty {
	display: none;
}

.hc-profile-card {
	overflow: hidden;
	box-shadow: var(--hc-shadow-lg);
}

.hc-profile-card .hc-profile-card__photo {
	margin: 0 0 1.25rem !important;
	width: 100%;
}

.hc-profile-card .hc-profile-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hc-profile-card__name,
.hc-profile-card__role {
	margin: 0 !important;
	padding-inline: 1rem;
}

.hc-entry > .hc-lead {
	margin-top: 0;
	line-height: 1.55;
}

.hc-entry > .hc-lead .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.hc-entry__heading {
	margin-top: var(--wp--preset--spacing--50);
}

/* ---------- Contact page ---------- */

.hc-contact-cards {
	display: grid;
	gap: 0.85rem;
}

.hc-contact-card {
	position: relative;
	margin: 0 !important;
	padding: 1.1rem 1.25rem 1.1rem 4.25rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	transition: border-color 0.25s ease, box-shadow 0.3s var(--hc-ease), transform 0.3s var(--hc-ease);
}

.hc-contact-card:hover {
	border-color: var(--hc-gold);
	box-shadow: var(--hc-shadow);
	transform: translateY(-2px);
}

.hc-contact-card::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 50%;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: -1.125rem;
	border-radius: 50%;
	background: var(--wp--preset--color--ink) center / 1.05rem no-repeat;
	transform: scaleY(-1); /* these icon files are stored upside down */
}

.hc-contact-card--location::before {
	background-image: url(../images/icons/location.svg);
}

.hc-contact-card--phone::before {
	background-image: url(../images/icons/phone.svg);
}

.hc-contact-card--mail::before {
	background-image: url(../images/icons/mail.svg);
}

.hc-contact-card__label {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hc-contact-card__value {
	margin: 0;
	font-weight: 600;
}

.hc-contact-card__value a {
	text-decoration: none;
}

.hc-contact-card__value a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.hc-form-card {
	box-shadow: var(--hc-shadow-lg);
}

.hc-form-card > h3,
.hc-form-card > p {
	margin-block: 0;
}

.hc-form--full {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.75rem;
	margin-top: 1rem;
}

.hc-form--full .hc-form__notice,
.hc-form--full .hc-field--wide {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.hc-form--full {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hc-field select {
	width: 100%;
	padding: 1.1rem 1.75rem 0.5rem 0;
	border: 0;
	border-bottom: 1px solid #737b7d;
	border-radius: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E") right 0.25rem bottom 0.9rem no-repeat;
	color: var(--hc-ink);
	font: inherit;
	appearance: none;
	cursor: pointer;
}

.hc-field select:focus {
	outline: none;
	border-bottom-color: var(--hc-gold);
	box-shadow: 0 1px 0 0 var(--hc-gold);
}

/* The select always shows a value, so its label stays floated. */
.hc-field--select label {
	transform: translateY(-1.1rem) scale(0.8);
	color: var(--wp--preset--color--accent-dark);
}

/* FAQ accordion */
.hc-faq {
	display: grid;
	gap: 0.85rem;
}

.hc-faq .wp-block-accordion-item {
	margin: 0 !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	transition: border-color 0.25s ease, box-shadow 0.3s var(--hc-ease);
}

.hc-faq .wp-block-accordion-item:hover,
.hc-faq .wp-block-accordion-item.is-open {
	border-color: var(--hc-gold);
	box-shadow: var(--hc-shadow);
}

.hc-faq .wp-block-accordion-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.hc-faq .wp-block-accordion-heading__toggle {
	padding: 1.15rem 1.4rem;
	gap: 1rem;
}

.hc-faq .wp-block-accordion-heading__toggle-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--accent-dark);
	font-size: 1.25rem;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--hc-ease);
}

.hc-faq .is-open .wp-block-accordion-heading__toggle-icon {
	background: var(--hc-gold);
	color: var(--hc-ink);
}

.hc-faq .wp-block-accordion-panel {
	padding: 0 1.4rem 1.25rem;
}

.hc-faq .wp-block-accordion-panel p {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

/* Full-width map */
.hc-map--wide {
	min-height: 440px;
	background: #e5e3df;
	border-radius: 0;
	box-shadow: none;
}

.hc-map__badge--large {
	top: 50%;
	left: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
	transform: translateY(-50%);
	max-width: 300px;
	padding: 1.25rem 1.4rem;
	font-size: 0.9rem;
	box-shadow: var(--hc-shadow-lg);
}

.hc-map__directions {
	margin-top: 0.5rem;
	font-weight: 700;
	color: var(--hc-ink);
}

@media (max-width: 600px) {
	.hc-map__badge--large {
		top: auto;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
		transform: none;
		max-width: none;
	}
}

/* ---------- Design collaborator ---------- */

.hc-aspect-card {
	height: 100%;
	box-shadow: var(--hc-shadow);
	transition: transform 0.35s var(--hc-ease), box-shadow 0.35s var(--hc-ease);
}

.hc-aspect-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--hc-shadow-lg);
}

.hc-aspect-card h3,
.hc-aspect-card p {
	margin-block: 0;
}

.hc-aspect-card__icon {
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--base-2);
}

.hc-aspect-card:hover .hc-icon img {
	transform: scale(1.1);
}

/* Photo with gold frame, no badge. */
.hc-media-badge--plain {
	padding-bottom: 2.5rem;
}

/* Numbered feature list */
.hc-feature-list {
	display: grid;
}

.hc-feature {
	position: relative;
	margin: 0 !important;
	padding: 1.4rem 0 1.4rem 4.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

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

.hc-feature h3,
.hc-feature p {
	margin-block-end: 0;
}

.hc-feature > p:last-child {
	color: var(--wp--preset--color--contrast-2);
}

.hc-feature .hc-feature__number {
	position: absolute;
	left: 0;
	top: 1.4rem;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--hc-gold);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.hc-feature:hover .hc-feature__number {
	background: var(--hc-gold);
	color: var(--hc-ink);
}

@media (max-width: 600px) {
	.hc-feature {
		padding-left: 3.75rem;
	}

	.hc-feature .hc-feature__number {
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* ---------- Space for rent ---------- */

/* Small pill label above a heading. */
.hc-badge-text {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: var(--hc-gold);
	color: var(--hc-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hc-rent-overview h2 {
	margin-top: 0.5rem;
}

.hc-rent-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-block: var(--wp--preset--spacing--30) !important;
}

.hc-rent-stat {
	margin: 0 !important;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
}

.hc-rent-stat__value {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.1;
	color: var(--wp--preset--color--accent-dark);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hc-rent-stat__label {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.35;
}

@media (max-width: 480px) {
	.hc-rent-stats {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hc-rent-ideal__title {
	margin-bottom: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.hc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-chips li {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 0.9rem;
	background: var(--wp--preset--color--base);
}

.hc-rent-photo {
	margin: 0 !important;
}

.hc-rent-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px 16px 0 0;
}

/* Project credits under the photo. */
.hc-credits {
	margin: 0 !important;
	padding: 0.5rem 1.4rem;
	border-radius: 0 0 16px 16px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	box-shadow: var(--hc-shadow-lg);
}

.hc-credits__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 !important;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.95rem;
}

.hc-credits__row:last-child {
	border-bottom: 0;
}

.hc-credits__label {
	color: var(--hc-gold);
	font-weight: 600;
}

.hc-credits__value {
	text-align: right;
}

/* Floors table */
.hc-rent-table {
	margin: 0;
	overflow-x: auto;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--hc-shadow);
}

.hc-rent-table table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.hc-rent-table th,
.hc-rent-table td {
	padding: 1rem 1.4rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
}

.hc-rent-table thead {
	border: 0;
}

.hc-rent-table thead th {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hc-rent-table tbody tr {
	transition: background-color 0.2s ease;
}

.hc-rent-table tbody tr:hover {
	background: #fdf8e6;
}

.hc-rent-table td:first-child {
	font-weight: 600;
}

.hc-rent-table td:last-child {
	color: var(--wp--preset--color--accent-dark);
	font-weight: 600;
}

.hc-rent-table tfoot {
	border: 0;
}

.hc-rent-table tfoot td {
	border-bottom: 0;
	background: var(--wp--preset--color--base-2);
	font-weight: 700;
	color: var(--hc-ink) !important;
}

@media (max-width: 600px) {
	.hc-rent-table th,
	.hc-rent-table td {
		padding: 0.8rem 0.9rem;
		font-size: 0.9rem;
	}
}

/* Feature tiles */
.hc-feature-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 960px) {
	.hc-feature-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hc-feature-tiles {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hc-feature-tile {
	position: relative;
	margin: 0 !important;
	padding: 1.25rem 1.25rem 1.25rem 3.6rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	font-weight: 600;
	transition: border-color 0.25s ease, box-shadow 0.3s var(--hc-ease), transform 0.3s var(--hc-ease);
}

.hc-feature-tile:hover {
	border-color: var(--hc-gold);
	box-shadow: var(--hc-shadow);
	transform: translateY(-3px);
}

.hc-feature-tile::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.35rem;
	width: 22px;
	height: 22px;
	background-color: var(--hc-gold);
	-webkit-mask: url(../images/icons/check-circle.svg) center / contain no-repeat;
	mask: url(../images/icons/check-circle.svg) center / contain no-repeat;
}

.hc-feature-tile p {
	margin: 0;
}

/* Brochure */
.hc-brochure {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.hc-brochure__item {
	margin: 0 !important;
}

.hc-brochure__item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--hc-shadow-lg);
	transition: transform 0.4s var(--hc-ease);
}

.hc-brochure__item:hover img {
	transform: translateY(-4px);
}

@media (max-width: 600px) {
	.hc-brochure {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Menu: highlight "Space for Rent" as a call to action. */
.hc-main-nav .hc-nav-cta > .wp-block-navigation-item__content {
	padding: 0.35rem 0.9rem;
	border: 1.5px solid var(--hc-gold);
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.hc-main-nav .hc-nav-cta > .wp-block-navigation-item__content::after {
	display: none;
}

.hc-main-nav .hc-nav-cta > .wp-block-navigation-item__content:hover,
.hc-main-nav .hc-nav-cta > .wp-block-navigation-item__content:focus-visible,
.hc-main-nav .hc-nav-cta > .wp-block-navigation-item__content[aria-current] {
	background: var(--hc-gold);
}

/* ---------- Motion ---------- */

@keyframes hc-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes hc-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Scroll reveal — only when JS is running and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
	.hc-js .hc-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s var(--hc-ease), transform 0.7s var(--hc-ease);
	}

	.hc-js .hc-reveal.is-visible {
		opacity: 1;
		transform: none;
	}

	.hc-js .hc-card-grid > .hc-reveal:nth-child(3n + 2),
	.hc-js .hc-project-grid > .hc-reveal:nth-child(3n + 2) {
		transition-delay: 0.08s;
	}

	.hc-js .hc-card-grid > .hc-reveal:nth-child(3n),
	.hc-js .hc-project-grid > .hc-reveal:nth-child(3n) {
		transition-delay: 0.16s;
	}

	/* Process steps arrive left to right. */
	.hc-js .hc-steps > .hc-reveal:nth-child(2) { transition-delay: 0.1s; }
	.hc-js .hc-steps > .hc-reveal:nth-child(3) { transition-delay: 0.2s; }
	.hc-js .hc-steps > .hc-reveal:nth-child(4) { transition-delay: 0.3s; }

	/* --- Hero entrance: copy rises line by line, then the gold words get underlined. --- */
	.hc-hero__content > * {
		animation: hc-rise 0.9s var(--hc-ease-out) both;
	}

	.hc-hero__content > :nth-child(2) { animation-delay: 0.15s; }
	.hc-hero__content > :nth-child(3) { animation-delay: 0.3s; }

	.hc-hero mark.hc-hl {
		animation: hc-underline 0.8s var(--hc-ease) 0.75s both;
	}

	.hc-hero mark.hc-hl + mark.hc-hl,
	.hc-hero mark.hc-hl ~ mark.hc-hl {
		animation-delay: 1s;
	}

	/* Photo settles in from a slight zoom. */
	.hc-hero .wp-block-cover__image-background {
		animation: hc-settle 2.4s var(--hc-ease-out) both;
	}

	/* Banner titles rise in on inner pages. */
	.hc-banner__content > * {
		animation: hc-rise 0.8s var(--hc-ease-out) both;
	}

	.hc-banner__content > :nth-child(2) { animation-delay: 0.1s; }
	.hc-banner__content > :nth-child(3) { animation-delay: 0.2s; }
	.hc-banner__content > :nth-child(4) { animation-delay: 0.3s; }

	/* Blueprint lines sweep in after the copy. */
	.hc-linework {
		animation: hc-sweep 1.6s var(--hc-ease) 0.6s both;
	}

	/* --- Line icons draw on when their card appears. --- */
	.hc-js .hc-reveal .hc-svg-icon * {
		stroke-dasharray: 1 1;
		stroke-dashoffset: 1;
		transition: stroke-dashoffset 1.3s var(--hc-ease) 0.25s;
	}

	.hc-js .hc-reveal.is-visible .hc-svg-icon * {
		stroke-dashoffset: 0;
	}

	.hc-js .hc-reveal .hc-svg-icon :nth-child(n + 3) {
		transition-delay: 0.5s;
	}

	/* --- Section headings: rise, then the gold divider bars extend outward. --- */
	.hc-js .hc-section-head {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.7s var(--hc-ease), transform 0.7s var(--hc-ease);
	}

	.hc-js .hc-section-head .is-style-hc-divider {
		background-size: 0 2px, 0 2px;
		background-position: calc(50% - 24px) center, calc(50% + 24px) center;
		transition: background-size 0.8s var(--hc-ease) 0.3s, background-position 0.8s var(--hc-ease) 0.3s;
	}

	.hc-js .hc-section-head .is-style-hc-divider::after {
		opacity: 0;
		transform: scaleY(-1) translateY(6px);
		transition: opacity 0.5s ease 0.2s, transform 0.5s var(--hc-ease) 0.2s;
	}

	.hc-js .hc-section-head.is-visible {
		opacity: 1;
		transform: none;
	}

	.hc-js .hc-section-head.is-visible .is-style-hc-divider {
		background-size: 70px 2px, 70px 2px;
		background-position: left center, right center;
	}

	.hc-js .hc-section-head.is-visible .is-style-hc-divider::after {
		opacity: 1;
		transform: scaleY(-1);
	}

	/*
	 * --- Photos open with a horizontal wipe. The figure is watched and the
	 * image inside is clipped (a fully clipped element never "intersects").
	 * Once open, the clip grows past the edges so shadows stay visible.
	 */
	.hc-js :is(.hc-about__image, .hc-media-badge__image, .hc-photo-stack figure, .hc-entry__photo, .hc-rent-photo, .hc-brochure__item) img {
		clip-path: inset(0 100% 0 0);
		transition: clip-path 1.1s var(--hc-ease-out), transform 0.6s var(--hc-ease);
	}

	.hc-js :is(.hc-about__image, .hc-media-badge__image, .hc-photo-stack figure, .hc-entry__photo, .hc-rent-photo, .hc-brochure__item).is-visible img {
		clip-path: inset(-6rem -6rem -6rem -6rem);
	}

	/* The front photo of a stack opens a beat after the back one. */
	.hc-js .hc-photo-stack figure.hc-photo-stack__front img {
		transition-delay: 0.25s, 0s;
	}

	/* Badges and gold frames pop in after their photo. */
	.hc-js .hc-media-badge .hc-media-badge__badge {
		opacity: 0;
		transform: translateY(16px) scale(0.92);
		transition: opacity 0.5s ease 0.6s, transform 0.6s var(--hc-ease) 0.6s;
	}

	.hc-js .hc-media-badge.is-visible .hc-media-badge__badge {
		opacity: 1;
		transform: none;
	}

	.hc-js .hc-media-badge::before {
		opacity: 0;
		transform: translate(12px, -12px);
		transition: opacity 0.6s ease 0.4s, transform 0.8s var(--hc-ease) 0.4s;
	}

	.hc-js .hc-media-badge.is-visible::before {
		opacity: 1;
		transform: none;
	}

	/* --- Slow parallax on page banner photos, where the browser supports scroll timelines. --- */
	@supports (animation-timeline: view()) {
		.hc-banner .wp-block-cover__image-background {
			animation: hc-parallax linear both;
			animation-timeline: view();
			animation-range: exit;
		}
	}
}

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

@keyframes hc-underline {
	from { background-size: 0% 0.09em; }
	to { background-size: 100% 0.09em; }
}

@keyframes hc-settle {
	from { scale: 1.08; }
	to { scale: 1; }
}

@keyframes hc-sweep {
	from { clip-path: inset(0 0 0 100%); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes hc-parallax {
	from { transform: translateY(0) scale(1.15); }
	to { transform: translateY(12%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Editor: never hide reveal content. */
.editor-styles-wrapper .hc-reveal,
.editor-styles-wrapper .hc-section-head {
	opacity: 1 !important;
	transform: none !important;
}

/* ---------- 404 illustration ---------- */

.hc-404-art {
	display: block;
	width: min(100%, 380px);
	height: auto;
	margin-bottom: var(--wp--preset--spacing--30);
	overflow: visible;
	fill: none;
	stroke: var(--wp--preset--color--contrast);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hc-404-art__frame {
	stroke: var(--wp--preset--color--contrast-2);
	stroke-width: 1.5;
}

.hc-404-art__block {
	fill: var(--wp--preset--color--accent);
	stroke: var(--wp--preset--color--ink);
}

.hc-404-art__text {
	fill: var(--wp--preset--color--ink);
	stroke: none;
	font-family: var(--hc-font-heading);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hc-404-art__stripes {
	stroke: var(--wp--preset--color--accent);
	stroke-width: 4;
	stroke-linecap: butt;
}

.hc-404-art__load {
	transform-origin: 200px 46px;
	transform-box: view-box;
}

@media (prefers-reduced-motion: no-preference) {
	.hc-404-art__load {
		animation: hc-sway 4s ease-in-out infinite alternate;
	}
}

@keyframes hc-sway {
	from { transform: rotate(-2.5deg); }
	to { transform: rotate(2.5deg); }
}

/* ---------- Home: alternating section tints ----------
 * Light sections on the front page alternate between a soft Hamro Gold
 * wash and a very light blue wash so each band reads as its own section.
 * background-image layers over any preset background-color (e.g. base-2).
 */
:root {
	--hc-tint-gold: linear-gradient(180deg, #fefcf3 0%, #fffefa 55%, #fffffd 100%);
	--hc-tint-sky: linear-gradient(180deg, #f9fbff 0%, #fcfdff 55%, #feffff 100%);
}

.home main.wp-block-group > .wp-block-group.alignfull:nth-child(even) {
	background-image: var(--hc-tint-gold);
}

.home main.wp-block-group > .wp-block-group.alignfull:nth-child(odd) {
	background-image: var(--hc-tint-sky);
}
