/* --- CSS DEĞİŞKENLERİ & SIFIRLAMA --- */
:root {
    --primary-color: #2C3E50; /* Koyu Mavi-Gri */
    --accent-color: #D4A373; /* Ahşap/Altın tonu */
    --light-bg: #F9F9F9;
    --white: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER & MENÜ --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- MOBİL MENÜ (CHECKBOX HACK) --- */
.menu-toggle { display: none; }
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* --- HERO (GİRİŞ) BÖLÜMÜ --- */
.hero {
    height: 100vh;
    /* Arka plan görselini buradan değiştirebilirsiniz */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/mutlu.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
}

/* --- GENEL BÖLÜM AYARLARI --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* --- HİZMETLER KARTLARI --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- GALERİ --- */
#gallery { background-color: var(--light-bg); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    transition: 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* --- İLETİŞİM --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h4 { color: var(--accent-color); margin-bottom: 5px; }

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

/* --- MOBİL UYUMLULUK (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Mobil Menü Mantığı */
    .hamburger { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed;
        top: 70px; /* Header yüksekliği kadar aşağıda */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        border-top: 1px solid #eee;
    }

    /* Checkbox işaretlendiğinde menüyü içeri kaydır */
    .menu-toggle:checked ~ .nav-links {
        left: 0;
    }
    
    /* Hamburger İkonu Animasyonu */
    .menu-toggle:checked ~ label .bar:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ label .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle:checked ~ label .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* =========================================
   HİZMETLER SAYFASI VE DETAY CSS AYARLARI
   ========================================= */

/* Sayfa Başlığı (Hero Benzeri Şerit) */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 130px 0 60px 0; /* Header'ın altında kalmasın diye üstten boşluk */
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Detay Sayfası Genel Kapsayıcı */
.service-details-page {
    padding: 80px 0;
    background-color: #fff;
}

/* SATIR DÜZENİ (FLEXBOX) - Resim ve Yazıyı Yan Yana Getirir */
.detail-row {
    display: flex; /* Yan yana diz */
    align-items: center; /* Dikeyde ortala */
    gap: 60px; /* Resim ve yazı arası boşluk */
    margin-bottom: 100px; /* Satırlar arası boşluk */
    
    /* Linkten gelince başlığın menü altında kalmaması için */
    scroll-margin-top: 120px; 
}

/* Ters Sıralama (Resim Sağda, Yazı Solda) */
.detail-row.reverse {
    flex-direction: row-reverse;
}

/* RESİM AYARLARI (Görünmeme sorununu çözen kısım) */
.detail-image {
    flex: 1; /* Alanın yarısını kapla */
    width: 100%; /* Kapsayıcıyı doldur */
}

.detail-image img {
    width: 100%;
    height: 400px; /* Sabit yükseklik veriyoruz ki düzgün dursun */
    object-fit: cover; /* Resmi sündürmeden kutuya sığdır */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Gölge efekti */
    transition: transform 0.3s ease;
}

.detail-image img:hover {
    transform: scale(1.02); /* Üzerine gelince hafif büyüme */
}

/* YAZI KISMI AYARLARI */
.detail-text {
    flex: 1; /* Alanın diğer yarısını kapla */
}

.detail-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Başlık altındaki küçük çizgi */
.detail-text h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 5px;
}

.detail-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Liste Tasarımı */
.detail-list {
    margin: 20px 0 30px 0;
    list-style: none;
}

.detail-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: #444;
}

/* Liste maddelerinin başındaki tik işareti */
.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Butonun farklı rengi (Secondary Button) */
.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- MOBİL UYUMLULUK (TELEFONLAR İÇİN) --- */
@media (max-width: 900px) {
    .detail-row, .detail-row.reverse {
        flex-direction: column; /* Mobilde alt alta diz */
        text-align: left;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .detail-image img {
        height: 250px; /* Mobilde resim yüksekliğini azalt */
    }

    .detail-text h3 {
        font-size: 1.8rem;
    }
}
/* =========================================
   İLETİŞİM SAYFASI ÖZEL TASARIMI
   ========================================= */

.contact-page-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* Kapsayıcı: Yan yana dizmek için Grid kullanıyoruz */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yarı yarıya böl */
    gap: 50px; /* Aralarında boşluk bırak */
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* --- SOL TARAF (BİLGİLER) --- */
.contact-details-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.intro-text {
    margin-bottom: 30px;
    color: #666;
}

.info-line {
    display: flex; /* İkon ve yazıyı yan yana koy */
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    background-color: #f0f0f0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.info-line strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- SAĞ TARAF (FORM) --- */
.contact-form-box {
    background-color: var(--white);
    padding: 10px; /* İç boşluk */
}

.contact-form-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fcfcfc;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    outline: none;
}

/* Butonu tam genişlik yap */
.full-width-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.full-width-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 800px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Mobilde tek sütuna düşür */
        padding: 20px;
        gap: 40px;
    }
    
    .map-container iframe {
        height: 200px; /* Mobilde haritayı biraz küçült */
    }
}