/* Ortak temel stiller. Renk ve yazı tipleri her temanın style.css dosyasındaki değişkenlerden gelir. */
:root {
  --bg: #fff; --surface: #f6f7f8; --ink: #111; --text: #222; --muted: #5d6670;
  --accent: #0a5; --accent-ink: #fff; --line: #d9dee2; --focus: #1a73e8;
  --wa: #25d366; --wa-ink: #08321a;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif;
  --radius: 6px; --wrap: 1180px; --gutter: clamp(1rem, 4vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font-body); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem;
  border: 2px solid transparent; border-radius: var(--radius); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.0625rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Üst menü */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 500; }
.site-nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem; gap: 1rem; background: var(--nav-bg, var(--bg)); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
}

/* Teklif formu */
.quote { background: var(--form-bg, #fff); color: var(--form-text, var(--text)); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.quote-progress { display: none; list-style: none; margin: 0 0 1.5rem; padding: 0; gap: .5rem; counter-reset: s; }
.is-enhanced .quote-progress { display: flex; }
.quote-progress li { flex: 1; counter-increment: s; font-size: .875rem; font-weight: 600; color: var(--muted); padding-top: .6rem; border-top: 4px solid var(--line); }
.quote-progress li::before { content: counter(s) ". "; }
.quote-progress li.is-active, .quote-progress li.is-done { color: var(--ink); border-color: var(--accent); }
.quote-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.is-enhanced .quote-step { display: none; }
.is-enhanced .quote-step.is-active { display: block; }
.is-enhanced .quote-step [data-next], .is-enhanced .quote-step [data-back] { display: inline-flex; }
.quote-step [data-next], .quote-step [data-back] { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field label, .field-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: calc(var(--radius) - 2px); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { margin: .3rem 0 0; color: #b3261e; font-size: .875rem; min-height: 0; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9375rem; cursor: pointer; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; font-size: .9375rem !important; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.quote-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.quote-actions .btn-primary { margin-left: auto; }
.quote-error { background: #fdecea; color: #8a1c14; padding: .75rem 1rem; border-radius: var(--radius); margin: 1rem 0 0; }
.quote-done-title { font: 700 1.5rem/1.2 var(--font-display); color: var(--ink); }
.quote-done:focus { outline: none; }
.hp { position: absolute; left: -9999px; }

/* Sabit iletişim düğmeleri */
.contact-dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; gap: .5rem; }
.contact-dock a { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 1.1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.contact-dock svg { width: 22px; height: 22px; fill: currentColor; }
.dock-wa { background: var(--wa); color: var(--wa-ink); }
.dock-call { background: var(--ink); color: #fff; display: none !important; }
@media (max-width: 1024px) {
  .contact-dock { left: 0; right: 0; bottom: 0; gap: 0; }
  .contact-dock a { flex: 1; justify-content: center; border-radius: 0; box-shadow: none; min-height: 56px; }
  .dock-call { display: inline-flex !important; }
  body { padding-bottom: 56px; }
}

/* Blog ve metin sayfaları */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; }
.crumbs a { color: var(--muted); }
.post-meta { color: var(--muted); font-size: .9375rem; }
.prose { font-size: 1.125rem; line-height: 1.7; padding-bottom: 2rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2rem; } .prose h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; } .prose li { margin-bottom: .4rem; }
.prose table { margin: 1.5rem 0; font-size: 1rem; } .prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.post-cta { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.post-cta-title { font: 700 1.4rem/1.2 var(--font-display); color: var(--ink); }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.post-more ul { list-style: none; padding: 0; margin: 0 0 3rem; } .post-more li { padding: .6rem 0; border-top: 1px solid var(--line); }
.blog-list { padding-bottom: 4rem; }
.post-row { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.post-row time { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .3rem; }
.post-row h2 { font-size: 1.5rem; } .post-row h2 a { text-decoration: none; } .post-row h2 a:hover { text-decoration: underline; }
@media (max-width: 620px) { .post-row { grid-template-columns: 1fr; gap: .25rem; } }
.empty { color: var(--muted); }
