/* assets/css/style.css */

/* Değişkenler (config.php uyumlu) */
:root {
    --primary-color: #0056b3;
    /* Premium koyu mavi */
    --secondary-color: #f8f9fa;
    /* Hafif gri arka plan */
    --accent-color: #ff9800;
    /* Turuncu vurgu rengi */
    --text-color: #333333;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --transition-speed: 0.3s;

    /* Gelişmiş Tasarım Elementleri */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
}

/* Genel Temel Sıfırlama ve Yapı */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografi */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: #004494;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-accent:hover {
    background-color: #e68a00;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 60px;
    border-radius: 8px;
    /* Eğer arka planlı bir logoysa diye */
}

.logo-container h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Bu sayede Hemen Ara butonu ile diğer linkler yatayda aynı hizaya gelir */
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Nav içindeki Call-to-action butonlarının alt çizgisini ve paddingini sıfırlama */
nav ul li a.btn::after {
    display: none;
}

nav ul li a.btn {
    padding-bottom: 0;
}

/* Mobil Menü Butonu (Gizli varsayılan) */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Slider (Swiper) */
.hero-slider {
    width: 100%;
    height: 90vh;
    min-height: 650px;
    position: relative;
    background-color: var(--secondary-color);
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.swiper-slide-active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 3.5rem;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

/* Section Başlıkları */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Hizmetler Bölümü */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-info {
    padding: 25px;
    text-align: center;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Hakkımızda Bölümü */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
}

/* Footer ve İletişim */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-col p,
.footer-col a {
    color: #cccccc;
    margin-bottom: 15px;
    display: block;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #cccccc;
}

.contact-info li i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #888888;
}

/* Sabit İletişim Butonları (WhatsApp & Telefon) */
.fixed-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 999;
}

.fixed-btn {
    height: 50px;
    min-width: 50px;
    padding: 0 20px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.fixed-btn:hover {
    transform: scale(1.05);
    color: var(--white);
}

.scroll-top-btn {
    width: 50px;
    padding: 0;
    background-color: #6c757d;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn.show:hover {
    transform: translateY(-5px);
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn i {
    font-size: 24px;
}

.phone-btn {
    background-color: var(--primary-color);
}

.phone-btn i {
    font-size: 18px;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.faq-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    height: 100%;
    min-height: 400px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    background: var(--secondary-color);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.faq-content {
    padding: 20px 25px;
    color: var(--text-color);
}

/* --- Hizmet Bölgeleri (İlçeler) Kartları --- */
.service-areas-section {
    position: relative;
    border-top: 1px solid var(--border-color);
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.district-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    z-index: -1;
}

.district-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.district-card:hover::before {
    height: 100%;
    background-color: var(--primary-color);
}

.district-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: color var(--transition-speed);
}

.district-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color var(--transition-speed);
}

.district-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color var(--transition-speed);
}

.district-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.district-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

/* Hover İçi Renk Değişimleri */
.district-card:hover .district-icon,
.district-card:hover h3,
.district-card:hover p,
.district-card:hover .district-link {
    color: var(--white);
}

.district-card:hover .district-link i {
    transform: translateX(5px);
}



/* --- Before / After Image Comparison Slider --- */
.before-after-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.ba-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    cursor: ew-resize;
    user-select: none;
}

/* Her iki imge de aynı boyutta, üst üste */
.ba-img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* Before görsel kapsayıcısı — genişliği JS tarafından ayarlanır */
.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* başlangıç: ortada */
    height: 100%;
    overflow: hidden;
}

/* Before içindeki img tam boyut */
.ba-before .ba-img--before {
    width: 860px;
    /* parent'tan bağımsız tam genişlik */
    max-width: none;
    height: 460px;
}

/* Tutaç: dikey çizgi + daire */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    /* başlangıç: ortada */
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    z-index: 10;
    pointer-events: none;
}

.ba-line {
    width: 4px;
    height: 100%;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.ba-circle i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Etiketler */
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 9;
    pointer-events: none;
}

.ba-label--before {
    left: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
}

.ba-label--after {
    right: 20px;
    background: rgba(0, 86, 179, 0.8);
    color: var(--white);
}

/* Hayalet Range Input — tamamen şeffaf, tüm alanı kaplar */
.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
    margin: 0;
}

/* --- Neden Biz (Özellikler Widget) --- */
.features-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    background: var(--white);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* --- İstatistikler (Counter Widget) --- */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* --- Müşteri Yorumları (Testimonials Widget) --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 2rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.author-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        padding: 20px;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .ba-img,
    .ba-before .ba-img--before {
        height: 280px;
    }

    .ba-before .ba-img--before {
        width: 100vw;
    }

    .appointment-grid {
        grid-template-columns: 1fr !important;
    }

    .faq-wrapper {
        grid-template-columns: 1fr;
    }
}