/*
Theme Name: Karabük Teknik
Theme URI: https://karabuktenik.com/
Author: Karabük Teknik
Description: Karabük yerel SEO ve GEO odaklı, ultra hızlı teknik servis teması. Harici font/kütüphane yok, JSON-LD şema, güvenlik başlıkları ve spam korumalı servis formu içerir.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: karabuk-teknik
*/
:root {
  --primary: #0f172a;
  --primary-2: #1e293b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; color: var(--primary); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--primary); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; font-size: 1.1rem; }
.logo .ic { color: var(--accent); font-size: 1.5rem; }
.logo b { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu a { color: #cbd5e1; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-menu a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 50px; font-family: inherit; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white) !important; box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: var(--white); padding: 90px 0 100px; }
.hero-inner { max-width: 820px; }
.eyebrow { display: inline-block; background: rgba(249, 115, 22, .15); color: var(--accent); padding: 6px 16px; border-radius: 50px; font-weight: 500; font-size: .9rem; margin: 0 0 18px; }
.hero h1 { color: var(--white); font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; }
.lead { color: #cbd5e1; font-size: 1.1rem; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; }

.grid { display: grid; gap: 24px; }
.services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.why { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 40px; }

.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid transparent; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(15, 23, 42, .14); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--primary); color: var(--accent); font-size: 1.6rem; margin-bottom: 18px; transition: background .3s, color .3s; }
.card:hover .icon { background: var(--accent); color: var(--white); }

/* Regions */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badges li { background: var(--white); border: 2px solid var(--primary); color: var(--primary); padding: 10px 24px; border-radius: 50px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.badges li .ic { color: var(--accent); margin-right: 6px; }
.badges li:hover { background: var(--primary); color: var(--white); }

/* Why */
.why-item { text-align: center; padding: 24px; }
.why-item .ic { font-size: 2.2rem; color: var(--accent); margin-bottom: 14px; }
.why-item h3 { font-size: 1.1rem; }
.why-item p { color: var(--muted); margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { margin-top: 20px; display: grid; gap: 14px; }
.info-list .ic { color: var(--accent); width: 24px; }
.info-list a:hover { color: var(--accent); }
.form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.field.invalid input, .field.invalid select { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-msg { min-height: 1.4em; margin: 0 0 12px; font-weight: 500; font-size: .95rem; }
.form-msg.error { color: #dc2626; }
.form-msg.ok { color: #16a34a; }

/* Footer */
.site-footer { background: var(--primary); color: #cbd5e1; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-inner p { margin: 0; font-size: .92rem; }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-2); color: var(--white); transition: background .2s, transform .2s; }
.social a:hover { background: var(--accent); transform: translateY(-3px); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: var(--white); font-size: 2rem; box-shadow: 0 8px 22px rgba(37, 211, 102, .5); animation: pulse 2.2s infinite; transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--primary); padding: 10px 20px 20px; display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 10px 0; border-bottom: 1px solid var(--primary-2); }
  .nav-menu li:last-child { border: 0; text-align: center; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* İçerik derinliği bölümleri */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.detail { background: var(--white); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.detail h3 { font-size: 1.1rem; }
.detail p { color: var(--muted); margin: 0 0 12px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 6px; font-size: .95rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.district-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.district { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.district h3 { font-size: 1rem; }
.district p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius); padding: 56px 22px 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; top: 16px; left: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 700; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.faq { max-width: 820px; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* WordPress tema eklemeleri */
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.why-item .ic { display: block; margin: 0 auto 14px; }
.info-list li { display: flex; align-items: center; gap: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.custom-logo { max-height: 48px; width: auto; }
.page-content { padding-top: 48px; padding-bottom: 64px; max-width: 820px; }
.page-content a { color: var(--accent-dark); }
.page-content img { border-radius: 10px; }
