/* 1. SIFIRLAMA VE TASMA ENGELLEYICI */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body { 
    background-color: #f4f6f9; 
    color: #333; 
    line-height: 1.6; 
    padding-bottom: 70px; /* Mobildeki sabit alt bar için bosluk */
}

/* GÖRSEL DÜZENLEMESI */
img, Image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER VE NAVBAR TEMEL STILLERI */
header { 
    background-color: #ffffff; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%;
}

.navbar { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    width: 100%;
    position: relative;
}

.logo a { 
    font-size: 24px; 
    font-weight: 800; 
    color: #003366; 
    text-decoration: none; 
    text-transform: uppercase; 
}
.logo a span { color: #d9534f; }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    font-size: 15px; 
    transition: color 0.3s; 
}

.nav-links a:hover { color: #003366; }

/* Checkbox ve Hamburger Buton (Masaüstünde Gizli) */
#menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
}

.menu-toggle-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #003366;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* SLIDER SECTION */
.slider-container { position: relative; width: 100%; height: 550px; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffffff; padding: 0 20px; }
.slide.active { opacity: 1; }
.slide-1 { background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75)), url('kazan-boru-temizleme-banner.jpg') center/cover no-repeat; }
.slide-2 { background: linear-gradient(rgba(0, 51, 102, 0.78), rgba(0, 51, 102, 0.78)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1920&q=80') center/cover; }
.slide-3 { background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75)), url('jeotermal-kojenerasyon-banner.jpg') center/cover no-repeat; }

.banner-content { max-width: 850px; width: 100%; }
.banner-content h1 { font-size: 40px; margin-bottom: 15px; font-weight: 700; }
.banner-content p { font-size: 18px; margin-bottom: 25px; color: #e0e0e0; }

.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 16px; transition: all 0.3s; }
.btn-primary { background-color: #d9534f; color: #ffffff; }
.btn-primary:hover { background-color: #c9302c; }
.btn-whatsapp { background-color: #25d366; color: #ffffff; }
.btn-whatsapp:hover { background-color: #1eb954; }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background-color: #d9534f; width: 25px; border-radius: 10px; }

/* SERVICES SECTION */
.services-section { padding: 80px 20px; background-color: #ffffff; }
.services-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: #003366; margin-bottom: 10px; font-weight: 700; }
.section-header p { font-size: 16px; color: #666; max-width: 700px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 35px 25px; transition: all 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: #003366; transition: background-color 0.3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: #d9534f; }
.service-card:hover::before { background-color: #d9534f; }
.service-icon { width: 60px; height: 60px; background-color: rgba(0, 51, 102, 0.08); color: #003366; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 26px; }
.service-card:hover .service-icon { background-color: #d9534f; color: #ffffff; }
.service-card h3 { font-size: 19px; color: #003366; margin-bottom: 12px; font-weight: 700; }
.service-card p { font-size: 14px; color: #555; line-height: 1.6; }

/* SECTORS SECTION */
.sectors-section { padding: 80px 20px; background-color: #f1f5f9; border-top: 1px solid #e2e8f0; }
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.sector-card { background: #ffffff; padding: 25px 20px; border-radius: 8px; border: 1px solid #e2e8f0; transition: all 0.3s; display: flex; flex-direction: column; }
.sector-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: #003366; transform: translateY(-4px); }
.sector-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sector-card-header i { font-size: 22px; color: #d9534f; }
.sector-card-header h3 { font-size: 17px; color: #003366; font-weight: 700; }
.sector-card p { font-size: 13.5px; color: #555; line-height: 1.5; }

/* ABOUT SECTION (KURUMSAL) */
.about-section { padding: 80px 20px; background-color: #ffffff; border-top: 1px solid #e9ecef; overflow: hidden; }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; width: 100%; }
.about-image img, .about-image Image { width: 100%; height: auto; max-height: 380px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); object-fit: cover; }
.about-experience-badge { position: absolute; bottom: 10px; right: 10px; background-color: #003366; color: #fff; padding: 15px 20px; border-radius: 8px; text-align: center; }
.about-experience-badge .number { font-size: 28px; font-weight: 800; color: #d9534f; display: block; }
.about-content h2 { font-size: 32px; color: #003366; margin-bottom: 15px; font-weight: 700; }
.about-content h2 span { color: #d9534f; }
.about-content p { font-size: 15px; color: #555; margin-bottom: 20px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-item i { color: #d9534f; font-size: 20px; margin-top: 3px; flex-shrink: 0; }
.feature-item h4 { font-size: 16px; color: #003366; }
.feature-item p { font-size: 13px; color: #777; }

/* CONTACT SECTION */
.contact-section { padding: 80px 20px; background-color: #ffffff; }
.contact-container { max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; }
.info-item i { width: 50px; height: 50px; background-color: rgba(0, 51, 102, 0.08); color: #003366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-item h4 { font-size: 18px; color: #003366; }
.info-item p, .info-item a { font-size: 15px; color: #555; text-decoration: none; word-break: break-word; }

.social-media-box { margin-top: 10px; padding-top: 20px; border-top: 1px solid #eee; }
.social-icons { display: flex; gap: 12px; }
.social-icon { width: 42px; height: 42px; border-radius: 50%; background-color: #003366; color: #ffffff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; transition: all 0.3s; }
.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.instagram:hover { background-color: #E4405F; }
.social-icon.whatsapp:hover { background-color: #25D366; }
.social-icon.youtube:hover { background-color: #FF0000; }

.contact-form { background-color: #f8f9fa; padding: 30px; border-radius: 8px; border: 1px solid #e9ecef; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #003366; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; outline: none; }
.btn-whatsapp-form { width: 100%; padding: 14px; background-color: #25D366; color: #fff; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }

.map-container { margin-top: 50px; border-radius: 8px; overflow: hidden; }
.map-container iframe { width: 100%; height: 350px; border: 0; }

/* FOOTER */
.site-footer { background-color: #001a33; color: #ffffff; padding-top: 60px; padding-bottom: 20px; border-top: 3px solid #d9534f; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h3 { font-size: 18px; color: #ffffff; margin-bottom: 20px; position: relative; padding-bottom: 10px; font-weight: 700; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: #d9534f; }
.footer-col p { color: #b0c4de; font-size: 14px; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b0c4de; text-decoration: none; font-size: 14px; transition: all 0.3s; }
.footer-links a:hover { color: #ffffff; padding-left: 5px; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding: 20px 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; font-size: 13px; color: #8a9ea7; flex-wrap: wrap; gap: 10px; }

/* MOBIL SABIT ALT BAR */
.mobile-bottom-bar {
    display: none;
}

/* RESPONSIVE (MOBIL VE TABLET DÜZENLEMELERI) */
@media (max-width: 1100px) {
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) { 
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container, .contact-grid { grid-template-columns: 1fr; gap: 40px; } 
}

@media (max-width: 768px) { 
    .services-grid, .sectors-grid { grid-template-columns: 1fr; }
     
    /* Grid Navbar (Logo solda, Hamburger sagda sabit) */
    .navbar {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle-label {
        display: flex;
        justify-self: end;
    }

    .logo {
        justify-self: start;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        text-align: center;
        grid-column: 1 / -1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid #f1f1f1;
    }

    /* Checkbox açildiginda tüm alt menülerin sigmasi için yükseklik ve kaydirma alani (75vh) */
    #menu-toggle-checkbox:checked ~ .nav-links {
        max-height: 75vh;
        overflow-y: auto;
        padding: 15px 0;
    }

    #menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    #menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .slider-container { height: 420px; } 
    .banner-content h1 { font-size: 26px; } 
    .about-features { grid-template-columns: 1fr; } 
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Mobilde Sabit Alt Bar Görünür */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 10px 15px;
        gap: 10px;
        justify-content: space-between;
    }

    .bar-btn {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: opacity 0.3s;
    }

    .call-btn {
        background-color: #003366;
        color: #ffffff;
    }

    .whatsapp-btn {
        background-color: #25D366;
        color: #ffffff;
    }

    .bar-btn:active {
        opacity: 0.85;
    }
}

/* --- MASAÜSTÜ VE MOBIL DROPDOWN AYARLARI --- */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    display: none;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.nav-links .dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
    border-bottom: none !important;
}

.nav-links .dropdown-menu li a:hover {
    background-color: #f1f5f9;
    color: #003366 !important;
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

/* --- MOBIL IÇIN DROPDOWN LISTE DÜZENI (768px alti) --- */
@media (max-width: 768px) {
    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        padding: 0;
        display: block;
    }

    .nav-links .dropdown-menu li a {
        padding: 10px 0;
        font-size: 14px;
        text-align: center;
        color: #555 !important;
        background-color: #f8f9fa;
        border-bottom: 1px solid #eee !important;
    }

    .nav-links .dropdown-menu li a:hover {
        background-color: #e2e8f0;
        color: #003366 !important;
        padding-left: 0;
    }
}