/*
Theme Name: MEK CHIP
Theme URI: https://mekchip.com/
Author: MEK CHIP
Description: Chip tuning ve ECU yazılımı işletmeleri için hızlı, SEO uyumlu tema. Tüm bölümler Görünüm → Özelleştir → MEK CHIP Ayarları panelinden düzenlenir.
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mekchip
*/

:root {
	--mc-accent: #FF6A1A;
	--mc-bg: #0F1113;
	--mc-bg-alt: #131518;
	--mc-card: #17191C;
	--mc-card-2: #1C1F23;
	--mc-line: #262A2F;
	--mc-line-strong: #3A3F45;
	--mc-text: #F2F1EE;
	--mc-text-2: #C3C6CB;
	--mc-text-3: #B4B8BE;
	--mc-muted: #9CA1A8;
	--mc-on-accent: #141414;
	--mc-radius: 10px;
	--mc-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--mc-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--mc-bg);
	color: var(--mc-text);
	font-family: var(--mc-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mc-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
input, select, textarea, button { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--mc-accent); color: var(--mc-on-accent); padding: 10px 16px; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: 2px; }

.mc-container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mc-narrow { max-width: 880px; }
.mc-section { padding: 80px 0; border-bottom: 1px solid var(--mc-line); }
.mc-section--alt { background: var(--mc-bg-alt); }
.mc-section__title {
	margin: 0 0 12px; font-family: var(--mc-display); font-weight: 700; font-size: 44px; line-height: 1.1;
}
.mc-section__lead { margin: 0 0 40px; font-size: 17px; color: var(--mc-text-2); max-width: 680px; }
.mc-kicker { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--mc-accent); text-transform: uppercase; }

/* Buttons */
.mc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 600; font-size: 16px;
	border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2;
}
.mc-btn--primary { background: var(--mc-accent); color: var(--mc-on-accent); }
.mc-btn--primary:hover { filter: brightness(1.08); }
.mc-btn--ghost { border-color: var(--mc-line-strong); color: var(--mc-text); background: transparent; }
.mc-btn--ghost:hover { border-color: var(--mc-text-3); }
.mc-btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.mc-btn svg { flex: none; }

/* Top bar */
.mc-topbar { background: #17191C; border-bottom: 1px solid var(--mc-line); font-size: 14px; color: var(--mc-text-3); }
.mc-topbar .mc-container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.mc-topbar a { color: var(--mc-text); }
.mc-topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Header */
.mc-header { border-bottom: 1px solid var(--mc-line); background: var(--mc-bg); position: relative; z-index: 50; }
.mc-header .mc-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.mc-brand { display: flex; align-items: center; gap: 10px; color: var(--mc-text); text-decoration: none !important; }
.mc-brand__text { font-family: var(--mc-display); font-weight: 700; font-size: 28px; letter-spacing: 1px; }
.mc-brand img, .custom-logo { max-height: 48px; width: auto; }
.mc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.mc-nav a { color: #D9DADC; font-weight: 500; font-size: 15px; }
.mc-nav a:hover, .mc-nav .current-menu-item > a { color: var(--mc-accent); text-decoration: none; }
.mc-nav .sub-menu { display: none; }
.mc-header__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-menu-toggle { display: none; background: none; border: 1px solid var(--mc-line-strong); color: var(--mc-text); border-radius: 6px; min-height: 44px; min-width: 44px; cursor: pointer; }

/* Hero */
.mc-hero { border-bottom: 1px solid var(--mc-line); }
.mc-hero .mc-container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.mc-hero__text { flex: 1 1 480px; min-width: 0; }
.mc-hero__title { margin: 0 0 20px; font-family: var(--mc-display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: .5px; }
.mc-hero__lead { margin: 0 0 32px; font-size: 19px; color: var(--mc-text-2); max-width: 560px; }
.mc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.mc-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--mc-text-2); }
.mc-checks li { display: flex; align-items: center; gap: 8px; }
.mc-checks svg { stroke: var(--mc-accent); flex: none; }
.mc-hero__media { flex: 1 1 440px; min-width: 0; margin: 0; }
.mc-hero__media img { border-radius: var(--mc-radius); border: 1px solid var(--mc-line); width: 100%; object-fit: cover; }
.mc-dyno { background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: 24px; }
.mc-dyno__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mc-dyno__title { font-family: var(--mc-display); font-weight: 600; font-size: 22px; }
.mc-dyno__legend { display: flex; gap: 16px; font-size: 13px; color: var(--mc-text-3); }
.mc-dyno__legend span { display: flex; align-items: center; gap: 6px; }
.mc-dyno__legend i { width: 18px; height: 3px; display: inline-block; background: #8A9099; }
.mc-dyno__legend i.is-accent { background: var(--mc-accent); }
.mc-dyno svg { width: 100%; height: auto; display: block; }
.mc-dyno figcaption { margin-top: 12px; font-size: 13px; color: var(--mc-muted); }

/* Remapdb */
.mc-remapdb { border-radius: var(--mc-radius); }
.mc-remapdb--empty { border: 2px dashed var(--mc-line-strong); background: var(--mc-card); padding: 32px; color: var(--mc-text-3); }
.mc-note { margin: 16px 0 0; font-size: 14px; color: var(--mc-muted); }

/* Cards / grids */
.mc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mc-card {
	display: block; background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: var(--mc-radius);
	padding: 28px; color: var(--mc-text); text-decoration: none !important; transition: border-color .15s;
}
a.mc-card:hover { border-color: var(--mc-line-strong); }
.mc-card__icon { color: var(--mc-accent); }
.mc-card__icon svg { width: 36px; height: 36px; }
.mc-card__title { margin: 16px 0 8px; font-size: 21px; font-weight: 600; }
.mc-card__text { margin: 0 0 16px; color: var(--mc-text-3); font-size: 15px; }
.mc-card__more { font-size: 15px; font-weight: 500; color: var(--mc-accent); }
.mc-card__label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--mc-accent); text-transform: uppercase; }

/* Steps */
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mc-steps li { border-top: 3px solid var(--mc-accent); padding-top: 20px; }
.mc-steps__num { font-family: var(--mc-display); font-weight: 700; font-size: 40px; color: var(--mc-accent); }
.mc-steps h3 { margin: 4px 0 8px; font-size: 19px; font-weight: 600; }
.mc-steps p { margin: 0; color: var(--mc-text-3); font-size: 15px; }

/* Works */
.mc-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.mc-section__head .mc-section__title { margin: 0; }
.mc-work { margin: 0; }
.mc-work a { color: var(--mc-text); }
.mc-work__img { aspect-ratio: 4 / 3; background: var(--mc-card-2); border: 1px solid #2C3036; border-radius: var(--mc-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8A9099; font-size: 14px; }
.mc-work__img img { width: 100%; height: 100%; object-fit: cover; }
.mc-work figcaption { margin-top: 12px; }
.mc-work__title { font-weight: 600; display: block; }
.mc-work__meta { color: var(--mc-text-3); font-size: 15px; }
.mc-gain { color: var(--mc-accent); font-weight: 600; }

/* Why + reviews */
.mc-split { display: flex; flex-wrap: wrap; gap: 48px; }
.mc-split > * { flex: 1 1 420px; min-width: 0; }
.mc-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.mc-why li { display: flex; gap: 14px; }
.mc-why svg { stroke: var(--mc-accent); flex: none; margin-top: 3px; }
.mc-why strong { font-weight: 600; }
.mc-why span span { color: var(--mc-text-3); }
.mc-reviews { display: flex; flex-direction: column; gap: 16px; }
.mc-review { margin: 0; background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: 24px; }
.mc-review__stars { margin: 0 0 12px; color: var(--mc-accent); letter-spacing: 3px; }
.mc-review__text { margin: 0 0 12px; font-size: 17px; }
.mc-review footer { font-size: 14px; color: var(--mc-muted); }

/* FAQ */
.mc-faq details { border-bottom: 1px solid var(--mc-line); padding: 18px 0; }
.mc-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.mc-faq summary::-webkit-details-marker { display: none; }
.mc-faq summary::after { content: '+'; color: var(--mc-accent); font-size: 24px; line-height: 1; }
.mc-faq details[open] summary::after { content: '−'; }
.mc-faq__answer { margin: 12px 0 0; color: var(--mc-text-3); }
.mc-faq__answer p { margin: 0 0 8px; }

/* Contact */
.mc-form-wrap { flex: 1 1 460px; min-width: 0; }
.mc-contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mc-map { aspect-ratio: 16 / 10; border-radius: var(--mc-radius); overflow: hidden; border: 1px solid #2C3036; background: var(--mc-card-2); display: flex; align-items: center; justify-content: center; color: #8A9099; }
.mc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.mc-address { font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.mc-address strong { font-size: 18px; font-weight: 600; }
.mc-address span { color: var(--mc-text-2); }

/* Form styling (Contact Form 7 and generic) */
.mc-form-wrap input[type=text], .mc-form-wrap input[type=tel], .mc-form-wrap input[type=email],
.mc-form-wrap select, .mc-form-wrap textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; background: var(--mc-bg); color: var(--mc-text);
	border: 1px solid var(--mc-line-strong); border-radius: 6px;
}
.mc-form-wrap textarea { min-height: 120px; resize: vertical; }
.mc-form-wrap label { display: block; font-size: 14px; color: var(--mc-text-3); margin-bottom: 14px; }
.mc-form-wrap input[type=submit], .mc-form-wrap button[type=submit] {
	min-height: 50px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--mc-accent);
	color: var(--mc-on-accent); font-weight: 600; cursor: pointer;
}
.mc-form-wrap .wpcf7-list-item { margin: 0; }
.mc-form-wrap .mc-form-group { margin-bottom: 14px; font-size: 14px; color: var(--mc-text-3); }
.mc-form-wrap .mc-form-legend { display: block; margin-bottom: 6px; }
.mc-form-wrap .wpcf7-radio .wpcf7-list-item { margin: 0 20px 6px 0; }
.mc-form-wrap .wpcf7-radio label, .mc-form-wrap .wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--mc-text); font-size: 15px; }
.mc-form-wrap input[type=radio], .mc-form-wrap input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--mc-accent); }
.mc-form-wrap .wpcf7-acceptance { display: block; margin: 4px 0 18px; }
.mc-form-wrap .wpcf7-not-valid-tip { color: #FF8A80; font-size: 13px; }
.mc-form-wrap .wpcf7-response-output { border-radius: 6px; margin: 16px 0 0 !important; }
.mc-form-fallback { background: var(--mc-card); border: 1px dashed var(--mc-line-strong); border-radius: var(--mc-radius); padding: 24px; color: var(--mc-text-3); }

/* Footer */
.mc-footer { background: #0B0C0E; }
.mc-footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.mc-footer__about { flex: 1 1 280px; min-width: 0; }
.mc-footer__about p { margin: 8px 0 0; color: var(--mc-muted); font-size: 14px; max-width: 340px; }
.mc-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mc-footer__nav a { color: var(--mc-text-2); }
.mc-social { display: flex; gap: 12px; }
.mc-social a { width: 44px; height: 44px; border: 1px solid var(--mc-line-strong); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--mc-text-2); }
.mc-footer__bottom { border-top: 1px solid #1F2226; font-size: 13px; color: #8A9099; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 16px; padding-bottom: 32px; }

/* Floating WhatsApp + mobile call bar */
.mc-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; color: #0B2E17; display: flex; align-items: center; justify-content: center;
}
.mc-wa-float:hover { text-decoration: none; filter: brightness(1.05); }
.mc-callbar { display: none; }

/* Inner pages */
.mc-page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--mc-line); }
.mc-page-head h1 { margin: 0; font-family: var(--mc-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); }
.mc-breadcrumb { font-size: 14px; color: var(--mc-muted); margin-bottom: 12px; }
.mc-breadcrumb a { color: var(--mc-text-3); }
.mc-content { padding: 48px 0 64px; font-size: 17px; }
.mc-content > * { max-width: 820px; }
.mc-content h2 { font-family: var(--mc-display); font-size: 34px; margin: 48px 0 12px; }
.mc-content h3 { font-size: 22px; margin: 32px 0 8px; }
.mc-content p, .mc-content li { color: var(--mc-text-2); }
.mc-content img { border-radius: var(--mc-radius); }
.mc-content table { border-collapse: collapse; width: 100%; }
.mc-content th, .mc-content td { border: 1px solid var(--mc-line); padding: 10px 12px; text-align: left; }
.mc-content .wp-block-button__link { background: var(--mc-accent); color: var(--mc-on-accent); border-radius: 6px; }
.mc-cta-band { background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin: 48px 0 0; }
.mc-cta-band h2 { margin: 0; font-family: var(--mc-display); font-size: 30px; }
.mc-cta-band p { margin: 4px 0 0; color: var(--mc-text-3); }
.mc-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0; max-width: 820px; }
.mc-spec { background: var(--mc-card); border-radius: 8px; padding: 16px; }
.mc-spec small { display: block; color: var(--mc-muted); font-size: 13px; }
.mc-spec b { font-size: 22px; font-weight: 600; }
.mc-posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding: 48px 0; }
.mc-pagination { padding-bottom: 64px; }
.mc-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--mc-line-strong); border-radius: 6px; color: var(--mc-text); }
.mc-pagination .current { background: var(--mc-accent); color: var(--mc-on-accent); border-color: var(--mc-accent); }

@media (max-width: 860px) {
	.mc-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.mc-nav { display: none; width: 100%; order: 3; }
	.mc-nav.is-open { display: block; }
	.mc-nav ul { flex-direction: column; gap: 0; }
	.mc-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mc-line); }
	.mc-header__cta { display: none; }
	.mc-section { padding: 56px 0; }
	.mc-section__title { font-size: 34px; }
	.mc-callbar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		border-top: 1px solid var(--mc-line); background: var(--mc-bg);
	}
	.mc-callbar a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--mc-text); text-decoration: none; }
	.mc-callbar a + a { background: var(--mc-accent); color: var(--mc-on-accent); }
	.mc-wa-float { display: none; }
	body { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
