/* --- GENEL SİTE STİLLERİ --- */
/* Çatı Temasına Uygun Renk Paleti */
:root {
    --primary-color: #4A4A4A; /* Çelik Grisi - Çatı yapılarının sağlamlığı */
    --accent-color: #A52A2A; /* Kiremit Kırmızısı - Kiremit çatılar */
    --text-color: #2F2F2F; /* Koyu Beton Grisi - Okunabilirlik */
    --light-bg: #F5F5F5; /* Hafif Beton Beyazı - Temiz arka plan */
    --dark-bg: #1A2525; /* Koyu Çatı Mavisi - Çatı kaplamaları */
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0 0 20px 0;
    line-height: 1.6;
    font-size: 1em;
    overflow-x: hidden;
    min-height: 100vh;
}

/* BAŞLIK RENKLERİ - Çatı Temasına Uygun */
h1 {
    color: var(--primary-color);
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
h2 {
    color: var(--accent-color);
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
h3 {
    color: #4A7043; /* Olive Green - Doğal çatı ahşap tonu */
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
h4 {
    color: #E07A5F; /* Soft Coral - Hafif kiremit tonu */
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
h5 {
    color: #3D8166; /* Muted Teal - Çatı izolasyon malzemesi hissi */
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
h6 {
    color: var(--dark-bg);
    margin: 10px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInSection 0.6s ease-out forwards;
    text-align: center; /* Metinleri ortala */
}
@keyframes slideInSection {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- HEADER VE MENÜ DÜZENLEMESİ (Mobil Uyumlu Yatay Menü) --- */
header {
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
}
.main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 15px 0;
    background: var(--dark-bg); /* Koyu Çatı Mavisi Zemin */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Menüye belirgin gölge */
}
.main-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Boşluk azaltıldı */
    flex-wrap: wrap; /* Mobil uyum için sarar */
}
/* Ana Menü Linkleri (Metinler Beyaz Kalacak) */
.main-menu li a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
}
.main-menu li a:hover, .main-menu li a.active {
    background-color: var(--primary-color); /* Çelik Grisi Vurgu */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(74, 74, 74, 0.5);
    transform: scale(1.05);
}

/* --- HERO BÖLÜMÜ VE ARKA PLAN FOTOĞRAFI DÜZENLEMESİ --- */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/hero-image.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 0 20px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    padding-bottom: 0;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;
}
.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}
.hero-section h1 {
    color: #ffffff !important;
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(165, 42, 42, 0.8), 0 0 10px #000;
}
.hero-section h1.burgundy-title {
    color: var(--accent-color) !important; /* Kiremit Kırmızısı */
    text-shadow: 0 0 10px rgba(165, 42, 42, 0.8), 0 0 10px #000;
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color); /* Kiremit Kırmızısı */
    color: var(--light-bg); /* Hafif Beton Beyazı */
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid var(--accent-color);
    box-shadow: 0 3px 10px rgba(165, 42, 42, 0.6);
    z-index: 10;
}
.cta-button:hover {
    background-color: #8B1A1A; /* Darker Kiremit */
    transform: scale(1.05);
}
.brand-logos-container {
    width: 100%;
    height: 60px;
    overflow: hidden;
    background-color: var(--light-bg); /* Hafif Beton Beyazı */
    z-index: 5;
    margin-bottom: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
}
.logo-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    padding: 0;
    align-items: center;
    height: 100%;
}
.logo-track img {
    height: 50px;
    width: auto;
    margin: 0 20px;
    filter: grayscale(0%) opacity(1);
    transition: filter 0.5s ease;
}
.logo-track img:hover {
    filter: grayscale(0%) opacity(1);
}
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100px * 5));
    }
}
.search-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 20px auto 30px auto;
    z-index: 10;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#district-search {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--primary-color); /* Çelik Grisi */
    border-radius: 25px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-color);
}
#district-search:focus {
    outline: none;
    border-color: #3A3A3A; /* Darker Gray */
    box-shadow: 0 0 8px rgba(74, 74, 74, 0.5);
}
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-results a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95em;
    transition: background-color 0.2s;
}
.autocomplete-results a:hover {
    background-color: var(--light-bg); /* Hafif Beton Beyazı */
}
.page-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}
.section-title {
    font-size: 1.8em;
    text-align: center;
    color: var(--primary-color); /* Çelik Grisi */
    margin-top: 40px;
    font-weight: 600;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.service-item {
    background-color: var(--light-bg); /* Hafif Beton Beyazı */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.service-item:hover {
    transform: translateY(-5px);
}
.service-item img {
    width: 100%; /* Service item'ın tamamını kaplar */
    max-width: 500px; /* Maksimum genişlik */
    height: auto; /* Orantılı yükseklik */
    object-fit: cover; /* Resmi genişlik ve yükseklikte kaplar */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid var(--accent-color); /* Kiremit Kırmızısı */
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.service-item h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #4A7043; /* Olive Green */
}
.service-item p {
    font-size: 0.95em;
    color: var(--text-color);
}
.ilce-link {
    display: block;
    padding: 10px 15px;
    background-color: var(--light-bg); /* Hafif Beton Beyazı */
    margin-bottom: 8px;
    border-left: 5px solid var(--primary-color); /* Çelik Grisi */
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.2s, border-left-color 0.2s;
    border-radius: 4px;
}
.ilce-link:hover {
    background-color: #E0E0E0; /* Slightly darker gray */
    border-left-color: var(--accent-color); /* Kiremit Kırmızısı */
}
.district-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.intro-text {
    font-style: italic;
    color: var(--primary-color); /* Çelik Grisi */
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    font-weight: 500;
}
.content-detail h3, .services-list h3 {
    color: var(--text-color);
    border-bottom: 1px dashed var(--accent-color); /* Kiremit Kırmızısı */
    padding-bottom: 5px;
    font-weight: 600;
}
#bottom-photo-showcase {
    padding: 40px 10px;
    text-align: center;
    background-color: var(--light-bg); /* Hafif Beton Beyazı */
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 10px;
    border: 1px solid var(--accent-color); /* Kiremit Kırmızısı */
    box-shadow: 0 0 15px rgba(165, 42, 42, 0.4);
}
.photo-grid-cloned {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.photo-item-cloned {
    width: 500px; /* Sabit genişlik, ekranı kaplar */
    height: 250px; /* Sabit yükseklik */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 3px double var(--accent-color); /* Kiremit Kırmızısı decorative frame */
    background-color: #ffffff;
    text-align: center;
}
.photo-item-cloned:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(165, 42, 42, 0.3);
}
.photo-item-cloned img {
    width: 500px; /* Sabit genişlik */
    height: 250px; /* Sabit yükseklik */
    object-fit: cover; /* Resmi genişlik ve yükseklikte kaplar */
    margin: 0 auto;
    display: block;
    border: 2px solid var(--accent-color); /* Kiremit Kırmızısı */
}
.photo-caption {
    font-weight: bold;
    color: var(--primary-color); /* Çelik Grisi */
    font-size: 1.1em;
    margin: 5px 0 10px 0;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color); /* Çelik Grisi */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--accent-color); /* Kiremit Kırmızısı */
}
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--dark-bg); /* Koyu Çatı Mavisi */
    color: #ffffff;
    font-size: 0.9em;
}
footer a {
    color: var(--accent-color); /* Kiremit Kırmızısı */
    text-decoration: none;
    font-weight: bold;
}
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color); /* Kiremit Kırmızısı */
    color: var(--light-bg); /* Hafif Beton Beyazı */
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.phone-number-link {
    color: var(--accent-color); /* Kiremit Kırmızısı */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.phone-number-link:hover {
    color: #660019; /* Darker Kiremit */
    text-decoration: underline;
}
#seo-content-section h2 {
    color: var(--text-color);
    text-align: center; /* Sol kaymayı önlemek için ortala */
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}
#seo-content-section p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: center; /* Sol kaymayı önlemek için ortala, veya justify için justify kullan */
}
@media (max-width: 768px) {
    body {
        padding: 0 0 10px 0;
        font-size: 0.95em;
    }
    .page-section {
        padding: 15px;
        margin: 10px auto;
    }
    .main-menu ul {
        gap: 5px;
    }
    .main-menu li a {
        padding: 5px 6px;
        font-size: 0.85em;
    }
    .hero-section {
        height: 350px;
        padding-top: 60px;
        background-position: center 35%;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section h1.burgundy-title {
        font-size: 1.8em;
    }
    .search-container {
        width: 95%;
        margin: 15px auto 20px auto;
    }
    #district-search {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .brand-logos-container {
        height: 50px;
    }
    .logo-track img {
        height: 40px;
        margin: 0 10px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-item img {
        width: 95%; /* Ekranın %95'ini kaplar */
        max-width: 500px; /* Maksimum genişlik */
        height: auto; /* Orantılı yükseklik */
        border-radius: 8px;
        margin-bottom: 15px;
        border: 2px solid var(--accent-color); /* Kiremit Kırmızısı */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .photo-grid-cloned {
        flex-direction: column; /* Fotoğrafları alt alta sıralar */
        align-items: center; /* Fotoğrafları ortalar */
        gap: 10px;
    }
    .photo-item-cloned {
        width: 95%; /* Ekranın %95'ini kaplar */
        height: auto; /* Yükseklik otomatik ayarlanır */
        max-width: 500px; /* Maksimum genişlik */
    }
    .photo-item-cloned img {
        width: 100%; /* Ekranı dolduracak şekilde */
        height: auto; /* Orantılı yükseklik */
        border: 2px solid var(--accent-color); /* Kiremit Kırmızısı */
    }
    #bottom-photo-showcase {
        padding: 20px 10px;
    }
    .district-list {
        grid-template-columns: 1fr; /* Stack vertically in mobile view */
    }
    .scroll-top-btn {
        bottom: 10px;
    }
    #seo-content-section h2 {
        text-align: center;
        font-size: 1.2em;
    }
    #seo-content-section p {
        text-align: center; /* Mobil için ortala */
    }
}