/*
 * Dunex Interiors — main stylesheet
 * Design & development: Ayubo Technologies (https://ayubo.com.lk)
 *
 * Palette is drawn from interior materials: limewashed walls (mist),
 * honed stone (stone), celadon linen (sage), deep forest lacquer (ink)
 * and aged brass hardware (brass).
 */

/* ---------- Tokens ---------- */
:root {
	--mist: #eef0eb;
	--stone: #dadfd5;
	--sage: #a9bba9;
	--moss: #3e5446;
	--ink: #1d2722;
	--ink-soft: #46554c;
	--brass: #9c7631;
	--brass-light: #c9a35a;
	--line: rgba(29, 39, 34, 0.18);
	--line-light: rgba(238, 240, 235, 0.2);

	--font-display: "Gloock", "Noto Sans Sinhala", "Bodoni 72", "Didot", Georgia, serif;
	--font-text: "Hanken Grotesk", "Noto Sans Sinhala", "Helvetica Neue", Arial, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
	--step-4: clamp(2.3rem, 1.6rem + 2.8vw, 4rem);
	--step-5: clamp(2.6rem, 1.5rem + 4.6vw, 5.5rem);

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section: clamp(4.5rem, 9vw, 8rem);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

.site-main img:not([class*="elementor"]):not(.emoji) {
	vertical-align: middle;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.005em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
	text-decoration-color: var(--brass);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--sage);
	color: var(--ink);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: var(--mist);
}

/* ---------- Buttons and links ---------- */
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.95em 1.7em;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--mist);
	font-family: var(--font-text);
	font-size: var(--step-0);
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--moss);
	border-color: var(--moss);
	color: var(--mist);
}

.button--small {
	padding: 0.7em 1.25em;
	font-size: var(--step--1);
}

.button--light {
	background: var(--mist);
	border-color: var(--mist);
	color: var(--ink);
}

.button--light:hover {
	background: var(--sage);
	border-color: var(--sage);
	color: var(--ink);
}

.text-link {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--brass);
	text-underline-offset: 0.35em;
}

/* ---------- Header ---------- */
.site-header {
	--header-bg: var(--ink);
	--header-fg: var(--mist);
	--header-line: var(--line-light);
	position: relative;
	z-index: 50;
	background: var(--header-bg);
	color: var(--header-fg);
}

.site-header--light {
	--header-bg: var(--mist);
	--header-fg: var(--ink);
	--header-line: var(--line);
	border-bottom: 1px solid var(--line);
}

/* Fixed header. Without JavaScript it falls back to position: sticky. */
.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.admin-bar.has-sticky-header .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.header-is-fixed .site-header {
	position: fixed;
	top: var(--dunex-header-top, 0px);
	left: 0;
	right: 0;
	width: 100%;
}

.header-is-fixed body {
	padding-top: var(--dunex-header-h, 0px);
}

.site-header__inner {
	transition: min-height 0.25s ease, padding 0.25s ease;
}

.site-header.is-measuring,
.site-header.is-measuring * {
	transition: none !important;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 0 var(--header-line), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.has-sticky-shrink .site-header.is-scrolled .site-header__inner {
	min-height: 4rem;
	padding-block: 0.4rem;
}

.has-sticky-shrink .site-header.is-scrolled .custom-logo-link img.custom-logo {
	height: min(var(--logo-h-s, 44px), var(--logo-h, 56px));
}

@media (max-width: 780px) {
	.has-sticky-shrink .site-header.is-scrolled .custom-logo-link img.custom-logo {
		height: min(var(--logo-h-s, 44px), var(--logo-h-m, 44px));
	}

	.no-sticky-mobile .site-header {
		position: relative;
	}
}

.site-header {
	overflow-x: clip;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.5rem 2rem;
	min-width: 0;
	max-width: 92rem;
	min-height: 5.5rem;
	margin-inline: auto;
	padding-block: 0.75rem;
	padding-inline: var(--gutter);
}

.site-header__brand {
	flex-shrink: 0;
	margin-right: auto;
}

.site-header a {
	color: var(--header-fg);
}

.wordmark {
	font-family: var(--font-display);
	font-size: 1.6rem;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-header .custom-logo-link img.custom-logo,
.site-footer .custom-logo-link img.custom-logo {
	display: block;
	height: var(--logo-h, 56px);
	max-height: none;
	width: auto;
	max-width: min(70vw, 40rem);
	object-fit: contain;
	object-position: left center;
	transition: height 0.25s ease;
}

@media (max-width: 780px) {
	.site-header .custom-logo-link img.custom-logo {
		height: var(--logo-h-m, 44px);
	}
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-block;
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
	padding-block: 0.4rem;
	border-bottom: 1px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a {
	border-bottom-color: var(--brass-light);
}

.site-header--light .site-nav__list a:hover,
.site-header--light .site-nav__list .current-menu-item > a,
.site-header--light .site-nav__list .current_page_item > a,
.site-header--light .site-nav__list .current-menu-ancestor > a {
	border-bottom-color: var(--brass);
}

.site-nav__cta {
	flex-shrink: 0;
	white-space: nowrap;
}

.site-header.is-tight .site-nav__cta {
	display: none;
}

.site-header.is-compact .site-nav__cta {
	display: inline-flex;
}

/* On the dark header the button is light so it stands out.
   Extra specificity so shop styles (".woocommerce a.button") cannot override it. */
.site-header.site-header--dark a.site-nav__cta {
	padding: 0.7em 1.25em;
	border-color: var(--mist);
	background: var(--mist);
	color: var(--ink);
	font-size: var(--step--1);
}

.site-header.site-header--dark a.site-nav__cta:hover {
	background: var(--sage);
	border-color: var(--sage);
	color: var(--ink);
}

.site-header.site-header--light a.site-nav__cta {
	padding: 0.7em 1.25em;
	border-color: var(--ink);
	background: var(--ink);
	color: var(--mist);
	font-size: var(--step--1);
}

.site-header.site-header--light a.site-nav__cta:hover {
	border-color: var(--moss);
	background: var(--moss);
	color: var(--mist);
}

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	text-decoration: none;
}

.header-cart:hover {
	background: var(--header-line);
}

.header-cart__icon {
	display: block;
}

.header-cart__count {
	position: absolute;
	top: 0.2rem;
	right: 0.1rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding-inline: 0.25rem;
	border-radius: 999px;
	background: var(--brass-light);
	color: var(--ink);
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.15rem;
	text-align: center;
}

.header-cart__count.is-empty {
	display: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0;
	background: none;
	border: 0;
	color: var(--header-fg);
	font: 600 var(--step--1) / 1 var(--font-text);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.375rem;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Long menus switch to the toggle before items start to wrap. */
@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		max-height: calc(100vh - 5.5rem);
		overflow-y: auto;
		padding: 1rem var(--gutter) 2rem;
		background: var(--header-bg);
		border-top: 1px solid var(--header-line);
		border-bottom: 1px solid var(--header-line);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.site-nav__list > li {
		border-bottom: 1px solid var(--header-line);
	}

	.site-nav__list a {
		display: block;
		padding-block: 0.8rem;
		font-size: var(--step-1);
		white-space: normal;
	}

}

/* Same layout when the full menu does not fit (set by main.js). */
.site-header.is-compact .nav-toggle {
		display: inline-flex;
	}

.site-header.is-compact .site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		max-height: calc(100vh - 5.5rem);
		overflow-y: auto;
		padding: 1rem var(--gutter) 2rem;
		background: var(--header-bg);
		border-top: 1px solid var(--header-line);
		border-bottom: 1px solid var(--header-line);
	}

.site-header.is-compact .site-nav.is-open {
		display: flex;
	}

.site-header.is-compact .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

.site-header.is-compact .site-nav__list > li {
		border-bottom: 1px solid var(--header-line);
	}

.site-header.is-compact .site-nav__list a {
		display: block;
		padding-block: 0.8rem;
		font-size: var(--step-1);
		white-space: normal;
	}

/* ---------- Dropdown menus ---------- */
.site-nav__list li {
	position: relative;
}

.site-nav__list .menu-item-has-children,
.site-nav__list .page_item_has_children {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

/* Chevron button added by main.js next to every item with a dropdown. */
.submenu-toggle {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 0.25rem;
	background: none;
	color: inherit;
	cursor: pointer;
}

.submenu-toggle::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform 0.2s ease;
}

.is-open > .submenu-toggle::before {
	transform: translateY(25%) rotate(-135deg);
}

.site-nav__list .sub-menu,
.site-nav__list .children {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 60;
	display: block;
	min-width: 15rem;
	max-width: 20rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var(--header-bg);
	border: 1px solid var(--header-line);
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	/* Stay visible briefly after the pointer leaves, so it can be reached. */
	transition: opacity 0.15s ease 0.15s, transform 0.15s ease 0.15s, visibility 0s linear 0.3s;
}

/* Invisible bridge across the gap between the item and its dropdown. */
.site-nav__list .sub-menu::before,
.site-nav__list .children::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 1rem;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu,
.site-nav__list li.is-open > .sub-menu,
.site-nav__list li:hover > .children,
.site-nav__list li:focus-within > .children,
.site-nav__list li.is-open > .children {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.site-nav__list .sub-menu li,
.site-nav__list .children li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
}

.site-nav__list .sub-menu a,
.site-nav__list .children a {
	display: block;
	flex: 1;
	padding: 0.55rem 1.1rem;
	border-bottom: 0;
	font-size: 0.9rem;
	white-space: normal;
}

.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu a:focus-visible,
.site-nav__list .children a:hover,
.site-nav__list .sub-menu .current-menu-item > a {
	background: var(--header-line);
	border-bottom: 0;
}

.site-nav__list .sub-menu .submenu-toggle {
	margin-right: 0.5rem;
	transform: rotate(-90deg);
}

/* Third level opens to the side. */
.site-nav__list .sub-menu .sub-menu,
.site-nav__list .children .children {
	top: -0.5rem;
	left: 100%;
}

.site-nav__list .sub-menu .sub-menu::before {
	top: 0;
	bottom: 0;
	left: -1rem;
	right: auto;
	width: 1rem;
	height: auto;
}

/* Flipped by main.js when a dropdown would run off the right edge. */
.site-nav__list .sub-menu.is-flipped {
	left: auto;
	right: -1rem;
}

.site-nav__list .sub-menu .sub-menu.is-flipped {
	left: auto;
	right: 100%;
}

/* Dropdowns inside the mobile / compact menu: tap the chevron to expand. */
@media (max-width: 1180px) {
	.site-nav__list .menu-item-has-children,
	.site-nav__list .page_item_has_children,
	.site-nav__list .sub-menu li {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.site-nav__list .sub-menu,
	.site-nav__list .children {
		position: static;
		grid-column: 1 / -1;
		display: none;
		min-width: 0;
		max-width: none;
		padding: 0 0 0.5rem 1rem;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.site-nav__list .sub-menu::before,
	.site-nav__list .children::before {
		display: none;
	}

	.site-nav__list li.is-open > .sub-menu,
	.site-nav__list li.is-open > .children {
		display: block;
	}

	.site-nav__list .sub-menu a,
	.site-nav__list .children a {
		padding: 0.55rem 0;
		font-size: var(--step-0);
	}

	.submenu-toggle {
		width: 2.75rem;
		height: 2.75rem;
	}

	.site-nav__list .sub-menu .submenu-toggle {
		margin: 0;
		transform: none;
	}
}

/* Same dropdown behaviour when the header is compact (set by main.js). */
.site-header.is-compact .site-nav__list .menu-item-has-children,
.site-header.is-compact .site-nav__list .page_item_has_children,
.site-header.is-compact .site-nav__list .sub-menu li {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

.site-header.is-compact .site-nav__list .sub-menu,
.site-header.is-compact .site-nav__list .children {
		position: static;
		grid-column: 1 / -1;
		display: none;
		min-width: 0;
		max-width: none;
		padding: 0 0 0.5rem 1rem;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

.site-header.is-compact .site-nav__list .sub-menu::before,
.site-header.is-compact .site-nav__list .children::before {
		display: none;
	}

.site-header.is-compact .site-nav__list li.is-open > .sub-menu,
.site-header.is-compact .site-nav__list li.is-open > .children {
		display: block;
	}

.site-header.is-compact .site-nav__list .sub-menu a,
.site-header.is-compact .site-nav__list .children a {
		padding: 0.55rem 0;
		font-size: var(--step-0);
	}

.site-header.is-compact .submenu-toggle {
		width: 2.75rem;
		height: 2.75rem;
	}

.site-header.is-compact .site-nav__list .sub-menu .submenu-toggle {
		margin: 0;
		transform: none;
	}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-block: clamp(2rem, 5vw, 4rem) 0;
	overflow: hidden;
}

/* A stone "floor" the arch stands on. */
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: clamp(5rem, 14vw, 11rem);
	background: var(--stone);
	z-index: 0;
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: end;
	gap: clamp(2rem, 6vw, 6rem);
}

.hero__copy {
	align-self: center;
	padding-bottom: clamp(5rem, 14vw, 11rem);
}

.hero__title {
	font-size: var(--step-5);
	line-height: 1.02;
	letter-spacing: -0.015em;
	max-width: 12ch;
	margin-bottom: 0.4em;
}

.hero__text {
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--ink-soft);
	max-width: 34ch;
	margin-bottom: 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

.hero__figure {
	margin: 0;
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.arch {
	position: relative;
	aspect-ratio: 3 / 4;
	max-width: 30rem;
	margin-left: auto;
}

.arch__window,
.arch__frame {
	position: absolute;
	inset: 0;
	border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
}

.arch__window {
	overflow: hidden;
	background: var(--sage);
	animation: dunex-arch-rise 1.3s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.arch__frame {
	border: 1px solid var(--brass);
	border-bottom: 0;
	transform: translate(clamp(0.75rem, 1.8vw, 1.5rem), calc(-1 * clamp(0.75rem, 1.8vw, 1.5rem)));
	animation: dunex-fade 0.8s ease 1s both;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__caption {
	margin-top: 0.85rem;
	font-size: var(--step--1);
	color: var(--ink-soft);
	text-align: right;
}

@keyframes dunex-arch-rise {
	from {
		clip-path: inset(100% 0 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

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

@media (max-width: 860px) {
	.hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.hero__copy {
		padding-bottom: 0;
	}

	.arch {
		max-width: 22rem;
		margin-inline: auto 1.5rem;
	}
}

/* ---------- Sections ---------- */
.section {
	padding-block: var(--section);
}

.section-title {
	font-size: var(--step-4);
	max-width: 16ch;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .section-title {
	margin: 0;
}

/* Services */
.services {
	background: var(--stone);
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.services__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
}

.services__head {
	align-self: start;
	position: sticky;
	top: 2rem;
}

.services__intro {
	color: var(--ink-soft);
	max-width: 34ch;
}

.services__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 0.5rem 2rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--line);
}

.service__title {
	font-size: var(--step-2);
	margin: 0;
}

.service__text {
	margin: 0;
	color: var(--ink-soft);
}

@media (max-width: 860px) {
	.services__grid,
	.service {
		grid-template-columns: 1fr;
	}

	.services__head {
		position: static;
	}
}

/* Projects */
.admin-note {
	padding: 0.75rem 1rem;
	border: 1px dashed var(--brass);
	border-radius: 0.5rem;
	font-size: var(--step--1);
}

.project-mosaic {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
}

.project-mosaic > .project-tile {
	grid-column: span 4;
}

.project-mosaic > .project-tile:nth-child(1) {
	grid-column: span 7;
}

.project-mosaic > .project-tile:nth-child(2) {
	grid-column: span 5;
}

.project-mosaic > .project-tile:nth-child(-n + 2) .project-tile__media {
	aspect-ratio: auto;
	height: clamp(18rem, 34vw, 32rem);
}

.project-tile {
	margin: 0;
}

.project-tile__link {
	display: block;
	text-decoration: none;
}

.project-tile__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 0.375rem;
	background: var(--stone);
}

.project-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.project-tile__link:hover img {
	transform: scale(1.03);
}

.project-tile__title {
	font-size: var(--step-2);
	margin: 1rem 0 0.25rem;
}

.project-tile__link:hover .project-tile__title {
	text-decoration: underline;
	text-decoration-color: var(--brass);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.project-tile__meta {
	margin: 0;
	font-size: var(--step--1);
	color: var(--ink-soft);
}

@media (max-width: 860px) {
	.project-mosaic > .project-tile,
	.project-mosaic > .project-tile:nth-child(1),
	.project-mosaic > .project-tile:nth-child(2) {
		grid-column: span 12;
	}

	.project-mosaic > .project-tile:nth-child(n) .project-tile__media {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 600px) and (max-width: 860px) {
	.project-mosaic > .project-tile:nth-child(n + 2) {
		grid-column: span 6;
	}
}

/* Process — a real sequence, so it is numbered */
.process {
	padding-top: 0;
}

.process__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	counter-increment: step;
	padding-top: 1.25rem;
	border-top: 1px solid var(--moss);
}

.step::before {
	content: counter(step);
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-4);
	line-height: 1;
	color: var(--brass);
	margin-bottom: 1rem;
}

.step__title {
	font-size: var(--step-1);
	font-family: var(--font-text);
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 0.5rem;
}

.step__text {
	margin: 0;
	color: var(--ink-soft);
}

@media (max-width: 960px) {
	.process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2.5rem;
	}
}

@media (max-width: 540px) {
	.process__steps {
		grid-template-columns: 1fr;
	}
}

/* Testimonial */
.testimonial {
	background: var(--sage);
	padding-block: var(--section);
}

.testimonial__figure {
	margin: 0;
	max-width: 52rem;
}

.testimonial__quote {
	margin: 0 0 1.5rem;
	font-family: var(--font-display);
	font-size: var(--step-3);
	line-height: 1.2;
	text-wrap: pretty;
}

.testimonial__quote p {
	margin: 0;
}

.testimonial__quote p::before {
	content: "“";
}

.testimonial__quote p::after {
	content: "”";
}

.testimonial__name {
	font-weight: 600;
}

/* Contact band */
.contact-band {
	background: var(--ink);
	color: var(--mist);
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.contact-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: end;
	gap: 2rem 4rem;
}

.contact-band__title {
	font-size: var(--step-4);
}

.contact-band__text {
	max-width: 40ch;
	color: rgba(238, 240, 235, 0.8);
	margin: 0;
}

.contact-band__actions {
	justify-self: end;
	text-align: right;
}

.contact-band__direct {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 1.25rem 0 0;
}

.contact-band__link {
	color: var(--mist);
	text-decoration-color: var(--brass-light);
}

@media (max-width: 760px) {
	.contact-band__grid {
		grid-template-columns: 1fr;
	}

	.contact-band__actions {
		justify-self: start;
		text-align: left;
	}
}

/* ---------- Footer ---------- */
.site-main {
	flex: 1 0 auto;
	width: 100%;
}

/* Footer lines up with the (wider) header. */
.site-footer .wrap {
	max-width: 92rem;
}

.site-footer {
	background: var(--ink);
	color: var(--mist);
	padding-top: clamp(3rem, 6vw, 4.5rem);
	border-top: 1px solid var(--line-light);
	font-size: 0.975rem;
}

.site-footer a {
	color: var(--mist);
	text-decoration-color: var(--brass-light);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr);
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 2.5rem;
}

.footer-widget + .footer-widget {
	margin-top: 1.5rem;
}

.footer-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-widget li + li {
	margin-top: 0.4rem;
}

.footer-widget p {
	color: rgba(238, 240, 235, 0.8);
}

.site-footer .custom-logo-link img.custom-logo {
	height: var(--footer-logo-h, 60px);
}

.site-footer__about {
	margin-top: 1rem;
	max-width: 32ch;
	color: rgba(238, 240, 235, 0.75);
}

.site-footer__heading {
	font-family: var(--font-text);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--sage);
	margin-bottom: 0.9rem;
}

.site-footer__address {
	font-style: normal;
	margin-bottom: 0.75rem;
}

.site-footer__hours {
	color: rgba(238, 240, 235, 0.75);
}

.site-footer__list,
.social-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li + li {
	margin-top: 0.4rem;
}

.social {
	margin-top: 1.5rem;
}

.social__heading {
	margin: 0 0 0.75rem;
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--sage);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
}

.site-footer .social-links a,
.social-links a {
	color: var(--mist);
	text-decoration: none;
}

.social-links .social-links__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line-light);
	border-radius: 999px;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links .dunex-icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	max-width: none;
	fill: currentColor;
}

.social-links .social-links__icon img.social-links__img {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	max-width: none;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	filter: brightness(0) invert(1);
}

.social-links a:hover .social-links__icon,
.social-links a:focus-visible .social-links__icon {
	background: var(--mist);
	border-color: var(--mist);
	color: var(--ink);
}

.social-links a:hover img.social-links__img,
.social-links a:focus-visible img.social-links__img {
	filter: brightness(0);
}

.social-links--icons .social-links__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.social-links--labels {
	flex-direction: column;
	gap: 0.5rem;
}

.social-links--labels .social-links__icon {
	width: 2.1rem;
	height: 2.1rem;
}

.social-links--labels .dunex-icon {
	width: 1rem;
	height: 1rem;
}

.social-links--labels .social-links__label {
	text-decoration: underline;
	text-decoration-color: var(--brass-light);
	text-underline-offset: 0.2em;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-block: 1.5rem;
	border-top: 1px solid var(--line-light);
	font-size: var(--step--1);
	color: rgba(238, 240, 235, 0.7);
}

.site-footer__base p {
	margin: 0;
}

@media (max-width: 860px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: row;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inner pages ---------- */
.page-header {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-header__title {
	font-size: var(--step-4);
	max-width: 20ch;
	margin-bottom: 0.3em;
}

.page-header__intro {
	font-size: var(--step-1);
	color: var(--ink-soft);
	max-width: 46ch;
}

.page-header__intro p:last-child {
	margin-bottom: 0;
}

.page-header__crumb {
	font-size: var(--step--1);
	color: var(--ink-soft);
	margin-bottom: 1rem;
}

.entry-meta {
	font-size: var(--step--1);
	color: var(--ink-soft);
	margin-bottom: 1rem;
}

.entry-meta__sep {
	margin-inline: 0.6em;
	color: var(--brass);
}

.single-entry__media,
.project-single__media {
	margin-block: 0 clamp(2.5rem, 5vw, 4rem);
}

.single-entry__media img,
.project-single__media img {
	width: 100%;
	border-radius: 0.375rem;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Long-form content */
.entry-content {
	padding-bottom: var(--section);
}

.entry-content > * {
	max-width: 42rem;
}

.entry-content > .alignwide {
	max-width: 64rem;
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(-1 * var(--gutter));
}

.entry-content h2 {
	font-size: var(--step-3);
	margin-top: 1.8em;
}

.entry-content h3 {
	font-size: var(--step-2);
	margin-top: 1.6em;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--brass);
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.3;
}

.entry-content figure {
	margin-block: 2rem;
}

.entry-content figcaption,
.wp-element-caption {
	font-size: var(--step--1);
	color: var(--ink-soft);
	margin-top: 0.6rem;
}

.entry-content img {
	border-radius: 0.375rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin-block: 3rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

/* Blog list + sidebar */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18rem;
	gap: 4rem;
	padding-bottom: var(--section);
}

.no-sidebar .layout {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 960px) {
	.layout {
		grid-template-columns: 1fr;
	}
}

.post-list {
	border-top: 1px solid var(--line);
}

.post-card {
	display: grid;
	grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
	gap: 2rem;
	padding-block: 2rem;
	border-bottom: 1px solid var(--line);
}

.post-card:not(:has(.post-card__media)) {
	grid-template-columns: 1fr;
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.375rem;
}

.post-card__title {
	font-size: var(--step-2);
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--brass);
}

.post-card__excerpt {
	color: var(--ink-soft);
}

@media (max-width: 640px) {
	.post-card {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.widget {
	margin-bottom: 2.5rem;
}

.widget-title {
	font-size: var(--step-1);
}

.widget ul {
	padding-left: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 0.4rem;
}

/* Pagination & post navigation */
.pagination,
.post-navigation {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
}

.pagination .nav-links {
	justify-content: flex-start;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--mist);
}

.post-navigation a {
	display: block;
	text-decoration: none;
	font-family: var(--font-display);
	font-size: var(--step-1);
}

.post-navigation .nav-next {
	text-align: right;
	margin-left: auto;
}

.nav-label {
	display: block;
	font-family: var(--font-text);
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.entry-footer {
	padding-bottom: var(--section);
}

.entry-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--step--1);
	text-decoration: none;
}

/* Projects archive + single */
.filter {
	margin-bottom: 2.5rem;
}

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

.filter__list a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 500;
	text-decoration: none;
}

.filter__list a:hover {
	border-color: var(--ink);
}

.filter__list a[aria-current="page"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--mist);
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 3rem 2rem;
	padding-bottom: var(--section);
}

.project-single__body {
	display: grid;
	grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
}

.project-facts {
	align-self: start;
	margin: 0;
	border-top: 1px solid var(--line);
}

.project-facts__row {
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--line);
}

.project-facts dt {
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.project-facts dd {
	margin: 0;
	font-weight: 500;
}

.project-single__nav {
	padding-bottom: var(--section);
}

@media (max-width: 760px) {
	.project-single__body {
		grid-template-columns: 1fr;
	}
}

/* Contact page */
.contact-page {
	display: grid;
	grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 6rem);
}

.contact-list {
	margin: 0;
	border-top: 1px solid var(--line);
}

.contact-list > div {
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
}

.contact-list dt {
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.contact-list dd {
	margin: 0;
	font-size: var(--step-1);
}

.contact-list address {
	font-style: normal;
}

.contact-page__map {
	padding-bottom: var(--section);
}

.contact-page__map iframe {
	width: 100%;
	height: 26rem;
	border: 0;
	border-radius: 0.375rem;
}

@media (max-width: 760px) {
	.contact-page {
		grid-template-columns: 1fr;
	}
}

/* Forms (also styles common form plugins) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(29, 39, 34, 0.35);
	border-radius: 0.375rem;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--brass);
	outline-offset: 1px;
	border-color: var(--ink);
}

label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 500;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin-block: 1.5rem;
}

.empty-state {
	padding-block: 2rem var(--section);
	max-width: 40rem;
}

/* 404 */
.not-found {
	padding-block: var(--section);
}

.not-found__inner p {
	max-width: 44ch;
	color: var(--ink-soft);
}

/* Comments */
.comments {
	padding-bottom: var(--section);
	max-width: calc(42rem + 2 * var(--gutter));
	margin-left: 0;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-body {
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}

.comment-author .avatar {
	float: left;
	margin-right: 0.75rem;
	border-radius: 50%;
}

.comment-metadata {
	font-size: var(--step--1);
	color: var(--ink-soft);
}

/* WordPress core alignment classes */
.alignleft {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.sticky .post-card__title::after {
	content: "";
}

.bypostauthor {
	display: block;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Print ---------- */
@media print {
	.site-header,
	.site-footer,
	.contact-band {
		display: none;
	}
}

/* WooCommerce cart, checkout and account pages use the full width. */
.dunex-wide-content .entry-content > * {
	max-width: none;
}

/* Elementor content keeps its own widths and spacing. */
.elementor-page-content,
.entry-content > .elementor {
	max-width: none;
	width: 100%;
}

/* Block-level theme images (avoids inline baseline gaps). */
.hero__img,
.project-tile__media img,
.post-card__media img,
.single-entry__media img,
.project-single__media img,
.custom-logo {
	display: block;
}

/* Small phones: keep logo, cart and menu button on one line. */
@media (max-width: 480px) {
	.site-header__inner {
		gap: 0.75rem;
	}

	.site-header .custom-logo-link img.custom-logo {
		max-width: 52vw;
	}

	.nav-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.nav-toggle {
		padding: 0.75rem 0.25rem;
	}
}

/* =====================================================================
   Page Settings (per page: editor sidebar → Page Settings)
   ===================================================================== */
body {
	overflow-x: clip;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	padding-top: var(--content-pt, 0px);
	padding-bottom: var(--content-pb, var(--section));
}

.content-layout .entry-content,
.content-layout .entry-footer,
.content-layout .project-single__nav,
.content-layout .comments {
	padding-bottom: 0;
}

.content-layout .entry-content > * {
	max-width: none;
}

.content-layout .entry-footer,
.content-layout .project-single__nav,
.content-layout .comments {
	max-width: none;
	margin-top: 3rem;
}

.content-layout .entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* Vertical spacing */
.dunex-spacing-enable,
.dunex-spacing-bottom {
	--content-pb: var(--section);
}

.dunex-spacing-disable,
.dunex-spacing-top {
	--content-pb: 0px;
}

.dunex-title-hidden.dunex-spacing-enable,
.dunex-title-hidden.dunex-spacing-top,
.dunex-content-boxed.dunex-spacing-enable,
.dunex-content-boxed.dunex-spacing-top {
	--content-pt: clamp(2.5rem, 6vw, 4.5rem);
}

/* Narrow */
.dunex-layout-narrow .content-layout,
.dunex-layout-narrow .page-header .wrap,
.dunex-layout-narrow .single-entry__media.wrap {
	max-width: calc(46rem + 2 * var(--gutter));
}

/* Fullwidth: no container; ordinary blocks stay readable, "Full width" blocks go edge to edge. */
.dunex-layout-fullwidth .content-layout {
	max-width: none;
	padding-inline: 0;
}

.dunex-layout-fullwidth .content-layout__main > .entry-content > :not(.alignfull),
.dunex-layout-fullwidth .content-layout__main > :not(.entry-content):not(.alignfull) {
	max-width: min(calc(var(--wrap) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
	margin-left: auto;
	margin-right: auto;
}

.dunex-layout-fullwidth .content-layout .entry-content > .alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* Sidebars */
.dunex-layout-right-sidebar .content-layout {
	grid-template-columns: minmax(0, 1fr) 18rem;
}

.dunex-layout-left-sidebar .content-layout {
	grid-template-columns: 18rem minmax(0, 1fr);
}

.dunex-layout-left-sidebar .content-layout__aside {
	order: -1;
}

.dunex-layout-left-sidebar .content-layout .entry-content > .alignfull,
.dunex-layout-right-sidebar .content-layout .entry-content > .alignfull {
	width: auto;
	max-width: none;
	margin-inline: 0;
}

.content-layout__aside {
	position: sticky;
	top: calc(var(--dunex-header-top, 0px) + 1.5rem);
}

.header-is-fixed .content-layout__aside {
	top: calc(var(--dunex-header-top, 0px) + var(--dunex-header-h, 0px) + 1.5rem);
}

@media (max-width: 960px) {
	.dunex-layout-left-sidebar .content-layout,
	.dunex-layout-right-sidebar .content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.dunex-layout-left-sidebar .content-layout__aside {
		order: 0;
	}

	.content-layout__aside {
		position: static;
	}
}

/* Boxed */
.dunex-content-boxed .content-layout__main {
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(29, 39, 34, 0.06), 0 10px 30px rgba(29, 39, 34, 0.06);
}

.dunex-content-boxed .content-layout__aside {
	padding: 1.5rem;
	border-radius: 0.5rem;
	background: #fff;
}

.page-header--boxed {
	padding: 0 0 1.5rem;
}

.dunex-content-boxed .content-layout__main > .single-entry__media {
	margin: 0 0 2rem;
}

.dunex-layout-fullwidth.dunex-content-boxed .content-layout__main {
	border-radius: 0;
}

/* Transparent header */
.has-transparent-header .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

.admin-bar.has-transparent-header .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.header-is-fixed .has-transparent-header .site-header {
	position: fixed;
	top: var(--dunex-header-top, 0px);
}

.header-is-fixed .has-transparent-header {
	padding-top: 0;
}

.has-transparent-header .site-header.is-scrolled,
.has-transparent-header .site-header:has(.site-nav.is-open) {
	background: var(--header-bg);
}

.has-transparent-header .site-header.is-scrolled {
	box-shadow: 0 1px 0 var(--header-line), 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* A page title under a transparent header gets room for the header and
   a background that matches the header text colour. */
.has-transparent-header .page-header:not(.page-header--boxed) {
	padding-top: calc(var(--dunex-header-real-h, 5.5rem) + clamp(2rem, 5vw, 3.5rem));
}

.transparent-header-light .page-header:not(.page-header--boxed) {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	background: var(--ink);
	color: var(--mist);
}

.transparent-header-light .page-header:not(.page-header--boxed) a,
.transparent-header-light .page-header:not(.page-header--boxed) .page-header__intro,
.transparent-header-light .page-header:not(.page-header--boxed) .page-header__crumb,
.transparent-header-light .page-header:not(.page-header--boxed) .entry-meta {
	color: rgba(238, 240, 235, 0.8);
}

.has-transparent-header.dunex-content-boxed .site-main > .content-layout:first-child,
.has-transparent-header.dunex-content-boxed .site-main > article > .content-layout:first-child {
	padding-top: calc(var(--dunex-header-real-h, 5.5rem) + 2rem);
}
