 /* ==========================================================================
   1. MODERN TASARIM DEĞİŞKENLERİ VE GENEL AYARLAR
   ========================================================================== */
:root {
    --primary: #0a192f;    /* Menü Rengi: Tam Kurumsal Lacivert */
    --accent: #f97316;     /* Endüstriyel Turuncu */
    --bg-light: #ffffff;   /* Giriş Alanı ve Genel Arka Plan: Saf Beyaz */
    --bg-section: #f8fafc; /* Tablo ve Diğer Alanlar için Açık Gri */
    --text-dark: #1e293b;  /* Koyu ve Net Okunabilir Yazı Rengi */
    --text-light: #ffffff; /* Açık Renk Yazılar */
    --footer-bg: #050c16;  /* Menüden bir ton daha koyu derin lacivert */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   🎯 TEXFLON'U ELMASTECH İSKELETİNE ÇEVİREN MERKEZİ ENTEGRASYON KODU
   ========================================================================== */

/* 1. Arkada kalan dış boşluklara Elmastech'in orijinal açık mavi/gri tonu */
html {
    background-color: #F0F6FC !important;
}

/* 2. Ana gövdeyi esnek tutarak Elmastech tabanına hazırlıyoruz */
body {
    background-color: #F0F6FC !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-wrapper {
    width: 100% !important;
    max-width: 1200px !important;  
    margin: 0 auto !important;      /* Dev ekranlarda siteyi TAM ORTALAR */
    background: #ffffff !important;  /* İçerik alanlarının arkası saf beyaz */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05); /* Sağ ve sol narin derinlik gölgesi */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}
/* 2. 🎯 AŞAĞI KAYAN 4. ÜRÜNÜ YUKARI ÇIKARTAN KESİN ÇÖZÜM SATIRI */
.products-grid {
    display: grid !important;
    /* Ne olursa olsun alanı tam 4 eşit parçaya böler, kaymayı imkansız kılar */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 20px !important; /* Ürün kartlarının aralarındaki boşluk */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ürün kartlarının içindeki görsellerin taşmasını önler */
.product-card img {
    width: 100% !important;
    height: auto !important;
}

/* Menü şeridini (Header) logoyu sola, menüyü ise tamamen sağa yaslayacak şekilde kilitler */
header, #main-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important; /* Logoyu sola, menüyü sağa fırlatır */
    align-items: center !important;
}

/* Başlıkların kendi içindeki dizilimini ve aralarındaki boşluğu dengeler */
header nav, #main-header nav {
    display: flex !important;
    flex-wrap: nowrap !important; /* Asla alt satıra geçişe izin vermez */
    gap: 8px !important;         /* 🎯 Sıkışıklığı bitiren, linklerin arasını açan mesafe */
    justify-content: flex-end !important; /* Tüm menüyü sağ tarafa temizce hizalar */
}

/* Linklerin yazı boyutunu ve iç boşluğunu 1000px'e tam sığacak şekilde optimize eder */
header nav a, #main-header nav a {
    font-size: 0.95rem !important;  
    padding: 6px 6px !important;    /* Gereksiz sağ-sol baskısını kaldırır */
    white-space: nowrap !important; /* Yazıların kendi içinde bölünmesini önler */
}

@media (max-width: 1200px) {
    /* Masaüstü kilidini tamamen çöpe at, ekranı %100 kapla */
    .site-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        display: block !important; /* Flex kilidini açtık, rahatlattık */
    }

    /* ÜST BAŞLIK (HEADER) KURTARMA: Yazıların kesilmesini ve dışarı taşmasını önler */
    header, #main-header {
        display: flex !important;
        flex-direction: column !important; /* Logoyu üste, menüyü alta düzgünce kırar */
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
    }

    /* Menü linklerinin çubuk gibi ezilmesini bitirir, alt alta/yan yana rahatça dizer */
    header nav, #main-header nav {
        display: flex !important;
        flex-wrap: wrap !important; /* Sıkıştırmayı KESİNLİKLE iptal ettik, serbest bıraktık */
        justify-content: center !important;
        gap: 10px 15px !important; /* Linklerin arasında dokunma boşluğu bıraktık */
        margin-top: 10px !important;
        width: 100% !important;
    }

    header nav a, #main-header nav a {
        font-size: 0.95rem !important;
        display: inline-block !important;
        padding: 5px 8px !important;
    }

    /* 🎯 ÇUBUK GİBİ KALAN 4 ÜRÜNÜ KURTARMA: Onları alt alta insan gibi dizilmeye zorlar */
    .products-grid {
        display: flex !important;
        flex-direction: column !important; /* Çubuk görüntüsünü bitirir, alt alta alır */
        gap: 25px !important; /* Ürün kartlarının arasına temiz boşluk koyar */
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Ürün kartlarının telefon ekranını tam kaplamasını sağlar */
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .product-card img {
        width: 100% !important;
        height: auto !important;
    }
}

/* 5. Alt Listelerin (Sub-list) İçeri Doğru Düzgün Hizalanması */
.sub-list {
    margin-left: 20px !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    list-style-type: circle !important;
}

/* 6. Tablonun ve Büyük Görsellerin Yanlardan Taşmasını Kesin Olarak Engeller */
.table-responsive, 
.product-image-section img, 
main.inner-container * {
    max-width: 100% !important;
}


.header-banner-zone {
    background-color: #FFCC00 !important;
}

/* 📱 Mobil telefonlarda bu koruma gölgesini kaldırır, ekranı tam kaplatır */

/* Genel Buton Tasarımı */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-light);
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s;
}
.btn:hover { 
    background-color: #ea580c; 
}

/* ==========================================================================
   2. MENÜ (NAVIGATION) - LACİVERT ÜST BAR VE ÇİZİLİ SİYAH AMBLEM
   ========================================================================== */
header {
    background-color: #1d6ce2 !important;
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Kalınlaşan menüye daha derin gölge */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-shape {
    width: 32px;
    height: 32px;
    background-color: #a8a2a2;
    position: relative;
    clip-path: polygon(50% 0%, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
}

.inner-line-v {
    position: absolute;
    top: 0;
    left: 45%;
    width: 10%;
    height: 100%;
    background-color: #0a192f;
}

.inner-line-h {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    height: 10%;
    background-color: #0a192f;
}

.logo-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    line-height: 1;
}

.logo-text span {
    font-size: 1.00rem;
    font-weight: 400;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-left: 8px;
    border-left: 1px solid #cbd5e1;
    padding-left: 10px;
}

nav a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover {
    color: var(--accent) !important;
}

/* ==========================================================================
   3. HERO (GİRİŞ BÖLÜMÜ)
   ========================================================================== */
.hero {
    background-color: var(--bg-light); 
    padding: 5rem 10%;                 
    max-width: 900px;                  
    margin: 0 auto;                    
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    display: block; 
    color: var(--accent); 
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 2rem; 
}

.hero p {
    font-size: 1.1rem;
    color: #475569; 
    margin-bottom: 1.5rem;
    text-align: left; 
    line-height: 1.6;
}

/* ==========================================================================
   4. ÜRÜNLER (PRODUCTS) - ANA SAYFA GRID YAPISI
   ========================================================================== */
.section { 
    padding: 5rem 5%; 
    background-color: var(--bg-section); 
}
.section-title { 
    text-align: center; 
    margin-bottom: 3rem; 
    font-size: 2rem; 
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary);
}
.product-card:hover { 
    transform: translateY(-5px); 
}
.product-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}
.product-content { 
    padding: 1.5rem; 
}
.product-content h3 { 
    margin-bottom: 0.5rem; 
    color: var(--text-dark);
}

/* ==========================================================================
   5. TEKNİK VERİ TABLOSU (TECHNICAL SPECS)
   ========================================================================== */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.tech-table th, .tech-table td  {
    padding: 0.45rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #1e40af !important;
}
.tech-table th { 
    background-color: #1e40af !important ;
    color: #ffffff !important;            /* Başlık yazıları KESİNLİKLE BEYAZ */
    padding: 0.45rem 0.75rem;
    text-align: left;
    font-weight: 600;
}
.tech-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================================
   6. YENİ EKLENEN ORTAK İÇ SAYFA (ÜRÜN DETAY) STİLLERİ
   ========================================================================== */
.inner-container { 
    padding: 3rem 5%; 
    max-width: 1100px; 
    margin: 0 auto; 
} 

.back-btn { 
    display: inline-block; 
    margin-bottom: 2rem; 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
} 

.product-image-section {
    margin-bottom: 3rem;
    text-align: center;
}

.product-image-section img {
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 6px;
}

.belt-app { 
    background: #fff; 
    padding: 1rem; 
    border-left: 4px solid var(--accent); 
    margin-bottom: 1rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}

.application-list {
    list-style-type: none;
    padding: 0;
    margin-top: 1.5rem;
}

.application-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #475569;
    text-align: left;
}

.application-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9rem;
    top: -1px;
}

.sub-list {
    list-style-type: none;
    padding-left: 25px;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.sub-list li {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.sub-list li::before {
    content: "-";
    color: #94a3b8;
}

/* ==========================================================================
   7. SADELEŞTİRİLMİŞ İKİ SÜTUNLU KURUMSAL FOOTER
   ========================================================================== */
footer {
    background-color: var(--footer-bg); 
    color: #94a3b8;
    padding: 2rem 5% 1rem 5% !important; /* Üst dikey boşluğu (4rem'den 2rem'e) indirerek footer*/
    margin-top: 4rem;
    border-top: 3px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #cbd5e1;
}
.footer-info-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-info-item a:hover { 
    color: var(--accent); 
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
    color: #64748b;
}


/* Alt sayfalardaki tüm görselleri zorunlu olarak kibar bir boyuta kilitliyoruz */
.product-image-section img,
.belt-image-wrapper img,
.product-card img,
main img {
    width: 100% !important;
    max-width: 500px !important;  /* Genişliği zorla 500 piksele sınırladık */
    height: 300px !important;     /* Yüksekliği zorla 300 piksele sabitledik */
    object-fit: cover !important; /* Resmin kalitesinin bozulmasını engeller */
    border-radius: 6px !important;
}

/* Azalan yazı fontlarını eski ideal ve okunaklı boyutuna geri çekiyoruz */
.inner-container p, 
.belt-content p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

.inner-container h1 {
    font-size: 2.3rem !important;
}

.back-btn {
    display: block !important; /* Başlığın kesinlikle butonun yanına gelmesini engeller, alt satıra iter */
    margin-bottom: 2rem !important; /* Başlık ile arasında temiz bir boşluk bırakır */
}

.inner-container h1 {
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important; /* Üstteki butonla arasına ek dikey mesafe koyar */
}


/* ==========================================================================
   DİNAMİK İLETİŞİM VE TEKLİF ALMA ALANI (CONTACT FORM)
   ========================================================================== */
.contact-section-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

/* Sol Taraf: Modern Form Alanı */
.contact-form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background-color: #ffffff;
}

/* Sağ Taraf: Hızlı Erişim Kanalları */
.quick-contact-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    text-align: left;
}

.quick-contact-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quick-link-item.whatsapp-btn {
    border-bottom: 2px solid #25d366;
}

 /* Bu sayfaya özel alt alta sıralı ürün blokları tasarımı */
        .belt-section {
            margin-bottom: 5rem;
            padding-bottom: 3rem;
            border-bottom: 2px solid #e2e8f0;
        }
        
        .belt-section:last-of-type {
            margin-bottom: 2rem;
            padding-bottom: 0;
            border-bottom: none;
        }

        .belt-title {
            color: var(--primary);
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .belt-image-wrapper {
            margin-bottom: 2rem;
            text-align: center;
        }

        .belt-image-wrapper img {
            width: 100%;
            max-width: 800px;
            max-height: 400px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .belt-content p {
            color: #475569;
            text-align: left;
            line-height: 1.7;
            font-size: 1.1rem;
            margin-bottom: 1.2rem;
        }

         /* İletişim sayfasına özel tam ekran odaklanma tasarımı */
        .single-form-page {
            max-width: 650px; /* Formu ekranın ortasında çok şık kilitler */
            margin: 4rem auto;
            padding: 0 5%;
        }
