/*
Theme Name: Enerjik Yapı Kurumsal
Theme URI: https://www.enerjikyapi.com.tr
Author: Enerjik Yapı
Description: Enerjik Yapı için özel olarak hazırlanmış kurumsal, dinamik WordPress teması.
Version: 1.0
Text Domain: enerjikyapi
*/

:root {
    --primary-blue: #002b5e; 
    --light-blue: #0056b3;
    --accent: #f0f4f8;
    --text-dark: #333333;
    --text-light: #ffffff;
    --eco-green: #2ecc71;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: #fcfcfc; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; color: inherit; }

/* HEADER VE DİNAMİK LOGO */
header { position: fixed; top: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; z-index: 1000; transition: all 0.3s ease; }
.custom-logo-link img { height: 70px; width: auto; transition: height 0.3s; object-fit: contain; } /* WP Custom Logo Class */
.mobile-toggle { display: none; font-size: 28px; color: var(--primary-blue); cursor: pointer; }

/* WP STANDART MENÜ SİSTEMİ (DİNAMİK) */
nav > ul.menu { display: flex; list-style: none; gap: 30px; align-items: center; margin:0; padding:0; }
nav > ul.menu > li { position: relative; padding: 20px 0; }
nav > ul.menu > li > a { font-weight: 600; color: var(--primary-blue); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; transition: color 0.3s; display: flex; align-items: center; gap: 5px; justify-content: space-between; }
nav > ul.menu > li > a:hover { color: var(--light-blue); }

/* DROPDOWN - AÇILIR MENÜ (WP SUB-MENU SİSTEMİ) */
.menu-item-has-children { position: relative; }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 3px solid var(--primary-blue); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; border-radius: 0 0 5px 5px; padding: 10px 0; z-index: 1001; list-style:none; margin:0; }
.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { padding: 0; list-style: none; }
.sub-menu li a { padding: 12px 20px; display: block; text-transform: none; font-weight: 600; font-size: 14px; color: #555; transition: all 0.2s ease; border-bottom: 1px solid #f8f9fa; }
.sub-menu li a:hover { background: #f8f9fa; color: var(--light-blue); padding-left: 25px; }
/* İçiçe Menü (Çoklu Açılır) Desteği */
.sub-menu .menu-item-has-children > .sub-menu { top: 0; left: 100%; margin-left: 0; transform: translateX(15px); }
.sub-menu .menu-item-has-children:hover > .sub-menu { transform: translateX(0); }

/* HERO SLIDER */
#hero { position: relative; height: 100vh; margin-top: 80px; text-align: center; color: var(--text-light); overflow: hidden; }
.hero-slider-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 0 5%; }
.slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 43, 94, 0.75), rgba(0, 43, 94, 0.6)); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; }
.hero-content h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.hero-content p { font-size: 1.3rem; font-weight: 400; margin-bottom: 40px; font-family: 'Montserrat', sans-serif;}
.btn { padding: 15px 35px; background: var(--text-light); color: var(--primary-blue); font-weight: 800; font-family: 'Montserrat', sans-serif; border-radius: 3px; text-transform: uppercase; transition: all 0.3s ease; display: inline-block;}
.btn:hover { background: var(--primary-blue); color: var(--text-light); border: 1px solid var(--text-light); }

.section-padding { padding: 80px 5%; }
.section-title { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; text-transform: uppercase; text-align: center; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: #555; max-width: 900px; margin: 0 auto; line-height: 1.8; text-align: center; margin-bottom: 40px; }
#about { background: var(--text-light); }

/* TARİHÇE */
#history { background: #f4f6f9; }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--primary-blue); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 40px; position: relative; background: inherit; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::after { content: ''; position: absolute; width: 22px; height: 22px; right: -11px; background-color: var(--text-light); border: 4px solid var(--primary-blue); top: 25px; border-radius: 50%; z-index: 1; }
.timeline-item.right::after { left: -11px; }
.timeline-content { padding: 25px 30px; background: var(--text-light); position: relative; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-top: 3px solid var(--primary-blue); }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.timeline-year { font-size: 1.8rem; font-weight: 800; color: var(--light-blue); margin-bottom: 10px; font-family: 'Montserrat', sans-serif; display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.timeline-title { font-size: 1.25rem; font-weight: 600; color: var(--primary-blue); margin-bottom: 15px; }
.timeline-desc { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* FAALİYET ALANLARI */
.services-grid { display: flex; flex-wrap: wrap; background: var(--primary-blue); width: 100%; }
.service-box { flex: 1 1 33.333%; height: 400px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.service-box.large { flex: 1 1 66.666%; }
.service-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 43, 94, 0.85); display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-light); text-align: center; padding: 30px; transition: background 0.5s ease; }
.service-box:hover img { transform: scale(1.1); }
.service-box:hover .service-overlay { background: rgba(0, 43, 94, 0.6); }
.service-icon { font-size: 3.5rem; margin-bottom: 20px; }
.service-title { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 15px; }
.service-desc { font-size: 1rem; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; font-weight: 400;}
.service-box:hover .service-desc { opacity: 1; transform: translateY(0); }

/* HABERLER */
#news { background: #f4f6f9; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.news-card { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; overflow: hidden; border-bottom: 3px solid transparent; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--primary-blue); }
.news-img-wrap { position: relative; height: 240px; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img-wrap img { transform: scale(1.05); }
.news-date { position: absolute; bottom: 0; left: 0; background: var(--primary-blue); color: #fff; padding: 8px 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; font-family: 'Montserrat', sans-serif; }
.news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.news-content h3 { font-size: 1.25rem; color: var(--primary-blue); margin-bottom: 15px; line-height: 1.4; }
.news-content p { color: #666; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; flex-grow: 1; }
.read-more { color: var(--light-blue); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.read-more i { transition: transform 0.3s; }
.news-card:hover .read-more { color: var(--primary-blue); }
.news-card:hover .read-more i { transform: translateX(5px); }

/* SÜRDÜRÜLEBİLİRLİK */
#sustainability { background: var(--text-light); }
.sus-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 60px; margin-top: 50px; }
.sus-item { display: flex; align-items: center; gap: 50px; }
.sus-item.reverse { flex-direction: row-reverse; }
.sus-img { flex: 1; position: relative; border-radius: 5px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.sus-img img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.5s ease; }
.sus-item:hover .sus-img img { transform: scale(1.03); }
.sus-text { flex: 1; }
.sus-text h3 { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; line-height: 1.3;}
.sus-text h3 i { color: var(--eco-green); font-size: 1.6rem; }
.sus-text p { color: #555; font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }
.sus-btn { display: inline-block; padding: 10px 25px; border: 2px solid var(--primary-blue); color: var(--primary-blue); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; border-radius: 3px; transition: all 0.3s ease; }
.sus-btn:hover { background: var(--primary-blue); color: var(--text-light); }

/* FOOTER VE FOOTER MENÜ */
footer { background: #001530; color: #a1aab5; padding: 60px 5% 20px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 25px; font-size: 1.3rem; text-transform: uppercase; }
.footer-col ul { list-style: none; margin:0; padding:0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { transition: color 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col i { margin-right: 10px; color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; }

/* MOBİL UYUM */
@media(max-width: 992px) {
    .service-box { flex: 1 1 50%; }
    .service-box.large { flex: 1 1 100%; }
    .sus-item, .sus-item.reverse { flex-direction: column; gap: 30px; text-align: center; }
    .sus-text h3 { justify-content: center; flex-direction: column; }
}
@media(max-width: 768px) {
    .section-padding { padding: 50px 5%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    
    /* Mobil Menü Görünümü */
    .mobile-toggle { display: block; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 10px 10px rgba(0,0,0,0.1); display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
    nav.active { display: block; }
    nav > ul.menu { flex-direction: column; gap: 0; align-items: stretch; }
    nav > ul.menu > li { padding: 0; border-bottom: 1px solid #eee; width: 100%; }
    nav > ul.menu > li > a { padding: 15px 5%; font-size: 15px; }
    
    /* Mobil Alt Menüler */
    .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; display: none; padding: 0; background: #f9f9f9; border-radius: 0; }
    .menu-item-has-children.open > .sub-menu { display: block; }
    .sub-menu li a { padding: 12px 10%; }
    .sub-menu .sub-menu li a { padding: 12px 15%; }
    
    .service-box { flex: 1 1 100%; height: 350px; }
    .service-desc { opacity: 1; transform: translateY(0); }
    .service-overlay { background: rgba(0, 43, 94, 0.7); }
    .news-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; text-align: left; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item.left::after, .timeline-item.right::after { left: 20px; }
}