/* ==========================================================================
   CUSTOM CSS POLISH: EXACT COLOR, CONTRAST, MOBILE LAYOUT & FORMS
   ========================================================================== */

/* 1. TYPOGRAPHY & FONT SMOOTHING */
body {
    font-family: 'Karla', sans-serif !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
.elementor-heading-title {
    font-family: 'Rubik', sans-serif !important;
    font-weight: 700;
    line-height: 1.25em;
}

/* 2. BEYAZ OLMASI GEREKEN TÜM BAŞLIKLAR VE METİNLER (KESİNLİKLE MAVİ VEYA SİYAH DEĞİL) */

/* Alt Sayfa Banner Başlıkları (Hakkımızda, Hizmetlerimiz, İletişim) */
.elementor-9 .elementor-element.elementor-element-14d7be3 .elementor-heading-title,
.elementor-11 .elementor-element.elementor-element-a09d3bc .elementor-heading-title,
.elementor-939 .elementor-element.elementor-element-626b6b8 .elementor-heading-title,
.elementor-element-14d7be3 .elementor-heading-title,
.elementor-element-a09d3bc .elementor-heading-title,
.elementor-element-626b6b8 .elementor-heading-title,
.ast-theme-transparent-header + #content .elementor-top-section:first-child .elementor-heading-title {
    color: #FFFFFF !important;
}

/* Anasayfa Hero Başlığı ve Alt Başlığı */
.elementor-element-f76db60 .elementor-heading-title,
.elementor-element-f657692 .elementor-heading-title {
    color: #FFFFFF !important;
}

/* "Üstün Çatı Hizmetleri Sunuyoruz" Koyu Bölümü (95abb41) - TÜM YAZILAR BEYAZDIR */
.elementor-element-95abb41 .elementor-heading-title,
.elementor-element-e896679 .elementor-heading-title,
.elementor-element-95abb41 .elementor-icon-box-title,
.elementor-element-95abb41 .elementor-icon-box-title a,
.elementor-element-95abb41 .elementor-icon-box-description,
.elementor-element-95abb41 .elementor-icon-list-text,
.elementor-element-95abb41 .elementor-icon-list-icon i,
.elementor-element-95abb41 .elementor-icon-list-icon svg,
.elementor-element-592783c .elementor-icon-box-title,
.elementor-element-592783c .elementor-icon-box-description,
.elementor-element-0493919 .elementor-icon-box-title,
.elementor-element-0493919 .elementor-icon-box-description,
.elementor-element-b64d7e0 .elementor-icon-box-title,
.elementor-element-b64d7e0 .elementor-icon-box-description,
.elementor-element-ecac95c .elementor-icon-box-title,
.elementor-element-ecac95c .elementor-icon-box-description,
.elementor-element-91a753c .elementor-icon-list-text,
.elementor-element-91a753c .elementor-icon-list-icon i,
.elementor-element-91a753c .elementor-icon-list-icon svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Sayaç / İstatistik Kartları (15+ Yıl, 500+ Müşteri, 100+ Proje, 4 Personel) */
.elementor-element-b4b168b .elementor-icon-box-title,
.elementor-element-b4b168b .elementor-icon-box-description,
.elementor-element-355ddcc .elementor-icon-box-title,
.elementor-element-355ddcc .elementor-icon-box-description,
.elementor-element-db9fa83 .elementor-icon-box-title,
.elementor-element-db9fa83 .elementor-icon-box-description {
    color: #FFFFFF !important;
}

/* 3. BEYAZ ZEMİNDEKİ KOYU BAŞLIKLAR VE VURGULAR */
.elementor-element-7b76f61 .elementor-heading-title,
.elementor-element-d21b3db .elementor-heading-title,
.elementor-element-0c8383e .elementor-heading-title,
.elementor-element-d3bba6f .elementor-heading-title {
    color: #131d3b !important;
    font-weight: 700 !important;
}

/* Kırmızı Vurgu Başlıkları */
.elementor-element-92a0b88 .elementor-heading-title,
.elementor-element-baf6f18 .elementor-heading-title,
.elementor-element-390797f .elementor-heading-title,
.elementor-element-4ab9a07 .elementor-heading-title,
.elementor-element-6794801 .elementor-heading-title,
.elementor-element-b72bdb4 .elementor-heading-title {
    color: #cb4154 !important;
    font-weight: 600 !important;
}

/* 4. MOBİL HERO VE "SİZİ ARAYALIM" KARTI BOŞLUKLANDIRMASI */
@media (max-width: 767px) {
    .elementor-6 .elementor-element.elementor-element-f62a59f {
        padding-top: 130px !important;
        padding-bottom: 40px !important;
    }
    
    .elementor-6 .elementor-element.elementor-element-d5b989f {
        padding-top: 0px !important;
        padding-bottom: 25px !important;
        background-color: transparent !important;
    }
    
    .elementor-6 .elementor-element.elementor-element-51dc037 > .elementor-element-populated {
        margin-top: -30px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        padding: 24px 18px 24px 18px !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .elementor-element-7b76f61 .elementor-heading-title {
        font-size: 24px !important;
    }
}

/* 5. FORM VE TURNSTILE DÜZENİ */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea,
#wpforms-18 input.wpforms-field-medium {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    font-family: 'Karla', sans-serif !important;
    color: #111111 !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.wpforms-form textarea {
    height: auto !important;
    min-height: 100px !important;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus,
#wpforms-18 input.wpforms-field-medium:focus {
    border-color: #cb4154 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(203, 65, 84, 0.15) !important;
}

/* Turnstile Kutusu */
.cf-turnstile {
    margin: 12px 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    min-height: 65px;
}
@media (max-width: 767px) {
    .cf-turnstile {
        justify-content: center !important;
    }
}
.cf-turnstile iframe {
    max-width: 100% !important;
}

/* Gönder Butonları (Kırmızı/Bordo Tema) */
.wpforms-form button[type=submit],
.wpforms-submit,
button.wpforms-submit,
#wpforms-18 button.wpforms-submit {
    background-color: #cb4154 !important;
    border: 1px solid #cb4154 !important;
    color: #ffffff !important;
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(203, 65, 84, 0.3) !important;
    display: inline-block !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

@media (max-width: 767px) {
    .wpforms-form button[type=submit],
    .wpforms-submit,
    button.wpforms-submit,
    #wpforms-18 button.wpforms-submit {
        width: 100% !important;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 16px !important;
        margin-top: 5px !important;
    }
}

.wpforms-form button[type=submit]:hover,
.wpforms-submit:hover,
button.wpforms-submit:hover {
    background-color: #b43041 !important;
    border-color: #b43041 !important;
    box-shadow: 0 6px 18px rgba(203, 65, 84, 0.4) !important;
}

.wpforms-form button[type=submit]:disabled,
.wpforms-submit:disabled,
button.wpforms-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Masaüstü "Sizi Arayalım" Yatay Hizalama */
@media (min-width: 768px) {
    #wpforms-18 form {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 12px !important;
    }
    #wpforms-18 .wpforms-field-container {
        display: flex !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        margin-bottom: 0 !important;
        width: auto !important;
        float: none !important;
    }
    #wpforms-18 .wpforms-field {
        flex: 1 !important;
        margin-bottom: 0 !important;
        padding-right: 0 !important;
    }
    #wpforms-18 .wpforms-submit-container {
        width: auto !important;
        margin-top: 0 !important;
        float: none !important;
    }
    #wpforms-18 button.wpforms-submit {
        width: auto !important;
        min-width: 130px !important;
        height: 48px !important;
    }
    #wpforms-18 .cf-turnstile {
        flex-basis: 100% !important;
        margin: 10px 0 0 0 !important;
    }
}

/* 6. MOBİL MENÜ VE HEADER POLISH */
@media (max-width: 921px) {
    #ast-desktop-header {
        display: none !important;
    }
    #ast-mobile-header {
        display: block !important;
    }
    .ast-mobile-header-wrap {
        display: block !important;
    }
    .ast-mobile-popup-drawer.active {
        left: 0 !important;
        right: 0 !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }
    .ast-mobile-popup-drawer.active .ast-mobile-popup-overlay {
        visibility: visible !important;
        opacity: 1 !important;
    }
    .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
        transform: translateX(0) !important;
    }
    .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        max-width: 85% !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 0 25px rgba(0,0,0,0.2) !important;
    }
    .ast-mobile-popup-content .main-header-menu,
    #ast-hf-mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .ast-mobile-popup-content .main-header-menu .menu-item,
    #ast-hf-mobile-menu .menu-item {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .ast-mobile-popup-content .main-header-menu .menu-item > .menu-link,
    #ast-hf-mobile-menu .menu-item > .menu-link {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #222222 !important;
        text-decoration: none !important;
        border: none !important;
    }
    .ast-mobile-popup-content .main-header-menu .menu-item.current-menu-item > .menu-link,
    #ast-hf-mobile-menu .menu-item.current-menu-item > .menu-link {
        color: #c93b3b !important;
    }
    .ast-mobile-popup-content .ast-header-button-1 {
        margin-top: 20px !important;
        padding: 0 20px !important;
        width: 100% !important;
    }
    .ast-mobile-popup-content .ast-header-button-1 .ast-custom-button-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    .ast-mobile-popup-content .ast-header-button-1 .ast-custom-button {
        display: block !important;
        width: 100% !important;
        background-color: #c93b3b !important;
        color: #ffffff !important;
        padding: 12px 20px !important;
        border-radius: 4px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
    .ast-mobile-popup-content .ast-header-button-1 .menu-link {
        display: none !important;
    }
}

/* Şeffaf header boşluklandırması (Alt Sayfalar) */
.ast-theme-transparent-header .elementor-element-2e7999a,
.ast-theme-transparent-header .elementor-element-623ea53,
.ast-theme-transparent-header .elementor-element-d3bba6f {
    padding-top: 160px !important;
}
@media (max-width: 767px) {
    .ast-theme-transparent-header .elementor-element-2e7999a,
    .ast-theme-transparent-header .elementor-element-623ea53,
    .ast-theme-transparent-header .elementor-element-d3bba6f {
        padding-top: 140px !important;
        padding-bottom: 70px !important;
    }
}

/* Form Geri Bildirimi & Yükleniyor İkonu */
.form-feedback {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
}
.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.wpforms-submit-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
