/*
Theme Name: EnerjiK Kurumsal
Theme URI: http://enerjikyapiyonetim.com.tr
Author: EnerjiK
Description: EnerjiK Yapı Yönetim Eksiksiz WordPress Teması (Rastgele Galeri ve Dengeli Boşluklar)
Version: 2.9
Text Domain: enerjik
*/

/* Global Sıfırlama ve Kutu Modeli */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 11pt; line-height: 1.6; color: #2d3748; background-color: #f8fafc; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Üst Menü / Header */
.site-header { background-color: #ffffff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo-area { display: flex; align-items: center; }
.logo-text { font-size: 18pt; font-weight: 800; color: #0f2537; letter-spacing: -0.5px; }
.logo-text span { color: #b89047; }
.logo-area .custom-logo-link { display: inline-block; }
.logo-area img.custom-logo { max-height: 55px; width: auto; display: block; object-fit: contain; }

.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 24pt; color: #0f2537; cursor: pointer; padding: 0; line-height: 1; }
.nav-area { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; margin-right: 20px; padding: 0; }
.nav-menu li { margin-left: 25px; position: relative; }
.nav-menu a { font-size: 10.5pt; font-weight: 600; color: #4a5568; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s ease; display: block; }
.nav-menu > li > a:hover { color: #b89047; }

/* Masaüstü Açılır Menü */
.nav-menu .menu-item-has-children > a::after { content: ' \25BE'; font-size: 10pt; margin-left: 4px; }
.nav-menu .sub-menu { position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 240px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-top: 3px solid #b89047; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 999; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li { margin: 0; width: 100%; }
.nav-menu .sub-menu a { padding: 12px 20px; font-size: 10pt; font-weight: 500; text-transform: none; color: #4a5568; border-bottom: 1px solid #f1f5f9; }
.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu a:hover { color: #b89047; background-color: #f8fafc; padding-left: 28px; }

/* Online İşlemler Butonu */
.btn-online { display: inline-block; background-color: #0f2537; color: #ffffff; padding: 10px 20px; font-size: 10pt; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; transition: background-color 0.2s ease; border: 1px solid #0f2537; cursor: pointer; }
.btn-online:hover { background-color: #b89047; border-color: #b89047; color: #ffffff; }

/* Slider */
.slider-wrapper { position: relative; width: 100%; height: 600px; overflow: hidden; background-color: #0f2537; border-bottom: 5px solid #b89047; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 4s linear; background-size: cover; background-position: center; transform: scale(1.05); z-index: 1; }
.slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 37, 55, 0.65); z-index: 3; }
.slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%); text-align: center; color: #ffffff; width: 90%; max-width: 900px; z-index: 4; opacity: 0; transition: transform 0.8s ease-out, opacity 0.8s ease-out; }
.slide.active .slide-content { transform: translate(-50%, -50%); opacity: 1; transition-delay: 0.3s; }
.slide-content h1 { font-size: 34pt; font-weight: 800; line-height: 1.2; margin-bottom: 15px; letter-spacing: -1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.slide-content p { font-size: 14pt; color: #e2e8f0; margin-bottom: 30px; font-weight: 300; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.3); width: 45px; height: 45px; font-size: 16pt; cursor: pointer; z-index: 5; transition: all 0.3s ease; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: #b89047; border-color: #b89047; }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }
.slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: background 0.3s ease; border: 2px solid transparent; }
.dot.active { background: transparent; border-color: #b89047; box-shadow: inset 0 0 0 3px #b89047; }

/* Ortak Bölümler */
.section-container { max-width: 1200px; margin: 0 auto; padding: 60px 15px; }
.page-container { max-width: 900px; margin: 0 auto; padding: 50px 15px; min-height: 50vh; }
.section-title { font-size: 20pt; font-weight: 700; color: #0f2537; margin-bottom: 12px; text-align: center; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background-color: #b89047; margin: 15px auto 0 auto; }
.section-subtitle { font-size: 11pt; color: #718096; text-align: center; max-width: 600px; margin: 0 auto 40px auto; }
.page-title { font-size: 24pt; font-weight: 800; color: #0f2537; margin-bottom: 25px; text-align: left; }

.content-area p { margin-bottom: 18px; font-size: 11.5pt; color: #4a5568; line-height: 1.8; }
.content-area h2, .content-area h3 { color: #0f2537; margin-top: 25px; margin-bottom: 12px; }
.content-area ul { margin-left: 20px; margin-bottom: 18px; color: #4a5568; }
.content-area li { margin-bottom: 8px; }
.featured-img { width: 100%; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* Grid */
.grid-three { display: flex; flex-wrap: wrap; gap: 25px; justify-content: space-between; }
.col-three { flex: 1 1 calc(33.333% - 25px); background-color: #ffffff; padding: 35px 25px; border-radius: 4px; border-top: 4px solid #0f2537; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.2s ease, border-color 0.2s ease; min-width: 300px; }
.col-three:hover { border-top-color: #b89047; transform: translateY(-3px); box-shadow: 0 8px 12px rgba(0,0,0,0.05); }
.col-three h3 { font-size: 14pt; color: #0f2537; margin-bottom: 12px; font-weight: 700; }
.col-three > p { font-size: 10.5pt; color: #718096; margin-bottom: 12px; line-height: 1.6; }
.col-three ul { list-style: none; margin-top: 12px; margin-left:0; }
.col-three ul li { font-size: 10.5pt; color: #4a5568; margin-bottom: 8px; padding-left: 15px; position: relative; }
.col-three ul li::before { content: '•'; color: #b89047; font-weight: bold; position: absolute; left: 0; top: 0; }

/* Haberler */
.news-section { background-color: #f1f5f9; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 60px 0; }
.news-card { background-color: #ffffff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; flex: 1 1 calc(33.333% - 25px); min-width: 300px; text-decoration: none;}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.news-img { width: 100%; height: 190px; object-fit: cover; }
.news-content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.news-title { font-size: 13pt; font-weight: 700; color: #0f2537; margin-bottom: 12px; line-height: 1.3; }
.news-excerpt { font-size: 10.5pt; color: #4a5568; margin-bottom: 18px; flex-grow: 1; }
.news-btn { font-size: 10pt; font-weight: 600; color: #0f2537; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid transparent; align-self: flex-start; transition: border-color 0.2s ease, color 0.2s ease; padding-bottom: 2px; }
.news-card:hover .news-btn { color: #b89047; border-bottom-color: #b89047; }

/* Referanslar - Başlık Yukarı Çekildi */
.clients-section { background-color: #ffffff; padding: 25px 0 50px 0; border-top: 1px solid #e2e8f0; overflow: hidden; }
.clients-title { text-align: center; font-size: 16pt; font-weight: 700; color: #0f2537; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.clients-slider { width: 100%; position: relative; display: flex; align-items: center; }
.clients-track { display: flex; width: max-content; animation: scroll-clients 30s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.client-logo { width: 200px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 0 25px; filter: grayscale(100%) opacity(0.6); transition: filter 0.3s ease; }
.client-logo:hover { filter: grayscale(0%) opacity(1); }
@keyframes scroll-clients { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Kurumsal */
#kurumsal { padding: 60px 0 !important; }
.about-row { display: flex; flex-wrap: wrap; width: 100%; gap: 35px; }
.about-left { flex: 1 1 calc(60% - 35px); min-width: 300px; }
.about-right { flex: 1 1 40%; background-color: #0f2537; color: #ffffff; padding: 35px; border-radius: 4px; min-width: 300px; }
.about-left p { margin-bottom: 18px; color: #4a5568; text-align: justify; }
.vision-box h4 { font-size: 12pt; color: #b89047; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.vision-box p { font-size: 10.5pt; color: #e2e8f0; margin-bottom: 20px; }

/* Galeri (Çalışmalarımız) */
.gallery-section { background-color: #f8fafc; padding: 60px 0 70px 0; overflow: hidden; border-top: 1px solid #e2e8f0; }
.gallery-title { text-align: center; font-size: 20pt; font-weight: 700; color: #0f2537; margin-bottom: 12px; position: relative; }
.gallery-title::after { content: ''; display: block; width: 50px; height: 3px; background-color: #b89047; margin: 12px auto 30px auto; }
.gallery-slider { width: 100%; position: relative; display: flex; align-items: center; }
.gallery-track { display: flex; width: max-content; animation: scroll-gallery 40s linear infinite; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-item { display: block; width: 330px; height: 230px; margin: 0 12px; flex-shrink: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); background-color: #0f2537; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
@keyframes scroll-gallery { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.btn-view-all { display: block; width: max-content; margin: 35px auto 0 auto; padding: 10px 22px; background: transparent; color: #0f2537; border: 2px solid #0f2537; font-weight: 600; text-transform: uppercase; border-radius: 4px; transition: all 0.2s ease; }
.btn-view-all:hover { background: #0f2537; color: #fff; }

/* Galeri Sayfası (Izgara) */
.gallery-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 35px; }
.gallery-grid-item { flex: 1 1 calc(33.333% - 18px); min-width: 260px; height: 230px; display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); cursor: pointer; }
.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid-item:hover img { transform: scale(1.06); }

/* LIGHTBOX MODAL */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 37, 55, 0.95); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: -40px; right: -40px; color: #fff; font-size: 30pt; cursor: pointer; line-height: 1; background: none; border: none; transition: color 0.2s; }
.lightbox-close:hover { color: #b89047; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 30pt; cursor: pointer; background: none; border: none; padding: 10px; z-index: 10000; transition: color 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { color: #b89047; }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Footer */
.site-footer { background-color: #0f2537; color: #a0aec0; padding: 50px 0 25px 0; font-size: 10pt; border-top: 4px solid #b89047; }
.footer-row { display: flex; flex-wrap: wrap; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px 30px 15px; border-bottom: 1px solid #2d3748; justify-content: space-between; }
.footer-col { flex: 1 1 30%; padding-right: 20px; min-width: 250px; margin-bottom: 18px; }
.footer-col h4 { color: #ffffff; font-size: 11pt; margin-bottom: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a { display: block; margin-bottom: 5px; color: #a0aec0; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: #b89047; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 15px 0 15px; text-align: center; font-size: 9.5pt; }

/* --- WHATSAPP SABİT BUTONU --- */
.whatsapp-btn { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: #ffffff; display: flex; align-items: center; padding: 10px 22px; border-radius: 50px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); text-decoration: none !important; z-index: 9999; transition: all 0.3s ease; }
.whatsapp-btn:hover { background-color: #128c7e; transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); color: #ffffff; }
.whatsapp-btn .wa-icon { width: 24px; height: 24px; fill: #ffffff; margin-right: 12px; }
.whatsapp-btn span { font-size: 11pt; font-weight: 700; letter-spacing: 0.5px; }

/* Mobil Uyum */
@media screen and (max-width: 768px) {
    .header-container { padding: 12px 15px; }
    .mobile-menu-btn { display: block !important; }
    .nav-area { display: none !important; flex-direction: column; width: 100%; background-color: #ffffff; position: absolute; top: 100%; left: 0; padding: 10px 0 20px 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-top: 1px solid #e2e8f0; }
    .nav-area.active { display: flex !important; animation: slideDown 0.3s ease forwards; }
    .nav-menu { flex-direction: column; margin: 0; width: 100%; text-align: left; }
    .nav-menu li { margin: 0; width: 100%; }
    .nav-menu > li > a { display: block; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; font-size: 11.5pt; }
    .nav-menu .menu-item-has-children > a::after { float: right; }
    .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: inset 0 3px 5px rgba(0,0,0,0.03); border-top: none; background-color: #f8fafc; padding: 0; display: none; width: 100%; transition: none; }
    .nav-menu .menu-item-has-children.open > .sub-menu { display: block; animation: fadeInDown 0.3s ease; }
    .nav-menu .sub-menu a { padding: 10px 20px 10px 35px; font-size: 11pt; border-bottom: 1px solid #e2e8f0; background: transparent; }
    .nav-menu .sub-menu a:hover { padding-left: 35px; background: transparent; }
    .btn-online { margin: 15px auto 0 auto; width: max-content; }
    
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeInDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
    
    .slider-wrapper { height: 420px; }
    .slide-content { width: 95%; transform: translate(-50%, -45%); }
    .slide.active .slide-content { transform: translate(-50%, -50%); }
    .slide-content h1 { font-size: 20pt; margin-bottom: 12px; }
    .slide-content p { font-size: 11pt; margin-bottom: 18px; }
    .slider-arrow { width: 32px; height: 32px; font-size: 13pt; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    
    .section-container { padding: 25px 15px; }
    .section-title { font-size: 17pt; margin-bottom: 10px; }
    .col-three, .news-card, .gallery-grid-item { flex: 1 1 100%; }
    
    #kurumsal { padding: 25px 0 !important; }
    .about-left { padding-right: 0; padding-bottom: 15px; flex: 1 1 100%; }
    .about-right { padding: 25px 20px; flex: 1 1 100%; }
    
    .clients-section { padding: 15px 0 30px 0; }
    .clients-title { margin-bottom: 20px; }
    .client-logo { width: 130px; padding: 0 10px; }
    .client-logo h2 { font-size: 13pt; }
    .clients-track { width: calc(130px * 14); }
    @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-130px * 7)); } }
    
    .gallery-section { padding: 40px 0 50px 0; }
    .gallery-item { width: 260px; height: 180px; margin: 0 10px; }
    .lightbox-close { top: -40px; right: 0; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .site-footer { padding: 40px 0 20px 0; }
    .footer-col { padding-right: 0; margin-bottom: 25px; text-align: center; flex: 1 1 100%; }
    
    .whatsapp-btn { bottom: 20px; left: 20px; padding: 8px 18px; }
    .whatsapp-btn .wa-icon { width: 22px; height: 22px; margin-right: 10px; }
    .whatsapp-btn span { font-size: 10.5pt; }
}
