/*
 * Cilas - mobil / tablet düzeltmeleri
 * Tüm kurallar max-width medya sorguları içindedir; masaüstü (>=1200px) görünümü değişmez.
 * style.css + responsive.css'ten sonra yüklenir (main.php).
 */

/* =========================================================
   <=1199px : menü hamburger'a döndüğü tüm ekranlar
   ========================================================= */
@media only screen and (max-width: 1199px) {

    /* --- Kayan başlık: mobilde de logo + menü düğmesi görünsün --- */
    .fixed-header .sticky-header {
        display: block;
    }

    .main-header .sticky-header .logo {
        padding: 8px 0;
    }

    .main-header .sticky-header .logo img {
        width: 140px;
    }

    .main-header .sticky-header .nav-outer {
        min-height: 0;
        padding: 0;
    }

    .main-header .sticky-header .nav-outer .mobile-nav-toggler {
        top: 0;
        padding: 17.5px 12px 9px;
    }

    /* --- Mobil menü --- */
    .mobile-menu .menu-box {
        top: 64px;
        bottom: 0;
        align-items: flex-start;
        align-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu .navigation li > a {
        font-size: 15px;
        padding: 13px 60px 13px 50px;
    }

    .mobile-menu .navigation li > a:before {
        left: 26px;
    }

    /* Açılır menü: tüm satır dokunulabilir olsun (üst bağlantı zaten "#") */
    .mobile-menu .navigation li.dropdown .dropdown-btn {
        left: 0;
        right: 0;
        width: auto;
        height: 50px;
        line-height: 50px;
        text-align: right;
        padding-right: 24px;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu .navigation li.dropdown .dropdown-btn:after {
        display: none;
    }

    /* Alt menü maddeleri üst maddelerden ayırt edilsin */
    .mobile-menu .navigation li > ul {
        background: #16181e;
    }

    .mobile-menu .navigation li > ul > li > a {
        padding-left: 64px;
        text-transform: none;
        color: #cfd2d8;
    }

    .mobile-menu .navigation li > ul > li > a:before {
        left: 44px;
    }

    /* Menü kapatma düğmesi (main.php'de .cilas-menu-kapat) */
    .mobile-menu .cilas-menu-kapat {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 5px;
        background: var(--thm-primary);
        color: #fff;
        font-size: 20px;
        line-height: 44px;
        text-align: center;
        cursor: pointer;
        z-index: 10;
    }

    /* Dil seçici maddeleri: 44px dokunma alanı */
    .language-button .language-container a {
        padding: 9px 0;
    }

    /* --- Yan menülü sayfalar: içerik önce, yan menü sonra --- */
    .service-details-section > .container > .row > .col-xl-3 {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }

    .service-details-section .service-details-sidebar {
        margin-top: 40px;
    }

    /* Başlık satırı esnek kutu içinde taşmasın */
    .service-details-right-text {
        max-width: 100%;
        min-width: 0;
    }

    .service-details-right-text h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Misyon / Vizyon / Tarihçe kutuları: sola -30px kayma kaldırıldı */
    .why-choose-right-content {
        margin-left: 0;
    }

    /* Kartlar alt alta dizilince 580px sabit yükseklik büyük boşluk bırakıyordu */
    .features-two-sec-single {
        min-height: 0;
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
    }

    /* Aynı satırdaki kartlar (tablet: 2'li) eşit yükseklikte kalsın */
    .features-two-section .row > [class*="col-"] > a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -ms-flex-direction: column;
        flex-direction: column;
        height: 100%;
    }

    /* iletisim.php: form bölümünde .row > .container sırası ters; taşmayı gider */
    .contact-one-section > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-one-section > .row > .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Dekoratif nokta deseni ekran dışına taşmasın */
    .about-two-sec-image-bg-1 {
        left: -10px;
        top: -10px;
    }
}

/* =========================================================
   <=991px : tablet
   ========================================================= */
@media only screen and (max-width: 991px) {

    .service-details-right-text h3 {
        font-size: 40px;
        line-height: 1.15;
    }

    .about-two-title h2,
    .thm-section-title h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .page-header {
        min-height: 200px;
        padding: 60px 0;
    }

    .banner-section .content-box h1 {
        font-size: 52px;
        line-height: 60px;
    }

    .banner-section .swiper-slide-active .text {
        width: 80%;
    }
}

/* =========================================================
   <=767px : telefon
   ========================================================= */
@media only screen and (max-width: 767px) {

    /* --- Ana sayfa slider --- */
    .banner-section .content-outer {
        min-height: 460px;
    }

    .banner-section .content-box {
        padding: 60px 0;
    }

    .banner-section .content-box h1 {
        font-size: 34px;
        line-height: 42px;
        margin-bottom: 20px;
    }

    .banner-section .content-box .text,
    .banner-section .swiper-slide-active .text {
        width: 100%;
        font-size: 16px;
        line-height: 26px;
    }

    .banner-section .link-box {
        padding-top: 24px;
    }

    /* --- Bölüm başlıkları --- */
    .thm-section-title {
        margin-bottom: 30px;
    }

    .thm-section-title h2 {
        font-size: 30px;
        line-height: 36px;
        margin-top: 40px;
    }

    .about-two-title h2 {
        font-size: 30px;
        line-height: 36px;
    }

    .about-two-left-content {
        margin-bottom: 40px;
    }

    /* Ana sayfa sektör kartları */
    .main-service-one-sec-content {
        padding: 18px 20px 20px;
    }

    .main-service-one-sec-content h3 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 0;
    }

    .blog-one-content {
        padding: 24px 20px;
    }

    /* --- Sayfa üst görseli --- */
    .page-header {
        min-height: 150px;
        padding: 40px 0;
    }

    /* --- İç sayfalar --- */
    .service-details-section {
        padding: 30px 0 40px;
    }

    .service-details-right-text h3 {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 16px;
    }

    .service-details-right-text h4 {
        font-size: 20px;
        line-height: 28px;
    }

    /* İç içe .container'ların çift girintisini (30px) gider */
    .service-details-section .col-xl-9 .container .container {
        padding-left: 0;
        padding-right: 0;
    }

    .why-choose-right-content {
        padding: 30px 20px 1px;
    }

    .most-trusted-skill {
        margin-bottom: 30px;
    }

    .most-trusted-skill-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 50px;
        margin-bottom: 16px;
    }

    .most-trusted-text h3 {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 12px;
    }

    .why-choose-two-section {
        padding-bottom: 20px;
    }

    .features-two-sec-single {
        padding: 24px 20px;
    }

    .features-two-sec-icon {
        width: 80px;
        height: 80px;
    }

    .features-two-sec-icon span {
        font-size: 40px;
    }

    /* Yan menü bağlantıları: 44px dokunma alanı */
    .view-all-services ul li {
        padding: 0 0 0 36px;
    }

    .view-all-services ul li .icon {
        top: 14px;
    }

    .view-all-services ul li .text a {
        display: block;
        padding: 7px 0;
    }

    /* Haber detay kartı */
    .blog-details-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* --- İletişim --- */
    .contactinfo {
        margin-top: 40px;
        padding-bottom: 20px;
    }

    .contactinfo-single {
        padding: 24px 20px;
        margin-bottom: 16px;
    }

    .contactinfo-content {
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .contact-one-image {
        margin: 0 auto 30px;
    }

    .google_map iframe {
        display: block;
        height: 300px;
    }

    .contact-one-section {
        padding-bottom: 30px;
    }

    /* --- Formlar --- */
    .contact-one-form .input-box input[type="text"],
    .contact-one-form .input-box input[type="email"],
    .contact-one-form .input-box textarea {
        margin-bottom: 20px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-one-form .input-box input[type="file"] {
        height: auto;
        min-height: 60px;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px dashed #ccc;
        border-radius: 5px;
        color: #888;
    }

    .contact-one-form .input-box input[type="file"]::-webkit-file-upload-button {
        min-height: 40px;
        padding: 0 14px;
        margin-right: 10px;
        border: 0;
        border-radius: 5px;
        background: #f1f1f1;
        color: #222;
        font-size: 15px;
    }

    .contact-one-form .input-box input[type="file"]::file-selector-button {
        min-height: 40px;
        padding: 0 14px;
        margin-right: 10px;
        border: 0;
        border-radius: 5px;
        background: #f1f1f1;
        color: #222;
        font-size: 15px;
    }

    /* --- Alt bilgi (footer) --- */
    .footer-section > .container > .row:first-child > [class*="col-"]:not(:first-child) {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .footer-widget-contact,
    .footer-widget-useful-links {
        margin-top: 32px;
    }

    .footer-widget-title {
        margin-bottom: 12px;
    }

    .footer-widget-title h3 {
        font-size: 16px;
    }

    .footer-widget-useful-links-list li + li {
        margin-top: 0;
    }

    .footer-widget-useful-links-list li a {
        display: block;
        padding: 8px 0;
    }

    .footer-widget-about-social a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Yukarı çık düğmesi alttaki yazıyı örtmesin */
    .footer-bottom {
        padding-top: 30px;
        padding-bottom: 80px;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        line-height: 44px;
        right: 16px;
        bottom: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   <=575px : küçük telefon
   ========================================================= */
@media only screen and (max-width: 575px) {

    .banner-section .content-box h1 {
        font-size: 30px;
        line-height: 38px;
    }

    .service-details-right-text h3 {
        font-size: 30px;
        line-height: 36px;
    }
}
