/* =========================================
   1. MODERN RESET & VARIABLES
   ========================================= */
:root {
    /* Renk Paleti */
    --primary: #d32f2f;       /* Ana Kırmızı */
    --primary-hover: #b71c1c; /* Koyu Kırmızı */
    --secondary: #1d3557;     /* Lacivert */
    --secondary-light: #457b9d; /* Açık Mavi */
    --accent: #f1faee;        /* Çok Açık Mavi/Beyaz */
    --text-dark: #1d3557;     /* Koyu Metin */
    --text-body: #4a4a4a;     /* Gövde Metni */
    --text-light: #a8a8a8;    /* Açık Gri Metin */
    --bg-body: #f8f9fa;       /* Sayfa Arkaplanı */
    --white: #ffffff;
    --whatsapp: #25d366;      /* WhatsApp Yeşili */
    
    /* Gölgeler & Efektler */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Mobil Sticky Bar için */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--primary); }

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary);
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* =========================================
   3. HERO SECTION (Modern Giriş)
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #162447 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0 0 50% 50% / 4%; /* Hafif kavis */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary-light);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(69, 123, 157, 0.35);
}

.btn-secondary:hover {
    filter: brightness(1.05);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    background: var(--secondary);
    color: var(--white);
}

.btn-inline:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-compact {
    padding: 60px 0 40px;
    border-radius: 0 0 20% 20% / 10%;
    margin-bottom: 0;
}

.hero-mini {
    padding: 40px 0;
    border-radius: 0;
    margin-bottom: 20px;
}

.hero-title-sm {
    font-size: 2.2rem;
}

.hero-title-xs {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* =========================================
   4. LAYOUT & CONTENT
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* İçerik ve Sidebar Oranı */
    gap: 40px;
    margin-bottom: 60px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--secondary);
    font-weight: 600;
}

.content-area article {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.content-area h1 { color: var(--secondary); font-size: 2.2rem; margin-bottom: 25px; }
.content-area h2 { color: var(--secondary); font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; }
.content-area h3 { color: var(--primary); font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; }
.content-area p { margin-bottom: 20px; font-size: 1.05rem; }

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.blog-title-link {
    color: var(--secondary);
}

.blog-meta {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-excerpt {
    color: var(--text-body);
}

.blog-content {
    line-height: 1.8;
    color: var(--text-body);
}

.blog-content h2,
.blog-content h3 {
    color: var(--secondary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-content ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 20px;
}

.blog-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Hizmet Listesi */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background: var(--bg-body);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary-light);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* SSS Bölümü */
.faq-section {
    margin-top: 50px;
}

.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-sm);
}

.faq-item strong {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* =========================================
   5. SIDEBAR (Yan Menü)
   ========================================= */
.sidebar-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    position: sticky;
    top: 100px; /* Header yüksekliğine göre ayarla */
}

.sidebar-box h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.district-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Tasarımı */
.district-list::-webkit-scrollbar { width: 6px; }
.district-list::-webkit-scrollbar-track { background: #f1f1f1; }
.district-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.district-list a {
    display: block;
    padding: 10px 15px;
    background: var(--bg-body);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.district-list a:hover, .district-list a.active {
    background: var(--secondary);
    color: var(--white);
    padding-left: 20px;
}

.list-icon {
    font-size: 0.8rem;
    margin-right: 8px;
    opacity: 0.8;
}

/* =========================================
   6. FOOTER & STICKY MOBILE BAR
   ========================================= */
.main-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 100px;
    margin-top: 60px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-icon {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.error-text {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 15px;
    gap: 15px;
}

.sticky-btn {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sticky-btn.call { background: var(--primary); color: var(--white); }
.sticky-btn.whatsapp { background: var(--whatsapp); color: var(--white); }

/* =========================================
   7. RESPONSIVE (Mobil Uyumluluk)
   ========================================= */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr; /* Tek kolon */
    }
    
    .sidebar-box {
        position: static; /* Mobilde sticky olmasın */
        order: 2; /* İçerikten sonra gelsin */
    }
    
    .content-area { order: 1; }
    
    .hero-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav-actions { flex-direction: column; width: 100%; }
    .btn-header { width: 100%; justify-content: center; }
    .nav-link { width: 100%; text-align: center; }
    .hero-section { padding: 60px 0 40px; border-radius: 0; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero { width: 100%; justify-content: center; }
    .hero-title { font-size: 1.9rem; }
    .hero-title-sm { font-size: 1.9rem; }
    .hero-title-xs { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .content-area article { padding: 25px; }
    .blog-card { padding: 22px; }
    .sidebar-box { padding: 20px; }
    .district-list { max-height: none; }
    .sticky-footer { display: flex; } /* Sadece mobilde görünür olabilir, şimdilik her zaman açık */
}

/* Masaüstünde Sticky Footer Gizle (İsteğe Bağlı) */
@media (min-width: 769px) {
    .sticky-footer { display: none; }
    body { padding-bottom: 0; }
}
