/* =WordPress Core
-------------------------------------------------------------- */

/* Task 4: Project filter bar — allow wrapping to multiple lines */
.filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

/* Task 7: Menu bar — Lottie arrow sizing (55px per Figma, vector strokes for thin lines) */
.menubar > li a .ico-holder .lottie-arrow {
	clip-path: inset(0.5px);
	display: block;
	width: 38px;
	height: 38px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.menubar > li a .ico-holder .lottie-arrow {
	clip-path: inset(0.5px);
		width: 46px;
		height: 46px;
	}
}

@media (min-width: 1024px) {
	.menubar > li a .ico-holder .lottie-arrow {
	clip-path: inset(0.5px);
		width: 55px;
		height: 55px;
	}
}

/* Task 7: Menu arrow — invert Lottie to show on dark bg, then colorize to orange #ff671b */
.menubar .lottie-arrow svg {
	filter: invert(1) brightness(0) invert(36%) sepia(100%) saturate(1000%) hue-rotate(-11deg) brightness(112%);
}

/* Task 2: Our Respect section — respect graphic */
.respect-graphic {
	margin-top: 100px;
	padding-top: 70px;
}

.respect-graphic img {
	width: 50%;
	height: auto;
	display: block;
	margin-left: auto;
}

/* Task 2: text-section-image (legacy, keep for text-info block) */
.text-section-image {
	margin-top: 60px;
}

.text-section-image img {
	width: 100%;
	height: auto;
}

/* Hide native search input clear button */
#search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

/* Tasks 60/65/67: Orange hover state for Filter button */
.collapse-opener:hover {
	color: #ff671b;
}

/* Sophie feedback: Card text stays BLACK on hover — no orange text change.
   Image darkens + arrow animates, but text remains default color. */

/* Tasks 61/68: Search page — category headings as small all-caps labels */
.search-drop .search-result-row .search-category,
.search-results-section .search-result-row .search-category {
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
}

/* Tasks 61/68: Search page — push-down: page content slides down when search opens */
.page-holder,
.footer {
	transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-active .page-holder,
.search-active .footer {
	transform: translateY(100vh);
}

/* Preserve original page appearance during search push-down */
.search-active .page-holder {
	background-color: #f1ece4 !important;
	color: #000 !important;
}

/* Override search-active color changes for elements inside page-holder */
.search-active .page-holder .section-heading .link-content .text-link,
.search-active .page-holder .items-list > li a .text-holder,
.search-active .page-holder .items-list > li a .card-title,
.search-active .page-holder .items-list > li a h2,
.search-active .page-holder .items-list > li a h3,
.search-active .page-holder .items-list > li a .h2,
.search-active .page-holder .items-list > li a .h3,
.search-active .page-holder .items-list > li a .text-link {
	color: inherit !important;
}

.search-active .page-holder .featured-search .item-holder,
.search-active .page-holder .featured-search .row-title {
	border-color: inherit !important;
}

/* Prevent body scroll-lock from hiding pushed content */
body.search-active {
	overflow: hidden;
}

/* Card arrows — 20px per Figma with 2px stroke (vector Lottie) */
.lottie-arrow {
	clip-path: inset(0.5px);
	width: 20px;
	height: 20px;
	overflow: hidden;
}

/* Sophie feedback: Lottie arrow — clip overflow to hide dot glitch in top-right corner */
.lottie-arrow svg {
	overflow: hidden;
}

/* Sophie feedback: Search drop — ensure title heading stays white inside the overlay */
.search-drop .search-form .title,
.search-drop .search-form .title h1,
.search-drop .search-form .title h2,
.search-drop .search-form .title h3,
.search-drop .search-form .title p {
	color: #fff !important;
}

/* Sophie feedback: Search results text always white inside search-drop */
.search-drop .items-list > li a .text-link,
.search-drop .items-list > li a .text-holder,
.search-drop .items-list > li a .card-title,
.search-drop .items-list > li a h2,
.search-drop .items-list > li a h3 {
	color: #fff !important;
}

/* Sophie feedback: People page — VIEW CAREERS directly below body copy, not pushed to column bottom */
.text-section .two-cols .col {
	justify-content: flex-start;
}

.text-section .two-cols .col .top-content {
	flex-grow: 0;
}

/* Remove paragraph bottom margin so VIEW CAREERS sits close below body copy */
.text-section .two-cols .col .top-content p:last-child {
	margin-bottom: 0;
}

.text-section .two-cols .col .bottom-content {
	margin-top: 20px;
}

/* Sophie feedback: Smoother menu open/close transition */
.nav-drop {
	transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Sophie feedback: Menu items stagger fade-in for smoother appearance */
.nav-active .nav-drop .menubar > li {
	opacity: 0;
	transform: translateY(20px);
	animation: menuFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav-active .nav-drop .menubar > li:nth-child(1) { animation-delay: 0.25s; }
.nav-active .nav-drop .menubar > li:nth-child(2) { animation-delay: 0.33s; }
.nav-active .nav-drop .menubar > li:nth-child(3) { animation-delay: 0.41s; }
.nav-active .nav-drop .menubar > li:nth-child(4) { animation-delay: 0.49s; }
.nav-active .nav-drop .menubar > li:nth-child(5) { animation-delay: 0.57s; }
.nav-active .nav-drop .menubar > li:nth-child(6) { animation-delay: 0.65s; }

@keyframes menuFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Reset when menu closes */
.nav-drop .menubar > li {
	opacity: 1;
	transform: none;
}

/* Arrow exit animation: disable CSS opacity fade on ico-holder so Lottie exit
   animation (fly-out to top-right) is visible. JS controls .lottie-arrow opacity. */
/* Arrow exit animation: disable CSS opacity fade on ico-holder so Lottie exit
   animation (fly-out to top-right) is visible. JS controls .lottie-arrow opacity.
   Also shift arrow down to align with text baseline rather than centre. */
.menubar > li a .ico-holder {
	opacity: 1 !important;
	transform: translateY(-41%) !important;
	transition: none !important;
}

/* Fix 1px miter-join artifact at arrow top-right corner */
.lottie-arrow svg path[stroke-linejoin] {
	stroke-linejoin: round !important;
}

/* Fix: restrict card hover target to visible text content, not full card width */
.cards-list .card .text-holder > *,
.grid-cards-list .card .text-holder > *,
.items-list > li a .text-holder > * {
	width: fit-content;
}

/* Footer logo marquee animation (SVG, crisp at any size) */
.footer-logo {
  overflow: hidden;
}

.footer-logo .marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.footer-logo .marquee-inner {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: footerMarquee 15s linear infinite;
  will-change: transform;
}

.footer-logo .marquee-item {
  flex-shrink: 0;
}

.footer-logo .marquee-item img {
  display: block;
  height: auto;
  width: 1487px;
  max-height: 136px;
}

@keyframes footerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 2 items: 2 x (1487px logo + 80px gap) = 3134px */
    transform: translateX(-3134px);
  }
}

/* Client feedback: embedded videos (YouTube/Vimeo) in Journal and Project text blocks */
.text-content .text-holder iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	margin: 24px 0;
}

/* Client feedback: CTA stripe with an image and no heading/link.
   The image spans the full width at its own proportions, so nothing is cropped. */
.info-section-image-full {
	display: block;
}

.info-section-image-full .col {
	width: 100%;
	transform: none;
}

.info-section-image-full .img-holder {
	padding-top: 0;
	position: relative;
}

.info-section-image-full .img-holder img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}
