/* Sitenin ortak eklentileri: kendi sunucumuzdan yazı tipi, koyu tema, çerez bilgisi, onay kutuları, form uyarıları.
   Kit (assets/system.css) ve sayfa içi stillerden sonra yüklenir. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- koyu tema: kit renkleri --p-* üzerinden, sayfa içi sabit renkler aşağıda tek tek ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #0b1220; --p-surface: #111a2b; --p-ink: #e6edf5; --p-muted: #9fb0c4;
  --p-accent: #55A3E7; --p-accent-ink: #051B2E; --p-action: #55A3E7; --p-action-ink: #051B2E;
  --p-inv-bg: #060c16; --p-inv-surface: #0e1a2c; --p-inv-ink: #e6edf5; --p-inv-muted: #9fb0c4;
  --brand-50: #10233a; --brand-100: #15304f; --brand-200: #1d4068; --brand-600: #55A3E7; --brand-700: #55A3E7; --brand-800: #92C2ED;
  --body-ink: #cfd8e3;
  --glass: rgba(17, 26, 43, .62); --glass-line: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .nav { background: rgba(11, 18, 32, .78); border-bottom-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .talep-panel,
html[data-theme="dark"] .tk,
html[data-theme="dark"] .field :is(input, select, textarea),
html[data-theme="dark"] .talep .choice label,
html[data-theme="dark"] .quick select { background: #111a2b; border-color: #26344a; color: var(--p-ink); }
html[data-theme="dark"] .talep .choice label:has(input:checked) { background: #15304f; border-color: #55A3E7; }
html[data-theme="dark"] .wa { background: #0f1b17; color: #e6edf5; }
html[data-theme="dark"] .wa__msg { background: #1f4d36; }
html[data-theme="dark"] .closing__cta.close--photo { background: #0e1a2c; }
html[data-theme="dark"] .hero__kicker { background: #15304f !important; color: #cfe3f5 !important; }
html[data-theme="dark"] img { filter: brightness(.92); }

/* ---- tema düğmesi (üst menüde) ---- */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---- form: otopark/adres seçimi, aynı il uyarısı, onay kutuları ---- */
.handover { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.handover label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; min-height: 48px; border: 1px solid #D9DEE2; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.handover label:has(input:checked) { border-color: var(--brand-600, #156BB7); background: var(--brand-50, #F3F8FC); }
.field .handover input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; flex: none; accent-color: var(--brand-700, #125997); }
.handover small { display: block; color: var(--muted); font-size: 12px; }
html[data-theme="dark"] .handover label { background: #111a2b; border-color: #26344a; }
.consents { display: grid; gap: 10px; margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--ink); cursor: pointer; }
.field .consent input, .consent input { width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--brand-700, #125997); }
.consent a { color: var(--brand-700, #125997); text-decoration: underline; text-underline-offset: 2px; }
.consent .opt { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #f3c2c2; background: #fdf1f1; color: #9b1c1c; font-size: 14px; }
html[data-theme="dark"] .form-alert { background: #2a1214; border-color: #5c2a2e; color: #f6c6c9; }

/* ---- çerez bilgisi ---- */
.cookie-bar { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--p-inv-bg, #051B2E); color: #e6edf5; box-shadow: 0 16px 48px -16px rgba(0,0,0,.45); font-size: 13.5px; line-height: 1.45; }
.cookie-bar a { color: #92C2ED; text-decoration: underline; }
.cookie-bar button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #051B2E; font-weight: 600; cursor: pointer; }
@media (max-width: 520px) { .cookie-bar { flex-direction: column; align-items: stretch; } }

/* ---- yasal sayfa ---- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 56px; scroll-margin-top: 96px; }
.legal h3 { margin-top: 28px; font-size: 18px; }
.legal p, .legal li { color: var(--body-ink, var(--ink)); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .toc { display: grid; gap: 6px; padding: 20px 24px; border-radius: 16px; background: var(--p-surface); }
.legal .toc a { color: var(--brand-700, #125997); }
.legal .note { padding: 14px 16px; border-radius: 12px; border: 1px solid #f1d38a; background: #fdf7e6; color: #6b4a00; font-size: 14px; }
html[data-theme="dark"] .legal .note { background: #2a2210; border-color: #5c4a1a; color: #f1d38a; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* telefonda geniş tablo sayfayı yana kaydırmasın: tablo kendi içinde kayar */
@media (max-width: 639px) { .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; } }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---- başvuru formu ---- */
.city-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 10px; border: 1px solid #D9DEE2; border-radius: 12px; background: #fff; }
.city-picker label { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 400; cursor: pointer; }
html[data-theme="dark"] .city-picker { background: #111a2b; border-color: #26344a; }
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 639px) { .handover, .fleet { grid-template-columns: 1fr; } }
.field .city-picker input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; flex: none; accent-color: var(--brand-700, #125997); }
.city-picker label { min-height: 28px; }

/* talep formu bölümü: form (il başına otopark/adres seçimiyle) bir ekrandan uzun olabilir; bölüm içeriği kadar uzar,
   kitin sabit ekran yüksekliği formu sonraki bölümün üstüne taşırmaz */
main > #talep { height: auto; min-height: 100vh; min-height: 100svh; }
label .opt { font-weight: 400; color: var(--muted); font-size: .9em; }

/* ---- mobil menü: üst çubuğun buzlu cam efekti (backdrop-filter) içindeki "fixed" öğeleri çubuğa hapseder; menü
   paneli ekranı kaplayamaz, sayfa da kilitli kalırdı. Menü açıkken efekt kapanır, çubuk ve panel düz zemin alır. ---- */
@media (max-width: 1023px) {
  .nav.is-open { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--p-bg, #fff) !important; }
  .nav.is-open .nav__links, .nav.is-open .nav__actions { background: var(--p-bg, #fff); }
  .nav.is-open .nav__links { z-index: 50; }
  .nav.is-open .nav__actions .theme-toggle { justify-self: center; }
}

/* ---- blog ve SSS (sunucuda üretilen sayfalar) ---- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.blog__head { max-width: 760px; }
.blog__head h1, .article__head h1 { overflow-wrap: break-word; }
.blog-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.blog-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--p-bg, #fff); transition: border-color .2s, transform .2s; }
.blog-card:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); transform: translateY(-2px); }
.blog-card__link { display: grid; height: 100%; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; }
.blog-card__media { aspect-ratio: 16 / 10; background: var(--p-surface); }
.blog-card__media img, .blog-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5); }
.blog-card__body :is(h2, h3) { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.blog-card__body p { margin: 0; color: var(--body-ink, var(--ink)); }
.blog-card__meta { font-size: 13px; color: var(--muted) !important; }
.article__meta { color: var(--muted); font-size: 14px; }
.article__cover { margin: 0; max-width: 960px; }
.article__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.article__body > :first-child { margin-top: 0; }
.article__body blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--brand-700, #125997); border-radius: 0 12px 12px 0; background: var(--p-surface); }
.article__body blockquote p { margin: 0; }
.article__body a:not(.btn) { color: var(--brand-700, #125997); text-decoration: underline; text-underline-offset: 2px; }
.article__body p, .article__body li { overflow-wrap: break-word; }
.article__cta { margin-top: 40px; padding: 24px; border-radius: 20px; background: var(--p-surface); }
.article__cta h2 { margin: 0 0 8px !important; font-size: 22px; }
.article__cta p { margin: 0 0 14px; }
.article__related { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.article__related h2 { margin: 0; }
.sss__list { max-width: 820px; }
.sss .faq__item > h2 { display: block; margin: 0; font: 600 var(--t-lead, 19px)/1.4 var(--font-text, inherit); letter-spacing: -0.01em; }
.article__body ul { list-style: disc; } .article__body ol { list-style: decimal; }
.article__body li { margin: 4px 0; } .article__body li::marker { color: var(--muted); }
/* yazı ve sayfalardaki Google Drive fotoğrafları */
.md-img { margin: 8px 0; }
.md-img img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--p-surface); }
.md-img figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---- telefonda sabit "bizi arayın" düğmesi (site.js ekler; masaüstünde yok) ---- */
.call-fab { display: none; }
@media (max-width: 1023px) {
  .call-fab {
    position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--brand-700, #125997); color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px -6px rgba(5, 27, 46, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset;
    transition: transform .15s ease, background-color .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .call-fab:active { transform: scale(.94); }
  .call-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-700, #125997) 40%, transparent); outline-offset: 3px; }
  .call-fab svg { width: 22px; height: 22px; }
  /* açılır menü açıkken gizlensin (çerez bilgisi alttayken site.js düğmeyi onun üstüne taşır) */
  body.nav-locked .call-fab, body:has(.nav.is-open) .call-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .call-fab { transition: none; } }
