/* ==========================================================
   Alfa Asfalt – revizyon düzeltmeleri
   Tema dosyalarının üzerine yazar; header.php'de en son yüklenir.
   Marka: mavi #0056b3, koyu lacivert #0f1e36
   ========================================================== */

:root {
    --alfa-blue: #0056b3;
    --alfa-blue-dark: #004494;
    --alfa-navy: #0f1e36;
    --alfa-light: #e8f0fa;
}

/* ---- Yatay taşma (tüm sayfalarda sağda beyaz şerit) ---- */
html,
body {
    overflow-x: hidden;
}
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}
.footer-shape {
    display: none;
}

/* ---- Masaüstü menü: okunurluk + aktif sayfa ---- */
.header-menu ul li a {
    color: var(--alfa-navy);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    padding-right: 22px;
}
.header-menu ul li a.active {
    color: var(--alfa-blue);
}
.header-menu ul li a.active::before {
    width: 60%;
}
.header-top-icon-list ul li {
    margin-right: 40px;
}
.header-top-icon-list ul li a {
    color: inherit;
    text-decoration: none;
}
.header-top-icon-list ul li a:hover {
    opacity: .85;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .header-menu ul li a {
        padding-right: 12px;
        font-size: 13px;
    }
    .header-top-icon-list ul li:nth-child(2) {
        display: none;
    }
}

/* ---- Mobil üst çubuk: logo + ara butonu ---- */
.mobile-menu-area {
    position: relative;
}
.mobile-menu-area .mobile-logo {
    position: absolute;
    left: 16px;
    top: 10px;
    z-index: 10000;
    line-height: 0;
}
.mobile-menu-area .mobile-logo img {
    width: 110px;
    height: auto;
}
.mobile-menu-area .mobile-call {
    position: absolute;
    right: 72px;
    top: 12px;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.mobile-menu-area .mobile-call:hover {
    background: rgba(255, 255, 255, .25);
}
.mean-container .mean-nav ul li a.active {
    color: var(--alfa-blue);
}

/* ---- Hero ---- */
a.hero_button {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: max-content;
}
a.hero_button:hover .hero_call_btn span {
    background: #fff;
    color: var(--alfa-blue);
}
@media (max-width: 991px) {
    .hero_content h1 br {
        display: inline;
    }
}

/* İç sayfa başlık alanı: mobilde 800px boş alan ve sağdaki görsel şeridi */
@media (max-width: 991px) {
    .hero_area:not(.style_two) {
        height: auto !important;
        min-height: 0 !important;
        padding: 140px 0 70px !important;
        background-size: cover !important;
    }
    .hero_area:not(.style_two)::before,
    .hero_area:not(.style_two)::after {
        display: none !important;
    }
    .hero_area:not(.style_two) {
        background-image: linear-gradient(rgba(15, 30, 54, .82), rgba(15, 30, 54, .82)), url(../images/real/aselsan-malikoy.jpg) !important;
        background-position: right center !important;
    }
    .hero_area:not(.style_two) .hero_content h1 {
        font-size: 36px;
        line-height: 1.2;
    }
}

/* ---- Bölüm etiketleri: kırmızımsı arka plan -> açık mavi ---- */
h4.style-tow {
    background: var(--alfa-light);
}

/* ---- Şablondan kalan kırmızı görsel süslemeleri marka mavisine çevir ---- */
.about-shape-two img,
.about-shape-three img,
.case-arrow-shape img,
.testi-shape1 img,
.testi-shape2 img,
.widget-category ul li a img,
.about-coun-box::before {
    filter: hue-rotate(205deg) saturate(1.2);
}
.about-coun-box::before {
    display: none;
}

/* Sayaç kutusu (%100 / 1.) */
span.coun-number {
    background-image: none;
    background: rgba(255, 255, 255, .14);
    font-size: 40px;
    margin-bottom: 8px;
}
h3.coun-title {
    line-height: 26px;
}

/* Yorum yıldızları */
.style-one ul.testi_rating li i {
    color: #ffb328;
}

/* Hizmet adımları numara rozeti */
.process-thumb {
    position: relative;
}

/* ---- Anasayfa ---- */
.about_area.style_two .about-thumb img.about-main-img {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
@media (max-width: 991px) {
    .service_area.style-tow {
        padding-bottom: 100px;
    }
    .service_area .owl-nav,
    .service_area .owl-dots {
        position: relative;
    }
}
.case_single_box .case_content .case_title {
    color: #fff;
}

/* Turuncu/kırmızı "Yardıma mı ihtiyacınız var?" bandı -> marka mavisi */
section.appointment_area {
    background: linear-gradient(90deg, rgba(0, 68, 148, .94), rgba(0, 86, 179, .88)), url(../images/real/bitlis-tatvan-1.jpg) center / cover !important;
}
section.appointment_area .section_title h4 {
    background: rgba(255, 255, 255, .14);
}

/* ---- Hizmetler sayfası ---- */
.single-plan-box {
    height: calc(100% - 30px);
}
.widget-sidber-contact-number a,
a.widget-sidber-contact-gmail {
    color: #fff;
    text-decoration: none;
}
a.widget-sidber-contact-gmail {
    display: inline-block;
}

/* ---- İletişim sayfası: kırmızı kart -> mavi ---- */
.contact-area .contact-info-thumb {
    position: relative;
}
.contact-area .contact-info-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 86, 179, 0) 35%, var(--alfa-blue) 88%);
    pointer-events: none;
}
.contact-area .contact-autor-info {
    background: var(--alfa-blue);
}
.contact-area .contact-info-social {
    z-index: 2;
}

/* ---- Blog detay paylaşım ---- */
.share-link {
    margin-right: 12px;
    color: var(--alfa-blue);
    font-size: 18px;
}
.share-link:hover {
    color: var(--alfa-navy);
}

/* ---- Footer iletişim listesi ---- */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #c3cad6;
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 16px;
}
.footer-contact-list li i {
    color: #fff;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: -5px;
}
.footer-contact-list li a {
    color: #c3cad6;
    text-decoration: none;
    word-break: break-word;
}
.footer-contact-list li a:hover {
    color: #fff;
}
.news-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.footer-bottom-content-copy p {
    text-align: center;
}

/* ---- WhatsApp sabit butonu ---- */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transition: transform .2s;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.06);
}


/* Sosyal medya yokken açıklamanın altındaki boş çizgi */
p.footer_desc:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Kayan şerit: linkler span'e çevrildi (tıklanmayan "#" linkleri) */
.marquee-section .marquee-block .content-box .title span {
    display: inline-block;
    font-size: 28px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 575px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 24px;
        left: 14px;
        bottom: 14px;
    }
}

/* İç sayfa başlığındaki mavi vurgu lacivert zeminde okunsun */
.hero_area .hero_content h1 span {
    color: #5aa2ff;
}

/* Hizmetler: kırmızı numara rozeti ve telefon ikonu -> mavi */
.process-thumb::before,
.widget-sidber-contact img {
    filter: hue-rotate(205deg) saturate(1.2);
}

/* Mobilde hizmet kartı alt kısmı bir sonraki bölümün altında kalıyordu */
@media (max-width: 991px) {
    .service_list .single_service_box_two {
        margin-bottom: 270px;
    }
}
.contact-area .contact-info-thumb img {
    width: 100%;
}

/* İletişim kutuları */
.contact-address-icon img {
    filter: hue-rotate(205deg) saturate(1.2);
}
.contact-box-info p a {
    color: inherit;
    text-decoration: none;
}
.contact-box-info p a:hover {
    color: var(--alfa-blue);
}

/* Mobil çubuk: logo ve ara butonu dikeyde tam ortada */
.mobile-menu-area .mobile-logo,
.mobile-menu-area .mobile-call {
    top: 32px;
    transform: translateY(-50%);
}

/* ==========================================================
   Sade header (masaüstü): beyaz tek satır, lacivert logo,
   ortada menü, sağda telefon + teklif butonu.
   Temanın #sticky-header JS'i kullanılmaz; CSS sticky ile sabitlenir.
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e6ebf2;
    box-shadow: 0 6px 20px -12px rgba(15, 30, 54, .18);
}
.site-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 84px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-header__logo {
    flex: 0 0 auto;
    line-height: 0;
}
.site-header__logo img {
    width: 160px;
    height: auto;
}
.site-header__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.site-header__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-header__nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--alfa-navy);
    text-decoration: none;
    transition: color .2s, background-color .2s;
}
.site-header__nav a:hover {
    color: var(--alfa-blue);
    background: var(--alfa-light);
}
.site-header__nav a.active {
    color: var(--alfa-blue);
    background: var(--alfa-light);
}
.site-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-header__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--alfa-navy);
    text-decoration: none;
}
.site-header__phone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--alfa-light);
    color: var(--alfa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.site-header__phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.site-header__phone-text small {
    font-size: 12px;
    color: #6b7686;
}
.site-header__phone-text strong {
    font-size: 15px;
    font-weight: 700;
}
.site-header__phone:hover strong {
    color: var(--alfa-blue);
}
.site-header__cta {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 6px;
    background: var(--alfa-blue);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .2s;
}
.site-header__cta:hover {
    background: var(--alfa-blue-dark);
    color: #fff;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .site-header__inner {
        gap: 16px;
        padding: 0 16px;
    }
    .site-header__logo img {
        width: 130px;
    }
    .site-header__nav a {
        padding: 8px 9px;
        font-size: 14px;
    }
    .site-header__phone-text {
        display: none;
    }
    .site-header__cta {
        padding: 0 18px;
    }
}

/* Mobil çubuk da beyaz + lacivert logo */
.mobile-menu-area .mean-container .mean-bar {
    background: #fff;
    border-bottom: 1px solid #e6ebf2;
}
.mobile-menu-area .mean-container a.meanmenu-reveal span {
    background: var(--alfa-navy);
}
.mobile-menu-area .mean-container a.meanmenu-reveal,
.mobile-menu-area .mean-container a.meanmenu-reveal.meanclose {
    color: var(--alfa-navy) !important;
}
.mobile-menu-area .mobile-call {
    background: var(--alfa-light);
    color: var(--alfa-blue);
}
.mobile-menu-area .mobile-call:hover {
    background: #d6e5f7;
}

/* ==========================================================
   Gerçek firma fotoğrafları (afayolasfalt.com.tr)
   Fotoğraflar şablonun stok görsellerinin kutu ölçülerine kırpılır.
   ========================================================== */

/* Anasayfa slaytları: koyu degrade + gerçek fotoğraf */
section.hero_area.style_two {
    background: linear-gradient(90deg, rgba(10, 22, 42, .88) 0%, rgba(10, 22, 42, .62) 50%, rgba(10, 22, 42, .25) 100%), url(../images/real/silindir-ekibi.jpg) center / cover no-repeat;
}
section.hero_area.style_two.style_three {
    background: linear-gradient(90deg, rgba(10, 22, 42, .88) 0%, rgba(10, 22, 42, .62) 50%, rgba(10, 22, 42, .25) 100%), url(../images/real/trendyol-asfalt.jpg) center / cover no-repeat;
}

/* İç sayfa başlıkları: solda lacivert, sağa doğru açılan fotoğraf */
@media (min-width: 992px) {
    section.hero_area:not(.style_two) {
        background: linear-gradient(90deg, #0f1e36 0%, #0f1e36 38%, rgba(15, 30, 54, .55) 70%, rgba(15, 30, 54, .2) 100%), url(../images/real/aselsan-malikoy.jpg) center right / cover no-repeat;
    }
}

/* Hizmet kartları: şablondaki çapraz kesik görünüm clip-path ile */
.service_thumb_two > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 69%, 0 100%);
}

/* Hakkımızda bölümleri: ana görsel + beyaz çerçeveli küçük fotoğraf */
img.about-real {
    width: 480px;
    max-width: 100%;
    aspect-ratio: 480 / 580;
    object-fit: cover;
}
img.real-inset {
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(15, 30, 54, .2);
}
.about-shape img.real-inset {
    width: 238px;
    height: 273px;
}
.about-shape-one img.real-inset {
    width: 419px;
    height: 282px;
}
img.choose-real {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 520 / 600;
    object-fit: cover;
}
.case_thumb img.case-real {
    width: 100%;
    aspect-ratio: 410 / 480;
    object-fit: cover;
}
.case_thumb {
    position: relative;
}
.case_thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 42, 0) 45%, rgba(10, 22, 42, .85) 100%);
    pointer-events: none;
}
.case_thumb .case_content {
    z-index: 2;
}
.other-references {
    margin: 30px 0 0;
    color: #4a5566;
    font-size: 15px;
    line-height: 1.7;
}
.other-references strong {
    color: var(--alfa-navy);
}

/* Hizmetler sayfası */
.service-details-thumb img {
    width: 100%;
    aspect-ratio: 850 / 600;
    object-fit: cover;
}
.process-thumb img {
    width: 100%;
    aspect-ratio: 263 / 200;
    object-fit: cover;
}
.gallery-thumb img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Misyon değer kartları */
.service_thumb img {
    width: 100%;
    aspect-ratio: 370 / 230;
    object-fit: cover;
}

/* İletişim kartı */
.contact-area .contact-info-thumb img {
    aspect-ratio: 410 / 481;
    object-fit: cover;
}

/* Blog listesi */
.single-blog-box .blog-thumb img {
    width: 100%;
    aspect-ratio: 371 / 230;
    object-fit: cover;
}

/* Temanın ".owl-carousel .owl-item img { width: inherit }" kuralı gerçek fotoğrafları
   doğal genişliğinde (1000px+) gösteriyordu */
.owl-carousel .owl-item .service_thumb_two > img,
.owl-carousel .owl-item .case_thumb img.case-real {
    width: 100%;
}

/* Proje başlıkları her zaman görünür (tema yalnız hover'da gösteriyordu; mobilde hiç görünmüyordu) */
.case_thumb .case_content {
    left: 0;
    padding: 0 24px 24px;
}
.case_thumb .case_content::before {
    display: none;
}
.case_thumb span.case-catagori {
    display: inline-block;
    line-height: 1;
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, .16);
}
.case_thumb h3.case_title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

/* Açılış ekranı: harf animasyonu yerine beyaz logo + küçük beyaz halka */
.loading-screen .preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.loading-screen .preloader-logo {
    width: 200px;
    height: auto;
    animation: preloaderPulse 1.4s ease-in-out infinite;
}
.loading-screen .preloader-brand .spinner {
    width: 38px;
    height: 38px;
    margin: 0;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .75; transform: scale(.96); }
}
@media (max-width: 575px) {
    .loading-screen .preloader-logo {
        width: 160px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .loading-screen .preloader-logo {
        animation: none;
    }
}

/* Açılış ekranı sabit header'ın da üstünde */
.loading-screen {
    z-index: 10001;
}

/* Footer alt satırı: telif solda, Themedya imzası sağda */
.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
.footer-bottom-row p,
.footer-bottom-content-copy.footer-bottom-row p {
    margin: 0;
    text-align: left;
}
.footer-credit a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.footer-credit a:hover {
    color: #5aa2ff;
}
@media (max-width: 767px) {
    .footer-bottom-row {
        flex-direction: column;
        justify-content: center;
    }
    .footer-bottom-row p,
    .footer-bottom-content-copy.footer-bottom-row p {
        text-align: center;
    }
}
