/*
Theme Name: Boya Ustası
Theme URI: https://boya-ustasi.com.tr
Author: Boya Ustası Ekibi
Description: İstanbul başta olmak üzere lokasyon bazlı SEO, usta başvuru ve hizmet talep sistemine sahip, hafif ve mobil öncelikli özel WordPress teması.
Version: 0.1.0 (FAZ 1 - Tema İskeleti)
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: boyaustasi
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   TASARIM TOKENLARI (Design Tokens)
   Boya kartelası fikrinden türetilmiş, sektöre özgü bir palet.
   ========================================================================== */
:root {
	/* Zemin & metin */
	--color-bg: #faf9f5;          /* sıcak kağıt beyazı */
	--color-bg-alt: #f0eee6;      /* yumuşak, ten tonu griye yakın yüzey */
	--color-surface: #ffffff;
	--color-ink: #201f1b;         /* sıcak antrasit */
	--color-ink-soft: #55524a;    /* ikincil metin */
	--color-line: #dfdacd;        /* ince ayraç çizgisi */

	/* Ana vurgu: çam yeşili — boya sektöründe güven ve doğallık */
	--color-accent: #1f5c55;
	--color-accent-dark: #143f3a;
	--color-accent-contrast: #ffffff;

	/* Boya kartelası şeridi — hizmet çeşitliliğini temsil eden 5 ton */
	--swatch-1: #e8ddc7; /* kum bej */
	--swatch-2: #1f5c55; /* çam yeşili */
	--swatch-3: #9a3c2d; /* kiremit kırmızısı */
	--swatch-4: #35507a; /* gece mavisi */
	--swatch-5: #cfc8b6; /* toz gri */

	/* Durum renkleri */
	--color-success: #2e6b4f;
	--color-error: #a5352a;

	/* Tipografi */
	--font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

	/* Ölçek */
	--radius-sm: 4px;
	--radius-md: 10px;
	--container-max: 1200px;
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2.5rem;
	--space-5: 4rem;
	--space-6: 6rem;

	--shadow-sm: 0 1px 2px rgba(32, 31, 27, 0.06);
	--shadow-md: 0 8px 24px rgba(32, 31, 27, 0.10);
}

/* Gerçek stiller assets/js tarafından değil, doğrudan bu dosyaya
   eklenir; functions.php bu dosyayı get_stylesheet_uri() ile
   otomatik olarak sıraya (enqueue) alır. Bileşen stilleri için
   bkz. aşağıdaki bölümler. */

/* ==========================================================================
   TEMEL / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-ink);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	margin: 0 0 var(--space-2);
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); color: var(--color-ink-soft); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-2); }

/* Erişilebilirlik: klavye odağı görünür kalmalı */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--color-ink); color: #fff; padding: 0.75em 1.25em;
	border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ==========================================================================
   BUTONLAR / CTA
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
	padding: 0.85em 1.5em; border-radius: var(--radius-sm);
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-contrast); }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-whatsapp { background: #1f5c3f; color: #fff; }
.btn-block { width: 100%; }

/* ==========================================================================
   ÜST BAR (telefon/whatsapp şeridi)
   ========================================================================== */
.top-bar {
	background: var(--color-ink); color: #fff; font-size: 0.85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5em; padding-bottom: 0.5em; flex-wrap: wrap; gap: 0.5em; }
.top-bar a { color: #fff; }
.top-bar__contact { display: flex; gap: 1.25em; flex-wrap: wrap; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
	background: var(--color-surface); border-bottom: 1px solid var(--color-line);
	position: sticky; top: 0; z-index: 100;
}
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: var(--space-2); padding-bottom: var(--space-2); gap: var(--space-2);
}
.site-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--color-ink); text-decoration: none; }
.site-logo span { color: var(--color-accent); }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
	background: transparent; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: var(--color-ink); position: relative; }
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(4px); }

.primary-nav {
	position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
	background: var(--color-surface); padding: var(--space-4) var(--space-3);
	transform: translateX(100%); transition: transform 0.25s ease;
	overflow-y: auto; box-shadow: var(--shadow-md);
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.primary-nav a { color: var(--color-ink); text-decoration: none; font-weight: 600; }
.header-cta { display: none; }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.primary-nav {
		position: static; width: auto; transform: none; box-shadow: none; padding: 0; background: transparent;
	}
	.primary-nav ul { flex-direction: row; gap: var(--space-3); align-items: center; }
	.header-cta { display: flex; gap: var(--space-1); }
}

/* ==========================================================================
   HERO + BOYA KARTELASI (imza görsel öğe)
   ========================================================================== */
.hero { padding: var(--space-5) 0 var(--space-4); overflow: hidden; }
.hero .container { display: grid; gap: var(--space-4); align-items: center; }
.hero__eyebrow {
	font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
	font-size: 0.75rem; color: var(--color-accent); font-weight: 600;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero__trust { margin-top: var(--space-3); display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 0.85rem; color: var(--color-ink-soft); }

.swatch-strip { display: flex; gap: 10px; margin-top: var(--space-3); }
.swatch {
	flex: 1; height: 120px; border-radius: var(--radius-md); position: relative;
	box-shadow: var(--shadow-sm); transition: transform 0.2s ease, flex-grow 0.2s ease;
	display: flex; align-items: flex-end; padding: 0.6em;
}
.swatch:hover, .swatch:focus-within { transform: translateY(-6px); flex-grow: 1.6; }
.swatch span {
	font-family: var(--font-mono); font-size: 0.7rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.swatch--1 { background: var(--swatch-1); } .swatch--1 span { color: var(--color-ink); text-shadow:none; }
.swatch--2 { background: var(--swatch-2); }
.swatch--3 { background: var(--swatch-3); }
.swatch--4 { background: var(--swatch-4); }
.swatch--5 { background: var(--swatch-5); } .swatch--5 span { color: var(--color-ink); text-shadow:none; }

@media (min-width: 900px) {
	.hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================================
   BÖLÜM BAŞLIKLARI
   ========================================================================== */
.section { padding: var(--space-5) 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { max-width: 640px; margin-bottom: var(--space-4); }
.section__head .hero__eyebrow { display: block; margin-bottom: 0.5em; }

/* ==========================================================================
   HİZMET KARTLARI
   ========================================================================== */
.card-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service-card {
	background: var(--color-surface); border: 1px solid var(--color-line);
	border-radius: var(--radius-md); padding: var(--space-3);
	text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.5em;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__chip { width: 34px; height: 10px; border-radius: 999px; }
.service-card h3 { margin-bottom: 0; }
.service-card p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   BÖLGELER TEASER
   ========================================================================== */
.region-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6em; }
.region-list a {
	display: inline-block; padding: 0.5em 1em; border: 1px solid var(--color-line);
	border-radius: 999px; text-decoration: none; color: var(--color-ink); font-size: 0.9rem;
}
.region-list a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ==========================================================================
   SÜREÇ ADIMLARI
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 2.4em; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent);
	position: absolute; top: 0; left: 0;
}

/* ==========================================================================
   SSS (accordion, native <details>)
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--color-line); padding: var(--space-2) 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); }
.faq-item[open] summary { color: var(--color-accent); }

/* ==========================================================================
   FORMLAR (iletişim / talep)
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35em; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
	font: inherit; padding: 0.75em; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
	background: var(--color-surface); color: var(--color-ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-notice { padding: 0.9em 1.1em; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: var(--space-2); }
.form-notice--success { background: #e5f0e9; color: var(--color-success); border: 1px solid var(--color-success); }
.form-notice--error { background: #f6e4e1; color: var(--color-error); border: 1px solid var(--color-error); }
/* Bal küpü (honeypot) alanı: ekran okuyuculardan ve görünümden gizlenir */
.field--hp { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-ink); color: #d9d6cc; padding: var(--space-5) 0 var(--space-3); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--swatch-1); }
.footer-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: var(--space-4); }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.75em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5em; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75em; font-size: 0.8rem; color: #b8b4a6; }

/* ==========================================================================
   MOBİL SABİT (sticky) CTA BARI
   ========================================================================== */
.mobile-cta-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: var(--color-surface); border-top: 1px solid var(--color-line);
	box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-cta-bar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; padding: 0.6em 0; font-size: 0.72rem; font-weight: 700; text-decoration: none; color: var(--color-ink);
}
.mobile-cta-bar a.is-accent { background: var(--color-accent); color: #fff; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
body.has-mobile-cta { padding-bottom: 64px; }
@media (min-width: 900px) { body.has-mobile-cta { padding-bottom: 0; } }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: var(--space-6) 0; }
.error-404__links { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-top: var(--space-3); }

/* Ekran okuyucu için görünmez metin */
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
