/*
Theme Name: Mukayeseli
Description: mukayeseli.com için hafif, eklentisiz tema. Mavi pafta ve şerit metre.
Version: 1.3.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mukayeseli
*/

:root {
	--blue: #1463ff;
	--blue-dark: #0b4fd6;
	--navy: #0a1d36;
	--blueprint: #0e2a4f;
	--tape: #f6c21c;
	--tape-dark: #d9a400;
	--ink: #15202e;
	--muted: #5b6878;
	--line: #dde3ea;
	--paper: #f4f6f9;
	--sans: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.kicker a { color: inherit; text-decoration: none; }

.btn, .wp-block-button__link {
	display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 6px;
	font: 600 15px/1 var(--sans); padding: 14px 22px; text-decoration: none; cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Şerit metre: sarı bant üzerinde santim çizgileri */
.tape {
	height: 30px; background-color: var(--tape);
	background-image:
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 100px),
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px),
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
	background-size: 100% 16px, 100% 11px, 100% 6px;
	background-repeat: no-repeat;
	border-top: 1px solid var(--tape-dark); border-bottom: 1px solid var(--tape-dark);
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: flex; align-items: center; font-weight: 700; font-size: 22px; color: var(--blue); text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav ul a:hover, .site-nav .current-menu-item > a { color: var(--blue); }
.btn-call { font-family: var(--mono); font-weight: 500; padding: 11px 16px; }
.nav-toggle { display: none; font-size: 26px; cursor: pointer; }

/* Hero: mavi pafta */
.hero {
	position: relative; color: #fff; background-color: var(--blueprint);
	background-image:
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero .kicker { color: var(--tape); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: 20px; color: #c9d6ea; margin: 0 0 36px; max-width: 34em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* Karşılaştırma çizimi */
.drawing { position: relative; margin: 0; padding: 34px 30px 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(10,29,54,.55); font-family: var(--mono); }
.drawing::before { content: "PAFTA 01 · KIYAS"; position: absolute; top: -9px; left: 18px; padding: 0 8px; background: var(--blueprint); font-size: 11px; letter-spacing: .14em; color: #8fb0dd; }
.bar { position: relative; height: 46px; margin-bottom: 18px; border: 1.5px solid #8fb0dd; display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: #c9d6ea; }
.bar-a { width: 62%; background: repeating-linear-gradient(45deg, rgba(143,176,221,.12) 0 6px, transparent 6px 12px); }
.bar-b { width: 100%; border-color: var(--tape); color: #fff; }
.dim { position: relative; margin-left: 62%; width: 38%; height: 26px; border-left: 1.5px solid var(--tape); border-right: 1.5px solid var(--tape); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1.5px solid var(--tape); }
.dim span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--tape); }
.drawing figcaption { margin-top: 44px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8fb0dd; }

/* Bölümler (bloklar) */
.front > * { margin: 0; }
.sec { padding: 96px 24px; }
.sec > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 18em; }
.steps { gap: 48px !important; margin-top: 40px; }
.steps + .steps { margin-top: 8px; }
.steps .wp-block-column { border-top: 2px solid var(--ink); padding-top: 18px; }
.num { font: 500 14px/1 var(--mono); color: var(--blue); margin: 0 0 14px; }
.steps h3 { font-size: 22px; }
.steps p { color: #2c3a4b; }

.sec-blue { background: var(--paper); }
.service-list { list-style: none; padding: 0; margin: 36px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: s; }
.service-list li { counter-increment: s; border-bottom: 1px solid var(--line); }
.service-list a { display: flex; gap: 18px; padding: 18px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 18px; }
.service-list a::before { content: counter(s, decimal-leading-zero); font: 500 14px/1.9 var(--mono); color: var(--blue); }
.service-list a:hover { color: var(--blue); }

.clients { padding-top: 64px; padding-bottom: 64px; }
.clients .wp-block-columns { max-width: 560px; margin: 24px 0 0; gap: 48px; }
.clients figure { margin: 0; text-align: center; }
.clients img { max-height: 110px; width: auto; }

.sec-dark { background: var(--navy); color: #fff; }
.sec-dark .kicker { color: var(--tape); }
.contact .wp-block-columns { margin-top: 40px; gap: 48px; }
.contact .label { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8fb0dd; margin: 0 0 10px; }
.contact .big { font-size: 24px; font-weight: 600; margin: 0; }
.contact .big a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--tape); }
.partner { margin: 0; }
.partner img { background: #fff; border-radius: 6px; padding: 10px 16px; width: 200px; }

/* İç sayfalar */
.page-head { position: relative; background: var(--blueprint); color: #fff;
	background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 100px 100px; }
.page-head .wrap { padding-top: 64px; padding-bottom: 48px; }
.page-head .kicker { color: var(--tape); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0; }
.page-body { max-width: 860px; padding-top: 56px; padding-bottom: 96px; }
.service { padding: 36px 0; border-bottom: 1px solid var(--line); }
.service h2 { font-size: 26px; }
.note { background: #fff8db; border-left: 4px solid var(--tape); padding: 14px 18px; border-radius: 0 6px 6px 0; }
.note em { font-style: normal; font-weight: 600; }
.page-body .clients { padding: 48px 0 0; }
.page-body .clients h2 { font-size: 26px; }

/* Footer */
.site-footer { background: #071426; color: #8fa3bd; font-size: 14px; padding: 24px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: #c9d6ea; text-decoration: none; }

/* Mobil */
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 48px; }
	.service-list { grid-template-columns: 1fr; }
	.sec { padding: 72px 24px; }
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 18px 24px 22px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 16px; }
	#nav-toggle:checked ~ .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.hero-sub { font-size: 18px; }
	.contact .big { font-size: 20px; }
	.logo img { height: 32px; }
}

/* İkonlar (icons/ klasöründeki SVG'ler) */
.steps .num::before, .service .num::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 16px; background: center / contain no-repeat; }
.step-1 .num::before { background-image: url(icons/kiyas.svg); }
.step-2 .num::before { background-image: url(icons/olur.svg); }
.step-3 .num::before { background-image: url(icons/pafta.svg); }
.step-4 .num::before { background-image: url(icons/artis.svg); }
#mukayeseli-hesap .num::before { background-image: url(icons/kiyas.svg); }
#kesin-hesap .num::before { background-image: url(icons/hesap.svg); }
#hakedis .num::before { background-image: url(icons/hakedis.svg); }
#metraj .num::before { background-image: url(icons/metraj.svg); }
#kesif .num::before { background-image: url(icons/kesif.svg); }
#is-programi .num::before { background-image: url(icons/program.svg); }
#evrak-takip .num::before { background-image: url(icons/evrak.svg); }
.service .num::before { width: 60px; height: 60px; }
.service-list a::before { content: ""; flex: 0 0 34px; height: 34px; background: center / contain no-repeat; }
.service-list li:nth-child(1) a::before { background-image: url(icons/kiyas.svg); }
.service-list li:nth-child(2) a::before { background-image: url(icons/hesap.svg); }
.service-list li:nth-child(3) a::before { background-image: url(icons/hakedis.svg); }
.service-list li:nth-child(4) a::before { background-image: url(icons/metraj.svg); }
.service-list li:nth-child(5) a::before { background-image: url(icons/kesif.svg); }
.service-list li:nth-child(6) a::before { background-image: url(icons/program.svg); }
.service-list li:nth-child(7) a::before { background-image: url(icons/evrak.svg); }
.service-list a { align-items: center; }

/* Animasyonlar */
.scene { margin: 0; padding: 48px 24px 28px; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.scene img { display: block; width: 100%; max-width: 1200px; margin: 0 auto; }
.page-head { overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: 4%; bottom: 30px; width: 360px; height: 180px; background: url(images/vinc.svg) right bottom / contain no-repeat; opacity: .9; pointer-events: none; }

/* Açılış çizimi: uygulama projesi uzar, fark belirir */
.bar-b { animation: mk-grow 7s ease-in-out infinite; }
.dim { animation: mk-dim 7s ease-in-out infinite; }
@keyframes mk-grow { 0%, 12% { width: 62%; } 40%, 88% { width: 100%; } 100% { width: 62%; } }
@keyframes mk-dim { 0%, 38% { opacity: 0; transform: translateY(-6px); } 48%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* Şerit metre yavaşça kayar */
.tape { animation: mk-tape 30s linear infinite; background-repeat: repeat-x; background-size: 100px 16px, 50px 11px, 10px 6px; }
@keyframes mk-tape { to { background-position: -100px 0, -100px 0, -100px 0; } }

/* Kaydırınca belirme (JS .reveal ekler; JS yoksa her şey görünür kalır) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* İkonlara hafif hareket */
.service-list a::before { transition: transform .25s ease; }
.service-list a:hover::before { transform: translateY(-3px) rotate(-4deg); }

@media (max-width: 900px) { .page-head::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.bar-b, .dim, .tape { animation: none; }
	.dim { opacity: 1; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Dönen başlık (durum noktası + yumuşak geçiş) */
.caption-frame { display: grid; margin-top: 40px; }
.caption-frame > p { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c9d6ea; opacity: 0; transform: translateY(6px); animation: mk-cap 16s cubic-bezier(.65,0,.35,1) infinite; }
.caption-frame > p:nth-child(2) { animation-delay: 4s; }
.caption-frame > p:nth-child(3) { animation-delay: 8s; }
.caption-frame > p:nth-child(4) { animation-delay: 12s; }
@keyframes mk-cap { 0% { opacity: 0; transform: translateY(6px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-6px); } }
.status-dot { position: relative; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--tape); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--tape); animation: mk-ping 2.4s ease-out infinite; }
@keyframes mk-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

/* Süreç bölümü */
.surec { background: var(--navy); color: #fff; padding: 96px 24px; }
.surec > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.surec .kicker { color: var(--tape); }
.surec h2 { font-size: clamp(30px, 3.6vw, 44px); }
.surec-grid { position: relative; margin-top: 48px; }
.surec-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.surec-lines path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.surec-seg .base { stroke: rgba(159,189,230,.22); }
.surec-seg .prog { stroke: var(--tape); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); }
.surec-seg[data-state="complete"] .prog { stroke-dashoffset: 0; }
.surec-return { stroke: var(--tape); stroke-dasharray: 18 100; stroke-dashoffset: 18; opacity: 0; }
.surec.loop .surec-return { animation: mk-return 1.1s cubic-bezier(.65,0,.35,1); }
@keyframes mk-return { 0% { opacity: 1; stroke-dashoffset: 18; } 100% { opacity: 1; stroke-dashoffset: -100; } }
.surec-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 72px; }
.surec-list li:nth-child(4) { grid-area: 2 / 3; }
.surec-list li:nth-child(5) { grid-area: 2 / 2; }
.surec-list li:nth-child(6) { grid-area: 2 / 1; }
.surec-node { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px 18px; border: 1px solid rgba(159,189,230,.2); border-radius: 12px; background: linear-gradient(160deg, #10284a, #0b1f3a); color: #9fb3cf; font: inherit; cursor: pointer; transition: transform .6s cubic-bezier(.65,0,.35,1), border-color .6s, box-shadow .6s, color .6s; }
.surec-node[data-state="active"] { transform: translateY(-6px); border-color: rgba(246,194,28,.7); box-shadow: 0 0 0 5px rgba(246,194,28,.08), 0 24px 48px -24px rgba(0,0,0,.7); color: #fff; }
.surec-node[data-state="complete"] { color: #c9d6ea; }
.surec-dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0b1f3a; border: 1.5px solid rgba(159,189,230,.45); transition: background .6s, border-color .6s, box-shadow .6s; }
.surec-node[data-state="complete"] .surec-dot, .surec-node[data-state="active"] .surec-dot { background: var(--tape); border-color: var(--tape); }
.surec-node[data-state="active"] .surec-dot { box-shadow: 0 0 0 6px rgba(246,194,28,.18); }
.stage-art { width: 100%; max-width: 220px; height: auto; transition: opacity .6s, filter .6s; }
.surec-node[data-state="upcoming"] .stage-art { opacity: .42; filter: saturate(.3); }
.surec-label { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 16px; }
.surec-num { font: 500 12px var(--mono); color: var(--tape); }
.surec-list li { display: flex; }
.surec-node { justify-content: flex-start; }
.surec-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.65,0,.35,1), opacity .45s ease; }
.surec-more > span { overflow: hidden; font-size: 14px; line-height: 1.55; color: #c9d6ea; max-width: 26em; }
.surec-node[data-state="active"] .surec-more { grid-template-rows: 1fr; opacity: 1; }

/* Süreç çizimleri: ince teknik çizgi, sadece etkin adım hareket eder */
.stage-art .ln { fill: none; stroke: #9fbde6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stage-art .fine { fill: none; stroke: #9fbde6; stroke-width: 1; opacity: .4; stroke-linecap: round; }
.stage-art .acc { fill: rgba(246,194,28,.16); stroke: var(--tape); stroke-width: 1.6; }
.stage-art .yl, .stage-art .dk { fill: none; stroke: var(--tape); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage-art .val, .stage-art .seal-t { font: 500 11px var(--mono); fill: var(--tape); letter-spacing: .06em; }
.stage-art .seal { fill: none; stroke: var(--tape); stroke-width: 1.4; }
.stage-art * { transform-box: fill-box; }
.a-seal, .a-badge, .a-delta, .a-val { opacity: .35; }
.surec-node[data-state="complete"] .a-seal, .surec-node[data-state="complete"] .a-badge, .surec-node[data-state="complete"] .a-delta, .surec-node[data-state="complete"] .a-val { opacity: 1; }
[data-state="active"] .a-stamp { animation: mk-stamp 2.6s cubic-bezier(.65,0,.35,1) infinite; }
[data-state="active"] .a-seal { animation: mk-seal 2.6s ease infinite; }
@keyframes mk-stamp { 0%, 15% { transform: translateY(0); } 40%, 52% { transform: translateY(34px); } 78%, 100% { transform: translateY(0); } }
@keyframes mk-seal { 0%, 38% { opacity: .2; } 46%, 100% { opacity: 1; } }
.a-draw { stroke-dasharray: 100; }
[data-state="active"] .a-draw { animation: mk-draw 2.6s cubic-bezier(.65,0,.35,1) infinite; }
[data-state="active"] .a-badge { transform-origin: center; animation: mk-pop 2.6s cubic-bezier(.34,1.56,.64,1) infinite; }
@keyframes mk-draw { 0% { stroke-dashoffset: 100; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes mk-pop { 0%, 50% { transform: scale(0); opacity: 0; } 66%, 100% { transform: scale(1); opacity: 1; } }
[data-state="active"] .a-tape { transform-origin: left center; animation: mk-tape-x 2.6s cubic-bezier(.65,0,.35,1) infinite; }
[data-state="active"] .a-val { animation: mk-seal 2.6s ease infinite; }
@keyframes mk-tape-x { 0% { transform: scaleX(.12); } 60%, 100% { transform: scaleX(1); } }
[data-state="active"] .a-grow { transform-origin: left center; animation: mk-grow-x 2.6s cubic-bezier(.65,0,.35,1) infinite; }
[data-state="active"] .a-delta { animation: mk-seal 2.6s ease infinite; }
@keyframes mk-grow-x { 0% { transform: scaleX(.57); } 55%, 100% { transform: scaleX(1); } }
[data-state="active"] .coin { animation: mk-coin 2.6s cubic-bezier(.34,1.3,.64,1) infinite both; }
[data-state="active"] .c2 { animation-delay: .25s; }
[data-state="active"] .c3 { animation-delay: .5s; }
@keyframes mk-coin { 0% { transform: translateY(-36px); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
[data-state="active"] .a-shackle { transform-origin: left bottom; animation: mk-unlock 2.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes mk-unlock { 0%, 30% { transform: none; } 60%, 100% { transform: translateY(-7px) rotate(-18deg); } }

@media (max-width: 860px) {
	.surec-lines { display: none; }
	.surec-list { grid-template-columns: 1fr; gap: 20px; }
	.surec-list li:nth-child(n) { grid-area: auto; }
	.stage-art { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
	.caption-frame > p { animation: none; opacity: 0; }
	.caption-frame > p:first-child { opacity: 1; transform: none; }
	.stage-art *, .status-dot::after { animation: none !important; }
	.surec-node[data-state] .stage-art { opacity: 1; filter: none; }
	.a-seal, .a-badge, .a-delta, .a-val { opacity: 1; }
}

/* Başa dön oku */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(10,29,54,.25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--blue-dark); }
.to-top:focus-visible { outline: 2px solid var(--tape); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }