/*
 * Parselyum: site iskeleti, üst/alt alan, blog ve yazı şablonları.
 * Renk ve yazı değişkenleri blocks.css içindedir.
 */

/* ---------- Temel ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 1.5rem;
}

body {
	margin: 0;
	overflow-x: clip;
}

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

figure {
	margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Açılış (oturumun ilk sayfası; sınıfı ve işaretlemeyi inc/setup.php ekler): beyaz örtüde
 * özgün amblem ve gerçek metinle yatay logo düzeni. Ölçüler kılavuzun yatay kilidinden alınır
 * (--e = amblem kenarı = 4x): amblem ile yazı arası x, marka adı Inter 800, slogan Inter 400
 * ve geniş harf aralığı, ikisi aynı genişlikte. Amblem belirir, yazılar maskeyle sırayla girer;
 * ~1,35 sn'de söner, örtü 2 sn'de kaybolur. Örtü tıklamayı geçirir; sınıf bitişte kaldırılır.
 */
.p-intro-screen {
	position: fixed;
	inset: 0;
	z-index: 10000;
	place-items: center;
	background: var(--p-white);
	pointer-events: none;
	animation: p-intro-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards;
}

.p-intro .p-intro-screen {
	display: grid;
}

.p-intro__logo {
	--e: min(10.25rem, (100vw - 5rem) / 3.149);
	position: relative;
	width: calc(var(--e) * 3.149);
	height: var(--e);
	color: var(--p-ink);
	line-height: 1;
}

.p-intro__emblem {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--e);
	height: var(--e);
	animation:
		p-intro-emblem 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s both,
		p-intro-leave 0.35s cubic-bezier(0.4, 0, 1, 1) 1.4s forwards;
}

/* Maske: satır kutusunun dışı kesilir; aksanlara pay bırakılır (padding 0.2em). */
.p-intro__line {
	position: absolute;
	left: calc(var(--e) * 1.2543);
	display: block;
	overflow: hidden;
	padding-block: 0.2em 0.12em;
	white-space: nowrap;
	animation: p-intro-leave 0.35s cubic-bezier(0.4, 0, 1, 1) 1.3s forwards;
}

.p-intro__line > span {
	display: block;
	animation: p-intro-rise 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) 0.3s both;
}

/* Kutu üstü = büyük harf üstü - 0.1363em (Inter, satır yüksekliği 1) - üst pay. */
.p-intro__line--name {
	top: calc(var(--e) * 0.2518 - var(--e) * 0.3157 * 0.3363);
	margin-left: -0.04em;
	font-size: calc(var(--e) * 0.3157);
	font-weight: 800;
	letter-spacing: 0.006em;
}

.p-intro__line--slogan {
	top: calc(var(--e) * 0.6688 - var(--e) * 0.108 * 0.3363);
	margin-left: -0.03em;
	font-size: calc(var(--e) * 0.108);
	font-weight: 400;
	letter-spacing: 0.375em;
	animation-delay: 1.36s;
}

.p-intro__line--slogan > span {
	animation-delay: 0.48s;
}

@keyframes p-intro-emblem {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
}

@keyframes p-intro-rise {
	from {
		transform: translateY(140%);
	}
}

@keyframes p-intro-leave {
	to {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@keyframes p-intro-out {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--p-ink);
	color: var(--p-white);
	font-size: 0.9375rem;
	font-weight: 560;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	color: var(--p-white);
	transform: none;
}

.site-main {
	padding-bottom: var(--p-section);
}

.site-main:focus {
	outline: none;
}

/* Sayfa genişliği: tüm üst düzey alanlar aynı kenarlara hizalanır. */
.site-header__inner,
.site-footer__inner,
.footer-cta__inner,
.page-header {
	width: min(var(--p-wrap), 100% - 2 * var(--p-gutter));
	margin-inline: auto;
}

/* ---------- Üst alan ---------- */

.site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--p-line);
	background: var(--p-white);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 1.5rem;
	min-height: 6.75rem;
	padding-block: 1.125rem;
}

.site-logo {
	display: inline-flex;
	flex: none;
	line-height: 0;
}

/* Logo yüksekliği amblem yüksekliğidir (4x); üst ve alt boşluk en az x = yüksekliğin dörtte biri. */
.site-logo img,
.site-logo .custom-logo {
	width: auto;
	height: 4.5rem;
}

.site-logo .custom-logo-link {
	display: inline-flex;
}

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

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-block;
	padding-block: 0.5rem;
	border-bottom: 1px solid transparent;
	color: var(--p-graphite);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list a:hover {
	color: var(--p-ink);
	border-bottom-color: var(--p-line-strong);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_parent > a,
.site-nav__list a[aria-current="page"] {
	color: var(--p-ink);
	border-bottom-color: var(--p-blue);
}

.site-nav__cta.button {
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	margin-right: -0.5rem;
	padding: 0.5rem;
	border: 0;
	background: none;
	color: var(--p-ink);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 520;
	cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before {
	display: block;
	width: 1.125rem;
	height: 1px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.nav-toggle__icon {
	position: relative;
	margin-top: -5px;
}

.nav-toggle__icon::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
	margin-top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
	top: 0;
	transform: rotate(-90deg);
}

/*
 * Instagram: menünün solunda tek simge. Kullanıcı adı simgenin solundaki boş alana konumlanır
 * (yer kaplamaz); main.js yer varsa ara ara "is-revealed" ekler: ad soldan maskeyle açılır,
 * birkaç saniye kalır, aynı yoldan kapanır. Hareket azaltılmışsa ad yer varsa sabit görünür.
 */
.site-instagram {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0 -0.625rem 0 auto;
	color: var(--p-graphite);
	text-decoration: none;
}

.site-instagram:hover,
.site-instagram:focus-visible {
	color: var(--p-ink);
}

.site-instagram__icon {
	display: block;
	flex: none;
}

.site-instagram__handle {
	position: absolute;
	top: 50%;
	right: calc(100% - 0.25rem);
	color: var(--p-muted);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	/* Dikey pay: satır yüksekliği 1 olduğu için p, y gibi harflerin alt uzantısı kesilmesin. */
	clip-path: inset(-0.3em 0 -0.3em 100%);
	transform: translate(0.5rem, -50%);
	transition:
		clip-path 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
		opacity 0.5s ease,
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-instagram.is-revealed .site-instagram__handle,
.site-instagram.has-room:is(:hover, :focus-visible) .site-instagram__handle {
	opacity: 1;
	clip-path: inset(-0.3em -0.25rem -0.3em 0);
	transform: translate(0, -50%);
}

.site-nav__social {
	display: none;
}

/*
 * Sabit WhatsApp düğmesi: sağ altta, menünün ve karartmanın altında (z 30 < 40). Alt alan ya da
 * gönder düğmesi ekrana gelince main.js "is-away" ekler, düğme çekilir ve tıklama almaz.
 */
.wa-float {
	--wa-size: 3.5rem;
	position: fixed;
	right: calc(1.25rem + env(safe-area-inset-right, 0px));
	bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	z-index: 30;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wa-size);
	height: var(--wa-size);
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(17, 24, 39, 0.45);
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, visibility 0s linear 0s;
}

.wa-float:hover {
	color: #fff;
	transform: translateY(-2px);
}

.wa-float:focus-visible {
	outline: 2px solid var(--p-ink);
	outline-offset: 3px;
}

.wa-float__icon {
	display: block;
}

/* Kısa metin yalnızca geniş ekranda, üzerine gelince ya da odaklanınca düğmenin solunda açılır. */
.wa-float__label {
	position: absolute;
	top: 50%;
	right: calc(100% + 0.625rem);
	padding: 0.5rem 0.75rem;
	border-radius: var(--p-radius);
	background: var(--p-ink);
	color: var(--p-white);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(0.375rem, -50%);
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.wa-float:is(:hover, :focus-visible) .wa-float__label {
	opacity: 1;
	transform: translate(0, -50%);
}

.wa-float.is-away,
.nav-open .wa-float {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(1rem);
	transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
}

@media (max-width: 760px) {
	.wa-float {
		--wa-size: 3.25rem;
		right: calc(1rem + env(safe-area-inset-right, 0px));
		bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	}

	.wa-float__icon {
		width: 26px;
		height: 26px;
	}

	.wa-float__label {
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
	}
}

@keyframes p-handle-in {
	from {
		opacity: 0;
		clip-path: inset(-0.3em 100% -0.3em 0);
		transform: translateX(-0.375rem);
	}

	to {
		opacity: 1;
		clip-path: inset(-0.3em -0.25rem -0.3em 0);
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-instagram__handle,
	.wa-float,
	.wa-float__label {
		transition: none;
	}
}

@media (max-width: 1040px) {
	.site-header__inner {
		min-height: 5.5rem;
		padding-block: 0.9375rem;
		column-gap: 0.5rem;
	}

	/* Dar ekranda yalnızca simge; kullanıcı adı menü panelinde yazılı. */
	.site-instagram {
		width: 2.75rem;
		height: 2.75rem;
		margin-right: 0;
	}

	.site-instagram__handle {
		display: none;
	}

	.js .site-nav__social {
		display: inline-flex;
		align-self: flex-start;
		align-items: center;
		gap: 0.625rem;
		min-height: 2.75rem;
		color: var(--p-graphite);
		font-size: 0.9375rem;
		font-weight: 500;
		text-decoration: none;
	}

	.site-nav__social-handle {
		display: inline-block;
	}

	/* Menü açılınca kullanıcı adı soldan maskeyle bir kez açılır. */
	@media (prefers-reduced-motion: no-preference) {
		.js .site-nav.is-open .site-nav__social-handle {
			animation: p-handle-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
		}
	}

	.site-logo img,
	.site-logo .custom-logo {
		height: 3.625rem;
	}

	.nav-toggle:not([hidden]) {
		display: inline-flex;
	}

	/* JS yoksa menü logonun altında açık durur. */
	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding-block: 0.5rem 1rem;
	}

	/*
	 * Betik varken menü, üst alanın altında sayfanın üstüne açılan bir paneldir; sayfayı itmez.
	 * Kısa bir aşağı kayma ve saydamlıkla açılır, arkadaki sayfa hafifçe karartılır (.nav-backdrop).
	 */
	.js .site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 5.5rem);
		max-height: calc(100dvh - 5.5rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0.5rem max(var(--p-gutter), (100% - var(--p-wrap)) / 2) 1.5rem;
		border-bottom: 1px solid var(--p-line);
		background: var(--p-white);
		box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(17, 24, 39, 0.3);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-0.5rem);
		transition:
			opacity 0.24s ease,
			transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1),
			visibility 0s linear 0.24s;
	}

	.js .site-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition-delay: 0s;
	}

	/* Kapanırken solan katman tıklamaları tutmaz; görünmez bir katman sayfanın önünde kalmaz. */
	.nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 40;
		background: rgba(17, 24, 39, 0.28);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.24s ease, visibility 0s linear 0.24s;
	}

	.nav-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}

	/* Menü açıkken arkadaki sayfa kaymaz. */
	.nav-open,
	.nav-open body {
		overflow: hidden;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--p-line);
	}

	.site-nav__list a {
		display: block;
		padding-block: 0.875rem;
		border-bottom: 1px solid var(--p-line);
		font-size: 1.0625rem;
	}

	.site-nav__list a:hover {
		border-bottom-color: var(--p-line);
	}

	.site-nav__list .current-menu-item > a,
	.site-nav__list .current_page_item > a,
	.site-nav__list .current-menu-ancestor > a,
	.site-nav__list .current_page_parent > a,
	.site-nav__list a[aria-current="page"] {
		border-bottom-color: var(--p-line);
		box-shadow: inset 2px 0 0 var(--p-blue);
		padding-left: 0.875rem;
	}

	.site-nav__cta.button {
		min-height: 3rem;
	}
}

/* ---------- Sayfa başlığı ---------- */

.page-header {
	padding-top: clamp(3rem, 8vw, 6.5rem);
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-header__title {
	max-width: 18ch;
	margin: 0;
}

.page-header__parent {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.page-header__parent a {
	color: var(--p-muted);
	text-decoration: none;
}

.page-header__parent a:hover {
	color: var(--p-blue);
	text-decoration: underline;
}

.page-header__description {
	max-width: 38rem;
	margin-top: 1.25rem;
	color: var(--p-muted);
	font-size: 1.125rem;
}

.page-header__description > :first-child {
	margin-top: 0;
}

.page-header__description > :last-child {
	margin-bottom: 0;
}

/* Blog, Hakkımızda ve Hizmetler girişi: solda başlık ve kısa açıklama, sağda şehir çizimi
   (template-parts/*-city.php). Dar ekranda metin üstte, çizim altta. */
.blog-intro,
.page-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 29rem);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: end;
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.blog-intro__lead,
.page-intro__lead {
	margin-top: 1rem;
}

.blog-intro__lead > *,
.page-intro__lead > * {
	margin: 0;
}

.blog-intro__lead > * + *,
.page-intro__lead > * + * {
	margin-top: 0.75rem;
}

.blog-intro__lead .p-lead,
.page-intro__lead .p-lead {
	max-width: 34rem;
	color: var(--p-muted);
	font-size: 1.125rem;
	letter-spacing: 0;
}

.blog-intro__art,
.page-intro__art {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Çizim renkleri: yalnızca beyaz, açık gri ve koyu gri; mavi yok. */
.p-city path,
.p-city rect,
.p-city circle {
	stroke-linejoin: round;
	stroke-linecap: round;
}

.p-city .c-wall,
.p-city .c-tower {
	fill: var(--p-white);
	stroke: #9aa3b0;
	stroke-width: 1;
}

.p-city .c-side {
	fill: #e9ecf0;
	stroke: #9aa3b0;
	stroke-width: 1;
}

.p-city .c-tower-side {
	fill: #eef1f4;
	stroke: #aab2bd;
	stroke-width: 1;
}

.p-city .c-tower {
	stroke: #aab2bd;
}

.p-city .c-roof {
	fill: #f4f5f7;
	stroke: #9aa3b0;
	stroke-width: 1;
}

.p-city .c-roof-dark {
	fill: #dde1e7;
	stroke: #9aa3b0;
	stroke-width: 1;
}

.p-city .c-grid {
	fill: none;
	stroke: #dde1e7;
	stroke-width: 0.75;
}

.p-city .c-win {
	fill: #eef1f5;
	stroke: #aab2bd;
	stroke-width: 0.75;
}

.p-city .c-door {
	fill: #dde1e7;
	stroke: #9aa3b0;
	stroke-width: 0.75;
}

.p-city .c-balcony {
	fill: var(--p-white);
	stroke: #aab2bd;
	stroke-width: 0.75;
}

.p-city .c-edge,
.p-city .c-floor {
	fill: none;
	stroke: #b6bdc7;
	stroke-width: 0.75;
}

/* Koyu gri vurgu: birkaç pencere, kapı, kule şeridi ve lamba başlığı. */
.p-city .c-accent {
	fill: #6b7380;
}

.p-city .c-walk {
	fill: #f4f5f7;
}

.p-city .c-road {
	fill: #eceff3;
}

.p-city .c-ground {
	fill: none;
	stroke: #8c96a3;
	stroke-width: 1.25;
}

.p-city .c-curb {
	fill: none;
	stroke: #c5cbd3;
	stroke-width: 1;
}

.p-city .c-lane {
	fill: none;
	stroke: var(--p-white);
	stroke-width: 1.5;
}

.p-city .c-joint {
	fill: none;
	stroke: #e3e7ec;
	stroke-width: 0.75;
}

.p-city .c-zebra {
	fill: var(--p-white);
	stroke: #d3d8df;
	stroke-width: 0.5;
}

.p-city .c-lamp {
	fill: none;
	stroke: #8c96a3;
	stroke-width: 1.1;
}

.p-city .c-trunk {
	fill: none;
	stroke: #9aa3b0;
	stroke-width: 1.25;
}

.p-city .c-branch {
	fill: none;
	stroke: #aab2bd;
	stroke-width: 0.9;
}

.p-city .c-tree {
	fill: #e3e7ec;
	stroke: #9aa3b0;
	stroke-width: 1;
}

@media (max-width: 900px) {
	.blog-intro,
	.page-intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.blog-intro__art,
	.page-intro__art {
		max-width: 23rem;
	}
}

/* ---------- İçerik ızgarası ---------- */

.p-content {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--p-gutter), 1fr)
		[wide-start] minmax(0, var(--p-wrap))
		[wide-end] minmax(var(--p-gutter), 1fr)
		[full-end];
}

.p-content > * {
	grid-column: wide;
	min-width: 0;
	margin-block: 0;
}

.p-content > * + * {
	margin-top: 1.25rem;
}

.p-content > :where(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, .wp-block-quote, .wp-block-buttons) {
	max-width: var(--p-text);
}

.p-content > .alignfull {
	grid-column: full;
}

/* Hukuki metin sayfası (KVKK): dar okuma sütunu (~800 px), sıkı başlık. */
.page-entry--legal {
	--p-legal-w: 50rem;
}

.page-entry--legal .page-header {
	width: min(var(--p-legal-w), 100% - 2 * var(--p-gutter));
	padding-top: clamp(2.5rem, 5vw, 4.25rem);
	padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.page-entry--legal .page-header__title {
	max-width: none;
	font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
	line-height: 1.08;
}

.page-entry--legal .p-content {
	grid-template-columns:
		[full-start] minmax(var(--p-gutter), 1fr)
		[wide-start] minmax(0, var(--p-legal-w))
		[wide-end] minmax(var(--p-gutter), 1fr)
		[full-end];
	padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.page-entry--legal .p-content > * {
	max-width: none;
}

.page-entry--legal .p-content > .p-lead {
	max-width: 42rem;
}

.page-entry--legal .p-content > .p-lead + .p-legal {
	margin-top: clamp(2rem, 4vw, 2.75rem);
}

.page-entry--legal .p-content > .p-legal + * {
	margin-top: 2rem;
}

/* Bölümler arası boşluk */
.p-content > * + :where(.p-split, .p-services, .p-service-list, .p-contact, .p-timeline, .p-skyline) {
	margin-top: var(--p-section);
}

.p-content > .p-split + .p-split {
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

.p-content > .p-lead + * {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.p-content > .p-lead + .p-service-list {
	margin-top: clamp(3rem, 6vw, 5rem);
}

/* Yazı gövdesi: okunur sütun, geniş görseller için daha geniş alan. */
.p-content--post {
	--p-side: calc((var(--p-wrap) - var(--p-text)) / 2);
	grid-template-columns:
		[full-start] minmax(var(--p-gutter), 1fr)
		[wide-start] minmax(0, var(--p-side))
		[content-start] min(var(--p-text), 100% - 2 * var(--p-gutter))
		[content-end] minmax(0, var(--p-side))
		[wide-end] minmax(var(--p-gutter), 1fr)
		[full-end];
	font-size: 1.125rem;
	line-height: 1.75;
}

.p-content--post > * {
	grid-column: content;
}

.p-content--post > .alignwide {
	grid-column: wide;
}

.p-content--post > .alignfull {
	grid-column: full;
}

.p-content--post > * + * {
	margin-top: 1.5rem;
}

.p-content--post > * + :where(h2, h3, h4) {
	margin-top: 2.75rem;
}

.p-content--post > :where(h2, h3, h4) + * {
	margin-top: 1rem;
}

.p-content--post h2 {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.p-content--post h3 {
	font-size: 1.3125rem;
}

.p-content--post :where(ul, ol) {
	padding-left: 1.25rem;
}

.p-content--post li + li {
	margin-top: 0.5rem;
}

.p-content--post li::marker {
	color: var(--p-blue);
}

.p-content--post img {
	border-radius: var(--p-radius);
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.9375rem;
}

/* ---------- Blog listesi ---------- */

.blog-list {
	width: min(var(--p-wrap), 100% - 2 * var(--p-gutter));
	margin-inline: auto;
}

.category-nav {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--p-line);
}

.category-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-nav a {
	display: inline-block;
	margin-bottom: -1px;
	padding-block: 0.75rem;
	border-bottom: 1px solid transparent;
	color: var(--p-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.category-nav a:hover {
	color: var(--p-ink);
}

.category-nav a[aria-current="page"] {
	border-bottom-color: var(--p-blue);
	color: var(--p-ink);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--p-line);
}

.post-card__media {
	display: block;
	order: -1;
	margin: -1.5rem 0 1.5rem;
	overflow: hidden;
	border-radius: var(--p-radius);
	background: #f3f4f6;
	aspect-ratio: 3 / 2;
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card:has(.post-card__media) {
	padding-top: 0;
	border-top: 0;
}

.post-card__meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1rem;
	color: var(--p-muted);
	font-size: 0.875rem;
}

.post-card__category,
.entry-meta__category {
	font-weight: 520;
	text-decoration: none;
}

.post-card__category:hover,
.entry-meta__category:hover {
	text-decoration: underline;
}

.post-card__title {
	margin: 0.75rem 0 0;
	font-size: 1.3125rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.post-card__title a {
	color: var(--p-ink);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--p-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.post-card__excerpt {
	margin: 0.75rem 0 0;
	color: var(--p-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Sayfalama */
.pagination {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--p-line);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--p-radius);
	color: var(--p-graphite);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--p-line-strong);
	color: var(--p-ink);
}

.pagination .page-numbers.current {
	border-color: var(--p-ink);
	color: var(--p-ink);
	font-weight: 600;
}

.pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 0.25rem;
}

.pagination .prev {
	margin-right: auto;
}

.pagination .next {
	margin-left: auto;
}

/* Boş durum: sade bir alan; yazı gelince yerini listeye bırakır. */
.blog-empty {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.25rem 1.25rem;
	align-items: start;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius);
	background: var(--p-white);
}

.blog-empty > :not(.blog-empty__icon) {
	grid-column: 2;
	max-width: 34rem;
}

.blog-empty .button-row {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
}

.blog-empty__icon {
	grid-row: 1 / span 2;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.625rem;
	border-radius: var(--p-radius);
	background: rgba(37, 99, 235, 0.07);
	color: var(--p-blue);
}

.blog-empty__title {
	margin: 0.25rem 0 0;
	color: var(--p-ink);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.blog-empty__text {
	margin: 0.5rem 0 0;
	color: var(--p-muted);
}

.blog-empty .button-row {
	margin: 0 0 0 1rem;
}

@media (max-width: 720px) {
	.blog-empty {
		grid-template-columns: minmax(0, 1fr);
	}

	.blog-empty > :not(.blog-empty__icon),
	.blog-empty .button-row {
		grid-column: 1;
		grid-row: auto;
	}

	.blog-empty .button-row {
		margin: 1.5rem 0 0;
	}

	.blog-empty__icon {
		grid-row: auto;
		margin-bottom: 0.75rem;
	}
}

/* ---------- Tek yazı ---------- */

.entry-header,
.entry-footer {
	width: min(var(--p-text), 100% - 2 * var(--p-gutter));
	margin-inline: auto;
}

.entry-header {
	padding-top: clamp(3rem, 8vw, 6rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.entry-header__title {
	margin: 0;
	font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

.entry-header .entry-meta {
	margin-top: 1.25rem;
}

.entry-media {
	width: min(56rem, 100% - 2 * var(--p-gutter));
	margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.entry-media img {
	display: block;
	width: 100%;
	border-radius: var(--p-radius);
}

.entry-footer {
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

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

.tag-list a {
	display: inline-block;
	padding: 0.3rem 0.625rem;
	border: 1px solid var(--p-line-strong);
	border-radius: var(--p-radius);
	color: var(--p-graphite);
	font-size: 0.8125rem;
	text-decoration: none;
}

.tag-list a:hover {
	border-color: var(--p-blue);
	color: var(--p-blue);
}

.post-nav .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	border-top: 1px solid var(--p-line);
}

.post-nav .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-nav a {
	display: block;
	padding-top: 1.25rem;
	text-decoration: none;
}

.post-nav__label {
	display: block;
	color: var(--p-muted);
	font-size: 0.8125rem;
}

.post-nav__title {
	display: block;
	margin-top: 0.25rem;
	color: var(--p-ink);
	font-weight: 560;
	line-height: 1.4;
}

.post-nav a:hover .post-nav__title {
	color: var(--p-blue);
	text-decoration: underline;
}

.entry-footer__back {
	margin: 2.5rem 0 0;
	font-size: 0.9375rem;
}

/* ---------- Başvuru çağrısı (alt alanın üstü) ---------- */

.footer-cta {
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Tek parça açık mavi alan: arkada soluk harita kesiti, solda başlık, sağda düğme. */
.footer-cta__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.5rem, 4.5vw, 3.75rem);
	border-radius: var(--p-radius);
	background: #eef3fd;
	overflow: hidden;
	isolation: isolate;
}

.footer-cta__map {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	max-width: none;
	-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 10%, #000 62%);
	mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 10%, #000 62%);
}

/* Sıradüzen: yollar belirgin, parsel sınırları ince ve açık, tek vurgulu alan mavi. */
.footer-cta__map .p-map__road {
	fill: rgba(255, 255, 255, 0.85);
}

.footer-cta__map .p-map__roads path {
	stroke: #a1b4e0;
	stroke-width: 1.25;
}

.footer-cta__map .p-map__lots path {
	stroke: #cad7f2;
	stroke-width: 0.9;
}

.footer-cta__map .p-map__contours path {
	stroke: #dbe4f7;
}

.footer-cta__map .p-map__trace {
	stroke: var(--p-blue);
	stroke-width: 2;
	opacity: 0.85;
}

.footer-cta__map .p-map__plot {
	fill: rgba(37, 99, 235, 0.1);
	stroke-width: 1.75;
}

/*
 * Mavi iz yol boyunca yavaşça ilerler, ardından vurgulu alanın sınırı çizilir ve dolgusu belirir;
 * kısa bir duruştan sonra aynı hareket geriye oynar (5,5 + 5,5 sn). Sönme, sıçrama ya da baştan başlama
 * olmaz: geri oynatma ileri oynatmanın birebir tersidir. Yalnızca SVG çizgileri hareket eder.
 * Bant ekranda değilken durur (main.js "is-playing" sınıfı). Betik yoksa ya da hareket azaltılmışsa çizim sabittir.
 */
@media (prefers-reduced-motion: no-preference) {
	.js .footer-cta__map .p-map__trace,
	.js .footer-cta__map .p-map__plot {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
		animation: p-band-trace 5.5s linear infinite alternate paused;
	}

	.js .footer-cta__map .p-map__plot {
		fill-opacity: 0;
		animation-name: p-band-plot;
	}

	.js .footer-cta.is-playing .p-map__trace,
	.js .footer-cta.is-playing .p-map__plot {
		animation-play-state: running;
	}
}

@keyframes p-band-trace {
	0%,
	8% {
		stroke-dashoffset: 1;
		animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
	}

	50%,
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes p-band-plot {
	0%,
	50% {
		stroke-dashoffset: 1;
		fill-opacity: 0;
		animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
	}

	76% {
		stroke-dashoffset: 0;
		fill-opacity: 0;
		animation-timing-function: ease-out;
	}

	88%,
	100% {
		stroke-dashoffset: 0;
		fill-opacity: 1;
	}
}

.footer-cta__title {
	max-width: 22ch;
	margin: 0;
	color: var(--p-ink);
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	font-weight: 560;
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.footer-cta__action {
	flex: none;
}

.footer-cta__button {
	gap: 0.75rem;
	min-height: 3.25rem;
	padding-inline: 1.75rem 1.5rem;
}

.footer-cta__arrow {
	flex: none;
}

@media (max-width: 720px) {
	.footer-cta__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1.75rem;
		padding-top: 8.5rem;
	}

	/* Dar ekranda harita başlığın arkasına değil, üstüne şerit olarak yerleşir. */
	.footer-cta__map {
		bottom: auto;
		height: 9rem;
		-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
		mask-image: linear-gradient(to bottom, #000 60%, transparent);
	}

	.footer-cta__button {
		width: 100%;
		justify-content: space-between;
	}
}

/* ---------- Alt alan ---------- */

/* Marka mavisi zemin; metinlerin tamamı beyaz (AA kontrast 5.17:1), sıradüzen boyut ve ağırlıkla kurulur. */
.site-footer {
	--p-footer-line: rgba(255, 255, 255, 0.2);
	background: var(--p-blue);
	color: var(--p-white);
	font-size: 0.9375rem;
}

.site-footer :focus-visible {
	outline-color: var(--p-white);
}

.site-footer__inner {
	padding-block: clamp(2.75rem, 5vw, 3.75rem) 1.25rem;
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

/* Logo değiştirilmez: amblem mavi olduğu için beyaz plakada, çevresinde en az x (amblem genişliğinin dörtte biri) boşlukla durur. */
.site-footer__plate {
	padding: 1.0625rem 1.4375rem;
	border-radius: var(--p-radius);
	background: var(--p-white);
	line-height: 0;
}

.site-footer .site-logo img,
.site-footer .site-logo .custom-logo {
	height: 3.625rem;
}

@media (max-width: 560px) {
	.site-footer__plate {
		padding: 0.9375rem 1.25rem;
	}

	.site-footer .site-logo img,
	.site-footer .site-logo .custom-logo {
		height: 3.1875rem;
	}
}

.site-footer__text {
	max-width: 24rem;
	margin: 0;
	line-height: 1.6;
}

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: 0.75rem 1.5rem;
	align-content: start;
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--p-white);
	text-decoration: none;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
}

.site-footer__list a:hover,
.site-footer__list a[aria-current="page"],
.site-footer__legal:hover,
.site-footer__legal[aria-current="page"] {
	text-decoration: underline;
}

.site-footer__contact {
	gap: 1.25rem;
}

.site-footer__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 560;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--p-footer-line);
	font-size: 0.8125rem;
}

.site-footer__copy {
	margin: 0 auto 0 0;
}

/* Başa dön: yalnızca simge; adı ekran okuyucuya yazılır. */
.site-footer__top {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.625rem;
	border-radius: var(--p-radius);
	transition: background-color 0.2s ease;
}

.site-footer__top:hover {
	background: rgba(255, 255, 255, 0.14);
}

/* Sosyal simgeler: 22 px çizgi simgeler, 44 px tıklama alanı; üzerine gelince hafif saydam zemin. */
.social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 0 -0.6875rem;
	padding: 0;
	list-style: none;
}

.social-icons a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--p-radius);
	color: var(--p-graphite);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
	background: rgba(37, 99, 235, 0.08);
	color: var(--p-blue);
}

.social-icons svg {
	width: 1.375rem;
	height: 1.375rem;
}

.site-footer .social-icons a {
	color: var(--p-white);
	opacity: 0.9;
}

.site-footer .social-icons a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--p-white);
	opacity: 1;
}

/* Dar ekran: marka, menü ve iletişim alt alta; menü ile iletişim tablette yan yana. */
@media (max-width: 960px) {
	.site-footer__main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

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

@media (max-width: 560px) {
	.site-footer__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.site-footer__nav {
		padding-top: 1.75rem;
		border-top: 1px solid var(--p-footer-line);
	}

	.site-footer__copy {
		flex-basis: 100%;
	}

	.site-footer__top {
		margin-left: auto;
	}
}

/* ---------- Duyarlı ---------- */

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

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

	.post-nav .nav-links {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.post-nav .nav-next {
		grid-column: 1;
		text-align: left;
	}
}
