/*
Theme Name: Spirmak Core Theme
Theme URI: https://spirmak.com/
Description: Spirmak için özel geliştirilmiş, yazı odaklı, minimalist ve yüksek performanslı kurumsal WordPress teması.
Version: 1.0.5
Author: New Way DMA
Text Domain: spirmak
*/

/* ==========================================================================
   1. GÜVENLİ VE GÜNCEL MODERN RESET (YAPIYI ASLA BOZMAZ)
   ========================================================================= */
*, *:before, *:after { 
    box-sizing: border-box; 
}

body, h1, h2, h3, p, ul, ol, li, figure {
    margin: 0;
    padding: 0;
}

:root {
    --pantone-red: #E30613;
    --pantone-black: #0B0B0B;
    --pantone-white: #FFFFFF;
    --gray-muted: #F9F9F9;
    --font-engineering: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-padding-desktop: 25px 0;
}

body {
    font-family: var(--font-engineering);
    background-color: var(--pantone-white);
    color: #2B2B2B;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* TAVİZSİZ GLOBAL LİNK SIFIRLAMASI */
a, a:visited, 
.blog-grid a, 
.blog-card-wp *,
.block-btn {
    text-decoration: none !important;
    box-shadow: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Global Düzen Kontrolleri */
.section-spacer {
    padding: 90px 0 !important;
}

.container {
    width: 84%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================================================
   2. ÜST BAR (TOP BAR) - SAF BEYAZ & MİLİMETRİK HİZALI ELEMANLAR
   ========================================================================= */
.site-top-bar { 
    background-color: var(--pantone-red); 
    padding: 14px 0; 
    width: 100%;
}

.top-bar-container { 
    width: 84%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 24px; 
}

.top-bar-social {
    display: flex;
    align-items: center;
}

.top-bar-social a { 
    display: flex; 
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.top-bar-social a svg {
    width: 18px;  
    height: 18px;
    display: block;
    fill: var(--pantone-white) !important;
}

.spirmak-lang-switcher { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    line-height: 1;
}

.spirmak-lang-switcher ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.spirmak-lang-switcher li { display: flex; align-items: center; }
.spirmak-lang-switcher img { width: 26px; height: auto; display: block; }

/* ==========================================================================
   3. ANA HEADER & DİNAMİK MENÜ
   ========================================================================= */
.site-header { 
    background: var(--pantone-white); 
    border-bottom: 1px solid #ECECEC; 
    position: relative; 
    z-index: 100; 
    width: 100%;
}

.header-container {
    width: 84%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--header-padding-desktop); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo-img { max-height: 72px; width: auto; display: block; }

/* Hamburger Menü Buton Altyapısı */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background-color: var(--pantone-black); margin: 5px 0; transition: 0.3s ease; }

/* Hamburger Çarpı (X) Dönüşüm Animasyonları Geri Yüklendi */
.menu-toggle.active span:nth-child(1), .menu-toggle.toggled span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.active span:nth-child(2), .menu-toggle.toggled span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3), .menu-toggle.toggled span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.site-navigation ul { display: flex; list-style: none; gap: 35px; margin: 0; padding: 0; }
.site-navigation a { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pantone-black); transition: color 0.3s ease; }
.site-navigation li.current-menu-item a, .site-navigation a:hover { color: var(--pantone-red) !important; }

/* ==========================================================================
   4. HERO SLIDER ALANI
   ========================================================================= */
.slider-container { position: relative; width: 100%; height: 65vh; background-color: var(--pantone-black); overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out; display: flex; align-items: center; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(11, 11, 11, 0.85) 30%, rgba(11, 11, 11, 0.2) 100%); z-index: 1; }
.slide.active { opacity: 1; visibility: visible; }
.slide-content { position: relative; width: 84%; max-width: 1400px; margin: 0 auto; z-index: 2; color: var(--pantone-white); }
.red-line { display: block; width: 45px; height: 3px; background-color: var(--pantone-red); margin-bottom: 25px; }
.slider-title { font-size: 38px; font-weight: 700; line-height: 1.25; max-width: 750px; text-transform: uppercase; margin-bottom: 15px; }
.slider-text { font-size: 16px; font-weight: 300; max-width: 550px; color: #CCCCCC; }

/* ==========================================================================
   5. KURUMSAL METİN BLOKLARI (TAM ORTALANMIŞ NİZAM)
   ========================================================================= */
.corporate-text-block {
    margin-bottom: 70px !important; 
    display: block;
    text-align: center !important;
}

.block-subtitle { 
    color: var(--pantone-red) !important; 
    font-size: 12px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.1em !important; 
    margin-bottom: 12px !important; 
    display: block;
    text-align: center !important;
}

.block-title { 
    font-size: 24px !important; 
    font-weight: 700 !important; 
    color: var(--pantone-black) !important; 
    letter-spacing: 0.02em !important; 
    margin-bottom: 15px !important; 
    text-transform: uppercase !important;
    display: block;
    text-align: center !important;
}

.block-divider { 
    display: block !important; 
    width: 45px !important; 
    height: 2px !important; 
    background-color: var(--pantone-black) !important; 
    margin: 0 auto 25px auto !important; 
}

.block-desc { 
    font-size: 15px !important; 
    line-height: 1.8 !important; 
    color: #444444 !important; 
    margin-bottom: 25px !important; 
    max-width: 950px !important;
    margin-left: auto !important;  
    margin-right: auto !important; 
    text-align: center !important; 
    display: block;
}

.block-btn { 
    display: inline-block !important; 
    font-size: 12px !important; 
    font-weight: 700 !important; 
    color: var(--pantone-black) !important; 
    letter-spacing: 0.08em !important; 
    border-bottom: 2px solid var(--pantone-red) !important; 
    padding-bottom: 4px !important; 
    text-transform: uppercase !important;
}
.block-btn:hover { color: var(--pantone-red) !important; }

.grid-section { background-color: var(--gray-muted); border-top: 1px solid #ECECEC; border-bottom: 1px solid #ECECEC; }
.grid-modular { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-title { font-size: 24px !important; font-weight: 700 !important; color: var(--pantone-black) !important; text-transform: uppercase !important; margin-bottom: 20px !important; text-align: left !important; }
.grid-desc { font-size: 15px !important; line-height: 1.75 !important; color: #555555 !important; text-align: justify !important; }
.photo-placeholder { background-color: #111111; border-left: 4px solid var(--pantone-red); height: 380px; }

/* ==========================================================================
   6. SPİRMAK'TAN HABERLER DEĞİŞİM SİHİRLERİ
   ========================================================================= */
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #ECECEC; padding-bottom: 20px; margin-bottom: 50px; }
.blog-section-title { font-size: 24px; font-weight: 700; color: var(--pantone-black); text-transform: uppercase; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.blog-card-wp { display: block !important; background: var(--pantone-white) !important; border: 1px solid #EAEAEA !important; padding: 35px 30px !important; transition: all 0.3s ease !important; }
.blog-card-wp:hover { border-color: var(--pantone-red) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important; }

.blog-card-wp .date, .blog-card-wp span { font-size: 12px !important; color: #999999 !important; text-transform: uppercase; letter-spacing: 0.05em; display: block !important; margin-bottom: 15px !important; border: none !important; }
.blog-card-wp h3, .blog-card-wp h2 { font-size: 17px !important; font-weight: 700 !important; color: var(--pantone-black) !important; line-height: 1.4 !important; text-transform: uppercase !important; margin-bottom: 15px !important; display: block !important; }
.blog-card-wp:hover h3 { color: var(--pantone-red) !important; }
.blog-card-wp p { font-size: 13.5px !important; line-height: 1.7 !important; color: #666666 !important; text-align: justify !important; display: block !important; }

/* ==========================================================================
   7. İÇ SAYFALAR (page.php) & ELEMENTOR BASKILAYICILARI
   ========================================================================= */
.inner-page-header { background-color: var(--gray-muted); border-bottom: 1px solid #ECECEC; padding: 60px 0; }
.inner-page-container { width: 84%; max-width: 900px; margin: 0 auto; }
.page-title { font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--pantone-black); display: flex; align-items: center; gap: 15px; }
.page-title::before { content: ''; width: 4px; height: 24px; background-color: var(--pantone-red); display: inline-block; }

.inner-page-content { font-size: 14.5px; color: #2B2B2B; line-height: 1.8; }
.inner-page-content p { margin-bottom: 25px; text-align: justify; }
.inner-page-content h2, .inner-page-content h1 { font-size: 18px !important; font-weight: 700; text-transform: uppercase; color: var(--pantone-black); margin: 40px 0 20px 0; border-bottom: 1px solid #F0F0F0; padding-bottom: 8px; }
.inner-page-content ul { list-style: none; padding-left: 0; margin-bottom: 25px; }
.inner-page-content li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.inner-page-content li::before { content: '▪'; position: absolute; left: 0; color: var(--pantone-red); font-size: 10px; top: -1px; }

.inner-page-content .elementor-heading-title { font-size: 18px !important; font-weight: 700 !important; text-transform: uppercase !important; color: var(--pantone-black) !important; }
.inner-page-content .elementor-text-editor { font-size: 14.5px !important; line-height: 1.8 !important; color: #2B2B2B !important; }

/* ==========================================================================
   8. İLETİŞİM FORMU
   ========================================================================= */
.spirmak-form-wrapper { max-width: 800px; margin: 0 auto; }
.site-main input[type="text"], .site-main input[type="email"], .site-main input[type="tel"], .site-main textarea, .wpcf7-form-control.wpcf7-text, .wpcf7-form-control.wpcf7-textarea, .wpforms-field input, .wpforms-field textarea {
    width: 100%; background-color: var(--pantone-white); color: var(--pantone-black); font-size: 14px; padding: 14px 16px; border: 1px solid #DCDCDC; border-radius: 0px; outline: none; margin-bottom: 20px; box-shadow: none; transition: all 0.3s ease;
}
.site-main input[type="text"]:focus, .site-main input[type="email"]:focus, .site-main textarea:focus { border-color: var(--pantone-red); background-color: #FCFCFC; }
.site-main textarea { min-height: 140px; resize: vertical; }
.site-main input[type="submit"], .wpcf7-submit, .wpforms-submit { display: inline-block; background-color: var(--pantone-red); color: var(--pantone-white); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 40px; border: none; border-radius: 25px; cursor: pointer; }
.site-main input[type="submit"]:hover { background-color: var(--pantone-black); }
.form-row-2 { display: table; width: 100%; table-layout: fixed; }
.form-col { display: table-cell; padding-right: 15px; } .form-col:last-child { padding-right: 0; }

/* ==========================================================================
   9. FOOTER & YASAL LİNKLER & YUKARI ÇIK BUTONU
   ========================================================================= */
.site-footer { background-color: var(--pantone-black); color: var(--pantone-white); padding: 90px 0 35px 0; border-top: 1px solid #1A1A1A; width: 100%; }
.footer-container { width: 84%; max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 70px; margin-bottom: 70px; }
.footer-title { font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--pantone-white); margin-bottom: 10px; display: block; }
.footer-title-line { width: 30px; height: 2px; background-color: var(--pantone-red); margin-bottom: 25px; display: block; }

.footer-dynamic-menu { list-style: none; padding: 0; margin: 0; }
.footer-dynamic-menu li { margin-bottom: 12px; }
.footer-dynamic-menu a { color: #999999; font-size: 13.5px; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.footer-dynamic-menu a::before { content: '>'; color: var(--pantone-red); font-family: monospace; }
.footer-dynamic-menu a:hover { color: var(--pantone-white); padding-left: 4px; }

.footer-contact-item { display: flex; gap: 15px; margin-bottom: 22px; font-size: 13.5px; }
.footer-contact-icon { color: var(--pantone-red); flex-shrink: 0; }
.footer-contact-info strong { color: var(--pantone-white); display: block; font-weight: 600; margin-bottom: 4px; }
.footer-contact-info p, .footer-contact-info a { color: #999999; }

.footer-col-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img { max-height: 42px; width: auto; display: block; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand-text { font-size: 13.5px; color: #999999; line-height: 1.7; text-align: justify; }

.footer-bottom { border-top: 1px solid #1A1A1A; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 13px; color: #666666; }

.footer-legal-links { margin-left: 15px; display: inline-flex; gap: 12px; }
.footer-legal-links::before { content: '|'; color: #333; }
.footer-legal-links a { color: #666666; font-size: 12px; transition: color 0.3s ease; }
.footer-legal-links a:hover { color: var(--pantone-red); }

.footer-bottom-right { display: flex; align-items: center; gap: 20px; }
.footer-social-wrapper a { color: #666666; display: flex; align-items: center; }
.footer-badge { width: 14px; height: 14px; background-color: var(--pantone-red); }

/* Yukarı Çık Butonu */
.scroll-to-top {
    position: fixed; bottom: 40px; right: 40px; width: 42px; height: 42px; background-color: var(--pantone-black); color: var(--pantone-white); border: 1px solid #1A1A1A; border-radius: 0px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 999;
}
.scroll-to-top.show { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background-color: var(--pantone-red); border-color: var(--pantone-red); }

/* ==========================================================================
   10. TAM RESPONSIVE MOBIL VE TABLET KIRILMA KILIFLARI (MÜHÜRLENDİ)
   ========================================================================= */
@media screen and (max-width: 1024px) {
    :root { --header-padding-desktop: 18px 0; }
    
    /* Hamburger Menü Butonunu Görünür Kıl ve En Üst Katmana Al */
    .menu-toggle { 
        display: block !important; 
        position: relative !important;
        z-index: 999999 !important;
    }
    
    /* Mobil Açılır Menüyü Kesinlikle En Üst Katmana Çıkar (Slider Arkasında Kalması Engellendi) */
    .site-navigation { 
        position: absolute !important; 
        top: 100% !important; 
        left: 0 !important; 
        width: 100% !important; 
        background-color: var(--pantone-white) !important; 
        border-bottom: 1px solid #ECECECoram !important; 
        max-height: 0 !important; 
        overflow: hidden !important; 
        transition: max-height 0.4s ease-in-out !important; 
        z-index: 999998 !important; /* Katman dopingi mühürlendi */
    }
    
    /* Hem active hem toggled sınıfları desteklenerek JS esnekliği sağlandı */
    .site-navigation.active, 
    .site-navigation.toggled { 
        max-height: 450px !important; 
    }
    
    .site-navigation ul { 
        flex-direction: column !important; 
        gap: 0 !important; 
        padding: 20px 8% !important; 
        display: flex !important;
    }
    
    .site-navigation li { 
        padding: 14px 0 !important; 
        border-bottom: 1px solid #F5F5F5 !important; 
        width: 100% !important;
        display: block !important;
    }
    
    .site-navigation a {
        display: block !important;
        width: 100% !important;
        color: var(--pantone-black) !important;
    }
    .site-navigation li.current-menu-item a, 
    .site-navigation a:hover { 
        color: var(--pantone-red) !important; 
    }
    
    .site-logo-img { max-height: 52px; }
    
    .grid-modular, .blog-grid, .footer-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .slider-container { height: 50vh; } .slider-title { font-size: 26px; }
    .scroll-to-top { bottom: 30px; right: 30px; width: 44px; height: 44px; background-color: rgba(11, 11, 11, 0.9); }
}

@media screen and (max-width: 768px) {
    .container, .top-bar-container, .header-container, .footer-container { width: 90%; }
    .form-col { display: block; padding-right: 0; }
    .footer-legal-links { display: block; margin-left: 0; margin-top: 8px; }
    .footer-legal-links::before { display: none; }
}