/* ==========================================================================
   1. GENEL VE TEMEL AYARLAR
   ========================================================================== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --footer-bg: #2c3e50;
    --footer-text: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(65deg, #d32f2f, #e57373, #f4f6f4, #818b82);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    margin-bottom: 0.7em;
    line-height: 1.2;
    color: #2c3e50;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   2. HEADER VE NAVİGASYON
   ========================================================================== */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav-link-label:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

.main-nav a.active,
.main-nav .main-nav-link-label.active {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

/* Açılır Menü (Dropdown) Stilleri */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none;
}

.main-nav-link-label {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    font-size: 15px;
    text-transform: none;
    text-align: left;
}

.dropdown-toggle:checked ~ .dropdown-content {
    display: block;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}


/* ==========================================================================
   3. BUTON STİLLERİ
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.2s;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #000;
}

.btn-accent:hover {
    background-color: #e68000;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}


/* ==========================================================================
   4. ANA İÇERİK BÖLÜMLERİ
   ========================================================================== */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Hero Alanı */
.hero {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    color: white;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 25px;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

.hero .btn-outline:hover {
    background-color: white;
    color: var(--footer-bg);
}

/* Hizmet Kartları */
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    background-color: #fff;
    min-height: 160px; /* CLS önlemi: Kart yüksekliğini sabitler */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card .card-link {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 15px;
    font-weight: 500;
    text-decoration: underline;
}

/* SSS (Sıkça Sorulan Sorular) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.faq-question {
    /* MOBİL İKON ÇAKIŞMA DÜZELTMESİ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    
    list-style: none;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: normal;
    transition: transform 0.2s;
    /* Flexbox kullandığımız için artık position:absolute'a gerek yok */
}

.faq-item[open] > .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    padding: 20px 0;
}

/* Müşteri Yorumları (Carousel) */
.reviews-carousel-wrapper {
    position: relative;
}

.review-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* Kaydırma çubuğu için boşluk */
}

.review-card {
    flex: 0 0 100%; /* Mobil için tek kart gösterimi */
    scroll-snap-align: start;
    
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
    /* Düzeltilmiş Esnek Yapı (İçerik kesilmesini önler) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

@media (min-width: 600px) {
    .review-card {
        flex-basis: calc(50% - 10px); /* 2'li gösterim */
    }
}

@media (min-width: 992px) {
    .review-card {
        flex-basis: calc(33.333% - 14px); /* 3'lü gösterim */
    }
}

/* Hizmet Sayfası Özel Başlıkları */
main h1,
main h2,
main h1 + p {
    text-align: center;
}

main h1::after,
main h2::after {
    content: '';
    display: block;
    margin-top: 0.5em;
    margin-left: auto;
    margin-right: auto;
}

main h1::after {
    width: 100px;
    height: 4px;
    background-color: #d32f2f;
}

main h2::after {
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.page-super-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    text-align: center;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--footer-text);
    opacity: 0.8;
    font-size: 1.5rem;
    transition: opacity 0.2s, color 0.2s;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}

#footer-disclaimer {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9em;
    padding: 15px;
    margin-top: 30px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.7;
}

/* ==========================================================================
   6. YARDIMCI SINIFLAR VE ANİMASYONLAR
   ========================================================================== */
.sticky-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background: #1e7e34;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* ==========================================================================
   7. MOBİL UYUMLULUK
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    #mobile-menu-toggle:checked ~ .main-nav {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-column p strong {
        display: block;
        margin-bottom: 5px;
    }
}