/* ==========================================================================
   KNT Yapı Mimarlık — extra.css
   Galeri ve panelden eklenen bölümler için ek stiller.
   style.css dosyasına dokunmadan genişletir.
   ========================================================================== */

/* ---------------------------------------------------------------- Logo görseli */
.logo__img { height: 34px; width: auto; object-fit: contain; }
.logo--footer .logo__img { height: 40px; }

/* ---------------------------------------------------------------- Kart ızgarası sütunu */
.why__grid { grid-template-columns: repeat(var(--cols, 4), 1fr); }

/* ---------------------------------------------------------------- Serbest metin */
.richtext__body { font-size: 1.02rem; line-height: 1.8; color: var(--text-soft); }
.richtext__body--narrow { max-width: 780px; }
.richtext__body h2, .richtext__body h3 { font-family: var(--font-display); color: var(--text); margin: 1.6em 0 .6em; letter-spacing: -.02em; }
.richtext__body h2 { font-size: clamp(24px, 2.4vw, 34px); }
.richtext__body h3 { font-size: clamp(20px, 1.8vw, 26px); }
.richtext__body ul, .richtext__body ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.richtext__body ol { list-style: decimal; }
.richtext__body li { margin-bottom: .4em; }
.richtext__body a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.section--dark .richtext__body, .section--ink .richtext__body { color: var(--on-dark-soft); }
.section--dark .richtext__body h2, .section--dark .richtext__body h3,
.section--ink .richtext__body h2, .section--ink .richtext__body h3 { color: var(--on-dark); }
.section--dark .richtext__body a, .section--ink .richtext__body a { color: var(--brand); }
.svc-article__body p { margin: 0 0 1.1em; color: var(--text-soft); }

/* ---------------------------------------------------------------- Galeri bölümü */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-cell { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; }
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-cell__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left;
  font-size: 13px; font-weight: 650; letter-spacing: .01em; color: #fff;
  background: linear-gradient(to top, rgba(6, 8, 7, .82), transparent);
  opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out);
}
.gallery-cell:hover .gallery-cell__cap, .gallery-cell:focus-visible .gallery-cell__cap { opacity: 1; transform: none; }
.gallery-cell:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------------- Çağrı bandı */
.cta-banner { position: relative; overflow: hidden; text-align: center; }
.cta-banner__bg { position: absolute; inset: 0; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 11, .92), rgba(10, 12, 11, .62)); }
.cta-banner__inner { position: relative; z-index: 2; max-width: 860px; }
.cta-banner__inner .btn-row { justify-content: center; margin-top: 28px; }
.cta-banner__inner p { color: var(--on-dark-soft); margin-top: 18px; }

/* Açılış ekranı stilleri landing.css, mimarlık sayfası stilleri arch.css dosyasındadır. */

/* Galeri: duyarlı */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-cell:nth-child(6n+1) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-cell, .gallery-cell:nth-child(6n+1) { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- Yönetici kısayolu (girişliyken tüm sayfalarda) */
.admin-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 9000; display: flex; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(10, 12, 11, .88); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: "Inter", system-ui, sans-serif;
}
.admin-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; }
.admin-bar a:hover { background: rgba(255, 255, 255, .1); }
.admin-bar svg { width: 16px; height: 16px; }
.admin-bar__edit { background: #1fbf45; color: #07130a !important; }
.admin-bar__edit:hover { background: #45e06a !important; }

/* ---------------------------------------------------------------- İnşaat üst menüsü: İnşaat / Mimarlık geçişi */
.bswitch { display: flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.bswitch a { padding: 7px 12px; border-radius: 999px; font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); transition: background-color .3s, color .3s; }
.bswitch a:hover { color: var(--on-dark); }
.bswitch a[aria-current] { background: var(--brand); color: var(--ink); }
.mmenu__switch .mmenu__label { color: var(--brand); }
@media (max-width: 1380px) { .header__phone-text { display: none; } }
@media (max-width: 1180px) { .bswitch { display: none; } }

/* Sitenin yapımcı imzası (İnşaat ve Mimarlık altbilgisi) */
.site-credit { margin: 0; font-size: .85rem; letter-spacing: .01em; }
.site-credit strong { color: var(--fg, var(--on-dark, currentColor)); font-weight: 600; }
.site-credit a { transition: opacity .3s ease; }
.site-credit a:hover { opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
