/*--------------------------------------------------------------
Eyebrow
Reusable label above section headings.
In the editor: select paragraph → Styles → Eyebrow (is-style-eyebrow).
In PHP templates: use class="eyebrow" directly.
--------------------------------------------------------------*/
.eyebrow,
.is-style-eyebrow {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.6rem;
}

/* On dark backgrounds — white at reduced opacity */
.has-secondary-background-color .eyebrow,
.has-secondary-background-color .is-style-eyebrow,
.has-primary-background-color .eyebrow,
.has-primary-background-color .is-style-eyebrow {
	color: rgba(255,255,255,0.65);
}

/*--------------------------------------------------------------
List Styles
--------------------------------------------------------------*/

/* Rows — no marker, no top border, uppercase text, border under each item */
.is-style-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-rows li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--inhaus-border-light);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
}

.is-style-rows.wp-block-list {
	padding-left: 0;
}

/* Rows List — standard bullet marker, border under each item including last */
.is-style-rows-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--inhaus-border-light);
	line-height: 1.6;
}

/*--------------------------------------------------------------
Divided Rows (Group)
Outer group that adds border lines + padding to every direct
child group. Apply once on the parent — no per-child styling needed.
--------------------------------------------------------------*/
.is-style-divided-rows {
	gap: 0 !important;
}

.is-style-divided-rows > .wp-block-group {
	border-top: 1px solid var(--inhaus-border-light);
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.is-style-divided-rows > .wp-block-group:last-child {
	border-bottom: 1px solid var(--inhaus-border-light);
}

/*--------------------------------------------------------------
Links & Buttons
--------------------------------------------------------------*/
.has-primary-background-color a {
	text-decoration-color: var(--wp--preset--color--white);
}

.inhaus-linked-block {
	text-decoration: none;
	position: relative;
}

.inhaus-linked-block:hover {
	text-decoration: none;
}

/* Generic linked block (no corner arrow) — subtle scale + heading underline */
.inhaus-linked-block:not(.inhaus-has-corner-arrow):hover {
	transform: scale(1.05);
}

.inhaus-linked-block:not(.inhaus-has-corner-arrow):hover :is(h1, h2, h3, h4, h5, h6) {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary);
}

/* Corner-arrow cards (service cards) — navy inversion on hover */
.inhaus-linked-block.inhaus-has-corner-arrow {
	transition: background-color 0.45s ease, color 0.45s ease;
}

.inhaus-linked-block.inhaus-has-corner-arrow:hover {
	background-color: var(--wp--preset--color--secondary) !important;
	color: var(--wp--preset--color--white);
}

.inhaus-linked-block.inhaus-has-corner-arrow:hover :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

.inhaus-linked-block.inhaus-has-corner-arrow:hover p {
	color: rgba(255,255,255,0.75);
}

/* Space at bottom for the corner arrow */
.inhaus-linked-block.inhaus-has-corner-arrow::after {
	content: "";
	display: block;
	height: 40px;
}

/* Corner arrow — bare icon, no box */
.inhaus-linked-block.inhaus-has-corner-arrow::before {
	content: "";
	position: absolute;
	right: var(--wp--preset--spacing--xl);
	bottom: var(--wp--preset--spacing--xl);
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2017L17%207M17%207H7M17%207v10%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
	z-index: 2;
	transition: filter 0.45s ease, transform 0.3s ease;
}

/* Invert arrow to white on hover */
.inhaus-linked-block.inhaus-has-corner-arrow:hover::before {
	filter: invert(1);
	transform: translate(2px, -2px);
}

.wp-block-buttons a:active,
.wp-block-buttons a:focus,
.wp-block-buttons a {
	text-decoration: none;
	text-decoration-thickness: 0;
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

/*--------------------------------------------------------------
Accordion — Card Style
Base padding/typography handled by theme.json (core/accordion-item,
core/accordion-heading, core/accordion-panel). This just adds the
card appearance.
--------------------------------------------------------------*/

.is-style-accordion-card {
	background-color: var(--wp--preset--color--surface);
	border-radius: var(--wp--preset--border-radius--sm);
	border: none !important;
	margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
Team Block — Carousel
--------------------------------------------------------------*/

.inhaus-team {
	--inhaus-team-cols: 3;
	--inhaus-team-gap: clamp(1rem, 2vw, 1.5rem);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	position: relative;
}

.inhaus-team--cols-3 { --inhaus-team-cols: 3; }
.inhaus-team--cols-4 { --inhaus-team-cols: 4; }

/* Viewport + track */

.inhaus-team__viewport {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
}

.inhaus-team__track {
	display: flex;
	gap: var(--inhaus-team-gap);
	will-change: transform;
	transform: translateX(0);
}

.inhaus-team__card {
	flex: 0 0 calc(
		(100% - var(--inhaus-team-gap) * (var(--inhaus-team-cols) - 1)) / var(--inhaus-team-cols)
	);
}

/* Nav buttons — sit on left / right of viewport */

.inhaus-team__nav-btn {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	z-index: 2;
}

.inhaus-team__nav-btn:hover:not(:disabled) {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

.inhaus-team__nav-btn:disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.inhaus-team__nav-btn svg {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
}

/* Card */

.inhaus-team__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background-color: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--secondary);
	border-radius: var(--wp--preset--border-radius--sm);
	overflow: hidden;
	height: 100%;
	transition: background-color 0.45s ease;
}

.inhaus-team__card-link:hover {
	text-decoration: none;
	background-color: var(--wp--preset--color--secondary);
}

.inhaus-team__img-wrap {
	overflow: hidden;
	background-color: var(--wp--preset--color--primary);
}

.inhaus-team__img {
	display: block;
	width: 100%;
	height: auto;
}

.inhaus-team__img-placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--inhaus-text-muted);
}

.inhaus-team__img-placeholder svg {
	width: 50%;
	height: 50%;
}

/* Card info area */

.inhaus-team__info {
	padding: 1rem 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.inhaus-team__info-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
}

.inhaus-team__info-main {
	flex: 1 1 0;
	min-width: 0;
}

.inhaus-team__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	line-height: 1.2;
	transition: color 0.45s ease;
}

.inhaus-team__title {
	margin: 0.15em 0 0;
	font-size: 0.8rem;
	color: var(--inhaus-text-muted);
	line-height: 1.3;
	transition: color 0.45s ease;
}

.inhaus-team__arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--primary);
	opacity: 0.7;
	margin-top: 2px;
	transition: color 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
}

.inhaus-team__arrow svg {
	display: block;
}

/* Hover: invert to white on navy */
.inhaus-team__card-link:hover .inhaus-team__name {
	color: var(--wp--preset--color--white);
}

.inhaus-team__card-link:hover .inhaus-team__title {
	color: rgba(255,255,255,0.7);
}

.inhaus-team__card-link:hover .inhaus-team__arrow {
	color: var(--wp--preset--color--white);
	opacity: 1;
	transform: translate(2px, -2px);
}

/* Highlights list — bordered rows matching hero card style */

.inhaus-team__highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--inhaus-border-light);
	transition: border-color 0.45s ease;
}

.inhaus-team__highlight {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--inhaus-text-muted);
	line-height: 1.4;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--inhaus-border-light);
	transition: color 0.45s ease, border-color 0.45s ease;
}

.inhaus-team__highlight:last-child {
	border-bottom: none;
}

.inhaus-team__card-link:hover .inhaus-team__highlights {
	border-top-color: rgba(255,255,255,0.15);
}

.inhaus-team__card-link:hover .inhaus-team__highlight {
	color: rgba(255,255,255,0.85);
	border-bottom-color: rgba(255,255,255,0.15);
}

/* Responsive */

@media (max-width: 900px) {
	.inhaus-team { --inhaus-team-cols: 2; }
}

@media (max-width: 560px) {
	.inhaus-team { --inhaus-team-cols: 1; }
	.inhaus-team__nav-btn { width: 36px; height: 36px; }
}

/*--------------------------------------------------------------
Resources Block — List
--------------------------------------------------------------*/

.inhaus-resources__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.inhaus-resources__item {
	border-top: 1px solid var(--inhaus-border-light);
}

.inhaus-resources__item:last-child {
	border-bottom: 1px solid var(--inhaus-border-light);
}

.inhaus-resources__link {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	column-gap: 2rem;
	align-items: start;
	padding: 1.25rem 0;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.inhaus-resources__link:hover {
	text-decoration: none;
}

.inhaus-resources__link:hover .inhaus-resources__title {
	color: var(--wp--preset--color--primary);
}

.inhaus-resources__type {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	line-height: 1.6;
	padding-top: 2px;
}

.inhaus-resources__title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	line-height: 1.35;
	transition: color 0.2s ease;
}

/* __body, __excerpt, __author — used by archive.php (3-col list with detail) */
.inhaus-resources__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.inhaus-resources__excerpt {
	display: block;
	font-size: 0.8125rem;
	color: var(--inhaus-text-muted);
	line-height: 1.55;
}

.inhaus-resources__author {
	display: block;
	font-size: 0.75rem;
	color: var(--inhaus-text-muted);
}

.inhaus-resources__date {
	font-size: 0.8125rem;
	color: var(--inhaus-text-hint);
	white-space: nowrap;
	padding-top: 2px;
}

/*--------------------------------------------------------------
Shared utility — "View all" arrow link
Used by team block, resources block, and any other section footer link.
No namespace prefix needed — it's a global utility.
--------------------------------------------------------------*/

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--secondary);
	transition: color 0.2s ease;
}

.link-arrow::after {
	content: '→';
	font-size: 1em;
	font-weight: 400;
	transition: transform 0.2s ease;
}

.link-arrow:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.link-arrow:hover::after {
	transform: translateX(3px);
}

@media (max-width: 640px) {
	.inhaus-resources__link {
		grid-template-columns: 80px 1fr;
		column-gap: 1rem;
	}

	.inhaus-resources__date {
		display: none;
	}
}

@media (max-width: 420px) {
	.inhaus-resources__link {
		grid-template-columns: 1fr;
		row-gap: 0.4rem;
	}

	.inhaus-resources__type {
		padding-top: 0;
	}
}

/*--------------------------------------------------------------
Hero Team Rotator Block  +  Single Team hero (shared photo-card classes)
--------------------------------------------------------------*/

/* Block wrapper */
.inhaus-hero-team {
	position: relative;
}

.inhaus-hero-team__track {
	position: relative; /* inactive slides anchor to this */
}

/* Slides — inactive are absolutely overlaid and invisible;
   active is position:relative so it sets the block height */
.inhaus-hero-team__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}
.inhaus-hero-team__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

/* Whole slide is a link */
.inhaus-hero-team__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.inhaus-hero-team__link:hover {
	text-decoration: none;
}

/*
 * Photo wrap — position: relative so the card can be
 * absolutely positioned over the bottom-right of the photo.
 * line-height: 0 kills the inline gap under <img>.
 */
.inhaus-hero-team__photo-wrap {
	position: relative;
	width: 100%;
	line-height: 0;
}

.inhaus-hero-team__photo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: top center;
}

.inhaus-hero-team__photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.25);
	padding: 3rem 0;
}
.inhaus-hero-team__photo-placeholder svg {
	width: 50%;
	height: 50%;
}

/*
 * Info card — white, overlaid on photo.
 * Bottom-right anchor. ~62% wide. Top-left corner only rounded.
 */
.inhaus-hero-team__card {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 62%;
	background: #fff;
	border-radius: 12px 0 0 0;
	padding: 0.9rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	line-height: 1.4; /* reset from photo-wrap's 0 */
	transition: background-color 0.45s ease;
}

/* Hover: invert card to navy */
.inhaus-hero-team__link:hover .inhaus-hero-team__card {
	background: var(--wp--preset--color--secondary);
}

/* Name row: name+title left, arrow right */
.inhaus-hero-team__card-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
}

.inhaus-hero-team__card-main {
	flex: 1 1 0;
	min-width: 0;
}

.inhaus-hero-team__name {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	line-height: 1.2;
	transition: color 0.45s ease;
}

.inhaus-hero-team__title {
	margin: 0.2em 0 0;
	font-size: 0.75rem;
	color: var(--inhaus-text-muted);
	line-height: 1.3;
	transition: color 0.45s ease;
}

.inhaus-hero-team__arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	color: var(--wp--preset--color--primary);
	opacity: 0.65;
	transition: opacity 0.2s ease, transform 0.2s ease, color 0.45s ease;
	padding-top: 2px;
}
.inhaus-hero-team__arrow svg {
	display: block;
}

/* Hover: text goes white */
.inhaus-hero-team__link:hover .inhaus-hero-team__name {
	color: #fff;
}
.inhaus-hero-team__link:hover .inhaus-hero-team__title {
	color: rgba(255,255,255,0.7);
}
.inhaus-hero-team__link:hover .inhaus-hero-team__arrow {
	color: #fff;
	opacity: 1;
	transform: translate(2px, -2px);
}

/* Highlights — each item is a bordered row */
.inhaus-hero-team__highlights-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--inhaus-border-light);
	transition: border-color 0.45s ease;
}

.inhaus-hero-team__highlight {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--inhaus-text-muted);
	line-height: 1.4;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--inhaus-border-light);
	transition: color 0.45s ease, border-color 0.45s ease;
}

.inhaus-hero-team__highlight:last-child {
	border-bottom: none;
}

/* Hover: highlights go white with white borders */
.inhaus-hero-team__link:hover .inhaus-hero-team__highlights-list {
	border-top-color: rgba(255,255,255,0.15);
}
.inhaus-hero-team__link:hover .inhaus-hero-team__highlight {
	color: rgba(255,255,255,0.85);
	border-bottom-color: rgba(255,255,255,0.15);
}

/* Dots navigation (rotator only) */
.inhaus-hero-team__dots {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 0.6rem;
}

.inhaus-hero-team__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	background: transparent;
	cursor: pointer;
	opacity: 0.35;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.inhaus-hero-team__dot.is-active {
	background: currentColor;
	opacity: 1;
}
.inhaus-hero-team__dot:hover {
	opacity: 0.7;
}

/*--------------------------------------------------------------
Industry Ticker Block
--------------------------------------------------------------*/

.inhaus-ticker {
	/* Break out of the content column to span the full viewport.
	   Handles both padded content areas and alignfull contexts. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* Label sits inside the strip, centered above the scrolling items */
.inhaus-ticker__label {
	text-align: center;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 0.75rem;
	padding-top: 0.25rem;
}

.inhaus-ticker__strip {
	background-color: var(--wp--preset--color--primary);
	overflow: hidden;
	padding: 1rem 0 1.25rem;
}

/*
 * 4 identical sets. Animation moves left by exactly one set width (-25% of
 * the total runner). When set 1 scrolls off-screen, set 2 is in its place —
 * seamless loop. 4 sets ensures content always overflows any viewport width.
 */
@keyframes inhaus-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-25%); }
}

.inhaus-ticker__runner {
	display: flex;
	align-items: center;
	gap: 1.25rem;                 /* matches intra-set gap — dot after last item
	                                 gets the same breathing room before the next set */
	width: max-content;
	animation: inhaus-ticker-scroll var(--inhaus-ticker-duration, 30s) linear infinite;
}

/* Pause on hover so users can read */
.inhaus-ticker__strip:hover .inhaus-ticker__runner {
	animation-play-state: paused;
}

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
	.inhaus-ticker__runner {
		animation: none;
	}
}

/* Each set is a flat flex row of items + separators */
.inhaus-ticker__set {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-shrink: 0;
}

.inhaus-ticker__item {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	white-space: nowrap;
}

.inhaus-ticker__sep {
	color: rgba(255, 255, 255, 0.4);
	font-size: 1.1rem;
	font-weight: 100;
	line-height: 1;
	flex-shrink: 0;
}

/*--------------------------------------------------------------
Block Layout Utilities
--------------------------------------------------------------*/

/* Remove inner gap — block option on core/group */
.inhaus-no-gap {
	--wp--style--block-gap: 0 !important;
	gap: 0 !important;
}

/* Reverse column order on mobile — block option on core/columns */
@media (max-width: 782px) {
	.wp-block-columns.inhaus-reverse-order-mobile {
		flex-direction: column-reverse;
	}
}
