/**
 * Goldschmiede Lotos global site system.
 *
 * Exact display fonts and the accent gold remain provisional until the visual
 * design direction is approved. Divi Global Presets should use these tokens.
 */

:root {
	--lotos-color-ink: #111111;
	--lotos-color-warm-white: #f7f4ee;
	--lotos-color-paper: #ffffff;
	--lotos-color-gold: #9a7836;
	--lotos-color-gold-light: #d6b369;
	--lotos-color-bronze: #6f5232;
	--lotos-color-silver: #a6a6a6;
	--lotos-color-muted: #66645f;
	--lotos-color-border: #ddd8ce;
	--lotos-color-error: #8f2f2f;
	--lotos-color-success: #2f6847;

	--lotos-font-display: Georgia, "Times New Roman", serif;
	--lotos-font-body: Inter, "Segoe UI", Helvetica, Arial, sans-serif;

	--lotos-size-xs: clamp(0.78rem, 0.76rem + 0.08vw, 0.84rem);
	--lotos-size-sm: clamp(0.9rem, 0.87rem + 0.12vw, 0.98rem);
	--lotos-size-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
	--lotos-size-h4: clamp(1.15rem, 1.06rem + 0.38vw, 1.45rem);
	--lotos-size-h3: clamp(1.35rem, 1.18rem + 0.7vw, 1.85rem);
	--lotos-size-h2: clamp(1.85rem, 1.55rem + 1.15vw, 2.75rem);
	--lotos-size-h1: clamp(2.35rem, 1.85rem + 2vw, 4.35rem);

	--lotos-space-1: 0.5rem;
	--lotos-space-2: 0.75rem;
	--lotos-space-3: 1rem;
	--lotos-space-4: 1.5rem;
	--lotos-space-5: 2rem;
	--lotos-space-6: 3rem;
	--lotos-space-7: 4.5rem;
	--lotos-space-8: 7rem;

	--lotos-content-width: 80rem;
	--lotos-text-width: 46rem;
	--lotos-radius-sm: 0.25rem;
	--lotos-radius-md: 0.5rem;
	--lotos-transition: 240ms ease;
}

html {
	scroll-behavior: smooth;
}

body.lotos-site {
	background: var(--lotos-color-warm-white);
	color: var(--lotos-color-ink);
	font-family: var(--lotos-font-body);
	font-size: var(--lotos-size-body);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body.lotos-site #page-container {
	padding-top: 0 !important;
}

.lotos-skip-link {
	background: var(--lotos-color-warm-white);
	color: var(--lotos-color-ink);
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: -6rem;
	z-index: 100001;
}

.lotos-skip-link:focus {
	top: 1rem;
}

.lotos-site :where(h1, h2, h3, h4, h5, h6) {
	color: var(--lotos-color-ink);
	font-family: var(--lotos-font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.lotos-site h1 {
	font-size: var(--lotos-size-h1);
}

.lotos-site h2 {
	font-size: var(--lotos-size-h2);
}

.lotos-site h3 {
	font-size: var(--lotos-size-h3);
}

.lotos-site h4 {
	font-size: var(--lotos-size-h4);
}

.lotos-site :where(p, li) {
	font-size: inherit;
}

.lotos-site a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.lotos-site a:hover {
	color: var(--lotos-color-bronze);
}

.lotos-site :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--lotos-color-gold);
	outline-offset: 4px;
}

.lotos-site ::selection {
	background: var(--lotos-color-gold);
	color: var(--lotos-color-paper);
}

.lotos-site img {
	height: auto;
}

/* Layout utilities used as optional Divi CSS classes. */
.lotos-section {
	padding-block: clamp(var(--lotos-space-6), 8vw, var(--lotos-space-8));
}

.lotos-section--compact {
	padding-block: clamp(var(--lotos-space-5), 5vw, var(--lotos-space-7));
}

.lotos-container {
	margin-inline: auto;
	max-width: var(--lotos-content-width);
	padding-inline: clamp(1.25rem, 3vw, 3rem);
	width: 100%;
}

.lotos-copy {
	max-width: var(--lotos-text-width);
}

.lotos-kicker {
	color: var(--lotos-color-gold);
	font-size: var(--lotos-size-xs);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lotos-muted {
	color: var(--lotos-color-muted);
}

.lotos-surface-dark {
	background: var(--lotos-color-ink);
	color: var(--lotos-color-warm-white);
}

.lotos-surface-dark :where(h1, h2, h3, h4, h5, h6, a) {
	color: inherit;
}

/* Buttons: use on Divi buttons or regular anchors. */
.lotos-site :where(.lotos-button, .et_pb_button) {
	align-items: center;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: var(--lotos-radius-sm);
	color: var(--lotos-color-ink);
	display: inline-flex;
	font-family: var(--lotos-font-body);
	font-size: var(--lotos-size-sm);
	font-weight: 600;
	gap: 0.65rem;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1.2;
	min-height: 3rem;
	padding: 0.8rem 1.35rem;
	text-decoration: none;
	transition: background-color var(--lotos-transition), color var(--lotos-transition), border-color var(--lotos-transition), transform var(--lotos-transition);
}

.lotos-site :where(.lotos-button, .et_pb_button):hover {
	background: var(--lotos-color-ink);
	border-color: var(--lotos-color-ink);
	color: var(--lotos-color-warm-white);
	transform: translateY(-1px);
}

.lotos-site .lotos-button--light {
	color: var(--lotos-color-warm-white);
}

.lotos-site .lotos-button--light:hover {
	background: var(--lotos-color-warm-white);
	border-color: var(--lotos-color-warm-white);
	color: var(--lotos-color-ink);
}

.lotos-text-link {
	align-items: center;
	display: inline-flex;
	font-size: var(--lotos-size-sm);
	font-weight: 650;
	gap: 0.7rem;
	letter-spacing: 0.02em;
	padding-bottom: 0.3rem;
	position: relative;
	text-decoration: none !important;
}

.lotos-text-link::after {
	background: currentColor;
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	transform-origin: left;
	transition: transform 300ms ease;
	width: 100%;
}

.lotos-text-link:hover::after {
	transform: scaleX(0.35);
}

.lotos-text-link--light {
	color: var(--lotos-color-warm-white) !important;
}

/* Global editorial header. */
.lotos-header {
	color: var(--lotos-color-warm-white);
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: background-color 280ms ease, color 280ms ease, box-shadow 280ms ease;
	z-index: 99990;
}

.admin-bar .lotos-header {
	top: 32px;
}

.lotos-header__inner {
	align-items: center;
	display: flex;
	gap: 2rem;
	height: 6.25rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: 92rem;
	padding-inline: clamp(1.25rem, 4vw, 4rem);
	transition: height 280ms ease;
}

.lotos-brand {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.8rem;
	text-decoration: none !important;
}

.lotos-brand__mark {
	display: block;
	height: 3.2rem;
	object-fit: contain;
	width: 3.2rem;
}

.lotos-brand__wordmark {
	display: grid;
	line-height: 1;
}

.lotos-brand__wordmark b {
	font-family: var(--lotos-font-display);
	font-size: 1.08rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.lotos-brand__wordmark span {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.34em;
	margin-top: 0.35rem;
	text-transform: uppercase;
}

.lotos-primary-nav,
.lotos-primary-nav__list {
	align-items: center;
	display: flex;
}

.lotos-primary-nav {
	gap: clamp(1.25rem, 2.2vw, 2.5rem);
}

.lotos-primary-nav__list {
	gap: clamp(1rem, 1.6vw, 1.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.lotos-primary-nav__list li {
	font-size: 0.78rem;
	line-height: 1.2;
	margin: 0;
	padding: 0;
	position: relative;
}

.lotos-primary-nav__list > li > a {
	display: block;
	letter-spacing: 0.04em;
	padding-block: 1rem;
	text-decoration: none;
	transition: color 220ms ease;
}

.lotos-primary-nav__list > li:hover > a,
.lotos-primary-nav__list > li:focus-within > a {
	color: var(--lotos-color-gold-light);
}

.lotos-primary-nav__list > li > a::after {
	background: currentColor;
	bottom: 0.7rem;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 240ms ease;
	width: 100%;
}

.lotos-primary-nav__list > li:hover > a::after,
.lotos-primary-nav__list > .current-menu-item > a::after {
	transform: scaleX(1);
}

.lotos-primary-nav__list .sub-menu {
	background: var(--lotos-color-warm-white);
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.18);
	color: var(--lotos-color-ink);
	left: -1.5rem;
	list-style: none;
	margin: 0;
	min-width: 17rem;
	opacity: 0;
	padding: 1rem 1.5rem;
	pointer-events: none;
	position: absolute;
	top: calc(100% - 0.25rem);
	transform: translateY(0.6rem);
	transition: opacity 220ms ease, transform 220ms ease;
}

.lotos-primary-nav__list li:hover > .sub-menu,
.lotos-primary-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.lotos-primary-nav__list .sub-menu a {
	display: block;
	padding: 0.7rem 0;
	text-decoration: none;
}

.lotos-header__cta {
	border: 1px solid currentColor;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 0.8rem 1.1rem;
	text-decoration: none !important;
	transition: background-color 220ms ease, color 220ms ease;
	white-space: nowrap;
}

.lotos-header__cta:hover {
	background: var(--lotos-color-gold-light);
	border-color: var(--lotos-color-gold-light);
	color: var(--lotos-color-ink);
}

.lotos-menu-toggle {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: none;
}

body.lotos-site.is-scrolled .lotos-header,
body.lotos-site:not(.home) .lotos-header {
	background: color-mix(in srgb, var(--lotos-color-warm-white) 96%, transparent);
	box-shadow: 0 1px 0 rgb(17 17 17 / 0.1);
	color: var(--lotos-color-ink);
	backdrop-filter: blur(16px);
}

body.lotos-site.is-scrolled .lotos-header__inner {
	height: 4.75rem;
}

body.lotos-site.is-scrolled .lotos-header__cta:hover,
body.lotos-site:not(.home) .lotos-header__cta:hover {
	background: var(--lotos-color-gold);
	border-color: var(--lotos-color-gold);
	color: var(--lotos-color-paper);
}

/* Global editorial footer. */
.lotos-footer {
	background: #0d0d0c;
	color: #ded8cd;
	padding-top: clamp(5rem, 9vw, 9rem);
}

.lotos-footer :where(h2, a) {
	color: inherit;
}

.lotos-footer__lead {
	align-items: end;
	border-bottom: 1px solid rgb(247 244 238 / 0.18);
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr auto;
	padding-bottom: clamp(4rem, 7vw, 7rem);
}

.lotos-footer__lead h2 {
	font-size: clamp(2rem, 3.2vw, 3.5rem);
	margin: 1.2rem 0 0;
	max-width: 13ch;
}

.lotos-footer__grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: 1.8fr 1fr 1fr 1fr;
	padding-block: 4.5rem;
}

.lotos-footer__grid p,
.lotos-footer__grid li {
	font-size: 0.9rem;
}

.lotos-footer__brand p {
	font-family: var(--lotos-font-display);
	font-size: 1.35rem;
	line-height: 1.45;
	max-width: 25rem;
}

.lotos-footer__label {
	color: #a48249;
	font-size: 0.7rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-bottom: 1.25rem;
	text-transform: uppercase;
}

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

.lotos-footer li + li {
	margin-top: 0.65rem;
}

.lotos-footer a {
	text-decoration: none;
}

.lotos-footer__bottom {
	border-top: 1px solid rgb(247 244 238 / 0.12);
	display: flex;
	font-size: 0.7rem;
	justify-content: space-between;
	letter-spacing: 0.06em;
	padding-block: 1.5rem;
	text-transform: uppercase;
}

.lotos-footer__bottom a {
	color: var(--lotos-color-gold-light);
	font-weight: 700;
}

.lotos-footer__bottom a:hover {
	color: var(--lotos-color-warm-white);
}

/* Project CTA can be assigned as a WordPress menu CSS class. */
.lotos-project-cta__link {
	border: 1px solid currentColor;
	padding: 0.65rem 1rem !important;
}

/* Portfolio and editorial media behavior. */
.lotos-media-frame {
	background: #e9e5dd;
	overflow: hidden;
}

.lotos-media-frame img,
.lotos-media-frame video {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms ease;
	width: 100%;
}

.lotos-media-frame:hover img {
	transform: scale(1.025);
}

/* Forms remain compatible with Divi, native forms and common form plugins. */
.lotos-site :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	background: var(--lotos-color-paper);
	border: 1px solid var(--lotos-color-border);
	border-radius: var(--lotos-radius-sm);
	color: var(--lotos-color-ink);
	font: inherit;
	min-height: 3.25rem;
	padding: 0.75rem 0.9rem;
	width: 100%;
}

.lotos-site textarea {
	min-height: 9rem;
	resize: vertical;
}

.lotos-site :where(input, select, textarea)::placeholder {
	color: #77736c;
	opacity: 1;
}

.lotos-site :where(input, select, textarea)[aria-invalid="true"] {
	border-color: var(--lotos-color-error);
}

.lotos-form-message--success {
	color: var(--lotos-color-success);
}

.lotos-form-message--error {
	color: var(--lotos-color-error);
}

/* The custom script toggles this state for the final sticky header design. */
body.lotos-site.is-scrolled .lotos-header {
	background: color-mix(in srgb, var(--lotos-color-warm-white) 94%, transparent);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--lotos-color-ink) 12%, transparent);
	backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
	:root {
		--lotos-space-8: 5.5rem;
	}

	.lotos-project-cta__link {
		display: inline-flex;
		margin-top: 0.5rem;
	}

	.admin-bar .lotos-header {
		top: 32px;
	}

	.lotos-header__inner {
		height: 5rem;
	}

	.lotos-menu-toggle {
		align-items: center;
		display: inline-flex;
		gap: 0.7rem;
		padding: 0.7rem 0;
	}

	.lotos-menu-toggle__label {
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.lotos-menu-toggle__icon {
		display: grid;
		gap: 0.35rem;
		width: 1.5rem;
	}

	.lotos-menu-toggle__icon i {
		background: currentColor;
		display: block;
		height: 1px;
		transition: transform 220ms ease;
	}

	.lotos-primary-nav {
		align-items: stretch;
		background: var(--lotos-color-warm-white);
		color: var(--lotos-color-ink);
		display: flex;
		flex-direction: column;
		inset: 5rem 0 auto;
		max-height: calc(100vh - 5rem);
		opacity: 0;
		overflow: auto;
		padding: 2rem 1.25rem 3rem;
		pointer-events: none;
		position: fixed;
		transform: translateY(-0.75rem);
		transition: opacity 220ms ease, transform 220ms ease;
	}

	.lotos-primary-nav.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.lotos-primary-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.lotos-primary-nav__list li {
		font-family: var(--lotos-font-display);
		font-size: 1.65rem;
	}

	.lotos-primary-nav__list > li {
		border-bottom: 1px solid var(--lotos-color-border);
	}

	.lotos-primary-nav__list > li > a {
		padding-block: 0.9rem;
	}

	.lotos-primary-nav__list > li > a::after {
		display: none;
	}

	.lotos-primary-nav__list .sub-menu {
		background: transparent;
		box-shadow: none;
		display: block;
		min-width: 0;
		opacity: 1;
		padding: 0 0 1rem 1rem;
		pointer-events: auto;
		position: static;
		transform: none;
	}

	.lotos-primary-nav__list .sub-menu li {
		font-family: var(--lotos-font-body);
		font-size: 0.95rem;
	}

	.lotos-header__cta {
		align-self: flex-start;
		margin-top: 1rem;
	}

	body.lotos-menu-open {
		overflow: hidden;
	}

	.lotos-footer__lead,
	.lotos-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.lotos-footer__lead > div {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	:root {
		--lotos-space-7: 3.5rem;
		--lotos-space-8: 4.5rem;
	}

	.lotos-site :where(.lotos-button, .et_pb_button) {
		min-height: 3.25rem;
	}

	.admin-bar .lotos-header {
		top: 46px;
	}

	.lotos-brand__wordmark b {
		font-size: 0.95rem;
	}

	.lotos-brand__mark {
		height: 2.65rem;
		width: 2.65rem;
	}

	.lotos-footer__lead,
	.lotos-footer__grid {
		grid-template-columns: 1fr;
	}

	.lotos-footer__lead > div {
		grid-column: auto;
	}

	.lotos-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}
}

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

	.lotos-site *,
	.lotos-site *::before,
	.lotos-site *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
