/* Genel stiller */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff; /* çok açık mavi */
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    background: #f7f7f7; /* koyu beyaz */
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 18px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}
.topbar .contact-info {
    display: flex;
    gap: 18px;
}
.topbar .social-icons {
    display: flex;
    gap: 10px;
}

.social {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Sosyal medya ikonları */
.social.facebook { background-image: url('../socials/facebook.png'); }
.social.instagram{ background-image: url('../socials/instagram.png'); }
.social.tiktok   { background-image: url('../socials/tiktok.png'); }
.social.map      { background-image: url('../socials/location-pin.png'); }

/* Hover efekti */
.social:hover {
    opacity: 0.8;
    transform: scale(1.1); /* biraz büyür */
}

/* Header */
header {
    background: #f3f3f3; /* koyu beyaz */
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* daha da küçültüldü */
    width: 100%;
    height: 125px;
    margin: 0 auto;
    padding: 8px 16px; /* padding küçültüldü */
    box-sizing: border-box;
}
.logo {
    text-align: left;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 4px;
}

.logo-tagline {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    transition: color 0.3s ease;
}

.logo a:hover .logo-tagline {
    color: red;
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav ul {
    display: flex;
    gap: 4px; /* nav itemler arası boşluk azaltıldı */
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

nav a:hover {
    color: black;
    background: rgba(207, 36, 24, 0.1);
}

.btn-contact {
    background: red;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1.3rem;
    border: 2px solid red;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
}

.btn-contact:hover {
    background: #fff;
    color: red !important;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.menu-toggle {
    display: none;
    background: red;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1.3rem;
    border: 2px solid red;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
}

/* Dropdown menü */
.nav-item.dropdown {
    position: relative;
}

.nav-item .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f3f3f3;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none;
    min-width: 200px;
    z-index: 999;
}

.nav-item .dropdown-menu li {
    padding: 0;
}

.nav-item .dropdown-menu li a {
    display: block;
    padding: 8px 22px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-item .dropdown-menu li a:hover {
    background: rgba(207,36,24,0.1);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Main content styles */
main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Footer */
footer {
    background: #f3f3f3; /* koyu beyaz */
    color: #222;
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: sticky;
    bottom: 0;
    width: 100%;
    margin-top: auto;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Footer Styles */
#footer {
    background: #f3f3f3;
    padding: 50px 0 0 0;
    position: relative;
}

.upper-footer {
    padding-bottom: 30px;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget img {
    width: 180px;
    height: auto;
    margin-bottom: 20px; /* Logo ile sosyal ikonlar arası mesafe */
    margin-top: 25px; /* Logo'yu aşağı indirmek için */
    margin-right: 75px;
}

.footer-widget {
    margin-bottom: 20px;
}

.widget-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-align: left; /* Başlıkları sola yasla */
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%; /* Çizgiyi tam genişliğe çıkar */
    height: 2px;
    background: red;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Menü öğelerini sola yasla */
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: red;
}

.social-icons-footer {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center; /* Sosyal ikonları ortaya hizala */
    margin-left: -80px;
}

.lower-footer {
    background: #e6e6e6;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: red;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 100;
}

.back-to-top:hover {
    background: darkred;
}

.floating-phone {
    position: fixed;
    left: 2%;              /* Sol köşe */
    top: 90%;             /* Dikey ortada */
    transform: translateY(-50%);
    background: red;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-phone:hover {
    background: #fff;
    color: red;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}



.floating-buttons {
    position: fixed;
    left: 2%;
    bottom: 5%;
    display: flex;
    flex-direction: row; /* yan yana */
    gap: 12px;
    z-index: 9999;
    width: max-content;
    /* artık top ve transform yok */
}

.floating-phone {
    position: relative; /* fixed değil, container ile hareket eder */
    background: red; /* veya yeşil */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
/* Kırmızı telefon */
.phone-red {
    background: #e53935; /* kırmızı */
}
.phone-red:hover,
.phone-red:focus {
    background: #c62828;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* WhatsApp yeşili */
.whatsapp-green {
    background: #25D366; /* WhatsApp yeşili */
}
.whatsapp-green:hover,
.whatsapp-green:focus {
    background: #1ebe57;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Erişilebilir odak göstergesi (klavye ile gezme için) */
.floating-phone:focus {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.15);
}


/* =======================
   Galeri Bölümü
======================= */
.gallery-section {
    padding: 60px 20px;
    background: #fff;
}
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #e53935;
    margin-bottom: 30px;
    font-weight: 700;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    justify-items: center;
    margin-bottom: 20px;
}
.gallery-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.gallery-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(229,57,53,0.13);
}
.gallery-video {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    background: #000;
}

/* Fabrika Taşıma İçerik Bölümü */
.fabrika-tasima-content {
    background: #f8f9fa;
    padding: 60px 0;
    width: 100%;
}

.fabrika-tasima-content .container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.09);
    padding: 48px 36px;
}

.fabrika-tasima-content h2 {
    font-size: 2rem;
    color: #e53935;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.fabrika-tasima-content p {
    font-size: 1.18rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 28px;
    text-align: justify;
}

@media (max-width: 1024px) {
    .fabrika-tasima-content .container {
        padding: 32px 16px;
    }
    .fabrika-tasima-content h2 {
        font-size: 1.5rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }
    .fabrika-tasima-content p {
        font-size: 1.05rem;
        margin-bottom: 18px;
    }
}

@media (max-width: 700px) {
    .fabrika-tasima-content {
        padding: 24px 0;
    }
    .fabrika-tasima-content .container {
        padding: 16px 6px;
        border-radius: 10px;
    }
    .fabrika-tasima-content h2 {
        font-size: 1.15rem;
        margin-top: 18px;
        margin-bottom: 8px;
    }
    .fabrika-tasima-content p {
        font-size: 0.98rem;
        margin-bottom: 12px;
    }
}

/* Responsive düzenleme */
@media (max-width: 768px) {
    .about-page {
        padding: 30px 15px;
        font-size: 1rem;
    }

    .about-page h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-page h2 {
        font-size: 1.3rem;
    }

    .about-page ul {
        margin-left: 10px;
    }
}

/* Responsive düzenleme */
@media (max-width: 768px) {
    .about-page {
        padding: 30px 15px;
        font-size: 1rem;
    }

    .about-page h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-page h2 {
        font-size: 1.3rem;
    }

    .about-page ul {
        margin-left: 10px;
    }
}

/* Responsive: 520px ve altı ekranlar için */
@media (min-width: 320px) and (max-width: 820px) {
    .topbar {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        text-align: center;
    }
    
    .topbar .contact-info {
        flex-direction: column;
        gap: 4px;
    }

    .header-inner {
        flex-direction: column;
        height: 220px;
        padding: 8px;
        gap: 8px;
    }
}

/* 821px altı için mobil görünüm - DÜZELTME */
@media (max-width: 820px) {
    nav {
        position: relative;
        flex-direction: column; /* Butonları alt alta hizalar */
        align-items: center; /* Sola hizala */
        gap: 10px; /* Aralarına boşluk */
    }
    
    .menu-toggle {
        display: block !important; /* Burada !important kullanıyoruz ki kesinlikle görünsün */
        background: red;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
        width: auto; /* Genişliği içeriğe göre ayarla */
    }
    
    nav ul {
        display: none; /* menü gizli */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100px; /* menu-toggle + btn-contact yüksekliği kadar aşağı */
        left: 50%;
        transform: translateX(-50%);
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav ul.show {
        display: flex; /* menü açılınca görünür */
        width: 100%;
        min-width: 250px;
        padding: 15px 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .btn-contact {
        align-self: flex-start; /* Sola hizala */
        margin-top: 0; /* Üstteki gap yeterli */
    }

    .nav-item .dropdown-menu li a {
        display: block;
        padding: 4px 8px;
        color: #333;
        text-decoration: none;
        font-size: 0.85rem;
        transition: background 0.2s;
    }
}


/* Responsive düzenlemeler */
@media (max-width: 820px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 15px;
    }

    .footer-widget {
        border-bottom: none; /* Alt çizgiyi kaldır */
        padding-bottom: 0;
        margin-bottom: 15px;
    }

    .widget-title {
        display: block;
        padding: 10px 0;
        margin-bottom: 10px;
        text-align: left;
        cursor: default; /* Tıklanabilirliği kaldır */
    }

    .widget-title:after {
        content: ''; /* Toggle simgesini kaldır */
        display: none;
    }

    .footer-menu {
        display: block !important; /* Her zaman görünür */
        padding: 10px 0;
        text-align: left;
    }

    .footer-widget:first-child {
        text-align: center;
    }

    .footer-widget:first-child img {
        margin: 0 auto 15px auto;
    }

    .social-icons-footer {
        margin: 0;
        justify-content: center;
    }

    #footer {
        padding: 30px 0 0 0;
    }

    .lower-footer {
        padding: 15px;
        font-size: 0.8rem;
    }

    .floating-phone {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .floating-buttons {
        bottom: 4%;
        left: 3%;
        gap: 10px;
    }
}

/* Footer responsive düzenlemeler */
@media (max-width: 820px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 15px;
    }

    .footer-widget {
        border-bottom: none; /* Alt çizgiyi kaldır */
        padding-bottom: 0;
        margin-bottom: 15px;
    }

    .widget-title {
        display: block;
        padding: 10px 0;
        margin-bottom: 10px;
        text-align: left;
        cursor: default; /* Tıklanabilirliği kaldır */
    }

    .widget-title:after {
        content: ''; /* Toggle simgesini kaldır */
        display: none;
    }

    .footer-menu {
        display: block !important; /* Her zaman görünür */
        padding: 10px 0;
        text-align: left;
    }

    .footer-widget:first-child {
        text-align: center;
    }

    .footer-widget:first-child img {
        margin: 0 auto 15px auto;
    }

    .social-icons-footer {
        margin: 0;
        justify-content: center;
    }

    #footer {
        padding: 30px 0 0 0;
    }

    .lower-footer {
        padding: 15px;
        font-size: 0.8rem;
    }

    .floating-phone {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .floating-buttons {
        bottom: 4%;
        left: 3%;
        gap: 10px;
    }
}