/* --- Global Styles & Variables --- */
:root {
    --color-dark-blue: #1a2c48;
    --color-main-blue: #273a5a;
    --color-nav-bg: #f8f9fa;
    --color-accent: #00b8d4; /* A teal/cyan accent from the logo */
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --color-text-muted: #6c757d;
    --font-family: 'Roboto', 'Helvetica', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--color-text-dark); background-color: #fff; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* === HEADER STYLES (FROM CORPORATE TEMPLATE) === */
header { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
/* Tier 1: Top Bar */
.header-top { background-color: var(--color-dark-blue); color: var(--color-text-light); font-size: 0.8rem; padding: 8px 0; }
.header-top .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.header-top .container > * { display: flex; align-items: center; gap: 20px; }
.header-top a:hover { color: var(--color-accent); }
.header-top i { margin-right: 5px; }
.social-icons a { font-size: 1rem; }
.language-switcher img { border: 1px solid transparent; }
.language-switcher .active-lang img { border-color: var(--color-accent); }
/* Tier 2: Main Header */
.header-main { padding: 20px 0; }
.header-main .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 50px; }
.contact-details { display: flex; gap: 30px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.contact-item i { font-size: 2rem; color: var(--color-main-blue); }
.contact-item div { display: flex; flex-direction: column; }
.contact-item span { font-size: 0.8rem; color: var(--color-text-muted); }
.contact-item a { font-weight: 700; color: var(--color-text-dark); }
.contact-item a:hover { color: var(--color-main-blue); }
/* Tier 3: Navigation Bar */
.main-nav { background-color: var(--color-nav-bg); border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.main-nav .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-start; align-items: center; }
.nav-list { display: flex; }
.nav-list > li > a { display: flex; align-items: center; gap: 8px; padding: 15px 20px; font-weight: 500; color: var(--color-text-dark); border-bottom: 3px solid transparent; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--color-main-blue); border-bottom-color: var(--color-main-blue); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: var(--color-text-light); border: 1px solid #e0e0e0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); list-style: none; min-width: 200px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 12px 20px; font-size: 0.9rem; color: var(--color-text-dark); }
.dropdown-menu li a:hover { background-color: var(--color-nav-bg); }

/* ========================================================= */
/* === STYLING FOR YOUR ELECTRICIAN PAGE CONTENT (FIXED) === */
/* ========================================================= */
section {
    padding: 60px 0;
}
section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: block; /* Override flex for content sections */
}
h1, h2 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-main-blue);
}

/* style.css */

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 44, 72, 0.7), rgba(26, 44, 72, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
    min-height: 60vh;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.hero h1 {
    font-size: 3rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text-light);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}
.cta-button:hover {
    background: #0097a7; /* Darker shade of accent color */
}

/* ========================================= */
/* === NEW SERVICE LIST ACCORDION STYLES === */
/* ========================================= */

.services {
    background-color: #222; /* Dark background for the section */
}

.services h2 {
    color: #fff; /* White title on dark background */
}

.service-list {
    max-width: 800px;
    margin: 40px auto 0;
    color: #fff;
}

.service-list-item {
    border-bottom: 1px solid #444;
}

.service-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    gap: 20px;
}

.service-logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #fff; /* Add white background if logos are transparent */
    object-fit: contain;
}

.service-text {
    flex-grow: 1;
}

.service-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.service-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.service-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid #888;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.service-list-item.active .service-toggle {
    transform: rotate(180deg);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 20px;
    color: #ddd;
    font-size: 1rem;
}

.service-list-item.active .service-details {
    max-height: 200px; /* Adjust if content is taller */
    padding: 0 20px 20px 20px;
}
/* --- Contact Section --- */
.contact {
    text-align: center;
    background: var(--color-main-blue);
    color: var(--color-text-light);
}
.contact h2 {
    color: var(--color-text-light);
}
.contact-info {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text-light);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    border: 2px solid var(--color-accent);
}
.contact-button:hover {
    background: #0097a7; /* Darker shade of accent */
}

/* === FOOTER STYLES === */
footer { background-color: var(--color-dark-blue); color: var(--color-text-light); text-align: center; padding: 20px 0; font-size: 0.9rem; }
footer .container { justify-content: center; display: block; }

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .contact-details { display: none; }
    .main-nav .container { justify-content: space-between; }
    .nav-list { display: none; }
    .hamburger { display: block; }
}
@media (max-width: 768px) {
    .header-top .container { flex-direction: column; gap: 10px; }
    .hero h1 { font-size: 2.5rem; }
    .about .container { flex-direction: column; }
    .about-text h2 { text-align: center; margin-top: 20px; }
}

/* Tier 2: Main Header */
.header-main { padding: 20px 0; }
.logo img { max-height: 50px; }


/* Logoyu çevreleyen <a> etiketine stil veriyoruz */
.logo {
    display: inline-block;  /* Padding ve border'ın doğru uygulanması için */
    background-color: #fff; /* Logo transparan ise beyaz arka plan ekler */
    padding: 5px;           /* Logo ile çerçeve arasına boşluk koyar */
    border: 1px solid #e0e0e0; /* İnce, açık gri bir çerçeve (outline) */
    border-radius: 8px;     /* Köşeleri yuvarlatır */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Hafif bir gölge efekti */
    line-height: 0;         /* Resim altındaki istenmeyen boşluğu kaldırır */
    background-color: #222;
}

.logo img { 
    max-height: 50px;       /* Logonun boyutunu ayarlar */
    display: block;         /* Resmin düzgün hizalanmasını sağlar */
}

/* style.css dosyasının en altındaki responsive bölümünü bununla değiştirin */

/* === RESPONSIVE STYLES (MOBİL UYUMLULUK DÜZELTİLDİ) === */
@media (max-width: 992px) {
    /* İletişim detaylarını mobilde gizle */
    .contact-details { 
        display: none; 
    }

    /* Navigasyon barını ve hamburger ikonunu ayarla */
    .main-nav .container { 
        justify-content: space-between; 
    }
    .hamburger { 
        display: block; /* Hamburger ikonunu göster */
        z-index: 1001;  /* Menünün üstünde kalması için */
        color: var(--color-main-blue);
    }
    
    /* MOBİL MENÜNÜN KENDİSİ (ESKİDEN display:none; idi) */
    .nav-list {
        position: fixed; /* Ekranı kaplaması için */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Ekran yüksekliğinin tamamı */
        background-color: var(--color-dark-blue); /* Koyu mavi arka plan */
        
        /* Linkleri ortalamak için */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px; /* Linkler arası boşluk */
        
        /* Başlangıçta ekranın dışında sakla */
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    /* JavaScript ile .active class'ı eklendiğinde menüyü ekrana getir */
    .nav-list.active {
        transform: translateY(0);
    }

    /* Mobil menüdeki linklerin stilini ayarla */
    .nav-list a {
        font-size: 1.5rem; /* Daha büyük font */
        font-weight: 500;
        color: var(--color-text-light); /* Beyaz renk */
        border-bottom: none; /* Masaüstündeki çizgiyi kaldır */
    }

    .nav-list > li > a:hover, .nav-list > li > a.active {
        color: var(--color-accent); /* Vurgu rengi */
        border-bottom: none;
    }

    .dropdown-menu {
        /* Mobil menüde dropdown'ları basitleştir */
        position: static;
        display: none; /* Şimdilik gizli, daha gelişmiş JS gerektirir */
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

@media (max-width: 768px) {
    .header-top .container { 
        flex-direction: column; 
        gap: 10px; 
    }
    .hero h1 { 
        font-size: 2.5rem; 
    }
    .about .container { 
        flex-direction: column; 
    }
    .about-text h2 { 
        text-align: center; 
        margin-top: 20px; 
    }
}

/* style.css dosyanıza bu kuralı ekleyin */

main, footer {
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}
/* style.css dosyasının en altına (responsive bölümünden önce) ekleyin */

/* Mobil menü açıkken arka planı karart ve bulanıklaştır */
body.menu-open main,
body.menu-open footer {
    filter: brightness(0.4) blur(4px); /* Parlaklığı düşür ve bulanıklaştır */
    transform: scale(0.98); /* Hafifçe küçült */
    pointer-events: none; /* Arka plana tıklamayı engelle */
    user-select: none; /* Metin seçmeyi engelle */
}