/*!
Theme Name: Kadence Brickell (Kadence Child)
Theme URI: https://www.kadencewp.com/kadence-theme/
Description: Child theme for Kadence used for Brickell customizations.
Author: Misterfront.com
Template: kadence
Version: 1.0.3
Text Domain: kadence-brickell-child
*/

/* ===========================================
   CSS Custom Properties (global tokens)
   =========================================== */
:root {
	color-scheme: light;
	--color-bg-light: #f5f4f0;
	--color-bg-dark: #2c2e30;
	--color-text-dark: #2c251f;
	--color-text-light: #f5f4f0;
	--color-accent: #8b7d6b;
	--color-bg-alt: #e4dfd5;

	--font-serif: 'Playfair Display', serif;
	--font-sans: 'Inter', sans-serif;

	--spacing-section: 8rem;
	--spacing-container: 5%;
}

/* ===========================================
   Base element resets – override Kadence defaults
   =========================================== */
body,
body.flavor-flavor,
.site {
	font-family: var(--font-sans);
	background-color: #ffffff;
	color: var(--color-text-dark);
	line-height: 1.6;
	overflow-x: hidden;
}

.entry-content,
.site-container .entry-content,
.content-area {
	color: var(--color-text-dark);
}

.entry-content a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

h1,
h2,
h3,
h4,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.1;
	color: inherit;
}

p,
.entry-content p {
	color: inherit;
}

/* ===========================================
   Background utilities
   =========================================== */
.bg-white {
	background-color: #fff;
}

.bg-dark-gray {
	background-color: #2c2e30;
}

/* ===========================================
   Theme modifiers (dark / light sections)
   =========================================== */
.theme-dark,
.entry-content .theme-dark {
	background-color: var(--color-bg-dark);
	color: var(--color-text-light);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark p,
.theme-dark a {
	color: inherit;
}

.theme-light,
.entry-content .theme-light {
	background-color: var(--color-bg-alt);
	color: var(--color-text-dark);
}

.bg-white,
.entry-content .bg-white {
	background-color: #fff;
	color: var(--color-text-dark);
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white p {
	color: inherit;
}

/* ===========================================
   Text utilities (light text on dark bg)
   =========================================== */
.text-light-50 {
	color: rgba(255, 255, 255, 0.75);
}

.text-light-solid {
	color: var(--color-text-light);
}

.text-light-70-mb-2 {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
}

.text-light-70-mb-3 {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 3rem;
}

.text-light-border-light {
	color: var(--color-text-light);
	border-bottom-color: var(--color-text-light);
}

.text-light {
	color: var(--color-text-light);
}

/* Muted text — WCAG AA compliant contrast */
.text-small-muted {
	font-size: 0.8rem;
	color: #595959;
}

.text-sm-muted {
	font-size: 0.85rem;
	color: #595959;
}

.text-md-muted {
	font-size: 0.9rem;
	color: #595959;
}

/* ===========================================
   Typography utilities
   =========================================== */
.text-italic {
	font-style: italic;
}

.title-lg {
	font-size: clamp(2rem, 4vw, 4rem);
}

.desc-centered {
	max-width: 600px;
	margin: 2rem auto 0;
}

/* ===========================================
   Section / layout utilities
   =========================================== */
.section-padding {
	padding: var(--spacing-section) var(--spacing-container);
}

.section-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 3rem;
	display: block;
}

/* ===========================================
   Spacing utilities
   =========================================== */
.mb-0 {
	margin-bottom: 0;
}

.mb-3 {
	margin-bottom: 3rem;
}

.mt-2 {
	margin-top: 2rem;
}

.mt-4 {
	margin-top: 4rem;
}

/* ===========================================
   Grid utilities
   =========================================== */
.grid-2-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

/* ===========================================
   CTA / button styles
   =========================================== */
.cta-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid currentColor;
	padding: 10px 0;
	margin-top: 2rem;
	transition: gap 0.3s ease;
}

.cta-link:hover {
	gap: 15px;
}

.btn-reset-border-btm {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	border-bottom: 1px solid currentColor;
}

/* ===========================================
   Logo
   =========================================== */
.logo-img {
	height: 24px;
	vertical-align: middle;
}

/* ===========================================
   Portfolio utilities
   =========================================== */
.portfolio-counter-wrap {
	display: flex;
	justify-content: end;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1rem;
}

.portfolio-nav-wrap {
	margin-top: 3rem;
	display: flex;
	gap: 1rem;
}

.slider-nav-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: transparent;
	cursor: pointer;
	transition: background 0.3s;
	color: var(--color-text-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

/* ===========================================
   Misterfront credit component
   =========================================== */
.mf-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.mf-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.mf-logo-full {
	height: 1.25em;
	width: auto;
	display: inline-block;
	transform-origin: center;
	font-size: 1.25rem;
}

.mf-svg-white {
	fill: currentColor;
	transition: fill 0.3s ease;
}

.mf-svg-accent {
	fill: var(--color-accent);
	transition: fill 0.3s ease;
}

.mf-text {
	font-weight: 500;
	display: inline-flex;
}

.mf-char {
	display: inline-block;
}

/* ===========================================
   Scroll-driven animations (CSS-only)
   =========================================== */
@keyframes fadeUpIn {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@supports (animation-timeline: view()) {
	.anim-fade-up {
		animation: fadeUpIn linear both;
		animation-timeline: view();
		animation-range: entry 5% cover 30%;
	}

	/* Block containers with bg: keep animation but ensure bg is always visible */
	.wp-block-bl-portfolio.anim-fade-up,
	.wp-block-bl-gallery-masonry.anim-fade-up,
	.wp-block-bl-process-comparison.anim-fade-up,
	.wp-block-bl-team.anim-fade-up,
	.wp-block-bl-contact.anim-fade-up {
		position: relative;
		background-color: transparent !important;
	}

	.wp-block-bl-portfolio.anim-fade-up::before,
	.wp-block-bl-gallery-masonry.anim-fade-up::before,
	.wp-block-bl-process-comparison.anim-fade-up::before,
	.wp-block-bl-team.anim-fade-up::before,
	.wp-block-bl-contact.anim-fade-up::before {
		content: '';
		position: absolute;
		inset: 0;
		background-color: #fff;
		z-index: -1;
		pointer-events: none;
	}

	.anim-fade-in {
		animation: fadeIn linear both;
		animation-timeline: view();
		animation-range: entry 5% cover 40%;
	}

	.hero-anim-load {
		animation: fadeUpIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
		opacity: 0;
	}

	.hero-delay-1 { animation-delay: 0.2s; }
	.hero-delay-2 { animation-delay: 0.4s; }
	.hero-delay-3 { animation-delay: 0.6s; }

	.anim-delay-1 { animation-range: entry 15% cover 35%; }
	.anim-delay-2 { animation-range: entry 20% cover 40%; }
	.anim-delay-3 { animation-range: entry 25% cover 45%; }
}

/* ===========================================
   Responsive overrides
   =========================================== */
@media (max-width: 900px) {
	:root {
		--spacing-section: 5rem;
	}

	.section-padding {
		padding: var(--spacing-section) var(--spacing-container);
	}

	.grid-2-col {
		grid-template-columns: 1fr !important;
		gap: 3rem !important;
	}
}

@media (max-width: 600px) {
	.grid-2-col {
		grid-template-columns: 1fr !important;
	}
}

/* ===========================================
   Zero out block gaps between Brickell sections
   =========================================== */
.entry-content {
	--wp--style--block-gap: 0;
}

/* Ensure Kadence content wrappers are transparent so body bg shows through */
.site,
.site-container,
.content-wrap,
.entry-content-wrap,
.content-area,
.entry-content {
	background-color: transparent !important;
}

.entry-content > [class*="wp-block-bl-"] {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Ensure adjacent white-bg blocks have no visible gap */
.entry-content > .wp-block-bl-team + .wp-block-bl-portfolio {
	margin-top: 0 !important;
}

/* Team / Our People – ensure outer padding */
.entry-content > .wp-block-bl-team {
	padding: 8rem 5%;
}

@media (max-width: 900px) {
	.entry-content > .wp-block-bl-team {
		padding: 5rem 5%;
	}
}

/* Portfolio + Archive (gallery) + Process + Team: explicit white background */
.entry-content > .wp-block-bl-portfolio,
.entry-content > .wp-block-bl-gallery-masonry,
.entry-content > .wp-block-bl-process-comparison,
.entry-content > .wp-block-bl-team {
	background-color: #fff !important;
}

/* About, Blog, Footer: explicit sand/arena background */
.entry-content > .wp-block-bl-about,
.entry-content > .wp-block-bl-blog,
.entry-content > .wp-block-bl-footer {
	background-color: var(--color-bg-light) !important;
}

/* Archive (gallery) → Process: reduce bottom padding to tighten gap */
.entry-content > .wp-block-bl-gallery-masonry .archive-section {
	padding-bottom: 0 !important;
}

.entry-content > .wp-block-bl-gallery-masonry {
	padding-bottom: 3rem !important;
}

/* Process: increase bottom padding to separate from services */
.entry-content > .wp-block-bl-process-comparison .video-compare-section {
	padding-top: 4rem !important;
	padding-bottom: 8rem !important;
}

/* ===========================================
   Kadence overrides (high specificity)
   =========================================== */
.site .entry-content > .wp-block-bl-hero-image,
.site .entry-content > .wp-block-bl-banner-sub-hero,
.site .entry-content > .wp-block-bl-about,
.site .entry-content > .wp-block-bl-team,
.site .entry-content > .wp-block-bl-portfolio,
.site .entry-content > .wp-block-bl-gallery-masonry,
.site .entry-content > .wp-block-bl-process-comparison,
.site .entry-content > .wp-block-bl-services,
.site .entry-content > .wp-block-bl-blog,
.site .entry-content > .wp-block-bl-contact,
.site .entry-content > .wp-block-bl-faq,
.site .entry-content > .wp-block-bl-header,
.site .entry-content > .wp-block-bl-footer {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	color: inherit;
}

.site .entry-content .brickell-about,
.site .entry-content .brickell-blog,
.site .entry-content .brickell-contact,
.site .entry-content .brickell-team-section,
.site .entry-content .wp-block-bl-portfolio {
	color: var(--color-text-dark);
}

/* ===========================================
   Services – force light text on dark bg
   =========================================== */
.site .entry-content .brickell-services,
.site .entry-content .faq-section {
	color: var(--color-text-light);
}

.site .entry-content .brickell-services h1,
.site .entry-content .brickell-services h2,
.site .entry-content .brickell-services h3,
.site .entry-content .brickell-services h4,
.site .entry-content .brickell-services p,
.site .entry-content .brickell-services span,
.site .entry-content .brickell-services a,
.site .entry-content .brickell-services summary,
.site .entry-content .brickell-services details {
	color: inherit;
}

.site .entry-content .brickell-services .accordion-title,
.site .entry-content .brickell-services .accordion-text,
.site .entry-content .brickell-services .accordion-tags,
.site .entry-content .brickell-services .accordion-arrow,
.site .entry-content .brickell-services .services-description,
.site .entry-content .brickell-services .services-title,
.site .entry-content .brickell-services .section-label,
.site .entry-content .brickell-services .cta-link,
.site .entry-content .brickell-services .text-light-50,
.site .entry-content .brickell-services .text-light-solid,
.site .entry-content .brickell-services .text-light-70-mb-2,
.site .entry-content .brickell-services .text-light-border-light {
	color: var(--color-text-light) !important;
}

.site .entry-content .brickell-services .section-label {
	opacity: 0.7;
}

.site .entry-content .brickell-services .accordion-num {
	color: var(--color-accent) !important;
}

/* ===========================================
   Font families – ensure block texts use correct fonts
   =========================================== */
.entry-content .brickell-services .accordion-title,
.entry-content .brickell-services .services-title,
.entry-content .brickell-services .accordion-num {
	font-family: var(--font-serif) !important;
}

.entry-content .brickell-services .section-label,
.entry-content .brickell-services .services-description,
.entry-content .brickell-services .accordion-tags,
.entry-content .brickell-services .accordion-text,
.entry-content .brickell-services .cta-link,
.entry-content .brickell-blog .journal-card-title,
.entry-content .brickell-blog .text-md-muted,
.entry-content .brickell-blog .cta-link,
.entry-content .brickell-blog .section-label,
.entry-content .brickell-team-section .team-eyebrow,
.entry-content .brickell-team-section .team-intro p,
.entry-content .wp-block-bl-portfolio .portfolio-info,
.entry-content .wp-block-bl-portfolio .portfolio-desc,
.entry-content .wp-block-bl-portfolio .text-small-muted,
.entry-content .wp-block-bl-portfolio .text-sm-muted,
.entry-content .wp-block-bl-gallery-masonry .section-label,
.entry-content .brickell-footer .footer-tagline,
.entry-content .brickell-footer .footer-nav-col,
.entry-content .brickell-footer .footer-contact-col,
.entry-content .brickell-footer .footer-copyright,
.entry-content .brickell-footer .footer-lang,
.entry-content .brickell-footer .footer-credit {
	font-family: var(--font-sans) !important;
}

.site .entry-content .faq-section h1,
.site .entry-content .faq-section h2,
.site .entry-content .faq-section h3,
.site .entry-content .faq-section h4,
.site .entry-content .faq-section p,
.site .entry-content .faq-section a,
.site .entry-content .faq-section span,
.site .entry-content .faq-section summary,
.site .entry-content .faq-section details {
	color: inherit;
}

/* ===========================================
   Title font sizes – match static theme exactly
   - Portfolio (slider): clamp(3rem, 6vw, 6rem)  → biggest
   - About / Services / Blog / Contact / FAQ: clamp(3rem, 5vw, 5rem)
   - Gallery (archive) + Process: clamp(2rem, 4vw, 4rem)  ← static .title-lg
   - Team: clamp(2.4rem, 5vw, 4rem)
   - Hero: clamp(3rem, 7vw, 4.5rem)
   =========================================== */

/* Portfolio (slider) — biggest title */
.entry-content .wp-block-bl-portfolio .portfolio-title {
	font-size: clamp(3rem, 6vw, 6rem) !important;
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
}

/* About / Services / Blog / Contact / FAQ — standard section title */
.entry-content .brickell-about .about-title,
.entry-content .brickell-services .services-title,
.entry-content .brickell-blog .blog-title,
.entry-content .brickell-contact .about-title,
.entry-content .brickell-contact .brickell-contact-title,
.entry-content .brickell-faq .about-title,
.entry-content .brickell-faq .brickell-faq-title {
	font-size: clamp(3rem, 5vw, 5rem) !important;
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
}

/* Gallery (archive) + Process — title-lg (smaller) */
.entry-content .wp-block-bl-gallery-masonry .portfolio-title,
.entry-content .wp-block-bl-process-comparison .portfolio-title {
	font-size: clamp(2rem, 4vw, 4rem) !important;
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
}

/* Team title */
.entry-content .brickell-team-section .team-heading {
	font-size: clamp(2.4rem, 5vw, 4rem) !important;
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
}

/* Hero title */
.entry-content .wp-block-bl-hero-image .hero-title {
	font-size: clamp(3rem, 7vw, 4.5rem) !important;
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
}

/* Section labels (eyebrows) — uniform 0.75rem */
.entry-content .wp-block-bl-portfolio .section-label,
.entry-content .wp-block-bl-gallery-masonry .section-label,
.entry-content .wp-block-bl-process-comparison .section-label,
.entry-content .brickell-about .section-label,
.entry-content .brickell-services .section-label,
.entry-content .brickell-blog .section-label,
.entry-content .brickell-contact .section-label,
.entry-content .brickell-faq .section-label {
	font-size: 0.75rem !important;
	font-family: var(--font-sans) !important;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* ===========================================
   Blog – preserve flex alignment (label left, title right)
   =========================================== */
.entry-content .brickell-blog .journal-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-end !important;
	margin-bottom: 4rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .brickell-blog .journal-header .section-label {
	margin-bottom: 0;
}

.entry-content .brickell-blog .journal-header .blog-title {
	margin-bottom: 0;
}

.entry-content .brickell-blog .journal-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 3rem !important;
	max-width: 1400px;
	margin: 0 auto;
}

@media (max-width: 900px) {
	.entry-content .brickell-blog .journal-grid {
		grid-template-columns: 1fr 1fr !important;
	}
}

@media (max-width: 600px) {
	.entry-content .brickell-blog .journal-header {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 1rem;
	}
	.entry-content .brickell-blog .journal-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ===========================================
   Footer – enforce font sizes & families
   =========================================== */
.entry-content .brickell-footer .footer-nav-col h4,
.entry-content .brickell-footer .footer-contact-col h4,
.brickell-footer .footer-nav-col h4,
.brickell-footer .footer-contact-col h4 {
	font-family: var(--font-sans) !important;
	font-size: 0.7rem !important;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #595959;
	font-weight: 500;
}

.entry-content .brickell-footer .footer-nav-col ul li a,
.entry-content .brickell-footer .footer-contact-col a,
.entry-content .brickell-footer .footer-contact-col address,
.brickell-footer .footer-nav-col ul li a,
.brickell-footer .footer-contact-col a,
.brickell-footer .footer-contact-col address {
	font-size: 0.9rem !important;
	font-weight: 300;
}

.entry-content .brickell-footer .footer-tagline,
.brickell-footer .footer-tagline {
	font-size: 0.9rem !important;
	font-weight: 300;
	color: #595959;
}

.entry-content .brickell-footer .footer-copyright,
.entry-content .brickell-footer .footer-lang,
.brickell-footer .footer-copyright,
.brickell-footer .footer-lang {
	font-size: 0.75rem !important;
	color: #595959;
}

.brickell-footer .footer-lang a {
	color: #595959;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 6px;
	line-height: 1;
}

.brickell-footer .footer-lang a:hover,
.brickell-footer .footer-lang a.active {
	color: var(--color-text-dark);
}

.entry-content .brickell-footer .footer-credit,
.brickell-footer .footer-credit {
	font-size: 12px !important;
	font-family: var(--font-sans) !important;
	color: #a0a0a0;
}

/* ===========================================
   Single Post & Archive — Kadence overrides
   =========================================== */

/* Hide Kadence's own header, footer, post header, sidebar — theme handles these globally */
.site-header,
.site-footer,
.site-branding,
#masthead,
.kadence-header,
header.banner,
body.single .entry-hero,
body.single .entry-header,
body.page-template-page-blog .entry-hero,
body.page-template-page-blog .entry-header,
body.single .primary-sidebar,
body.archive .primary-sidebar,
body.blog .primary-sidebar,
body.page-template-page-blog .primary-sidebar {
	display: none !important;
}

/* Remove Kadence content width constraints on outer wrappers */
.site .content-wrap {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
}

.entry-content-wrap {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

#inner-wrap {
	max-width: 100% !important;
}

/* ===========================================
   Brickell header on interior pages (single/archive/blog)
   — same as home "scrolled" state: dark semi-transparent
   background with blur, always visible from the start.
   On front-page the header starts transparent (handled by block/view.js).
   =========================================== */
body.single .brickell-header .brickell-header-bar,
body.archive .brickell-header .brickell-header-bar,
body.blog .brickell-header .brickell-header-bar,
body.page-template-page-blog .brickell-header .brickell-header-bar {
	background-color: #2c2e305c !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	padding: 1rem 5% !important;
	color: var(--color-text-light) !important;
}

/* Keep logo white (no invert needed — same as home scrolled) */
body.single .brickell-header .logo-img,
body.archive .brickell-header .logo-img,
body.blog .brickell-header .logo-img,
body.page-template-page-blog .brickell-header .logo-img {
	filter: none !important;
}

/* Keep hamburger lines white */
body.single .brickell-header .menu-toggle span,
body.archive .brickell-header .menu-toggle span,
body.blog .brickell-header .menu-toggle span,
body.page-template-page-blog .brickell-header .menu-toggle span {
	background-color: var(--color-text-light) !important;
}

/* ===========================================
   Single post — match static theme sizing
   =========================================== */

/* Meta (date + category) */
.brickell-single-layout .single-meta {
	font-size: 14px !important;
	letter-spacing: 3px !important;
	gap: 0.6rem !important;
}

.brickell-single-layout .single-meta span,
.brickell-single-layout .single-meta a {
	font-size: 14px !important;
}

.brickell-single-layout .single-meta a,
body.single .brickell-single-layout .single-meta a,
body.single .single-hero .single-meta a {
	color: inherit !important;
	text-decoration: underline !important;
	font-weight: 700 !important;
	text-underline-offset: 3px;
}

/* Title */
.brickell-single-layout .single-title {
	font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
}

/* Content width */
.brickell-single-layout .single-content {
	max-width: 65ch;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
}

.brickell-single-layout .single-content p {
	max-width: none;
}

/* ===========================================
   Archive/Blog page — layout adjustments
   =========================================== */

/* Center the hero title and subtitle */
body.page-template-page-blog .archive-hero,
body.archive .archive-hero,
body.blog .archive-hero {
	text-align: center;
	max-width: 1400px;
	margin: 0 auto;
	padding-top: 10rem;
	padding-bottom: 4rem;
	padding-left: 5%;
	padding-right: 5%;
}

body.page-template-page-blog .archive-title,
body.archive .archive-title,
body.blog .archive-title {
	font-family: var(--font-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(3rem, 8vw, 5.5rem) !important;
	line-height: 1 !important;
	color: var(--color-text-dark);
	margin-bottom: 1.5rem;
}

body.page-template-page-blog .archive-subtitle,
body.archive .archive-subtitle,
body.blog .archive-subtitle {
	font-family: var(--font-sans) !important;
	font-weight: 300 !important;
	font-size: clamp(1rem, 2vw, 1.25rem) !important;
	color: var(--color-text-dark);
	opacity: 0.7;
	max-width: 600px;
	margin: 0 auto;
}

/* Post grid — 3 columns */
body.page-template-page-blog .archive-journal-grid,
body.archive .archive-journal-grid,
body.blog .archive-journal-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 3rem !important;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 5%;
	list-style: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
	body.page-template-page-blog .archive-journal-grid,
	body.archive .archive-journal-grid,
	body.blog .archive-journal-grid {
		grid-template-columns: 1fr 1fr !important;
	}
}

@media (max-width: 767px) {
	body.page-template-page-blog .archive-journal-grid,
	body.archive .archive-journal-grid,
	body.blog .archive-journal-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Post cards */
body.page-template-page-blog .archive-post-card .img-wrapper,
body.archive .archive-post-card .img-wrapper,
body.blog .archive-post-card .img-wrapper {
	overflow: hidden;
	display: block;
	margin-bottom: 1.5rem;
}

body.page-template-page-blog .archive-post-card .img-wrapper img,
body.archive .archive-post-card .img-wrapper img,
body.blog .archive-post-card .img-wrapper img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

body.page-template-page-blog .archive-post-card:hover .img-wrapper img,
body.archive .archive-post-card:hover .img-wrapper img,
body.blog .archive-post-card:hover .img-wrapper img {
	transform: scale(1.05);
}

/* Stagger every other card */
@media (min-width: 1024px) {
	body.page-template-page-blog .archive-post-card:nth-child(2n) .img-wrapper,
	body.archive .archive-post-card:nth-child(2n) .img-wrapper,
	body.blog .archive-post-card:nth-child(2n) .img-wrapper {
		margin-top: 4rem;
	}
}

body.page-template-page-blog .archive-post-card .journal-card-title,
body.archive .archive-post-card .journal-card-title,
body.blog .archive-post-card .journal-card-title {
	font-family: var(--font-sans) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.5rem;
}

body.page-template-page-blog .archive-post-card .journal-card-title a,
body.archive .archive-post-card .journal-card-title a,
body.blog .archive-post-card .journal-card-title a {
	color: var(--color-text-dark);
	text-decoration: none;
}

body.page-template-page-blog .archive-post-card .text-md-muted,
body.archive .archive-post-card .text-md-muted,
body.blog .archive-post-card .text-md-muted {
	font-size: 0.9rem;
	color: #666;
	font-weight: 300;
	line-height: 1.6;
}

/* Pagination */
body.page-template-page-blog .archive-pagination,
body.archive .archive-pagination,
body.blog .archive-pagination {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 4rem;
	padding-bottom: 4rem;
}

body.page-template-page-blog .archive-pagination .page-numbers,
body.archive .archive-pagination .page-numbers,
body.blog .archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-text-dark);
	text-decoration: none;
	border-radius: 50%;
	transition: all 0.3s ease;
}

body.page-template-page-blog .archive-pagination .page-numbers:hover,
body.archive .archive-pagination .page-numbers:hover,
body.blog .archive-pagination .page-numbers:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

body.page-template-page-blog .archive-pagination .page-numbers.current,
body.archive .archive-pagination .page-numbers.current,
body.blog .archive-pagination .page-numbers.current {
	background-color: var(--color-text-dark);
	color: var(--color-bg-light);
}

/* ===========================================
   About section — remove paragraph margins
   =========================================== */
.entry-content .brickell-about .about-text {
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}

/* ===========================================
   Columns block — remove default bottom margin
   =========================================== */
.wp-block-columns {
	margin-bottom: 0 !important;
}

/* ===========================================
   Responsive — ensure lateral padding on all blocks (mobile)
   =========================================== */
@media (max-width: 767px) {
	.entry-content > .wp-block-bl-banner-sub-hero,
	.entry-content > .wp-block-bl-process-comparison {
		padding-left: 5% !important;
		padding-right: 5% !important;
	}
}
