/* Google Fonts Import: Serif (Playfair Display) ve Sans-Serif (Inter) Uyumu */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');



/* =========================================
   ANA MENÜ (HEADER) BOŞLUK (SPACING) AYARI
========================================= */
@media (min-width: 992px) {
    /* Menü elemanlarının arasına geniş boşluklar ekler */
    .top-nav .nav-item {
        margin-left: 0.8rem;
        margin-right: 0.8rem;
    }
    
    /* Yazıların sağ ve sol iç boşluklarını biraz esnetir */
    .top-nav .nav-link, .top-nav-link {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}



:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --color-dark: #1A1D20;            /* Premium Antrasit / Koyu Gri */
    --color-primary: #9B1B1B;         /* Premium Kurumsal Kırmızı */
    --color-primary-hover: #701212;   /* Koyu Kırmızı (Hover için) */
    --color-light: #ffffff;
    --color-light-alt: #f8f9fa;
    --color-muted: #6c757d;
    --spacing-xl: 120px;
    --spacing-md: 60px;
}



body {

    font-family: var(--font-body);

    color: var(--color-dark);

    background-color: var(--color-light);

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



/* -------------------------------------

   TİPOGRAFİ VE ORTAK SINIFLAR

-------------------------------------- */

.editorial-heading {

    font-family: var(--font-heading);

    letter-spacing: -0.02em;

    font-weight: 400;

}



.subtext {

    font-size: 1.15rem;

    color: var(--color-muted);

    font-weight: 300;

    line-height: 1.8;

}



.tracking-widest {

    letter-spacing: 0.15em;

    font-size: 0.75rem;

    font-weight: 600;

}



.bg-light-alt {

    background-color: var(--color-light-alt);

}



.module-section {

    padding: var(--spacing-xl) 0;

}



/* -------------------------------------

   MEGA TEXT BANNER (Ekran Görüntüsü 1)

-------------------------------------- */

.mega-text-banner {

    padding: 160px 20px 140px;

    background-color: var(--color-light);

}



.mega-text-banner .display-title {

    font-family: var(--font-heading);

    font-size: clamp(3.5rem, 8vw, 8rem); /* Ekran büyüdükçe devasa olur */

    line-height: 1;

    letter-spacing: -0.04em;

    font-weight: 400;

    text-align: center;

    color: var(--color-dark);

    margin: 0 auto;

    max-width: 1400px;

}



/* -------------------------------------

   ÜRÜN / HİZMET SERGİLEME (Ekran Görüntüsü 3)

-------------------------------------- */

.product-img {

    border-radius: 0; /* Mimari/Editorial tasarımlarda köşeler genellikle sivridir */

    box-shadow: 0 20px 40px rgba(0,0,0,0.06);

}



/* -------------------------------------

   PARALLAX BANNER

-------------------------------------- */

.parallax-banner {

    background-attachment: fixed;

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

    min-height: 60vh;

    display: flex;

    align-items: center;

}



/* -------------------------------------

   ACCORDION (SSS) ÖZELLEŞTİRMESİ

-------------------------------------- */

.editorial-accordion .accordion-button:not(.collapsed) {

    color: var(--color-dark);

    background-color: transparent;

    box-shadow: none;

}

.editorial-accordion .accordion-button:focus {

    box-shadow: none;

    border-color: transparent;

}

.editorial-accordion .accordion-button::after {

    filter: grayscale(100%);

}



/* -------------------------------------

   DİĞER ÖZELLEŞTİRMELER

-------------------------------------- */

.icon-filtered {

    filter: invert(10%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);

    opacity: 0.8;

}



.service-card img {

    transition: transform 0.5s ease;

}

.service-card:hover img {

    transform: scale(1.02);

}

.service-card {

    overflow: hidden;

}



/* Metin Editöründen Gelen HTML (Standart Sayfa) Tasarımı */

.editorial-content {

    max-width: 800px;

    margin: 0 auto;

    font-size: 1.1rem;

    color: #444;

}

.editorial-content h1, .editorial-content h2, .editorial-content h3 {

    font-family: var(--font-heading);

    color: var(--color-dark);

    margin-top: 2.5rem;

    margin-bottom: 1rem;

}

/* -------------------------------------
   YENİ ÇİFT KATMANLI HEADER STİLLERİ
-------------------------------------- */
.top-nav-link {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.top-nav-link:hover, .top-nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* YENİ: Tam Ekran Slayt Aktifken Üst Menü Rengini Beyaz Yapar ve Arkaplanı Şeffaflaştırır */
body:has(.fullpage-modern-wrapper) .site-header,
body:has(.fullpage-modern-wrapper) .header-top.bg-white {
    background-color: transparent !important;
    border-bottom: none !important;
}
body:has(.fullpage-modern-wrapper) .site-header .top-nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Yazıların görsel üzerinde okunaklı kalması için hafif gölge */
}
body:has(.fullpage-modern-wrapper) .site-header .top-nav-link:hover {
    color: var(--color-primary) !important;
}
/* Eğer logoda resim yerine metin kullanılıyorsa onu da beyaza çevir */
body:has(.fullpage-modern-wrapper) .site-header h3.text-dark {
    color: #ffffff !important;
}

.bottom-nav-link {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.bottom-nav-link:hover {
    color: var(--color-primary);
}
.bottom-nav .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 6px;
}

/* =========================================
   YÜZEN CAM KUTU MEGA MENÜ TASARIMI (FLOATING)
========================================= */
.site-header {
    position: relative;
    z-index: 1030;
}
.header-top {
    position: relative; 
}
.top-nav .nav-item.dropdown {
    position: relative; /* Menü kutusu artık kendi yazısının hizasında ortalanacak */
}

/* Antrasit / Cam Efektli Kutu */
.mega-blue-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translate(-50%, 20px) !important; /* Ortala ve biraz aşağıdan başlasın */
    width: max-content; /* İçeriğe göre kendi kendine genişlesin */
    min-width: 220px;
    background-color: rgba(26, 29, 32, 0.90); /* Hafif şeffaf lüks antrasit */
    backdrop-filter: blur(15px); /* Arkasını bulanıklaştırır (Cam efekti) */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* İnce lüks bir parlama sınırı */
    border-top: 3px solid var(--color-primary);
    border-radius: 12px; /* Yumuşak ve modern köşeler */
    padding: 25px 35px;
    margin: 0 !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    
    /* Animasyon için hazırlık */
    display: block !important; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* GÖRÜNMEZ KÖPRÜ: Fare ana menüden kutuya geçerken aradaki boşlukta kapanmasını engeller */
.mega-blue-menu::before {
    content: '';
    position: absolute;
    top: -30px; 
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

/* Kutunun iç hizalaması (Gereksiz Bootstrap boşluklarını ezer) */
.mega-blue-menu .container-fluid {
    padding: 0 !important;
    gap: 3rem !important; /* 3 sütun arası şık bir boşluk */
}

/* Alt Linklerin Stili */
.mega-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.mega-link:hover {
    color: var(--color-primary);
    padding-left: 5px; /* Üzerine gelince link hafifçe sağa kayarak lüks bir tepki verir */
}

/* Sadece Üzerine Gelince (Hover) Kutunun Yukarı Kayarak Açılması */
@media (min-width: 992px) {
    .mega-dropdown-hover:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 10px) !important; /* 20px'ten 10px'e yumuşak yükselme efekti */
    }
}

/* =========================================
   BOOTSTRAP KURUMSAL RENK EZMELERİ (Premium Kırmızı)
========================================= */
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }

.btn-primary { 
    background-color: var(--color-primary) !important; 
    border-color: var(--color-primary) !important; 
}
.btn-primary:hover { 
    background-color: var(--color-primary-hover) !important; 
    border-color: var(--color-primary-hover) !important; 
}

.btn-outline-primary { 
    color: var(--color-primary) !important; 
    border-color: var(--color-primary) !important; 
}
.btn-outline-primary:hover { 
    background-color: var(--color-primary) !important; 
    color: #fff !important; 
}

.border-primary { border-color: var(--color-primary) !important; }


/* =========================================
   FOOTER (KURUMSAL MEGA ALT BİLGİ)
========================================= */
.site-footer {
    font-family: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------------------------------
   TEMA 1: DARK (Premium Antrasit)
--------------------------------- */
.footer-dark {
    background-color: var(--color-dark); 
    color: #ffffff;
}
.footer-dark .footer-social-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-dark a {
    color: #ffffff;
    transition: color 0.2s ease;
}
.footer-dark a:hover {
    color: var(--color-primary); /* Kurumsal Kırmızı Vurgu */
}
.footer-dark .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------------------------------
   TEMA 2: LIGHT (Açık Versiyon)
--------------------------------- */
.footer-light {
    background-color: #f8f9fa; /* Açık Gri/Beyaz */
    color: #333333;
}
.footer-light .footer-social-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.footer-light a {
    color: #444444;
    transition: color 0.2s ease;
}
.footer-light a:hover {
    color: var(--color-primary); /* Kurumsal Kırmızı Vurgu */
}
.footer-light .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ---------------------------------
   ORTAK STİLLER (Düzen ve Tipografi)
--------------------------------- */
.footer-social-bar a i {
    transition: transform 0.2s ease;
}
.footer-social-bar a:hover i {
    transform: scale(1.1);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.footer-list {
    margin: 0;
    padding: 0;
}
.footer-list li {
    margin-bottom: 0.8rem;
}
.footer-list a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-legal-links a {
    text-decoration: none;
    font-size: 0.75rem;
    margin-right: 1.5rem;
}
.footer-copyright {
    font-size: 0.75rem;
}

/* =========================================
   YUKARI ÇIK BUTONU VE SMOOTH SCROLL
========================================= */
html {
    scroll-behavior: smooth;
}

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: #ffffff;
    font-size: 1.8rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.scroll-to-top:hover {
    color: var(--color-primary); /* Üzerine gelince sitenin vurgu rengine döner */
    transform: translateY(-5px); /* Zarifçe biraz yukarı zıplar */
}

/* Scroll yapılınca görünür olma class'ı */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Light Tema Seçilirse Ok İkonunun Rengini Koyu Yap */
.footer-light ~ .scroll-to-top {
    color: var(--color-dark); 
}

/* =========================================
   MEGA MENÜ HOVER (Üzerine Gelince Açılma) EFEKTİ
========================================= */
@media (min-width: 992px) { /* Sadece Masaüstünde Çalışır */
    .mega-dropdown-hover:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        transition: all 0.3s ease-in-out;
    }
    
    .mega-dropdown-hover > .dropdown-menu {
        display: block; /* Bootstrap display:none kullanır, biz opacity ile çözeceğiz */
        opacity: 0;
        visibility: hidden;
        margin-top: 10px; /* Fare ile üzerine gelince yukarıdan aşağıya yumuşak iniş efekti */
        transition: all 0.3s ease-in-out;
    }
}