/*
Theme Name: Ber Dent
Theme URI: https://novadent.com.tr
Author: Nova Dent
Description: Modern Diş Polikliniği Teması. Tailwind CSS ve Lucide Icons ile güçlendirilmiştir.
Version: 1.1
Text Domain: ber-dent
*/

/* ==========================================================================
   1. DEĞİŞKENLER VE SIFIRLAMA
   ========================================================================== */
body, html { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
:root {
    --primary: #004a99;
    --secondary: #00d4ff;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #444444;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


body.no-scroll { overflow: hidden; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); color: inherit; }
ul { list-style: none; }

/* Global Grid Sistemi */
.grid-2, .grid-3 { display: grid; gap: 30px; align-items: center; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Başlıklar */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header span {
    color: var(--secondary);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* ==========================================================================
   2. HEADER & NAVİGASYON
   ========================================================================== */
.site-header {
    background: var(--white);
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.main-menu { display: flex; align-items: center; gap: 25px; }
.main-menu a { color: var(--dark); font-weight: 600; font-size: 15px; }
.main-menu a:hover { color: var(--primary); }

/* Dropdown (Masaüstü) */
.dropdown-item { position: relative; }
.sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}
.dropdown-item:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { padding: 10px 20px; display: block; border-bottom: 1px solid #f8f9fa; }

/* Mobil Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10005;
}
.mobile-nav-toggle span { width: 28px; height: 3px; background: #2c3e50; border-radius: 5px; }
/* Genel Header Yapısı */
header {
    display: flex;
    justify-content: space-between; /* Logo solda, menü sağda */
    align-items: center;
    padding: 8px 5%;
    background-color: #fff; /* İhtiyacınıza göre değiştirin */
}

/* Logo Konteynırı */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px; /* Logonun yüksekliği */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img {
    mix-blend-mode: multiply; /* Beyaz arka planı şeffaf yapar */
    filter: contrast(110%);   /* Logonun renklerini biraz daha netleştirir */
}

/* logo Mobil Görünüm (768px ve altı) */
@media (max-width: 768px) {
    header {
        padding: 10px 15px; /* Mobilde daha dar boşluk */
        justify-content: flex-start; /* Her şeyi sola yaslar */
    }

    .logo {
        margin-right: auto; /* Menü ikonu varsa onu sağa iter, logoyu solda sabitler */
    }

    .logo img {
        height: 45px; /* Mobilde logoyu biraz küçültmek daha iyi durabilir */
    }
}

@media (max-width: 768px) {
    .logo img {
        /* Mobilde çok devasa olmaması için masaüstünden biraz daha küçük tutuyoruz */
        height: 60px; /* Eski mobil değer 45px idi. */
    }
    
    /* Header'ın mobilde logoyu sıkıştırmaması için padding ayarı */
    header {
         padding-top: 15px;
         padding-bottom: 15px;
    }
}
/* ==========================================================================
   3. ÖZEL BÖLÜMLER (HERO, STATS, INTRO)
   ========================================================================== */
/* Masaüstü ve Genel Ayarlar */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Masaüstünde ekranın %70'ini kaplar (Kısaltıldı) */
    min-height: 400px; /* Çok kısa ekranlarda videonun çok küçülmesini engeller */
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fill-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görüntüyü kırparak alanı doldurur */
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Mobil Cihazlar İçin (Telefonlar) */
@media (max-width: 768px) {
    .hero-video-section {
        height: 50vh; /* Mobilde ekranın sadece yarısını kaplar */
        min-height: 300px;
    }
}

/* Carousel */
.carousel-container { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 15px; transition: transform 0.5s ease; }
.carousel-track img { width: calc(33.333% - 10px); border-radius: 12px; flex-shrink: 0; }
.before-after-container {
    position: relative; /* Butonların konumlanması için şart */
    overflow: hidden;
    border-radius: 12px;
}

/* Genel Buton Tasarımı */
.nav-btn {
    position: absolute;
    top: 50%; /* Yukarıdan %50 aşağı indirir */
    transform: translateY(-50%); /* Kendi boyunun yarısı kadar yukarı çekip tam ortalar */
    background-color: rgba(255, 255, 255, 0.7); /* Hafif şeffaf beyaz */
    color: #2c3e50;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Yuvarlak butonlar */
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10; /* Görselin üstünde kalması için */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background-color: #3498db; /* Nova Dent mavisi veya tercih ettiğin renk */
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Sol Buton (Prev) */
.prev {
    left: 15px;
}

/* Sağ Buton (Next - Eğer varsa) */
.next {
    right: 15px;
}

/* Mobil cihazlarda butonları biraz küçültelim */
@media (max-width: 768px) {
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* ==========================================================================
   4. TEDAVİLER (TREATMENTS)
   ========================================================================== */
.treatments-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.showcase-card {
    position: relative; height: 380px; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.showcase-card:hover img { transform: scale(1.1); }

.showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,74,153,0.9) 0%, transparent 70%);
    display: flex; align-items: flex-end; padding: 25px;
}
.showcase-overlay h4 { color: #fff; font-size: 1.3rem; margin: 0; }

/* ==========================================================================
   5. TEK BİR MOBİL SORGU (992PX ALTI)
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-nav-toggle { display: flex; }

    .nav-container {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh; background: var(--white);
        z-index: 10000; padding: 80px 20px; transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-container.active { right: 0; }

    .main-menu { flex-direction: column; gap: 0; }
    .main-menu li { width: 100%; border-bottom: 1px solid #eee; }
    .main-menu a { padding: 15px 0; display: block; }

    .sub-menu { position: static; display: none; opacity: 1; visibility: visible; box-shadow: none; background: #f9f9f9; transform: none; }
    .dropdown-item.submenu-active .sub-menu { display: block; }

    /* Grids & Hero */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-video-section { height: 60vh; }

    /* Components */
    .contact-box { flex-direction: column; margin-top: 0; gap: 20px; text-align: center; }
    .carousel-track img { width: 100%; }
    .intro-img img { width: 85%; margin: 0 auto; box-shadow: none; }
    
    /* Stats */
    .stat-number { font-size: 2.8rem; }
}

/* ==========================================================================
   BUTON STANDARTLARI
   ========================================================================== */
.cta-btn {
    background-color: var(--secondary);
    color: var(--white) !important; /* Diğer link renkleri ezmesin */
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.cta-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}
/* Randevu Bölümü Genel Ayarları */
.fast-contact {
    padding: 60px 0;
    background-color: #f4f7f6; /* Hafif gri/mavi arka plan */
}

.fast-contact .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* İletişim Kutusu (Card Yapısı) */
.contact-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Yazı Alanı */
.contact-text {
    flex: 1;
}

.contact-text h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-text p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Yapısı */
.lead-form {
    flex: 1.5;
    display: flex;
    gap: 15px;
}

.lead-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.lead-form input:focus {
    border-color: #3498db; /* Odaklanınca mavi kenarlık */
}

/* CTA Butonu */
.cta-btn {
    background-color: #27ae60; /* Güven veren yeşil */
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background-color: #219150;
    transform: translateY(-2px);
}

/* --- Mobil Uyumluluk (Responsive) --- */
@media (max-width: 992px) {
    .contact-box {
        flex-direction: column;
        text-align: center;
    }

    .lead-form {
        width: 100%;
        flex-direction: column;
    }

    .contact-text {
        margin-bottom: 10px;
    }
}
/* ==========================================================================
   FOOTER ALANI (ÇAKIŞMA ÖNLEYİCİ YAPILANDIRMA)
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    font-family: 'Poppins', sans-serif;
}

/* Sadece footer içindeki grid yapısını hedefler */
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Masaüstünde 3 sütun */
    gap: 50px;
}

footer h3, footer h4 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-weight: 700;
}

footer h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

footer h4 {
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

/* Başlık altına şık bir çizgi */
footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

footer p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}
/* Sosyal Medya İkon Alanı */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Hafif şeffaf arka plan */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Yuvarlak ikonlar */
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Hover Efektleri */
.footer-social a:hover {
    background: var(--secondary); /* Kliniğin mavi rengi */
    color: var(--white);
    transform: translateY(-5px); /* Hafif yukarı zıplama efekti */
}

/* Mobilde ortalamak için (Eğer footer mobilde ortalıysa) */
@media (max-width: 992px) {
    .footer-social {
        justify-content: center;
    }
}

/* Copyright Alanı */
footer .copyright-text {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
}

/* --- FOOTER MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    footer .footer-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 40px;
        text-align: center;
    }

    footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Çizgiyi mobilde ortalar */
    }
    
    footer {
        padding: 60px 0 20px;
    }
}

/* Kaydırmalı Yorumlar ve Logo Sabitleme */
.testimonial-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonial-wrapper::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f0f0f0;
}

.testimonial-card .platform-logo {
    height: 35px; /* Tüm logoları aynı yüksekliğe sabitler */
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 85%; }
}