/* Ortak site bileşenleri: temel, buton, header, footer, kulakçık, görsel yer tutucu.
   Header/footer MASTER 01 referansıdır; tüm sayfalar bu dosyadan alır (VIS02). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tt-page);
  color: var(--tt-ink);
  font-family: var(--tt-font);
  font-size: var(--tt-fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* bileşen display kuralları hidden'ı ezmesin */
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--tt-red); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tt-surface); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--tt-container) + 2 * var(--tt-gutter));
  margin-inline: auto;
  padding-inline: var(--tt-gutter);
}

.eyebrow {
  color: var(--tt-red-text);
  font-size: var(--tt-fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--tt-track-eyebrow);
  text-transform: uppercase;
}
.hero .eyebrow, .pg-hero .eyebrow, .list-hero .eyebrow, .quote-visual .eyebrow { color: var(--tt-red); } /* koyu/görsel zemin */

/* Butonlar — işlevsel ok MASTER'da mevcut */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--tt-radius);
  font: 600 1rem/1 var(--tt-font); text-decoration: none; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--tt-red); color: var(--tt-on-accent); }
.btn-primary:hover { background: var(--tt-red-hover); }
.btn-outline { background: var(--tt-surface); color: var(--tt-red-text); border-color: var(--tt-red); }
.btn-link-light {
  color: #fff; padding: 0 0 4px; min-height: 0; border-radius: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
}
.btn-link-red {
  color: var(--tt-red-text); padding: 0 0 4px; min-height: 0; border-radius: 0;
  border-bottom: 1.5px solid var(--tt-red); font-size: 1rem;
}
.ico-arrow { width: 16px; height: 16px; flex: none; }

/* Görsel yer tutucu (D-006) — prod'a çıkamaz */
.asset-pending {
  position: relative; display: grid; place-items: center;
  background: var(--tt-card-media); color: var(--tt-muted);
  font-size: 0.8125rem; letter-spacing: 0.04em; text-align: center;
  overflow: hidden;
}
.asset-pending.is-dark {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(253, 87, 0, 0.20), transparent 55%),
    linear-gradient(135deg, #22292d 0%, #0d1113 100%);
  color: rgba(255, 255, 255, 0.45);
}
.asset-pending.is-dusk {
  background: linear-gradient(160deg, #e8c9a6 0%, #a8a39a 45%, #4b5257 100%);
  color: rgba(255, 255, 255, 0.7);
}
.asset-pending > .asset-label {
  position: absolute; left: 10px; bottom: 8px;
  padding: 3px 8px; border: 1px dashed currentColor; border-radius: 3px;
}

/* Ortak araç kartı ve bölüm başlığı (ana sayfa, liste, detay) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.section-head h2 { font-size: var(--tt-fs-h2); font-weight: 700; letter-spacing: var(--tt-track-tight); line-height: 1.1; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: var(--tt-radius);
}
.vehicle-card .asset-pending { aspect-ratio: 426 / 232; }
.vehicle-body { display: flex; flex-direction: column; flex: 1; padding: 22px 28px 28px; }
.vehicle-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-title h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.vehicle-title a { text-decoration: none; }
.vehicle-title a::after { content: ""; position: absolute; inset: 0; } /* kart → detay */
.tag {
  flex: none; padding: 3px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tt-line);
  color: var(--tt-ink-2); font-size: 0.875rem;
}
.vehicle-card .btn { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: relative; z-index: 20;
  background: var(--tt-surface);
  border-bottom: 1px solid var(--tt-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--tt-header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo-slot { width: 330px; height: 60px; border-radius: 3px; }
/* Gerçek logo: MASTER 01 header yüksekliği (37 × 1.776 ≈ 66 px), oran korunur */
.brand-logo { display: block; width: auto; height: 64px; }
.main-nav ul { display: flex; gap: clamp(24px, 3vw, 46px); }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: var(--tt-fs-nav); font-weight: 500; text-decoration: none; color: var(--tt-ink);
}
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--tt-red);
}
.main-nav a:hover { color: var(--tt-red-text); }
.header-cta { min-width: 146px; min-height: 52px; }

/* Sabit sağ kulakçık — footer elemanı değil (VIS04). Davranış D-014, v4 aç/kapa D-024.
   v4 (Serkan): dış gövde İletişim paneliyle aynı antrasit; içteki beyaz ve yeşil butonlar aynı. */
.side-ear {
  position: fixed; right: 0; top: 290px; z-index: 30;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 14px 22px;
  background: var(--tt-anthracite);
  border-radius: 22px 0 0 22px;
  box-shadow: var(--tt-shadow-float);
  transition: transform 0.25s ease;
}
.side-ear a {
  display: block; padding: 10px 18px;
  background: #fff; color: var(--tt-ink); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.01em;
  text-transform: uppercase; text-decoration: none; text-align: center; white-space: nowrap;
}
.side-ear a:hover { color: var(--tt-red-text); }
/* WhatsApp butonu (v3, Serkan): yeşil zemin, beyaz ikon + "Whatsapp". Mobil çubuk aşağıdaki 767 px bloğunda. */
.side-ear a.ear-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 196px; /* v2'deki kulakçık genişliği korunur */
  background: #25D366; color: #fff;
}
.side-ear a.ear-wa:hover { background: #1fbe5a; color: #fff; }
.side-ear a.ear-wa svg { flex: none; width: 18px; height: 18px; }
.ear-wa-desktop { text-transform: none; }
.ear-wa-mobile { display: none; }
/* Form sayfası: masaüstünde yalnız WhatsApp. v4 revize (Serkan, 11.11.2026, D-026): diğer sayfalardaki kulakçıkla aynı tasarım —
   aynı antrasit gövde ve genişlik, yatay yeşil WhatsApp butonu, beyaz ikon/yazı, aynı aç/kapa düğmesi. Varsayılan kapalı
   (ear.js data-ear-manual). Yalnız ≥ 768 px; mobil alt çubuk aşağıdaki 767 px bloğunda değişmeden kalır. */
.side-ear.is-whatsapp { top: 400px; }
@media (min-width: 768px) {
  .side-ear a.ear-wa-form {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 196px; background: #25D366; color: #fff;
  }
  .side-ear a.ear-wa-form:hover { background: #1fbe5a; color: #fff; }
  .side-ear a.ear-wa-form svg { flex: none; width: 18px; height: 18px; }
}

/* Masaüstü/tablet aç/kapa (v4, D-024): düğme gövdenin solunda, kapalıyken sağ kenarda tek başına görünür.
   Kapalıyken gövde ekran dışına kayar ve bağlantılar sekme sırasından çıkar (visibility). Fareyle açılmaz.
   Tıklanabilir alanla çakışmada ear.js paneli kapatır (D-014). */
.ear-toggle {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 64px; padding: 0;
  border: 0; border-radius: 10px 0 0 10px; background: inherit; color: #fff;
  box-shadow: -6px 4px 14px rgba(17, 22, 24, 0.18); cursor: pointer;
}
.ear-toggle svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.ear-toggle:hover { color: #fff; filter: brightness(1.25); }
.ear-toggle:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.side-ear.is-closed { transform: translateX(100%); box-shadow: none; }
.side-ear.is-closed > a { visibility: hidden; transition: visibility 0s linear 0.25s; }
.side-ear.is-closed .ear-toggle svg { transform: rotate(180deg); }

/* Form sayfası teklif bağlantısı yalnız mobil çubukta (D-016). */
.side-ear .ear-mobile-only, .side-ear.is-whatsapp .ear-mobile-only { display: none; }

/* Mobil: antrasit alt sabit çubuk; masaüstü kulakçığıyla aynı buton stilleri. */
@media (max-width: 767px) {
  body.has-ear { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .side-ear, .side-ear.is-whatsapp {
    top: auto; left: 0; bottom: 0; flex-direction: row; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--tt-anthracite); border-radius: 0;
    box-shadow: 0 -4px 18px rgba(17, 22, 24, 0.12);
    transition: none;
  }
  .side-ear a, .side-ear.is-whatsapp a {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center;
    gap: 6px; min-width: 0; min-height: 52px; width: auto;
    padding: 0 8px; border: 0; border-radius: 999px;
    background: #fff; color: var(--tt-ink);
    font-size: clamp(0.6875rem, 3vw, 0.8125rem);
    line-height: 1.2; white-space: normal; text-decoration: none;
  }
  .side-ear .ear-mobile-only, .side-ear.is-whatsapp .ear-mobile-only {
    display: flex;
  }
  .side-ear a.ear-wa, .side-ear.is-whatsapp a.ear-wa-form {
    min-width: 0; background: #25D366; color: #fff;
  }
  .side-ear a.ear-wa:hover, .side-ear.is-whatsapp a.ear-wa-form:hover {
    background: #1fbe5a; color: #fff;
  }
  .side-ear a.ear-wa svg, .side-ear a.ear-wa-form svg {
    display: block; flex: none; width: 18px; height: 18px;
  }
  .side-ear .ear-wa-desktop { display: inline; text-transform: none; }
  .side-ear .ear-wa-mobile { display: none; }
  .ear-toggle { display: none; }
  .side-ear.is-closed { transform: none; }
  .side-ear.is-closed > a { visibility: visible; }
}

/* Footer */
.site-footer {
  background: var(--tt-footer); color: var(--tt-on-dark);
  border-top: 4px solid var(--tt-red);
}
.footer-main {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.2fr;
  padding-block: 44px 34px;
}
.footer-brand .logo-slot { width: 330px; height: 64px; border-radius: 3px; }
.footer-brand .brand-logo { height: 66px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 12px; font-style: normal; color: var(--tt-on-dark-muted); font-size: 0.9375rem; line-height: 1.5; }
.footer-contact a { color: var(--tt-on-dark-muted); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-contact span { flex-basis: 100%; }
.footer-brand p { margin-top: 18px; color: var(--tt-on-dark-muted); font-size: 1.125rem; }
.footer-col { padding-left: 34px; border-left: 1px solid var(--tt-on-dark-line); }
.footer-col:first-of-type { border-left: 0; }
.footer-col h2 {
  position: relative; margin-bottom: 14px; padding-top: 18px;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
}
.footer-col h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 54px; height: 3px; background: var(--tt-red);
}
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--tt-on-dark-muted); text-decoration: none; font-size: 1rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 22px 26px; border-top: 1px solid var(--tt-on-dark-line);
  color: var(--tt-on-dark-muted); font-size: 0.9375rem;
}
.footer-bottom ul { display: flex; }
.footer-bottom li + li::before { content: "|"; margin: 0 20px; color: var(--tt-on-dark-line); }
.footer-bottom a { color: var(--tt-on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

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

/* Duyarlı görseller: yuvayı kaplar; odak noktası --fx/--fy (panel medya odak noktası, CSP uyumlu sınıflar) */
.media-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.media-img.fx-0 { --fx: 0%; } .media-img.fy-0 { --fy: 0%; }
.media-img.fx-10 { --fx: 10%; } .media-img.fy-10 { --fy: 10%; }
.media-img.fx-20 { --fx: 20%; } .media-img.fy-20 { --fy: 20%; }
.media-img.fx-30 { --fx: 30%; } .media-img.fy-30 { --fy: 30%; }
.media-img.fx-40 { --fx: 40%; } .media-img.fy-40 { --fy: 40%; }
.media-img.fx-50 { --fx: 50%; } .media-img.fy-50 { --fy: 50%; }
.media-img.fx-60 { --fx: 60%; } .media-img.fy-60 { --fy: 60%; }
.media-img.fx-70 { --fx: 70%; } .media-img.fy-70 { --fy: 70%; }
.media-img.fx-80 { --fx: 80%; } .media-img.fy-80 { --fy: 80%; }
.media-img.fx-90 { --fx: 90%; } .media-img.fy-90 { --fy: 90%; }
.media-img.fx-100 { --fx: 100%; } .media-img.fy-100 { --fy: 100%; }
.hero-media.media-img, .list-hero-media.media-img, .pg-hero-media.media-img, .quote-visual-media.media-img, .promo-media.media-img { position: absolute; inset: 0; }
/* Yuva varsayılan odakları (panelde odak girilmemişse); :where ile düşük öncelik */
:where(.hero-media.media-img) { --fx: 72%; --fy: 62%; }
:where(.list-hero-media.media-img) { --fx: 76%; --fy: 60%; }
:where(.quote-visual-media.media-img) { --fx: 50%; --fy: 70%; }
:where(.promo-media-1.media-img) { --fx: 66%; --fy: 66%; }
:where(.promo-media-2.media-img) { --fx: 76%; --fy: 58%; }
:where(.corporate-img.media-img) { --fx: 50%; --fy: 60%; }
.card-img { aspect-ratio: 426 / 232; background: var(--tt-card-media); }
.vehicle-card .card-img.media-img { height: auto; object-fit: contain; }
.gallery-main.media-img { height: auto; aspect-ratio: 810 / 430; object-fit: contain; border-radius: var(--tt-radius); }
.overview-media.media-img { height: auto; aspect-ratio: 812 / 338; border-radius: var(--tt-radius); }
/* D-027: yüksek çözünürlüklü (≥ 800 px) araç görselleri kutuyu doldurur (MASTER 02/03); küçük MASTER kırpımları (is-native)
   büyütülmez ve contain kalır. Paket görsellerinde araç ortada, üst/alt pay ≥ %10: tekerlek ve tamponlar kırpılmaz. */
.gallery-main.media-img:not(.is-native), .vehicle-card .card-img.media-img:not(.is-native) { object-fit: cover; }
.pg-two-img.media-img { height: auto; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gallery-thumbs .thumb { padding: 0; border: 2px solid transparent; border-radius: var(--tt-radius); background: #fff; cursor: pointer; overflow: hidden; }
.gallery-thumbs .thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumbs .thumb[aria-selected="true"] { border-color: var(--tt-red); }
/* Yalnız küçük resim ölçeğindeki görseller: etkileşimsiz şerit, kaynak boyutundan büyük çizilmez */
.gallery-thumbs.is-static { margin: 12px 0 0; padding: 0; list-style: none; }
.gallery-thumbs.is-static .thumb { display: grid; place-items: center; cursor: default; background: transparent; }
.gallery-thumbs.is-static .thumb img { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.gallery-thumbs.is-static .thumb.is-current { border-color: var(--tt-red); }
/* Küçük kaynak (< 800 px): yuva korunur, görsel en fazla doğal boyutunda ortalanır (büyütme yok) */
.media-img.is-native, .vehicle-card .card-img.media-img.is-native, .gallery-main.media-img.is-native { object-fit: scale-down; }
.card-img.media-img.is-native { background: transparent; }
/* Fotoğraflı koyu yuvalarda metin okunurluğu: soldan karartma */
.promo-item.is-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 12, 0.7) 0%, rgba(8, 10, 12, 0.25) 60%, transparent 85%); pointer-events: none; }
.promo-item .promo-copy { z-index: 2; }
/* Panel taslak önizlemesi (yalnız yöneticiye) */
.draft-flag { position: sticky; top: 0; z-index: 90; margin: 0; padding: 8px 16px; background: #fff3cd; border-bottom: 1px solid #e8d38a; color: #5c4600; font-size: 0.875rem; text-align: center; }
.hero::before, .list-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 12, 14, 0.72) 0%, rgba(10, 12, 14, 0.35) 45%, transparent 70%); }
.hero-content, .list-hero-content { z-index: 2; }

/* ADY: siyah bölümlü MASTER logo koyu footer'da görünsün diye mevcut 66 px logo alanı içinde beyaz zemin (logo rengi değişmez). */
.footer-brand .brand-logo { box-sizing: border-box; padding: 6px 10px; background: #fff; border-radius: 4px; }
