/*
Theme Name: ELİF Kadence Child
Theme URI: https://elifinsankaynaklari.com/
Description: Durable bilingual, accessibility, SEO and compliance customizations for ELİF İNSAN KAYNAKLARI VE DANIŞMANLIK.
Author: ELİF İNSAN KAYNAKLARI VE DANIŞMANLIK
Template: kadence
Version: 1.1.2
Text Domain: elif-kadence-child
*/

:root {
	--elif-navy: #0f2b46;
	--elif-gold: #b88a2a;
	--elif-focus: #1769aa;
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-wrap: anywhere;
}

a,
button,
input,
select,
textarea {
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--elif-focus) !important;
	outline-offset: 3px;
}

.skip-link:focus {
	z-index: 100000;
}

.elif-language-switch {
	display: inline-flex !important;
	align-items: center;
}

.elif-language-switch > a {
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1;
	min-height: 38px;
	padding: .7rem .8rem !important;
}

.elif-wa-float {
	align-items: center;
	background: #0b7d42;
	border-radius: 999px;
	bottom: max(20px, env(safe-area-inset-bottom));
	box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
	color: #fff !important;
	display: inline-flex;
	font-weight: 700;
	gap: .45rem;
	min-height: 48px;
	padding: .75rem 1rem;
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	text-decoration: none;
	z-index: 9998;
}

.elif-wa-float:hover,
.elif-wa-float:focus-visible {
	background: #075f32;
	color: #fff !important;
}

.cmplz-cookiebanner {
	z-index: 99999 !important;
}

.elif-consent {
	background: #fff;
	border: 1px solid #d8e0e7;
	border-radius: 14px;
	bottom: max(18px, env(safe-area-inset-bottom));
	box-shadow: 0 12px 40px rgba(15, 43, 70, .24);
	color: #263746;
	display: none;
	left: max(18px, env(safe-area-inset-left));
	max-height: calc(100vh - 36px);
	max-width: 520px;
	overflow-y: auto;
	padding: 1.35rem;
	position: fixed;
	width: calc(100vw - 36px);
	z-index: 99999;
}

.elif-consent.is-open {
	display: block;
}

.elif-consent h2 {
	color: var(--elif-navy);
	font-size: 1.35rem !important;
	margin: 0 0 .65rem;
}

.elif-consent p {
	font-size: .94rem;
	line-height: 1.65;
	margin: 0 0 .85rem;
}

.elif-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
}

.elif-consent button,
.elif-consent-manage {
	border: 2px solid var(--elif-navy);
	border-radius: 7px;
	cursor: pointer;
	font-weight: 700;
	min-height: 44px;
	padding: .65rem .9rem;
}

.elif-consent [data-elif-consent="accept"] {
	background: var(--elif-navy);
	color: #fff;
}

.elif-consent [data-elif-consent="reject"],
.elif-consent [data-elif-consent="preferences"] {
	background: #fff;
	color: var(--elif-navy);
}

.elif-consent__details {
	background: #f4f6f8;
	border-radius: 8px;
	margin: .85rem 0;
	padding: .85rem;
}

.elif-consent-manage {
	background: #fff;
	bottom: max(12px, env(safe-area-inset-bottom));
	color: var(--elif-navy);
	display: none;
	font-size: .8rem;
	left: max(12px, env(safe-area-inset-left));
	position: fixed;
	z-index: 9997;
}

.elif-consent-manage.is-visible {
	display: block;
}

body.elif-consent-open {
	overflow: hidden;
}

body.elif-consent-open .elif-wa-float {
	display: none;
}

.cmplz-cookiebanner[aria-hidden="false"] ~ * .elif-wa-float,
body.cmplz-status-deny .elif-wa-float,
body.cmplz-status-allow .elif-wa-float {
	z-index: 9998;
}

.entry-meta .author,
.entry-meta .byline,
.loop-entry .entry-meta .author,
.rank-math-breadcrumb .last {
	overflow-wrap: normal;
}

.entry-meta .author,
.entry-meta .byline {
	display: none !important;
}

.fluentform input:not([type="checkbox"]):not([type="radio"]),
.fluentform select,
.fluentform textarea,
.fluentform button,
.fluentform .ff-btn {
	min-height: 44px;
}

.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
	min-height: 20px;
	min-width: 20px;
}

.fluentform label {
	color: #263746;
	font-weight: 600;
}

.elif-legal-draft {
	background: #fff8e8;
	border: 1px solid #ead9a8;
	border-radius: 8px;
	color: #5a4a2a;
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
}

.error404 .entry-content {
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
}

@media (max-width: 1024px) {
	.site-title {
		font-size: clamp(.82rem, 2.6vw, 1.05rem) !important;
	}

	#mobile-drawer .elif-language-switch > a {
		display: inline-flex;
		margin: .75rem 1.25rem;
	}
}

@media (max-width: 600px) {
	h1 {
		font-size: clamp(2rem, 10vw, 3rem) !important;
		line-height: 1.08 !important;
	}

	h2 {
		font-size: clamp(1.55rem, 7.5vw, 2.25rem) !important;
	}

	.elif-wa-float {
		bottom: max(12px, env(safe-area-inset-bottom));
		right: max(12px, env(safe-area-inset-right));
	}

	.elif-wa-text {
		display: none;
	}

	.cmplz-cookiebanner {
		max-height: calc(100vh - 20px);
		overflow-y: auto;
	}

	.elif-consent {
		bottom: 10px;
		left: 10px;
		max-height: calc(100vh - 20px);
		width: calc(100vw - 20px);
	}

	.elif-consent__actions {
		display: grid;
		grid-template-columns: 1fr;
	}
}

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

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