/*
| TM Heavy Industries - Rafine tema (application/config/config.php: $config['site_tema'] = 'rafine').
| Yalnizca bu tema seciliyken yuklenir; mevcut duzen korunur, tum kurallar .tema-rafine altindadir.
| Siyah-beyaz, keskin koseler, ince cizgiler, olculu animasyonlar.
*/
.tema-rafine{color:#111111;padding-bottom:0}

/* --- Alt bilgi ekranin dibinde: icerik kisa olsa da (sticky footer) --- */
body.tema-rafine{display:flex;flex-direction:column;min-height:100vh}
body.tema-rafine>.container{flex:1 0 auto;width:100%}

/* --- Bolum ritmi: bolumler arasi ve son bolum ile footer arasi esit 64px --- */
.tema-rafine .container.my-5{margin-top:64px !important;margin-bottom:64px !important}
body.tema-rafine>.container>div:last-of-type{margin-bottom:0 !important}
.tema-rafine .kategoriler,.tema-rafine .referanslar{row-gap:24px}
.tema-rafine .kategoriler>div,.tema-rafine .referanslar>div{margin-bottom:0 !important}
.tema-rafine .referanslar .resim{margin-bottom:0}
.tema-rafine .iletisim>.mt-5{margin-top:64px !important}

/* --- Ust bolum: menu alt cizgi, kare dil kutulari --- */
.tema-rafine .navbar .border-bottom{border-bottom:0 !important}
/* Logo: sabit 249x80 kutu + py-2 icinde ortalanip saga kayiyordu; genislik orana gore -> sola yasli */
.tema-rafine .navbar-brand{margin-right:0}
.tema-rafine .navbar-brand img{width:auto;height:80px}
.tema-rafine .navbar-light .navbar-nav .nav-link{font-weight:500;padding:6px 0;margin-left:26px;border-radius:0;background:none !important;color:#111111 !important}
.tema-rafine .navbar-light .navbar-nav .nav-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#111111;transform:scaleX(0);transform-origin:right center;transition:transform .35s cubic-bezier(.2,.7,0,1)}
.tema-rafine .navbar-nav .nav-link:hover::after,.tema-rafine .navbar-nav .active>.nav-link::after{transform:scaleX(1);transform-origin:left center}
/* Dil secici: tek hap icinde segment; secili dil siyah hap */
.tema-rafine .dilBars{display:flex;width:max-content !important;margin:0 0 10px auto;padding:3px !important;gap:2px;border:1px solid #d6d6d6;border-radius:999px}
.tema-rafine .dilBars li{width:auto;height:26px;line-height:26px;border:0;border-radius:999px;background:transparent;transition:background-color .25s}
.tema-rafine .dilBars li a{display:block;padding:0 11px;font-size:11px;font-weight:500;letter-spacing:.06em;color:#6b6b6b;transition:color .25s}
.tema-rafine .dilBars li:hover{background:#f1f1f1}
.tema-rafine .dilBars li:hover a{color:#111111}
.tema-rafine .dilBars li.active{background:#111111}
.tema-rafine .dilBars li.active a{color:#ffffff}

/* --- Basliklar: yaninda ince cizgi (kaydirdikca dolar) --- */
.tema-rafine .container>h4,.tema-rafine h1.h4,.tema-rafine .col-lg-9>h1.h5,.tema-rafine .col-lg-12>h1.h5{display:flex;align-items:center;gap:20px;margin-bottom:22px;font-weight:500;letter-spacing:.03em}
.tema-rafine .container>h4,.tema-rafine h1.h4{text-transform:uppercase}
.tema-rafine .container>h4::after,.tema-rafine h1.h4::after,.tema-rafine .col-lg-9>h1.h5::after,.tema-rafine .col-lg-12>h1.h5::after{content:"";flex:1;min-width:40px;height:1px;background:#dddddd}

/* --- Dugmeler ve formlar: keskin, siyah --- */
.tema-rafine .btn{border-radius:999px}
.tema-rafine .btn-dark,.tema-rafine .btn-danger{background:#111111;border-color:#111111;color:#ffffff;padding:.6rem 1.4rem;font-size:14px;font-weight:500;transition:background-color .3s,color .3s}
.tema-rafine .btn-dark:hover,.tema-rafine .btn-danger:hover{background:#ffffff;color:#111111;border-color:#111111}
.tema-rafine .btn-dark::after{content:"\2192";display:inline-block;margin-left:10px;transition:transform .4s cubic-bezier(.2,.7,0,1)}
.tema-rafine .btn-dark:hover::after{transform:translateX(5px)}
.tema-rafine .form-control{border-radius:0;border-color:#cfcfcf}
.tema-rafine .form-control:focus{border-color:#111111;box-shadow:inset 0 -2px 0 #111111}

/* --- Slayt: fotograf + siyah panel (baslik panelden metin) --- */
.tema-rafine .sitelerSlider{border-radius:12px;overflow:hidden}
.tema-rafine .sitelerSlider .carousel-item{filter:none}
.tema-rafine .tr-slayt{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);height:500px;background:#0b0b0b;color:#ffffff}
.tema-rafine .tr-slayt-foto{position:relative;overflow:hidden;min-height:300px}
.tema-rafine .tr-slayt-foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
.tema-rafine .tr-slayt-panel{position:relative;display:flex;flex-direction:column;justify-content:center;padding:84px 40px 120px;border-left:1px solid rgba(255,255,255,.12);overflow:hidden}
.tema-rafine .tr-sayac{position:absolute;top:40px;left:40px;margin:0;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#bdbdbd}
.tema-rafine .tr-slayt-panel h2{margin:0;font-size:clamp(24px,2.6vw,36px);line-height:1.15;font-weight:600;color:#ffffff;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tema-rafine .tr-cizgi{display:block;width:48px;height:2px;margin:22px 0 18px;background:#ffffff}
.tema-rafine .tr-slayt-panel p{margin:0 0 22px;color:#bdbdbd;font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tema-rafine .tr-bag{align-self:flex-start;color:#ffffff;font-size:14px;font-weight:500;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .4s}
.tema-rafine .tr-bag:hover{color:#ffffff;background-size:100% 1px}
.tema-rafine .sitelerSlider .carousel-indicators{left:auto;right:40px;bottom:100px;width:calc(36.36% - 80px);margin:0;gap:6px;justify-content:stretch}
.tema-rafine .sitelerSlider .carousel-indicators [data-bs-target]{flex:1;width:auto;height:2px;margin:0;border:0;background:rgba(255,255,255,.25);opacity:1}
.tema-rafine .sitelerSlider .carousel-indicators .active{background:#ffffff}
.tema-rafine .sitelerSlider .carousel-control-prev,.tema-rafine .sitelerSlider .carousel-control-next{top:auto;bottom:40px;left:auto;width:44px;height:44px;border:1px solid #ffffff;opacity:1;transition:background-color .25s}
/* onceki/sonraki birlesik hap: dis kenarlar yuvarlak, ortadaki birlesme duz (tek ayirici cizgi) */
.tema-rafine .sitelerSlider .carousel-control-next{right:40px;border-radius:0 999px 999px 0}
.tema-rafine .sitelerSlider .carousel-control-prev{right:84px;border-right:0;border-radius:999px 0 0 999px}
.tema-rafine .sitelerSlider .carousel-control-prev:hover,.tema-rafine .sitelerSlider .carousel-control-next:hover{background:rgba(255,255,255,.14)}
.tema-rafine .sitelerSlider .carousel-control-prev-icon,.tema-rafine .sitelerSlider .carousel-control-next-icon{width:14px;height:14px}

/* --- Katalog kutusu --- */
.tema-rafine .onlinekatalog{opacity:1;border:0;border-radius:12px}
.tema-rafine .onlinekatalog:hover{border:0;border-radius:12px}
.tema-rafine .onlinekatalog .btn{display:flex;justify-content:space-between;align-items:center;width:100%}
.tema-rafine .onlinekatalog img{transition:transform .9s cubic-bezier(.2,.7,0,1)}
.tema-rafine .onlinekatalog:hover img{height:auto;transform:scale(1.04)}

/* --- Kategori / proje kartlari: 12px yuvarlak, gri -> renkli; etiket sol altta zemine kaynayan centik
|      (sag ust kosesi yuvarlak, gorselle birlestigi iki noktada icbukey kavis), sabit boyut (kayma yok) --- */
.tema-rafine .kategoriler .resim{border-radius:12px;overflow:hidden;transition:filter .6s ease}
.tema-rafine .kategoriler .resim:hover{box-shadow:none}
.tema-rafine .kategoriler .resim h5,.tema-rafine .kategoriler .resim:hover h5{left:0;bottom:0;margin:0;padding:14px 22px 12px 18px;background:#ffffff;color:#111111;border-radius:0 12px 0 0;mix-blend-mode:normal;font-size:17px;font-weight:600;line-height:1.35;max-width:calc(100% - 24px)}
.tema-rafine .kategoriler .resim h5::before,.tema-rafine .kategoriler .resim h5::after{content:"";position:absolute;width:12px;height:12px;background:radial-gradient(circle at 100% 0,transparent 12px,#ffffff 12.5px)}
.tema-rafine .kategoriler .resim h5::before{left:0;top:-12px}
.tema-rafine .kategoriler .resim h5::after{right:-12px;bottom:0}
/* Proje listesi ve kategori sayfalari da 2 sutun (ana sayfa gibi); genis kartta uzun baslik daha az satir */
@media (min-width:768px){.tema-rafine .kategoriler>[class*="col-"]{width:50%}}
.tema-rafine .kategoriler .resim{height:300px;contain-intrinsic-size:300px}

/* --- Ana sayfa proje karuseli (tek dolu kategori); oklar slayt oklariyla ayni dil --- */
.tema-rafine .proje-karusel{border-radius:12px}
.tema-rafine .proje-karusel .swiper-button-prev,.tema-rafine .proje-karusel .swiper-button-next{--swiper-navigation-size:14px;--swiper-navigation-color:#111111;top:14px !important;left:auto;margin:0;width:44px;height:44px;background:#ffffff;border:1px solid #111111;transition:background-color .25s,color .25s}
.tema-rafine .proje-karusel .swiper-button-next{right:14px;border-radius:0 999px 999px 0}
.tema-rafine .proje-karusel .swiper-button-prev{right:58px;border-right:0;border-radius:999px 0 0 999px}
.tema-rafine .proje-karusel .swiper-button-prev:hover,.tema-rafine .proje-karusel .swiper-button-next:hover{background:#111111;--swiper-navigation-color:#ffffff}
.tema-rafine .proje-karusel .swiper-button-disabled{opacity:.45}

/* --- Galeri (sabit sayfa) --- */
.tema-rafine .urunlistesi div a{border-radius:0;box-shadow:none}
.tema-rafine .urunlistesi div a:before{background:linear-gradient(to bottom,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 100%)}
.tema-rafine .urunlistesi div a:hover{box-shadow:none;transform:none}
.tema-rafine .urunlistesi div a:hover .resim{transform:scale(1.05)}

/* --- Referanslar: cizgili hucreler, gri logolar --- */
.tema-rafine .referanslar .resim{border-radius:0;box-shadow:none;border:1px solid #e3e3e3;filter:grayscale(1);opacity:.8;transition:filter .5s,opacity .5s,border-color .3s}
.tema-rafine .referanslar .resim:hover{filter:none;opacity:1;border-color:#111111}

/* --- Yan kategori listesi --- */
/* Kenarlar tum ogelerde ayni (1px); secili gosterge ic golge -> kutular hizali, yazi kaymaz */
.tema-rafine .list-group{border-radius:12px;overflow:hidden}
.tema-rafine .list-group-item{border-radius:0 !important;border-color:#e3e3e3;color:#111111;transition:background-color .25s,box-shadow .25s}
.tema-rafine .list-group-item:hover{background:#f7f7f7;color:#111111}
.tema-rafine .list-group-item.active{background:#f4f4f4;color:#111111;border-color:#e3e3e3;box-shadow:inset 3px 0 0 #111111;font-weight:600}
.tema-rafine .list-group-item+.list-group-item.active{margin-top:0;border-top-width:0}
/* Proje detayinda sol sutun py-4: yan liste de ayni ust bosluk (baslikla hizali) */
.tema-rafine .col-lg-9.py-4+.col-lg-3{padding-top:1.5rem !important}

/* --- Proje detay: galeri (Swiper + PhotoSwipe) --- */
.tema-rafine .pg{margin:6px 0 36px}
.tema-rafine .pg-ana{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#0b0b0b}
.tema-rafine .pg-ana .swiper-slide{height:auto}
.tema-rafine .pg-buyut{display:block;width:100%;height:100%;cursor:zoom-in}
.tema-rafine .pg-ana img{width:100%;height:100%;object-fit:cover;display:block}
/* Yan menu yokken galeri ekrani kaplamasin: masaustunde galeri solda, proje bilgileri sagda */
@media (min-width:992px){
	.tema-rafine .pd-yan{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px;align-items:start}
	.tema-rafine .pd-yan .pg{margin-bottom:0}
	.tema-rafine .pd-yan .pd-bilgi{margin-top:6px}
	.tema-rafine .pd-yan .pd-baslik{margin-top:28px}
	.tema-rafine .pd-yan .pd-satir{grid-template-columns:minmax(96px,130px) minmax(0,1fr);gap:14px}
}
.tema-rafine .pg-ust{position:absolute;top:16px;left:16px;right:16px;z-index:5;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.tema-rafine .pg-sayac{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.92);color:#111111;font-size:12px;font-weight:500;letter-spacing:.12em}
.tema-rafine .pg-tamekran{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#111111;cursor:pointer;transition:background-color .25s,color .25s}
.tema-rafine .pg-tamekran:hover{background:#111111;color:#ffffff}
.tema-rafine .pg-oklar{position:absolute;right:16px;bottom:16px;z-index:5;display:flex}
.tema-rafine .pg-geri,.tema-rafine .pg-ileri{width:46px;height:44px;border:0;background:rgba(255,255,255,.92);color:#111111;font-size:18px;cursor:pointer;transition:background-color .25s,color .25s}
.tema-rafine .pg-geri{border-radius:999px 0 0 999px;border-right:1px solid #e3e3e3}
.tema-rafine .pg-ileri{border-radius:0 999px 999px 0}
.tema-rafine .pg-geri:hover,.tema-rafine .pg-ileri:hover{background:#111111;color:#ffffff}
.tema-rafine .pg-kucuk{margin-top:10px}
.tema-rafine .pg-kucuk .swiper-slide{width:112px;height:72px;border-radius:8px;overflow:hidden;opacity:.5;cursor:pointer;border:2px solid transparent;transition:opacity .3s,border-color .3s}
.tema-rafine .pg-kucuk .swiper-slide:hover{opacity:.85}
.tema-rafine .pg-kucuk .swiper-slide-thumb-active{opacity:1;border-color:#111111}
.tema-rafine .pg-kucuk img{width:100%;height:100%;object-fit:cover;display:block}
.tema-rafine .pswp{--pswp-bg:#0b0b0b}
/* --- Proje detay: bilgi tablosu ("Etiket : Deger" satirlari) --- */
.tema-rafine .pd-tablo{margin:0 0 8px;border-top:1px solid #111111}
.tema-rafine .pd-satir{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr);gap:20px;padding:14px 0;border-bottom:1px solid #e3e3e3}
.tema-rafine .pd-satir dt{padding-top:3px;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#6b6b6b}
.tema-rafine .pd-satir dd{margin:0;font-size:15px}
.tema-rafine .pd-kapsam .pd-satir dd{font-size:19px;font-weight:600}
.tema-rafine .pd-baslik{display:flex;align-items:center;gap:20px;margin:40px 0 16px;font-size:16px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.tema-rafine .pd-baslik::after{content:"";flex:1;height:1px;background:#dddddd}
.tema-rafine .pd-metin{margin:0 0 14px;font-size:16px;color:#444444}
@media (max-width:767.98px){.tema-rafine .pg-ana{aspect-ratio:4/3}.tema-rafine .pg-kucuk .swiper-slide{width:84px;height:56px}.tema-rafine .pd-satir{grid-template-columns:minmax(0,1fr);gap:4px}}

/* --- Iletisim --- */
.tema-rafine #map{border:1px solid #e3e3e3;border-radius:12px;overflow:hidden}
.tema-rafine .iletisim .table td{border-color:#e3e3e3}

/* --- Alt bilgi --- */
.tema-rafine .tr-alt{margin-top:64px;background:#111111;color:#ffffff}
.tema-rafine .tr-alt-ust{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding:32px 0}
.tema-rafine .tr-alt-logo{display:block;height:40px;width:auto;filter:invert(1)}
.tema-rafine .tr-alt-menu{display:flex;flex-wrap:wrap;gap:6px 24px;margin:0;padding:0;list-style:none;font-size:13px}
.tema-rafine .tr-alt-menu a{color:#d0d0d0;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .4s,color .3s}
.tema-rafine .tr-alt-menu a:hover{color:#ffffff;background-size:100% 1px}
.tema-rafine .tr-alt-alt{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding:16px 0 18px;border-top:1px solid rgba(255,255,255,.16)}
/* Imza (OKYAZILIM): acik gri, ustune gelince belirginlesir */
.tema-rafine .tr-imza img{display:block;height:22px;width:auto;opacity:.4;transition:opacity .3s}
.tema-rafine .tr-imza:hover img,.tema-rafine .tr-imza:focus-visible img{opacity:.85}
.tema-rafine .tr-alt .copyright{font-size:12px;color:#a8a8a8}

/* --- Animasyonlar --- */
@keyframes trKen{from{transform:scale(1.1)}to{transform:scale(1)}}
@keyframes trYuksel{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes trUzan{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tema-rafine .carousel-item.active .tr-slayt-foto img{animation:trKen 7s cubic-bezier(.2,.7,0,1) both}
.tema-rafine .carousel-item.active .tr-slayt-panel h2{animation:trYuksel .9s .15s cubic-bezier(.2,.7,0,1) both}
.tema-rafine .carousel-item.active .tr-slayt-panel p,.tema-rafine .carousel-item.active .tr-bag{animation:trYuksel .9s .3s cubic-bezier(.2,.7,0,1) both}
.tema-rafine .carousel-item.active .tr-cizgi{transform-origin:left center;animation:trUzan .9s .25s cubic-bezier(.65,0,.35,1) both}
@supports (animation-timeline: view()){
	@keyframes trBelir{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
	.tema-rafine .kategoriler>div,.tema-rafine .referanslar>div,.tema-rafine .container>h4,.tema-rafine #map{animation:trBelir linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
}
@media (prefers-reduced-motion: reduce){
	.tema-rafine *,.tema-rafine *::after{animation:none !important;transition:none !important}
}

/* --- Dar ekran --- */
@media (max-width:991.98px){
	.tema-rafine .navbar-light .navbar-nav .nav-link{margin-left:0}
}
@media (max-width:767.98px){
	/* Mobil: tum slaytlar ayni boyda (fotograf 240 + panel 320), metin uzunlugu yuksekligi degistirmez */
	.tema-rafine .tr-slayt{grid-template-columns:minmax(0,1fr);grid-template-rows:240px 320px;height:560px}
	.tema-rafine .tr-slayt-foto{min-height:0}
	.tema-rafine .tr-slayt-panel{padding:52px 24px 108px;border-left:0}
	.tema-rafine .tr-slayt-panel h2{font-size:22px;line-height:1.2;-webkit-line-clamp:3}
	.tema-rafine .tr-cizgi{margin:14px 0 12px}
	.tema-rafine .tr-slayt-panel p{margin-bottom:12px;font-size:14px;-webkit-line-clamp:1}
	.tema-rafine .tr-sayac{top:24px;left:24px}
	.tema-rafine .sitelerSlider .carousel-indicators{right:24px;width:calc(100% - 48px)}
	.tema-rafine .sitelerSlider .carousel-control-next{right:24px}
	.tema-rafine .sitelerSlider .carousel-control-prev{right:68px}
}
