/* Custom CSS Variables - Premium Color Palette */
:root {
    --primary-blue: #0A2540;
    --accent-emerald: #10B981;
    --luxury-gold: #D4AF37;
    --background-light: #F8FAFC;
    --pure-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hard-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--background-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Header & Glassmorphic Navigation */
header.premium-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); transition: var(--transition-smooth); }
header.premium-nav.scrolled { background: var(--pure-white); box-shadow: var(--soft-shadow); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo a { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--accent-emerald); }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition-smooth); }
.nav-menu a:hover { color: var(--accent-emerald); }

/* Action Buttons */
.btn-premium { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.8rem !important; border-radius: 8px !important; font-weight: 600; font-size: 0.95rem !important; text-decoration: none; transition: var(--transition-smooth); border: none; cursor: pointer; }
.btn-primary-blue { background: var(--primary-blue); color: var(--pure-white); }
.btn-primary-blue:hover { transform: translateY(-2px); box-shadow: var(--hard-shadow); }
.btn-emerald { background: var(--accent-emerald); color: var(--pure-white); }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }

/* HERO SECTION */
.hero-section { position: relative; padding: 180px 0 100px 0; background: radial-gradient(circle at 10% 20%, rgba(240, 249, 246, 0.5) 0%, rgba(255, 255, 255, 1) 90%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-title { font-size: 3.8rem; line-height: 1.15; font-weight: 800; color: var(--primary-blue); letter-spacing: -2px; margin-bottom: 1.5rem; }
.hero-title span { background: linear-gradient(135deg, var(--primary-blue), var(--accent-emerald)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 580px; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; }
.stat-item h3 { font-size: 2.2rem; font-weight: 800; color: var(--primary-blue); }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* SERVICES GRID SECTION */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 4rem auto; }
.section-badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--primary-blue); letter-spacing: -1px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* Global Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: start;
}

/* Premium Card Design */
.premium-card { background: var(--pure-white); border-radius: 24px; padding: 2.5rem; box-shadow: var(--soft-shadow); transition: var(--transition-smooth); border: 1px solid rgba(0, 0, 0, 0.02); position: relative; overflow: hidden; }
.premium-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-emerald); transform: scaleY(0); transition: var(--transition-smooth); transform-origin: bottom; }
.premium-card:hover { transform: translateY(-8px); box-shadow: var(--hard-shadow); }
.premium-card:hover::before { transform: scaleY(1); }
.card-icon { width: 60px; height: 60px; background: rgba(10, 37, 64, 0.03); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; color: var(--primary-blue); transition: var(--transition-smooth); }
.premium-card:hover .card-icon { background: var(--accent-emerald); color: var(--pure-white); }
.card-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary-blue); }
.card-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Before / After Slider Module (Koruma Altında - Genişlik Kuralları Dokunulmazdır) */
.ba-container { position: relative; width: 100%; height: 450px; border-radius: 24px; overflow: hidden; box-shadow: var(--hard-shadow); }
.ba-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.ba-after { width: 50%; border-right: 3px solid var(--pure-white); z-index: 2; }
.ba-label { position: absolute; bottom: 20px; background: rgba(0,0,0,0.6); color: white; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.ba-before .ba-label { left: 20px; }
.ba-after .ba-label { right: 20px; }
.ba-slider { position: absolute; -webkit-appearance: none; appearance: none; width: 100%; height: 100%; background: transparent; outline: none; margin: 0; z-index: 10; cursor: ew-resize; }

/* Form Elements Resets for Mobile Security */
input, textarea, select {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

/* Fixed Elements */
.whatsapp-fixed { position: fixed; bottom: 40px; right: 40px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 999; transition: var(--transition-smooth); }
.whatsapp-fixed:hover { transform: scale(1.1); }

/* Global Utilities */
body.no-scroll { overflow: hidden; }

/* ========================================================================= */
/* --- %100 CERRRAHİ VE İZOLE RESPONSIVE MATRIX METRİKLERİ ---               */
/* ========================================================================= */
@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 3.2rem; }
    .hero-grid { gap: 2rem; }
}

@media (max-width: 992px) {
    /* 1. LAYOUT RESET: Header ve Çerez Politikası hariç, tüm iç sayfalardaki (Hakkımızda, İletişim vb.) 
       satır içi iki kolonlu grid tasarımlarını güvenle tek sütuna düşürür. */
    .grid-2, 
    [class*="-grid"], 
    main [style*="grid-template-columns"], 
    section [style*="grid-template-columns"],
    .container:not(header *):not(#cookieConsent *) [style*="grid-template-columns"] { 
        grid-template-columns: 1fr !important; 
        gap: 2.5rem !important; 
    }

    /* 2. FLEX LAYOUT RESET: Satır içi flex yan yanalıkları dikey hizaya çeker */
    main [style*="display: flex"]:not(.ba-container *), 
    section [style*="display: flex"]:not(.ba-container *),
    .form-row, 
    form [style*="display"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* 3. SÜTUN GENİŞLİK KİLİDİ: Kolonların dar bir şeride dönüşmesini (harf harf kırılmasını) tamamen engeller */
    main [style*="display"] > div,
    section [style*="display"] > div,
    .grid-2 > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex-basis: 100% !important;
    }
    
    .hero-grid { text-align: center; }
    .hero-desc { margin: 0 auto 2.5rem auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .section { padding: 80px 0; }
    
    /* Admin Panel Core Reset */
    .admin-wrapper { grid-template-columns: 1fr !important; }
    .sidebar { padding: 1.5rem 1rem !important; text-align: center; }
    .sidebar-menu { flex-direction: row !important; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem !important; }
    .sidebar-menu li { margin: 0.2rem; }
    .sidebar-menu a { padding: 0.5rem 0.8rem !important; font-size: 0.85rem !important; }
    .main-content { padding: 1.5rem 1rem !important; }
    .form-grid, .grid-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
    table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero-section { padding: 140px 0 60px 0; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; gap: 0.8rem; }
    .hero-actions .btn-premium { width: 100%; }
    .hero-stats { gap: 1.5rem; justify-content: space-around; }
    .stat-item h3 { font-size: 1.8rem; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 2.5rem; }
    
    /* TIPOGRAFİ GÜVENLİK KALKANI: Yazıların dikey şerit haline gelmesini veya harf harf bölünmesini yasaklar */
    h1, h2, h3, h4, p, span, label, .section-title, form * {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        writing-mode: horizontal-tb !important;
    }
    
    /* Telefon ve Destek Hattı Numaralarını Tek Satırda Kilitler */
    a[href^="tel:"], .destek-hatti, [style*="color: var(--accent-emerald)"] {
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
    .premium-card { padding: 1.8rem; border-radius: 16px; }
    .ba-container { height: 320px; border-radius: 16px; }
    
    .whatsapp-fixed { width: 52px; height: 52px; bottom: 20px; right: 20px; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
    .whatsapp-fixed svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
    .stat-item h3 { font-size: 1.6rem; }
    .ba-container { height: 260px; }
}