/* Site tarafı (ziyaretçiye görünen) genel stiller (webstandarts.md standardına uygun) */

:root { color-scheme: light; }

body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; }

.site-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-logo img { display: block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--primary); }
.site-nav .dropdown-menu { border-color: var(--border); }

@media (max-width: 991px) {
  .site-nav { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; width: 100%; }
}

/* Hero block */
.block-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}
.block-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11,11,11,0.45);
}
.block-hero .hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.block-hero h1 { font-size: 2.2rem; font-weight: 700; }
.block-hero p { font-size: 1.1rem; margin-top: 12px; }

/* Vitrin (kart grid) block */
.block-vitrin { padding: 56px 0; }
.block-vitrin .vitrin-baslik { text-align: center; margin-bottom: 32px; font-size: 1.7rem; font-weight: 700; }
.vitrin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .vitrin-grid { grid-template-columns: 1fr; } }
.vitrin-card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--text-primary); display: block; transition: transform .15s, box-shadow .15s;
}
.vitrin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); color: var(--text-primary); }
.vitrin-card img { width: 100%; height: 180px; object-fit: cover; }
.vitrin-card .vitrin-card-body { padding: 14px; }
.vitrin-card .vitrin-card-body h3 { font-size: 1.05rem; margin: 0; }

/* Metin + Görsel block */
.block-metin-gorsel { padding: 48px 0; }
.block-metin-gorsel .row.reverse { flex-direction: row-reverse; }

/* Hizmet kategori/detay */
.hizmet-kategori-hero { padding: 40px 0; text-align: center; }
.hizmet-detay-gallery-main img { width: 100%; border-radius: 10px; max-height: 480px; object-fit: cover; }
.hizmet-detay-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.hizmet-detay-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.hizmet-detay-thumbs img.active { border-color: var(--primary); }

/* İletişim - çoklu ofis */
.ofis-kartlari { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.ofis-karti {
  flex: 0 0 240px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; cursor: pointer;
}
.ofis-karti.active { border-color: var(--primary); background: var(--primary-subtle); }
.ofis-karti h4 { font-size: 1rem; margin-bottom: 6px; }
@media (min-width: 992px) {
  .ofis-kartlari { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.7rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); text-decoration: none;
  transition: bottom .2s ease;
}
.whatsapp-float:hover { background: #1ebe5a; color: #fff; }
body:has(#cookieBanner:not(.d-none)) .whatsapp-float { bottom: calc(24px + var(--cookie-banner-height, 90px)); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: var(--surface-card); border-top: 1px solid var(--border);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cookie-banner .btns { display: flex; gap: 8px; flex-shrink: 0; }

.site-footer { background: var(--surface-card); border-top: 1px solid var(--border); margin-top: 40px; }
.social-icons a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-hover); align-items: center; justify-content: center; margin-right: 6px; color: var(--text-primary); }

.filtre-paneli { background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.filtre-grup { margin-bottom: 16px; }
.filtre-grup h6 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
