/* Motto Site: tüm sayfalarda geçerli küçük stiller.
 * Üst bilgi, menü ve alt bilgi stilleri shell.css, sayfa bölümleri (iletişim formu dahil) sections.css dosyasındadır. */

/* ---------------------------------------------------------------------------
 * Küçük yardımcılar
 * motto-tablo: içinde geniş tablo olan HTML bileşenine verilir; dar ekranda sayfa yana
 *              taşmaz, tablo kendi içinde yana kaydırılır.
 * ------------------------------------------------------------------------ */
.elementor-widget.motto-tablo {
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------------------------
 * Harita
 * Elementor'un Google Haritalar bileşenine "motto-map" sınıfı verilir (proje sayfalarında kullanılıyor).
 * "motto-map--dark" eklenirse harita sitenin koyu temasına uyacak şekilde koyulaştırılır.
 * ------------------------------------------------------------------------ */
.motto-map .elementor-custom-embed {
	overflow: hidden;
	border: 3px groove var(--e-global-color-cf71eb9, #121212);
	border-radius: 50px;
}

.motto-map iframe {
	display: block;
}

.motto-map--dark iframe {
	filter: invert(0.92) hue-rotate(180deg) grayscale(0.6) contrast(0.9);
}

/* ---------------------------------------------------------------------------
 * Yasal metin sayfaları (KVKK aydınlatma metni gibi)
 * Kapsayıcıya "motto-legal" sınıfı verilir; içinde iki metin düzenleyicisi bulunur:
 *   "motto-legal__toc": içindekiler (#başlık bağlantılarından oluşan liste; okunan başlık betikle işaretlenir),
 *   "motto-prose":      metnin kendisi (h2 başlıkları kendiliğinden numaralanır).
 * ------------------------------------------------------------------------ */
.e-con.motto-legal {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 760px);
	justify-content: start;
	align-items: start;
	column-gap: clamp(48px, 8vw, 140px);
	padding: clamp(8px, 2vw, 24px) var(--motto-pad) clamp(72px, 9vw, 140px);
}

.motto-legal > .elementor-element {
	width: auto;
	max-width: 100%;
	margin: 0;
}

.motto-legal > .motto-legal__toc {
	position: sticky;
	top: calc(var(--motto-hdr-h) + 24px);
	padding-top: 8px;
	color: var(--motto-ink-3);
}

.motto-legal__toc p {
	margin: 0 0 18px;
	color: var(--motto-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.motto-legal__toc ol {
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--motto-line);
	list-style: none;
	counter-reset: motto-toc;
}

.motto-legal__toc li {
	margin: 0;
	counter-increment: motto-toc;
}

.motto-legal .motto-legal__toc a {
	display: flex;
	gap: 12px;
	margin-left: -1px;
	padding: 7px 0 7px 18px;
	border-left: 1px solid transparent;
	color: var(--motto-ink-3);
	font-size: 13.5px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.motto-legal__toc a::before {
	content: counter(motto-toc, decimal-leading-zero);
	flex: none;
	min-width: 2ch;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}

.motto-legal .motto-legal__toc a:hover,
.motto-legal .motto-legal__toc a.is-active {
	border-left-color: var(--motto-gold);
	color: var(--motto-ink);
}

.motto-legal .motto-legal__toc a.is-active::before {
	color: var(--motto-gold);
	opacity: 1;
}

.motto-prose {
	font-size: 16px;
	line-height: 1.75;
	counter-reset: motto-prose;
}

/* Elementor'un genel metin rengi bileşene doğrudan basıldığı için iki sınıfla yazılır. */
.motto-legal .motto-prose,
.motto-legal .motto-prose p,
.motto-legal .motto-prose li {
	color: rgba(255, 255, 255, 0.78);
}

.motto-prose p,
.motto-prose ul,
.motto-prose ol {
	margin: 0 0 18px;
}

.motto-legal .motto-prose h2 {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 56px 0 20px;
	padding-top: 40px;
	border-top: 1px solid var(--motto-line);
	color: var(--motto-ink);
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	counter-increment: motto-prose;
	scroll-margin-top: calc(var(--motto-hdr-h) + 16px);
}

.motto-legal .motto-prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.motto-prose h2::before {
	content: counter(motto-prose, decimal-leading-zero);
	flex: none;
	color: var(--motto-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

.motto-prose ul {
	padding: 0;
	list-style: none;
}

.motto-prose li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 26px;
}

.motto-prose li::before {
	content: "";
	position: absolute;
	top: 0.85em;
	left: 0;
	width: 12px;
	height: 1px;
	background: var(--motto-gold);
}

.motto-prose strong {
	color: var(--motto-ink);
	font-weight: 600;
}

.motto-legal .motto-prose a {
	color: var(--motto-ink);
	text-decoration: underline;
	text-decoration-color: var(--motto-gold);
	text-underline-offset: 4px;
	transition: color 0.3s ease;
}

.motto-legal .motto-prose a:hover {
	color: var(--motto-gold);
}

/* Firma bilgileri gibi kısa bilgi listesi: çerçeveli kutu. */
.motto-prose ul.motto-prose__box {
	padding: 22px 26px;
	border: 1px solid var(--motto-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.025);
}

.motto-prose ul.motto-prose__box li {
	padding-left: 0;
}

.motto-prose ul.motto-prose__box li:last-child {
	margin-bottom: 0;
}

.motto-prose ul.motto-prose__box li::before {
	display: none;
}

.motto-prose .motto-prose__date {
	margin-top: 40px;
	color: var(--motto-ink-3);
	font-size: 13px;
}

/* Çerez listesi gibi kısa tablolar; dar ekranda her satır kart olur (hücre başlığı data-baslik'ten). */
.motto-prose table.motto-prose__table {
	width: 100%;
	margin: 18px 0 8px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.55;
}

.motto-prose .motto-prose__table th,
.motto-prose .motto-prose__table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--motto-line);
	background: none;
	text-align: left;
	vertical-align: top;
}

.motto-prose .motto-prose__table th {
	color: var(--motto-ink-3);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.motto-prose .motto-prose__table code {
	color: var(--motto-gold);
	font-size: 13px;
	background: none;
}

@media (max-width: 1023px) {
	.e-con.motto-legal {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Dar ekranda içindekiler gizlenir; başlıklar zaten numaralı ve metin tek sütun. */
	.motto-legal > .motto-legal__toc {
		display: none;
	}
}

@media (max-width: 767px) {
	.motto-prose {
		font-size: 15.5px;
	}

	.motto-legal .motto-prose h2 {
		margin-top: 44px;
		padding-top: 32px;
	}

	.motto-prose ul.motto-prose__box {
		padding: 18px 20px;
	}

	.motto-prose .motto-prose__table thead {
		display: none;
	}

	.motto-prose .motto-prose__table tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--motto-line);
	}

	.motto-prose .motto-prose__table td {
		position: relative;
		display: block;
		padding: 4px 0 4px 102px;
		border: 0;
	}

	.motto-prose .motto-prose__table td::before {
		content: attr(data-baslik);
		position: absolute;
		top: 6px;
		left: 0;
		color: var(--motto-ink-3);
		font-size: 12px;
	}
}

/* ---------------------------------------------------------------------------
 * 404 ve arama sonuçları (templates/system-page.php)
 * ------------------------------------------------------------------------ */
.motto-sys {
	max-width: 1180px;
	margin: 0 auto;
	padding: calc(var(--motto-hdr-h, 88px) + clamp(48px, 8vw, 110px)) var(--motto-pad, 24px) clamp(64px, 8vw, 120px);
	color: var(--motto-ink, #fff);
}

.motto-sys .motto-sys__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	color: var(--motto-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.motto-sys .motto-sys__eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.motto-sys .motto-sys__title {
	max-width: 16ch;
	margin: 0;
	color: var(--motto-ink, #fff);
	font-size: clamp(36px, 5.4vw, 72px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.motto-sys--search .motto-sys__title {
	max-width: none;
	font-size: clamp(30px, 4vw, 54px);
}

.motto-sys .motto-sys__title em {
	color: var(--motto-gold);
	font-style: normal;
}

.motto-sys .motto-sys__text {
	max-width: 56ch;
	margin: 24px 0 0;
	color: var(--motto-ink-2);
	font-size: 17px;
	line-height: 1.65;
}

.motto-sys .motto-sys__search {
	display: flex;
	max-width: 560px;
	margin-top: 36px;
	border: 1px solid var(--motto-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.3s ease;
}

.motto-sys .motto-sys__search:focus-within {
	border-color: var(--motto-gold);
}

.motto-sys .motto-sys__search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 54px;
	padding: 0 24px;
	border: 0;
	background: none;
	color: var(--motto-ink, #fff);
	font: inherit;
	font-size: 15px;
	outline: none;
}

.motto-sys .motto-sys__search button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	height: 46px;
	margin: 4px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--motto-gold);
	color: #121212;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
}

.motto-sys .motto-sys__search button:hover,
.motto-sys .motto-sys__search button:focus-visible {
	background: #fff;
	color: #121212;
}

.motto-sys .motto-sys__search .motto-icon {
	width: 16px;
	height: 16px;
}

.motto-sys .motto-sys__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: clamp(48px, 7vw, 88px);
}

.motto-sys .motto-sys__link,
.motto-sys .motto-sys__result a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 56px 24px 26px;
	border: 1px solid var(--motto-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.025);
	color: var(--motto-ink, #fff);
	text-decoration: none;
	transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s var(--motto-ease-out);
}

.motto-sys .motto-sys__link:hover,
.motto-sys .motto-sys__link:focus-visible,
.motto-sys .motto-sys__result a:hover,
.motto-sys .motto-sys__result a:focus-visible {
	border-color: rgba(201, 160, 80, 0.6);
	background: rgba(201, 160, 80, 0.06);
	color: var(--motto-ink, #fff);
	transform: translateY(-2px);
}

.motto-sys .motto-sys__link .motto-icon {
	position: absolute;
	top: 24px;
	right: 22px;
	width: 18px;
	height: 18px;
	color: var(--motto-gold);
}

.motto-sys .motto-sys__name {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.motto-sys .motto-sys__excerpt {
	color: var(--motto-ink-3);
	font-size: 14px;
	line-height: 1.55;
}

.motto-sys .motto-sys__groups {
	margin-top: 44px;
}

.motto-sys .motto-sys__groups ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.motto-sys .motto-sys__groups a {
	display: inline-flex;
	padding: 10px 18px;
	border: 1px solid var(--motto-line);
	border-radius: 999px;
	color: var(--motto-ink-2);
	font-size: 14px;
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.motto-sys .motto-sys__groups a:hover,
.motto-sys .motto-sys__groups a:focus-visible {
	border-color: var(--motto-gold);
	color: var(--motto-gold);
}

.motto-sys .motto-sys__results {
	display: grid;
	gap: 12px;
	margin: clamp(40px, 6vw, 72px) 0 0;
	padding: 0;
	list-style: none;
}

.motto-sys .motto-sys__result a {
	padding-right: 26px;
}

.motto-sys .motto-sys__type {
	color: var(--motto-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.motto-sys .motto-sys__pages ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.motto-sys .motto-sys__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--motto-line);
	border-radius: 999px;
	color: var(--motto-ink-2);
	font-size: 14px;
	text-decoration: none;
}

.motto-sys .motto-sys__pages .page-numbers.current,
.motto-sys .motto-sys__pages a.page-numbers:hover {
	border-color: var(--motto-gold);
	color: var(--motto-gold);
}

.motto-sys .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.motto-sys .motto-sys__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.motto-sys .motto-sys__links {
		grid-template-columns: minmax(0, 1fr);
	}

	.motto-sys .motto-sys__search button {
		padding: 0 16px;
	}
}