/* =========================================================
   TEXT + MOTION UTILITIES
   (Replaces original "Need a Creative" title card CSS)
   ========================================================= */
/* -------------------------
   Alignment & colour
   ------------------------- */
.text-left {
	text-align: left !important;
}

.text-light {
	color: #FEF7ED !important;
}

.text-transparent-bg {
	background-color: transparent !important;
}

/* Legacy support (keeps existing homepage working) */
.w3-left-align {
	text-align: left !important;
	color: #FEF7ED !important;
	background-color: transparent !important;
	padding: 20px !important;
}

/* -------------------------
   Typography scale
   ------------------------- */
/* Hero / display text */
.text-hero {
	font-size: 6rem !important;
	line-height: 1 !important;
	margin: 0 !important;
}

/* Legacy alias */
.large-text {
	font-size: 6rem !important;
	line-height: 1 !important;
	margin: 0 !important;
}

/* Responsive scaling */
@media (max-width: 1200px) {
	.text-hero,
		  .large-text {
		font-size: 8rem !important;
	}
}

@media (max-width: 992px) {
	.text-hero,
		  .large-text {
		font-size: 5rem !important;
	}
}

@media (max-width: 768px) {
	.text-hero,
		  .large-text {
		font-size: 4rem !important;
	}
}

@media (max-width: 576px) {
	.text-hero,
		  .large-text {
		font-size: 3rem !important;
	}
}

/* -------------------------
   Motion
   ------------------------- */
@keyframes slideInFromBottom {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Reusable animation utility */
.animate-slide-up {
	animation: slideInFromBottom .5s ease-out both;
}

/* Legacy alias */
.w3-animate-bottom {
	animation: slideInFromBottom .5s ease-out both;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
	.animate-slide-up,
		  .w3-animate-bottom {
		animation: none !important;
	}
}

/* =========================================================
   CATEGORY BUTTONS (widget / list)
   Add class to the *Group* wrapping the Categories List: category-buttons
   ========================================================= */
.category-buttons ul {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-buttons li {
	margin: 0;
}

.category-buttons a {
	display: inline-flex;
	align-items: center;
	padding: .45rem .9rem;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	text-decoration: none;
}

/* =========================================================
   QUERY LOOP – EXCERPT TYPOGRAPHY (optional)
   Adjust the value(s) to taste
   ========================================================= */
.wp-block-query .wp-block-post-excerpt {
	font-size: 1rem;
/* try 0.95rem or 1.05rem */
	line-height: 1.5;
}

.wp-block-query .wp-block-post-excerpt p {
	font-size: 1rem;
	line-height: inherit;
}

/* =========================================================
   QUERY LOOP – TAG PILLS
   Add class to the Post Terms block (showing Tags): tag-pills
   ========================================================= */
.tag-pills.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: .25rem 0 0;
	padding: 0;
}

/* remove WP separators (commas/spaces) */
.tag-pills.wp-block-post-terms .wp-block-post-terms__separator {
	display: none !important;
}

.tag-pills.wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	padding: .25rem .6rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary) !important;
	font-size: .8rem;
	line-height: 1.15;
	font-weight: 500;
	text-decoration: none !important;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.tag-pills.wp-block-post-terms a:hover,
.tag-pills.wp-block-post-terms a:focus-visible {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background) !important;
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

/* =========================================================
   QUERY LOOP – “VIEW ARTICLE” BUTTON (Read More block)
   Class on Read More block: view-article
   ========================================================= */
.view-article {
	margin: .6rem 0 0;
}

/* Read More block is often the link itself */
a.wp-block-read-more.view-article {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .55rem 1rem;
	border-radius: .5rem;
/* more button-like than a pill */
	border: 2px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background) !important;
	font-size: .9rem;
	line-height: 1.1;
	font-weight: 700;
	text-decoration: none !important;
	transition: filter 140ms ease, transform 140ms ease;
}

a.wp-block-read-more.view-article:hover,
a.wp-block-read-more.view-article:focus-visible {
	filter: brightness(0.92) saturate(1.05);
	transform: translateY(-1px);
	outline: none;
}

/* Some themes output a wrapper with an inner link */
.wp-block-post-read-more.view-article a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .55rem 1rem;
	border-radius: .5rem;
	border: 2px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background) !important;
	font-size: .9rem;
	line-height: 1.1;
	font-weight: 700;
	text-decoration: none !important;
	transition: filter 140ms ease, transform 140ms ease;
}

.wp-block-post-read-more.view-article a:hover,
.wp-block-post-read-more.view-article a:focus-visible {
	filter: brightness(0.92) saturate(1.05);
	transform: translateY(-1px);
	outline: none;
}

/* =========================================================
   QUERY LOOP – PROJECT TYPE BUTTONS (SLUG-BASED, SOLID BG)
   Class on Post Terms block: project-type-buttons
   ========================================================= */
.project-type-buttons.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .35rem 0 0;
	padding: 0;
}

/* Remove WP comma separators so spacing is clean */
.project-type-buttons.wp-block-post-terms .wp-block-post-terms__separator {
	display: none !important;
}

/* Base button */
.project-type-buttons.wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .35rem .65rem;
	border-radius: .35rem;
	border: none !important;
	background-color: rgba(0,0,0,0.08);
/* fallback */
	color: #111 !important;
	font-size: .8rem;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: filter 140ms ease, transform 140ms ease;
}

.project-type-buttons.wp-block-post-terms a:hover,
.project-type-buttons.wp-block-post-terms a:focus-visible {
	filter: brightness(0.92) saturate(1.05);
	transform: translateY(-1px);
	outline: none;
}

/* Hide “all-projects” completely */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/all-projects/"] {
	display: none !important;
}

/* =========================================================
   Colour mapping by EXACT slug
   ========================================================= */
/* Communications */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/communications/"] {
	background-color: #E6F0FF !important;
	color: #123A7A !important;
}

/* Design */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/design/"] {
	background-color: #4A1D96 !important;
	color: #F3E8FF !important;
}

/* Marketing */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/marketing/"] {
	background-color: #BFF0D0 !important;
	color: #0F5A2A !important;
}

/* Personal */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/personal/"] {
	background-color: #FFE3A6 !important;
	color: #7A3E00 !important;
}

/* Photo & Video */
.project-type-buttons.wp-block-post-terms a[href*="/project-type/photo-video/"] {
	background-color: #E9FBFF !important;
	color: #0B4A5A !important;
}

/* =========================================================
   Featured Projects Banner
   ========================================================= */
/* Featured projects section */
.featured-projects .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

/* Bigger, more editorial cards */
.featured-projects .featured-card {
	border-radius: 18px;
	min-height: 420px;
}

/* Optional: stronger typography */
.featured-projects h2,
.featured-projects h3 {
	font-size: clamp(1.6rem, 2.5vw, 2.2rem);
	line-height: 1.1;
}

/* =========================================================
   FEATURED PROJECTS – slide-up reveal (no JS)
   Add to Cover: featured-animate (and optionally featured-card)
   Add to inner Group that holds text/buttons: featured-card__content
   ========================================================= */
@keyframes slideInFromBottom {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
	
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Trigger on page load */
.featured-animate .featured-card__content {
	animation: slideInFromBottom .55s ease-out both;
}

/* Nice hover re-trigger (optional) */
.featured-animate:hover .featured-card__content,
.featured-animate:focus-within .featured-card__content {
	animation: slideInFromBottom .45s ease-out both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.featured-animate .featured-card__content {
		animation: none !important;
	}
}

.all-projects-link a,
.all-projects-link .wp-block-button__link {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #EFE9DD;
	color: #2FB67C;
	text-decoration: none;
	font-weight: 500;
}

.all-projects-link a:hover,
.all-projects-link .wp-block-button__link:hover {
	background: #2FB67C;
	color: #FEF7ED;
}

/* =========================================================
   Blog – Content Carousel (Newspack blocks)
   Rounded image + Lora title + PRIMARY colour overlay
   ========================================================= */
/* Rounded carousel images */
.wpnbpc .post-thumbnail {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

/* Make sure the title/meta are always above anything */
.wpnbpc .entry-wrapper {
	position: relative;
	z-index: 5;
}

/* Title font = Lora */
.wpnbpc .entry-wrapper .entry-title,
.wpnbpc .entry-wrapper .entry-title a {
	font-family: "Lora", serif !important;
	font-weight: 700;
}

/* Spacing */
.wpnbpc .entry-wrapper {
	padding-top: .6rem;
}

.wpnbpc .entry-wrapper .entry-title {
	margin: 0 0 .35rem;
}

/* =========================================================
   Blog + Project Carousel – Visually shorter cards
   ========================================================= */
.wpnbpc article.post,
.wpnbpc article.type-jetpack-portfolio {
	max-height: 380px;
/* tweak as needed */
	overflow: hidden;
	border-radius: 10px;
}

/* =========================================================
   Carousel – slide enter animation (Newspack / Swiper)
   ========================================================= */
/* Base state for all slides */
.wpnbpc .swiper-slide {
	opacity: .25;
	transform: translateY(10px) scale(0.98);
	transition: opacity 400ms ease, transform 400ms ease;
}

/* Active slide "enters" */
.wpnbpc .swiper-slide.swiper-slide-active {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Neighbours a bit more present than others */
.wpnbpc .swiper-slide.swiper-slide-next,
.wpnbpc .swiper-slide.swiper-slide-prev {
	opacity: .6;
	transform: translateY(6px) scale(0.99);
}

/* Optional: animate the image slightly (gives a nice “settle” feel) */
.wpnbpc .swiper-slide .post-thumbnail img {
	transform: scale(1.03);
	transition: transform 600ms ease;
}

.wpnbpc .swiper-slide.swiper-slide-active .post-thumbnail img {
	transform: scale(1);
}

/* Optional: animate text in with a small delay */
.wpnbpc .swiper-slide .entry-wrapper {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 350ms ease 120ms, transform 350ms ease 120ms;
}

.wpnbpc .swiper-slide.swiper-slide-active .entry-wrapper {
	opacity: 1;
	transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wpnbpc .swiper-slide,
		  .wpnbpc .swiper-slide .post-thumbnail img,
		  .wpnbpc .swiper-slide .entry-wrapper {
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}

/* Circular avatar utility */
.is-style-circle-avatar img,
.wp-block-avatar.is-style-circle-avatar img {
	border-radius: 50%;
	display: block;
}

/* Editorial category label (Stuff-style, theme-aware) */
.wp-block-post-terms.editorial-category {
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .02em;
	display: inline-flex;
	align-items: center;
	gap: .5em;
}

/* First category (section) */
.wp-block-post-terms.editorial-category a:first-child {
	color: var(--wp--preset--color--foreground, #111);
	text-decoration: none;
}

/* Divider */
.wp-block-post-terms.editorial-category a + a::before {
	content: "|";
	color: var(--wp--preset--color--tertiary, #999);
	margin: 0 .5em;
}

/* Highlighted category */
.wp-block-post-terms.editorial-category a:last-child {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}

/* Mobile: move the left sidebar below the article */
/* Mobile: move sidebar to bottom + make all columns full width */
@media (max-width: 781px) {
	/* Target your 3-col layout wrapper */
	.wp-block-columns.layout-3col {
		flex-wrap: wrap;
	}
	
	/* Main content column (your 80%) should come first */
	.wp-block-columns.layout-3col > .wp-block-column:not(.sidebar-bottom) {
		order: 1;
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	/* Sidebar column should come last */
	.wp-block-columns.layout-3col > .wp-block-column.sidebar-bottom {
		order: 3;
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	/* Hide the thin divider column on mobile */
	.wp-block-columns.layout-3col > .wp-block-column.has-secondary-border-color {
		display: none !important;
	}
}