/*
Theme Name: Perflab
Theme URI: https://perflab.co
Author: Perflab
Author URI: https://perflab.co
Description: Perflab ajansı için premium, monokrom, video hero'lu tek sayfa tema. Tüm renkler, yazı tipleri, metinler, bölümler ve animasyonlar Görünüm → Özelleştir panelinden yönetilir.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perflab
Tags: one-column, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   Sıfırlama ve temel
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.pl-body {
	font-family: var(--font-body);
	background: var(--ink);
	color: var(--ivory);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--graphite); color: var(--ivory); }

.pl-container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

.pl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ivory);
	color: var(--ink);
	padding: 10px 18px;
	border-radius: 8px;
}
.pl-skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

/* ==========================================================================
   Tipografi yardımcıları
   ========================================================================== */

.pl-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--eyebrow-tracking);
	color: var(--steel);
}
.pl-light .pl-eyebrow { color: var(--graphite); }
.pl-dots { width: 22px; height: 6px; flex: none; }

.pl-section-title {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	font-size: var(--h2-size);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-top: 20px;
	max-width: 640px;
}
.pl-section-sub {
	margin-top: 16px;
	max-width: 560px;
	font-size: 16px;
	color: var(--steel);
}
.pl-light .pl-section-sub { color: rgba(43, 47, 54, 0.8); }

/* ==========================================================================
   Bölüm zeminleri
   ========================================================================== */

.pl-section { padding-block: var(--section-pad); }
.pl-dark { background: var(--ink); color: var(--ivory); }
.pl-light { background: var(--ivory); color: var(--ink); }
.pl-light + .pl-light { border-top: 1px solid rgba(11, 13, 16, 0.1); }
.pl-dark + .pl-dark { border-top: 1px solid rgba(138, 144, 153, 0.2); }

/* ==========================================================================
   Butonlar
   ========================================================================== */

.pl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--btn-radius);
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pl-btn:hover { transform: scale(1.03); }
.pl-icon-sm { width: 16px; height: 16px; flex: none; }

.pl-btn-light { background: var(--ivory); color: var(--ink); }
.pl-btn-dark { background: var(--ink); color: var(--ivory); }
.pl-btn-outline { border: 1px solid rgba(11, 13, 16, 0.2); color: var(--ink); }
.pl-btn-outline:hover { background: var(--ink); color: var(--ivory); }

.pl-btn-glass {
	background: rgba(11, 13, 16, 0.35);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(245, 246, 235, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	color: var(--ivory);
	font-weight: 500;
}
.pl-btn-glass:hover { background: rgba(245, 246, 235, 0.15); }

/* ==========================================================================
   Navbar
   ========================================================================== */

.pl-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	padding: 16px;
}
.pl-header.is-sticky { position: fixed; }

/* WordPress admin çubuğu açıkken menüyü aşağı kaydır */
body.admin-bar .pl-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .pl-header { top: 46px; }
}

.pl-nav {
	max-width: var(--container);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-radius: 18px;
	padding: 12px 20px;
	border: 1px solid transparent;
	transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.pl-header.is-scrolled .pl-nav,
.pl-header.is-open .pl-nav {
	background: rgba(11, 13, 16, var(--nav-bg-alpha));
	-webkit-backdrop-filter: blur(var(--nav-blur));
	backdrop-filter: blur(var(--nav-blur));
	border-color: rgba(245, 246, 235, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(11, 13, 16, 0.25);
}

.pl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); }
.pl-logo-mark { width: 28px; height: 28px; }
.pl-brand-text {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.pl-brand .custom-logo { max-height: 40px; width: auto; }

.pl-menu { display: flex; gap: 32px; }
.pl-menu a { font-size: 14px; color: var(--silver); transition: color 0.2s ease; }
.pl-menu a:hover { color: var(--ivory); }

.pl-nav-cta { padding: 10px 20px; }

.pl-nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.pl-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ivory);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.pl-header.is-open .pl-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pl-header.is-open .pl-nav-toggle span:nth-child(2) { opacity: 0; }
.pl-header.is-open .pl-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pl-mobile-menu {
	max-width: var(--container);
	margin: 8px auto 0;
	border-radius: 18px;
	background: rgba(11, 13, 16, 0.85);
	-webkit-backdrop-filter: blur(var(--nav-blur));
	backdrop-filter: blur(var(--nav-blur));
	border: 1px solid rgba(245, 246, 235, 0.12);
	padding: 12px;
}
.pl-menu-mobile a {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	color: var(--ivory);
	font-size: 16px;
}
.pl-menu-mobile a:hover { background: rgba(245, 246, 235, 0.1); }

/* ==========================================================================
   Hero
   ========================================================================== */

.pl-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100svh;
	overflow: hidden;
	background: var(--ink);
}
.pl-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pl-hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--ink);
	opacity: var(--hero-overlay);
}
.pl-hero-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(11, 13, 16, var(--hero-top-shade)) 0%,
		rgba(11, 13, 16, 0.1) 34%,
		rgba(11, 13, 16, 0.15) 62%,
		rgba(11, 13, 16, 0) 100%
	);
}
.pl-hero-gradient.has-fade {
	background: linear-gradient(
		to bottom,
		rgba(11, 13, 16, var(--hero-top-shade)) 0%,
		rgba(11, 13, 16, 0.1) 34%,
		rgba(11, 13, 16, 0.2) 62%,
		var(--ink) 100%
	);
}

.pl-hero-content {
	position: relative;
	z-index: 10;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-inline: 24px;
}
.pl-hero-content .pl-stagger { display: flex; flex-direction: column; align-items: center; }

.pl-badge {
	display: inline-flex;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--eyebrow-tracking);
	color: var(--silver);
	background: rgba(11, 13, 16, 0.35);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(245, 246, 235, 0.16);
	margin-bottom: 28px;
}

.pl-hero-title {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	font-size: var(--h1-size);
	line-height: 1.04;
	letter-spacing: -0.02em;
	max-width: 900px;
}
.pl-hero-title .is-muted { color: var(--silver); }

.pl-hero-sub {
	margin-top: 24px;
	max-width: 580px;
	font-size: 18px;
	color: var(--silver);
}

.pl-hero-ctas {
	margin-top: 36px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.pl-hero-strip {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px 24px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: var(--eyebrow-tracking);
	color: var(--steel);
}
.pl-hero-strip-center { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.pl-hero-strip-center .pl-icon-sm { width: 14px; height: 14px; animation: pl-bounce 1.6s infinite; }

@keyframes pl-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

/* ==========================================================================
   Marka değerleri
   ========================================================================== */

.pl-essence-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), 1fr);
	gap: 1px;
	background: rgba(43, 47, 54, 0.4);
	border-radius: 18px;
	overflow: hidden;
}
.pl-essence-card { background: var(--ink); padding: 40px; }
.pl-icon { width: 22px; height: 22px; color: var(--steel); }
.pl-essence-card h3 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	margin-top: 24px;
}
.pl-essence-card p { margin-top: 12px; font-size: 14px; color: var(--steel); }

/* ==========================================================================
   Hizmetler
   ========================================================================== */

.pl-service-list { margin-top: 56px; }

.pl-service-row {
	display: block;
	border-top: 1px solid rgba(11, 13, 16, 0.1);
	padding-block: 30px;
	transition: background 0.3s ease;
}
.pl-service-row:last-child { border-bottom: 1px solid rgba(11, 13, 16, 0.1); }
.pl-service-row:hover { background: var(--ink); }

.pl-service-inner {
	display: grid;
	grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
}
.pl-service-num { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--steel); }
.pl-service-title {
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: var(--display-weight);
	letter-spacing: -0.02em;
	color: var(--ink);
	transition: color 0.3s ease;
}
.pl-service-detail p { font-size: 14px; color: rgba(43, 47, 54, 0.8); transition: color 0.3s ease; }
.pl-service-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-service-tags span {
	border: 1px solid rgba(11, 13, 16, 0.15);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 11px;
	color: var(--graphite);
	transition: border-color 0.3s ease, color 0.3s ease;
}
.pl-service-arrow { color: rgba(11, 13, 16, 0.3); transition: color 0.3s ease, transform 0.3s ease; }
.pl-service-arrow .pl-icon-sm { width: 22px; height: 22px; }

.pl-service-row:hover .pl-service-title { color: var(--ivory); }
.pl-service-row:hover .pl-service-detail p { color: var(--silver); }
.pl-service-row:hover .pl-service-tags span { border-color: rgba(245, 246, 235, 0.25); color: var(--silver); }
.pl-service-row:hover .pl-service-arrow { color: var(--ivory); transform: translate(3px, -3px); }

/* ==========================================================================
   Süreç
   ========================================================================== */

.pl-steps {
	margin-top: 56px;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), 1fr);
	gap: 40px;
}
.pl-step-head { display: flex; align-items: center; gap: 16px; }
.pl-step-num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(11, 13, 16, 0.15);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
}
.pl-step-line { flex: 1; height: 1px; background: rgba(11, 13, 16, 0.15); }
.pl-step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-top: 24px; }
.pl-step p { margin-top: 12px; font-size: 14px; color: rgba(43, 47, 54, 0.8); }

/* ==========================================================================
   İstatistikler
   ========================================================================== */

.pl-stats-grid {
	margin-top: 56px;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), 1fr);
	gap: 1px;
	background: rgba(43, 47, 54, 0.4);
	border-radius: 18px;
	overflow: hidden;
}
.pl-stat { background: var(--ink); padding: 40px; }
.pl-stat-value {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: var(--display-weight);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.pl-stat p { margin-top: 16px; font-size: 14px; color: var(--steel); }

/* ==========================================================================
   Neden Perflab
   ========================================================================== */

.pl-why-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 56px;
}
.pl-why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pl-why-item .pl-dots { color: var(--steel); }
.pl-why-item h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 16px; }
.pl-why-item p { margin-top: 12px; font-size: 14px; color: var(--steel); }

/* ==========================================================================
   İletişim
   ========================================================================== */

.pl-contact { padding-block: calc(var(--section-pad) * 1.25); }
.pl-contact-title {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	font-size: calc(var(--h2-size) * 1.2);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-top: 24px;
	max-width: 760px;
}
.pl-contact-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.pl-contact .pl-btn { padding: 16px 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.pl-footer { background: var(--ink); padding: 48px 0; }
.pl-footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.pl-footer-menu { display: flex; flex-wrap: wrap; gap: 24px; }
.pl-footer-menu a { font-size: 14px; color: var(--steel); transition: color 0.2s ease; }
.pl-footer-menu a:hover { color: var(--ivory); }
.pl-footer-social { display: flex; gap: 16px; }
.pl-footer-social a { color: var(--steel); transition: color 0.2s ease; }
.pl-footer-social a:hover { color: var(--ivory); }
.pl-footer-social .pl-icon-sm { width: 20px; height: 20px; }
.pl-footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(43, 47, 54, 0.4);
	display: flex;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--steel);
}

/* ==========================================================================
   Blog / sayfa görünümü
   ========================================================================== */

.pl-page { background: var(--ivory); color: var(--ink); padding: 160px 0 var(--section-pad); min-height: 70vh; }
.pl-page-narrow { max-width: 760px; }
.pl-article-title {
	font-family: var(--font-display);
	font-size: var(--h2-size);
	font-weight: var(--display-weight);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-bottom: 24px;
}
.pl-article-title a { color: inherit; }
.pl-article + .pl-article { margin-top: 64px; }
.pl-article-content p { margin-bottom: 1.2em; }
.pl-article-content h2, .pl-article-content h3 { font-family: var(--font-display); margin: 1.4em 0 0.5em; }
.pl-article-content a { text-decoration: underline; }
.pl-pagination { margin-top: 48px; }

/* ==========================================================================
   Animasyonlar (JS, .in-view sınıfı ekler)
   ========================================================================== */

.pl-anim .pl-reveal-item {
	opacity: 0;
	transform: translateY(var(--anim-distance));
	transition:
		opacity var(--anim-duration) cubic-bezier(0.22, 1, 0.36, 1),
		transform var(--anim-duration) cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--stagger-i, 0) * var(--anim-stagger));
}
.pl-anim .pl-reveal-item.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pl-anim .pl-reveal-item { opacity: 1; transform: none; transition: none; }
	.pl-hero-strip-center .pl-icon-sm { animation: none; }
}

/* ==========================================================================
   Duyarlı tasarım
   ========================================================================== */

@media (max-width: 1024px) {
	.pl-service-inner { grid-template-columns: 48px minmax(0, 1fr); row-gap: 16px; }
	.pl-service-detail { grid-column: 1 / -1; }
	.pl-service-arrow { display: none; }
	.pl-steps { grid-template-columns: 1fr 1fr; }
	.pl-step-line { display: none; }
	.pl-essence-grid { grid-template-columns: 1fr 1fr; }
	.pl-stats-grid { grid-template-columns: 1fr 1fr; }
	.pl-why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.pl-nav-links, .pl-nav-cta { display: none; }
	.pl-nav-toggle { display: flex; }
	.pl-hero-title { font-size: var(--h1-size-m); }
	.pl-section-title { font-size: var(--h2-size-m); }
	.pl-contact-title { font-size: calc(var(--h2-size-m) * 1.15); }
	.pl-service-title { font-size: 26px; }
	.pl-hide-mobile { display: none; }
	.pl-hero-strip { padding-inline: 24px; }
	.pl-hero-sub { font-size: 16px; }
	.pl-section { padding-block: calc(var(--section-pad) * 0.72); }
}

@media (max-width: 560px) {
	.pl-essence-grid, .pl-stats-grid, .pl-steps, .pl-why-items { grid-template-columns: 1fr; }
	.pl-essence-card, .pl-stat { padding: 32px 28px; }
	.pl-hero-ctas { flex-direction: column; width: 100%; }
	.pl-hero-ctas .pl-btn { width: 100%; justify-content: center; }
	.pl-footer-top { flex-direction: column; align-items: flex-start; }
}
