/* ============================================================
   DRN Home - style.css (KUSURSUZ MOBİL & MASAÜSTÜ VERSİYON)
   Tüm Sayfalar Birleştirildi - Siyah/Beyaz/Kırmızı Konsept
============================================================ */

/* =========================================
   1. GLOBAL AYARLAR VE SIFIRLAMA
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden; /* Sitenin sağa sola kaymasını KESİN engeller */
}

/* Sitenin iskeleti - Mobilde kenarlardan pay bırakır */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    color: #000000;
    font-weight: 700;
    margin-bottom: 15px;
}

/* =========================================
   2. ORTAK BUTON STİLLERİ
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn i { margin-right: 8px; font-size: 18px; }

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background-color: #d90000;
    border-color: #d90000;
}

.btn-secondary {
    background-color: transparent;
    color: #000000;
    border-color: #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* =========================================
   3. ÜST MENÜ (HEADER)
========================================= */
header.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img { max-height: 40px; }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon { font-size: 22px; color: #000000; }
.social-icon:hover { color: #d90000; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #000000;
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    color: #111111;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
}

.navbar a:hover, .navbar a.active { color: #d90000; font-weight: 700; }

/* =========================================
   4. ANA SAYFA: HERO SLIDER
========================================= */
section.hero.splide {
    background-color: #f9f9f9;
    padding: 80px 0;
    border-bottom: 1px solid #eeeeee;
}

.hero-content h1 { font-size: 46px; line-height: 1.2; letter-spacing: -1px; }
.hero-content p { font-size: 18px; color: #555555; margin-bottom: 30px; max-width: 700px; }

.hero-buttons { display: flex; gap: 15px; }

.splide__arrows.custom-arrows {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 100%; display: flex; justify-content: space-between; padding: 0 20px; left: 0; z-index: 10;
}
.splide__arrow.custom-prev, .splide__arrow.custom-next {
    background: #000000; color: #ffffff; width: 40px; height: 40px;
    border-radius: 50%; border: none; opacity: 0.5; cursor: pointer; transition: 0.3s;
}
.splide__arrow:hover { opacity: 1; background: #d90000; }

/* =========================================
   5. ANA SAYFA: BÖLÜMLER
========================================= */
section.features { padding: 80px 0; }
.features .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-box { text-align: center; padding: 30px; border: 1px solid #e0e0e0; border-radius: 4px; transition: 0.3s; }
.feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.feature-box img { max-width: 60px; margin: 0 auto 20px; }

section.product-showcase { padding: 80px 0; background: #f9f9f9; }
.section-title { text-align: center; font-size: 36px; text-transform: uppercase; margin-bottom: 50px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.showcase-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.showcase-item img { width: 100%; height: 250px; object-fit: cover; }
.showcase-info { padding: 20px; text-align: center; }

section.cta-section { background: #000000; color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; font-size: 32px; }
.cta-section p { opacity: 0.8; margin-bottom: 30px; font-size: 18px; }
.cta-section .btn-primary { background: #d90000; border-color: #d90000; }
.cta-section .btn-primary:hover { background: #a30000; }

/* =========================================
   6. İÇ SAYFALAR GENEL (Hero & Hakkımızda)
========================================= */
.page-hero { background: #f9f9f9; padding: 50px 0; text-align: center; border-bottom: 1px solid #eeeeee; margin-bottom: 50px; }
.page-hero h1 { font-size: 32px; text-transform: uppercase; }
.page-hero p { color: #666; font-size: 16px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.about-list { list-style: none; margin-top: 15px; }
.about-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.about-list li::before { content: "■"; color: #d90000; position: absolute; left: 0; font-size: 12px; top: 4px; }
.about-image img { border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* =========================================
   7. ÜRÜNLERİMİZ SAYFASI
========================================= */
.products-section { padding-bottom: 80px; }
.category-title { font-size: 28px; border-bottom: 2px solid #000; display: inline-block; padding-bottom: 5px; margin-bottom: 30px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #eee; }
.product-info { padding: 20px; }
.category-divider { border: 0; height: 1px; background: #ddd; margin: 60px 0; }
.product-notice { background: #f9f9f9; padding: 25px; border-left: 4px solid #d90000; margin-top: 40px; }

/* =========================================
   8. İLETİŞİM SAYFASI (Adam Akıllı Yapı)
========================================= */
.contact-section { padding-bottom: 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2, .contact-form-wrapper h2 { font-size: 24px; text-transform: uppercase; margin-bottom: 20px; }

.info-list { list-style: none; margin-bottom: 30px; }
.info-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.info-list i { font-size: 22px; color: #d90000; margin-top: 3px; }

.catalog-download { background: #f9f9f9; padding: 20px; border: 1px dashed #ccc; text-align: center; border-radius: 4px; }
.download-btn { width: 100%; margin-bottom: 10px; background: #d90000; border-color: #d90000; }

.contact-form { background: #fff; padding: 30px; border: 1px solid #eee; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 14px; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #000; }
.submit-btn { width: 100%; }

.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: 400px; border: 0; }

/* =========================================
   9. ALT BİLGİ (FOOTER)
========================================= */
footer.footer { background: #111; color: #aaa; padding: 60px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about img { max-height: 40px; margin-bottom: 15px; filter: invert(1); }
.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   10. MOBİL UYUMLULUK (BURASI HAYAT KURTARIR)
============================================================ */

/* TABLET EKRANLAR (max-width: 992px) */
@media (max-width: 992px) {
    .features .container, .showcase-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* TELEFON EKRANLAR (max-width: 768px) KESİN MOBİL ÇÖZÜMÜ */
@media (max-width: 768px) {
    
    /* Global Mobilde Daralma */
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    .btn { width: 100%; margin-bottom: 10px; } /* Butonlar mobilde tam ekran genişler */

    /* Üst Menü Mobilde */
    .mobile-menu-btn { display: block; }
    .navbar {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: #fff; border-top: 1px solid #eee; display: none;
        flex-direction: column; padding: 10px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .navbar.active { display: flex; }
    .navbar ul { flex-direction: column; gap: 0; }
    .navbar a { display: block; padding: 15px 20px; border-bottom: 1px solid #f9f9f9; }

    /* Hero Slider Mobilde */
    section.hero.splide { padding: 40px 0; text-align: center; }
    .hero-content { padding: 0 10px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 15px; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 0; } /* Butonlar alt alta biner */
    .splide__arrows.custom-arrows { display: none; } /* Mobilde oklar çirkin durur, gizledik. Elle kaydırılır. */

    /* Grid Yapıları Mobilde Tek Sütuna Düşer */
    .features .container, .showcase-grid, .product-grid, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }

    /* İletişim Sayfası Mobilde Jilet Ayarı */
    .contact-form { padding: 20px; } /* Telefondan girince form devasa durmasın */
    .contact-info, .contact-form-wrapper { text-align: center; } /* Başlıkları ortala */
    .info-list li { text-align: left; align-items: center; } /* İkon ve metin hizası kaymasın */
    .map-section iframe { height: 250px; } /* Harita ekranda çok yer kaplamasın */
    .catalog-download { padding: 15px; }

    /* CTA Section */
    section.cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 26px; }
    .cta-section p { font-size: 15px; }

    /* Footer */
    .footer-grid { text-align: center; }
    .footer-about img { margin: 0 auto 15px; }
}
/* =========================================
   12. SLIDER ARKA PLAN GÖRSELLERİ (GENİŞLETİLMİŞ & FLU EFEKT)
========================================= */
.slide-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Dar görünümü bitiren hamle: Hem iç boşluk hem de garanti yükseklik verdik */
    padding: 100px 20px; 
    min-height: 500px; /* Masaüstünde garanti devasa yükseklik */
    border-radius: 8px; 
    display: flex; /* İçindeki yazıları dikeyde tam ortalamak için */
    align-items: center;
}

/* 1. Slayt Görseli (Kaliteli Uyku) */
.slide-bg-1 {
    background-image: linear-gradient(rgba(249, 249, 249, 0.45), rgba(249, 249, 249, 0.85)), url('img/slider-bg-1.jpg');
}

/* 2. Slayt Görseli (Kampanyalar) */
.slide-bg-2 {
    background-image: linear-gradient(rgba(249, 249, 249, 0.45), rgba(249, 249, 249, 0.85)), url('img/slider-bg-2.jpg');
}

/* Mobilde banner'ın çok abartı durmaması ama yine de tok görünmesi için özel ölçü */
@media (max-width: 768px) {
    .slide-with-bg {
        padding: 50px 15px;
        min-height: 380px;
    }
}
