/* GENEL AYARLAR VE DEĞİŞKENLER */
:root {
    --primary-color: #d32f2f; /* Kırmızı tonu */
    --secondary-color: #25D366; /* WhatsApp Yeşili */
    --dark-bg: #1a233a; /* Koyu Mavi Footer Arkaplanı */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --section-bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--section-bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}
.btn i {
    margin-right: 8px;
}

/* HEADER */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}

.header-phone {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}
.header-phone i {
    margin-right: 5px;
}

/* HERO */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./img/bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px; /* Header boşluğu */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* UZMANLIK ALANLARI */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffebee;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
}

.expertise-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* HİZMETLER */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.tab-link {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tab-link.active, .tab-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-content-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.service-content-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.brands {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.brands span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* NEDEN BİZ */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.why-us-card {
    text-align: center;
}
.why-us-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* BÖLGELER */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.location-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}
.location-card:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.location-card i {
    margin-right: 8px;
    color: var(--primary-color);
}
.location-card:hover i {
    color: #fff;
}

/* SSS */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* remove arrow */
    position: relative;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
}

/* HAKKIMIZDA */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text {
    flex: 1;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mission-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.mv-card {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.mv-icon {
    background-color: #fff;
    border: 2px solid var(--primary-color);
}
.mv-card h4 { margin: 10px 0; }

/* FOOTER */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0 0 0;
}
.footer-container {
    text-align: center;
}
.cta-text h2 {
    font-size: 2.5rem;
}
.cta-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}
.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 15px;
}
.contact-info a {
    color: var(--text-light);
    text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }
.contact-info i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 10px;
}
.map-placeholder iframe {
    border-radius: 8px;
    height: 100%;
    min-height: 250px;
}

.footer-cta .btn-full {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 15px;
}
.footer-motto {
    margin-top: 20px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.footer-motto p {
    font-weight: 600;
    margin: 0;
}
.footer-motto span {
    color: #ccc;
    font-size: 0.9rem;
}

.copyright {
    border-top: 1px solid #3a435a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}
.copyright p { margin: 0; }

/* RESPONSIVE AYARLAR */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    nav ul {
        margin-top: 15px;
        margin-bottom: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding-top: 180px; /* Artan header yüksekliği için */
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .expertise-grid, .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid, .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info, .map-placeholder, .footer-cta {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .header-phone {
        display: none; /* Mobil'de menüde yer kaplamasın */
    }
    nav ul {
        gap: 10px;
        font-size: 0.9rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .expertise-grid, .why-us-grid, .services-grid, .locations-grid {
        grid-template-columns: 1fr;
    }
    .mission-vision {
        flex-direction: column;
    }
    .footer-cta {
        padding: 0 10px;
    }
}

/* HİZMETLER SEKMESİ İÇİN EK CSS */
.tab-link {
    background-color: #f0f2f5; /* Aktif olmayan sekme arkaplanı */
    color: var(--text-dark);
}

.tab-link.active, .tab-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-content {
    display: none; /* Varsayılan olarak tüm içerikleri gizle */
}

.tab-content.active {
    display: grid; /* Sadece aktif olanı göster (grid yapısını koru) */
}

/* YENİ HİZMET KARTI TASARIMI (Arka Plan Görselli Stil) */
.service-content-card.new-design {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eef2f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-visual {
    height: 180px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
    /* Görselin kutuya sığması için temel ayarlar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Her bir hizmet için özel görseller */
.visual-kopyalama { background-image: url('./img/hizmetler-1.png'); }
.visual-kayip { background-image: url('./img/hizmetler-2.png'); }
.visual-immobilizer { background-image: url('./img/hizmetler-3.png'); }
.visual-kapi-acma { background-image: url('./img/hizmetler-4.png'); }
.visual-kilit-degisim { background-image: url('./img/hizmetler-5.png'); }
.visual-kasa { background-image: url('./img/hizmetler-6.png'); }


.service-content-card.new-design h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.service-content-card.new-design h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.service-content-card.new-design p {
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-content-card.new-design .brands {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-content-card.new-design .brands span {
    background: #f1f3f5;
    color: #495057;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}
