/* 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);
}

/* 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);
}

.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;
}

.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);
}

/* İletişim Formu Stilleri */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 10px;
    background: #f6f7fb;
    min-height: 80vh;
}

.contact-form-wrapper {
    background: #fff;
    padding: 48px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12), 0 1.5px 6px rgba(207,36,24,0.08);
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    transition: box-shadow 0.3s;
}

.contact-form-wrapper:hover {
    box-shadow: 0 12px 40px rgba(207,36,24,0.13), 0 2px 8px rgba(44,62,80,0.09);
}

.contact-form-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: black;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    color: black;
    margin-bottom: 7px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 95%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 1px 2px rgba(44,62,80,0.04);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,0.13);
    background: #fff;
}

.contact-form textarea {
    min-height: 90px;
    resize: vertical;
}

.contact-form select {
    background: #fafbfc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 width%3D%2210%22 height%3D%225%22 viewBox%3D%220 0 10 5%22%3E%3Cpath fill%3D%22%23e53935%22 d%3D%22M0 0l5 5 5-5z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 6px;
    font-weight: 500;
}

.btn-submit {
    background: linear-gradient(90deg, #e53935 0%, #cf2418 100%);
    color: #fff;
    padding: 14px 0;
    border: none;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(207,36,24,0.13);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn-submit:hover,
.btn-submit:focus {
    background: linear-gradient(90deg, #cf2418 0%, #e53935 100%);
    box-shadow: 0 4px 16px rgba(207,36,24,0.18);
    transform: translateY(-2px) scale(1.03);
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 24px 8px;
        border-radius: 12px;
        max-width: 98vw;
    }
    .contact-form h2 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    .btn-submit {
        font-size: 1rem;
        padding: 12px 0;
    }
    .contact-form label {
        font-size: 0.95rem;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}

/* 820px ve altı */
@media (max-width: 820px) {
    /* Footer düzen */
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 15px;
    }

    .footer-column {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .footer-widget {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-widget:last-child {
        border-bottom: none;
    }

    .widget-title {
        display: block;
        cursor: default;
        padding: 10px 0;
        margin-bottom: 0;
        text-align: left;
        width: 100%;
    }

    .widget-title:after,
    .widget-title.active:after {
        content: '';
    }

    .footer-menu {
        display: block !important;
        padding: 10px 0;
        text-align: left;
        width: 100%;
    }

    .footer-widget:first-child {
        text-align: center;
        align-items: 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 buton */
    .floating-phone {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .floating-buttons {
        bottom: 4%;
        left: 3%;
        gap: 10px;
    }

    
}
/* 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: 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;
    }
}
