/* Daniel Sekitto — site polish */

:root {
	--ds-sand: #d4ccbd;
	--ds-sand-light: #eae9e3;
	--ds-sand-muted: #e6e6e6;
	--ds-accent: #826347;
	--ds-accent-dark: #6b5238;
	--ds-ink: #1a1a1a;
	--ds-ink-muted: #4a4a4a;
	--ds-footer: #1c1c1c;
	--ds-max: 1140px;
	--ds-section-pad: clamp(4rem, 8vw, 7rem);
}

/* Layout: page ends at footer */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#qodef-page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#qodef-page-outer {
	flex: 1 0 auto;
}

#qodef-page-footer {
	flex-shrink: 0;
	margin-top: 0;
}

/* Back to top: replace giant theme arrow */
#qodef-back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 9999;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
	pointer-events: none;
}

#qodef-back-to-top.qodef--on {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#qodef-back-to-top .qodef-back-to-top-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: var(--ds-accent) !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

#qodef-back-to-top .qodef-back-to-top-icon svg {
	width: 1rem !important;
	height: 1rem !important;
	max-width: 1rem !important;
	max-height: 1rem !important;
	fill: #fff !important;
}

#qodef-back-to-top:hover .qodef-back-to-top-icon {
	background-color: var(--ds-accent-dark) !important;
}

/* Section rhythm */
.elementor-8 .elementor-element.elementor-element-d7583f6 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: clamp(6rem, 12vw, 8.5rem) !important;
	padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.elementor-8 .elementor-element.elementor-element-3142d41 {
	padding-top: var(--ds-section-pad) !important;
	padding-bottom: var(--ds-section-pad) !important;
}

.elementor-8 .elementor-element.elementor-element-f8b525c {
	padding-top: var(--ds-section-pad) !important;
	padding-bottom: var(--ds-section-pad) !important;
}

.elementor-8 .elementor-element.elementor-element-eb94283 {
	padding-top: var(--ds-section-pad) !important;
	padding-bottom: var(--ds-section-pad) !important;
}

/* Hero title */
.elementor-8 .elementor-element.elementor-element-3ba085d .qodef-qi-section-title .qodef-m-title {
	font-size: clamp(2.5rem, 6vw, 5rem) !important;
	line-height: 1.05 !important;
	letter-spacing: 0.06em !important;
}

.elementor-8 .elementor-element.elementor-element-3ba085d .qodef-m-text h5 {
	font-size: clamp(1rem, 2vw, 1.25rem) !important;
	line-height: 1.65 !important;
	max-width: 36em;
}

/* Section headings */
.elementor-8 .qodef-qi-section-title .qodef-m-title {
	letter-spacing: 0.12em !important;
}

.elementor-8 .elementor-element.elementor-element-1bfcc11 .qodef-m-text p {
	max-width: 42em;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	line-height: 1.75;
}

/* Quick profile + core strengths cards */
.elementor-8 .elementor-element.elementor-element-b2fd194 {
	gap: 1.5rem !important;
}

.elementor-8 .elementor-element.elementor-element-b2fd194 .e-paragraph-base {
	font-family: "PT Mono", monospace !important;
	font-size: 0.9375rem !important;
	line-height: 1.7 !important;
	color: var(--ds-ink-muted) !important;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(130, 99, 71, 0.15);
	border-radius: 4px;
	padding: 1.75rem 2rem !important;
	margin: 0 !important;
}

/* Experience: two-column grid */
.elementor-8 .elementor-element.elementor-element-e91541c > .elementor-container {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 3rem;
	max-width: var(--ds-max);
	margin: 0 auto;
}

.elementor-8 .elementor-element.elementor-element-e91541c .elementor-column {
	width: 100% !important;
}

.elementor-8 .elementor-element.elementor-element-a363f54,
.elementor-8 .elementor-element.elementor-element-27ee9b8 {
	font-family: "PT Mono", monospace !important;
	font-size: 0.9375rem !important;
	line-height: 1.75 !important;
	color: var(--ds-ink-muted) !important;
}

.elementor-8 .elementor-element.elementor-element-a363f54 > .elementor-widget-container,
.elementor-8 .elementor-element.elementor-element-27ee9b8 > .elementor-widget-container {
	padding: 0 !important;
}

.elementor-8 .elementor-element.elementor-element-a363f54 .elementor-drop-cap {
	display: none;
}

/* —— Gallery —— */
.elementor-8 .ds-gallery-section {
	background: linear-gradient(180deg, #dedcce 0%, var(--ds-sand-light) 100%) !important;
}

.elementor-8 .ds-gallery-section .elementor-container {
	max-width: var(--ds-max);
}

.elementor-8 .ds-gallery-header-widget {
	width: 100% !important;
	max-width: none !important;
}

.elementor-8 .ds-gallery-header-widget > .elementor-widget-container {
	padding-bottom: 0 !important;
}

.elementor-8 .ds-gallery-widget {
	width: 100% !important;
	max-width: none !important;
}

.ds-gallery-header {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto 2.75rem;
}

.ds-gallery-eyebrow {
	font-family: "PT Mono", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ds-accent);
	margin: 0 0 0.75rem;
}

.ds-gallery-title {
	font-family: "Forum", serif;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ds-ink);
	margin: 0 0 0.85rem;
	line-height: 1.15;
}

.ds-gallery-lead {
	font-family: "PT Mono", monospace;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--ds-ink-muted);
	margin: 0;
}

.ds-gallery-widget > .elementor-widget-container {
	padding-top: 0 !important;
}

.ds-gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: minmax(200px, 26vw);
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ds-gallery-card {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
}

.ds-gallery-card--feature {
	grid-column: 1 / 8;
	grid-row: 1 / 3;
}

.ds-gallery-card:nth-child(2) {
	grid-column: 8 / 13;
	grid-row: 1 / 2;
}

.ds-gallery-card:nth-child(3) {
	grid-column: 8 / 13;
	grid-row: 2 / 3;
}

.ds-gallery-card:nth-child(4) {
	grid-column: 1 / 5;
	grid-row: 3 / 4;
}

.ds-gallery-card:nth-child(5) {
	grid-column: 5 / 9;
	grid-row: 3 / 4;
}

.ds-gallery-card:nth-child(6) {
	grid-column: 9 / 13;
	grid-row: 3 / 4;
}

.ds-gallery-link {
	position: relative;
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #1a1a1a;
	box-shadow: 0 8px 28px rgba(26, 26, 26, 0.1);
	text-decoration: none;
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ds-gallery-link::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	z-index: 2;
	pointer-events: none;
	transition: border-color 0.3s ease;
}

.ds-gallery-link img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ds-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		180deg,
		rgba(26, 26, 26, 0) 35%,
		rgba(26, 26, 26, 0.55) 100%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 1;
}

.ds-gallery-view {
	font-family: "PT Mono", monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fff;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 2px;
	transform: translateY(6px);
	transition: transform 0.35s ease;
}

.ds-gallery-caption {
	font-family: "PT Mono", monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ds-ink-muted);
	margin: 0;
	padding-left: 0.15rem;
}

.ds-gallery-link:hover,
.ds-gallery-link:focus-visible {
	box-shadow: 0 14px 40px rgba(130, 99, 71, 0.22);
	transform: translateY(-2px);
	outline: none;
}

.ds-gallery-link:hover::before,
.ds-gallery-link:focus-visible::before {
	border-color: rgba(255, 255, 255, 0.35);
}

.ds-gallery-link:hover img,
.ds-gallery-link:focus-visible img {
	transform: scale(1.05);
}

.ds-gallery-link:hover .ds-gallery-overlay,
.ds-gallery-link:focus-visible .ds-gallery-overlay {
	opacity: 1;
}

.ds-gallery-link:hover .ds-gallery-view,
.ds-gallery-link:focus-visible .ds-gallery-view {
	transform: translateY(0);
}

.ds-gallery-card--feature .ds-gallery-caption {
	color: var(--ds-accent-dark);
}

/* Contact section */
.elementor-8 .elementor-element.elementor-element-9273cad {
	padding: 0 !important;
}

.elementor-8 .elementor-element.elementor-element-9273cad > .elementor-container {
	max-width: var(--ds-max);
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.elementor-8 .ds-contact-wrap,
.elementor-8 .elementor-element.elementor-element-0dfd319 > .elementor-element-populated {
	padding: 3.5rem 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.elementor-8 .elementor-element.elementor-element-baea2e1,
.elementor-8 .elementor-element.elementor-element-db7bae4 {
	width: auto !important;
	max-width: none !important;
}

.elementor-8 .elementor-element.elementor-element-baea2e1 .qodef-qi-section-title {
	text-align: left;
}

.elementor-8 .elementor-element.elementor-element-baea2e1 .qodef-m-title {
	color: #fff !important;
	font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
	letter-spacing: 0.14em !important;
	margin: 0 !important;
}

.elementor-8 .elementor-element.elementor-element-db7bae4 {
	color: #fff !important;
}

.elementor-8 .elementor-element.elementor-element-db7bae4 > .elementor-widget-container {
	padding: 0 !important;
}

.elementor-8 .elementor-element.elementor-element-db7bae4 p {
	margin: 0;
}

.elementor-8 .elementor-element.elementor-element-db7bae4 a:not(.ds-header-ig) {
	font-family: "PT Mono", monospace;
	font-size: clamp(1rem, 2vw, 1.125rem);
	letter-spacing: 0.04em;
	color: #fff !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45);
	padding-bottom: 0.15em;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.elementor-8 .elementor-element.elementor-element-db7bae4 a:not(.ds-header-ig):hover {
	border-color: #fff;
	opacity: 0.92;
}

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

.ds-contact-links p {
	margin: 0;
}

.ds-contact-section .ds-contact-ig {
	gap: 0.5rem;
	padding: 0.5rem 1rem 0.5rem 0.65rem;
	border-radius: 999px;
	min-width: auto;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.45);
}

.ds-contact-section .ds-contact-ig:hover,
.ds-contact-section .ds-contact-ig:focus-visible {
	color: #fff;
	background: var(--ds-accent);
	border-color: var(--ds-accent-dark);
}

.ds-contact-ig-label {
	font-family: "PT Mono", monospace;
	font-size: clamp(0.875rem, 1.8vw, 1rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
}

@media (max-width: 600px) {
	.ds-contact-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

/* Footer */
#qodef-page-footer-bottom-area {
	background-color: var(--ds-footer) !important;
}

#qodef-page-footer-bottom-area-inner {
	padding: 1.25rem 0 1.35rem !important;
}

#qodef-page-footer .textwidget p {
	font-family: "PT Mono", monospace !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.72) !important;
	margin: 0;
}

#qodef-page-footer .textwidget a {
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none;
}

#qodef-page-footer .textwidget a:hover {
	color: #fff !important;
}

/* No extra beige bleed below footer */
body.home #qodef-page-wrapper::after,
#qodef-page-footer::after {
	display: none !important;
	content: none !important;
}

@media (max-width: 1024px) {
	.elementor-8 .elementor-element.elementor-element-e91541c > .elementor-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.elementor-8 .elementor-element.elementor-element-0dfd319 > .elementor-element-populated {
		flex-direction: column;
		align-items: flex-start;
		padding: 2.75rem 0 !important;
	}

	.ds-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: minmax(220px, 32vw);
	}

	.ds-gallery-card--feature,
	.ds-gallery-card:nth-child(2),
	.ds-gallery-card:nth-child(3),
	.ds-gallery-card:nth-child(4),
	.ds-gallery-card:nth-child(5),
	.ds-gallery-card:nth-child(6) {
		grid-column: auto;
		grid-row: auto;
	}

	.ds-gallery-card--feature {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.elementor-8 .elementor-element.elementor-element-b2fd194 {
		--e-con-grid-template-columns: 1fr !important;
	}

	.elementor-8 .elementor-element.elementor-element-b2fd194 .e-paragraph-base {
		padding: 1.25rem 1.35rem !important;
	}

	.elementor-8 .ds-contact-wrap,
	.elementor-8 .elementor-element.elementor-element-0dfd319 > .elementor-element-populated {
		padding: 2.25rem 0 !important;
	}

	.ds-gallery-header {
		margin-bottom: 2rem;
	}

	.ds-gallery-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		gap: 1.25rem;
	}

	.ds-gallery-card--feature,
	.ds-gallery-card:nth-child(n) {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.ds-gallery-link img {
		min-height: 240px;
	}

	.ds-gallery-overlay {
		opacity: 1;
		background: linear-gradient(
			180deg,
			rgba(26, 26, 26, 0) 55%,
			rgba(26, 26, 26, 0.45) 100%
		);
	}

	.ds-gallery-view {
		transform: translateY(0);
	}

	#qodef-back-to-top {
		right: 1rem;
		bottom: 1rem;
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* Instagram header link — visible on all screen sizes */
#qodef-page-header .qodef-widget-holder .qodef-addons-icon-svg-widget,
#qodef-page-mobile-header-inner {
	display: flex;
	align-items: center;
}

#qodef-page-header .qodef-addons-icon-svg-widget {
	flex-shrink: 0;
	margin-left: 0.5rem;
}

.ds-header-ig {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	border-radius: 50%;
	color: var(--ds-ink);
	background: rgba(130, 99, 71, 0.14);
	border: 1px solid rgba(130, 99, 71, 0.35);
	box-shadow: 0 1px 3px rgba(26, 26, 26, 0.08);
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
		transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.ds-header-ig:hover,
.ds-header-ig:focus-visible {
	color: #fff;
	background: var(--ds-accent);
	border-color: var(--ds-accent-dark);
	box-shadow: 0 2px 8px rgba(130, 99, 71, 0.35);
	transform: scale(1.05);
	outline: none;
}

.ds-header-ig svg {
	display: block;
	width: clamp(20px, 4vw, 24px);
	height: clamp(20px, 4vw, 24px);
	flex-shrink: 0;
}

.ds-header-ig path {
	fill: currentColor;
}

#qodef-page-header .qodef-addons-icon-svg-widget .qodef-m-holder,
#qodef-page-header .qodef-addons-icon-svg-widget .qodef-m-icon {
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

#qodef-page-mobile-header-inner {
	flex-wrap: nowrap;
	gap: 0.35rem;
}

#qodef-page-mobile-header .qodef-mobile-header-logo-link {
	flex: 1 1 auto;
	min-width: 0;
}

#qodef-page-mobile-header .ds-header-ig--mobile {
	margin-left: auto;
	margin-right: 0.15rem;
}

#qodef-page-mobile-header .qodef-mobile-header-opener {
	flex-shrink: 0;
	margin-left: 0;
}

@media (min-width: 1025px) {
	#qodef-page-header .qodef-addons-icon-svg-widget {
		margin-left: 1rem;
	}

	.ds-header-ig {
		min-width: 48px;
		min-height: 48px;
	}
}

@media (max-width: 480px) {
	.ds-header-ig {
		min-width: 40px;
		min-height: 40px;
		padding: 0.4rem;
	}
}
