/*
|--------------------------------------------------------------------------
| Anında Yol Yardım — Ana Sayfa Mobil Düzeni
|--------------------------------------------------------------------------
|
| Bu dosya home.css dosyasından sonra yüklenir.
| Amaç: okunabilir, kısa ve dönüşüm odaklı mobil sayfa.
|
*/

/*
|--------------------------------------------------------------------------
| Tablet ve telefon
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-main {
        width: 100%;
        overflow: clip;
    }

    .site-container {
        width: min(
            calc(100% - 30px),
            1180px
        );
        margin-right: auto;
        margin-left: auto;
    }

    /*
    |--------------------------------------------------------------------------
    | Hero
    |--------------------------------------------------------------------------
    */

    .home-hero {
        min-height: auto;
        padding: 0;
        overflow: hidden;
    }

    .home-hero-background {
        object-position: 64% center;
    }

    .home-hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(3, 6, 12, 0.69) 0%,
                rgba(3, 6, 12, 0.8) 43%,
                rgba(3, 6, 12, 0.96) 100%
            ) !important;
    }

    .hero-overlay-pattern {
        opacity: 0.3;
    }

    .home-hero-inner {
        min-height: auto;
        padding-top: 46px;
        padding-bottom: 34px;
    }

    .home-hero-content {
        width: 100%;
        max-width: 700px;
    }

    .home-hero-title {
        max-width: 680px;
        font-size: clamp(
            38px,
            8vw,
            56px
        );
    }

    .home-hero-description {
        max-width: 610px;
        font-size: 13px;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .home-hero-actions .button {
        width: 100%;
        min-width: 0;
    }

    .home-hero-meta {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }

    .hero-meta-item {
        min-width: 0;
        white-space: normal;
    }

    /*
    |--------------------------------------------------------------------------
    | Hero alt alanı mobilde normal akışa girer
    |--------------------------------------------------------------------------
    */

    .home-hero-bottom {
        position: relative;
        inset: auto;
    }

    .home-hero-strip {
        height: 43px;
    }

    .home-hero-strip-group > span {
        padding-right: 17px;
        padding-left: 17px;
        font-size: 8px;
    }

    .home-hero-bottom > .site-container {
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .home-hero-floating-box {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding: 18px;
        transform: none;
    }

    .home-hero-floating-heading {
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .home-hero-floating-heading h2 {
        font-size: 16px;
    }

    .home-hero-problem-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-right: -18px;
        margin-left: -18px;
        padding-right: 18px;
        padding-bottom: 4px;
        padding-left: 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 18px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-hero-problem-list::-webkit-scrollbar {
        display: none;
    }

    .home-hero-problem-pill {
        min-width: max-content;
        min-height: 38px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /*
    |--------------------------------------------------------------------------
    | Bölümler
    |--------------------------------------------------------------------------
    */

    .services-section,
    .districts-section,
    .why-us-section,
    .reviews-section,
    .blog-section,
    .faq-section,
    .home-contact-section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .services-section {
        padding-top: 58px;
    }

    .section-header {
        display: grid;
        gap: 11px;
        margin-bottom: 24px;
    }

    .section-header > div {
        max-width: 100%;
    }

    .section-header h2 {
        margin-top: 11px;
        font-size: clamp(
            27px,
            6vw,
            38px
        );
    }

    .section-header p {
        font-size: 11px;
        line-height: 1.7;
    }

    .section-header > a {
        width: max-content;
        max-width: 100%;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid
            color-mix(
                in srgb,
                var(--site-primary, #f5a623) 28%,
                transparent
            );
        border-radius: 9px;
        background:
            color-mix(
                in srgb,
                var(--site-primary, #f5a623) 8%,
                transparent
            );
    }

    .mobile-swipe-hint {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: -8px 0 15px;
        color: var(--site-muted, #94a3b8);
        font-size: 8px;
        font-weight: 750;
    }

    .mobile-swipe-hint i {
        color: var(--site-primary, #f5a623);
        font-size: 10px;
    }

    /*
    |--------------------------------------------------------------------------
    | Yatay kayan kartlar
    |--------------------------------------------------------------------------
    */

    .mobile-card-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(
            280px,
            48%
        );
        grid-template-columns: none;
        gap: 13px;
        margin-right: calc(
            (100vw - 100%) / -2
        );
        margin-left: 0;
        padding-right: 30px;
        padding-bottom: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .mobile-card-rail::-webkit-scrollbar {
        display: none;
    }

    .mobile-card-rail > * {
        scroll-snap-align: start;
    }

    .service-card,
    .why-us-card,
    .review-card,
    .post-card {
        min-height: 220px;
    }

    /*
    |--------------------------------------------------------------------------
    | Bölgeler
    |--------------------------------------------------------------------------
    */

    .districts-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /*
    |--------------------------------------------------------------------------
    | İletişim
    |--------------------------------------------------------------------------
    */

    .home-contact-card {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 25px;
    }

    .home-contact-copy {
        align-content: start;
    }

    .home-contact-form-panel {
        width: 100%;
    }

    .home-contact-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-contact-actions .button {
        width: 100%;
        min-width: 0;
    }
}

/*
|--------------------------------------------------------------------------
| Telefon
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .site-container {
        width: calc(100% - 26px);
    }

    /*
    |--------------------------------------------------------------------------
    | Hero
    |--------------------------------------------------------------------------
    */

    .home-hero-background {
        object-position: 68% center;
    }

    .home-hero-inner {
        padding-top: 34px;
        padding-bottom: 28px;
    }

    .home-hero-badge {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 8px;
        white-space: normal;
    }

    .home-hero-title {
        margin-top: 16px;
        font-size: clamp(
            33px,
            10.3vw,
            43px
        );
        line-height: 1;
    }

    .home-hero-title-second-line {
        margin-top: 6px;
        font-size: 0.64em;
        line-height: 1.13;
    }

    .home-hero-description {
        font-size: 11px;
        line-height: 1.67;
    }

    .home-hero-actions {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 20px;
    }

    .home-hero-actions .button {
        min-height: 51px;
        font-size: 10px;
    }

    .home-hero-meta {
        gap: 9px 12px;
        margin-top: 18px;
    }

    .hero-meta-item {
        align-items: flex-start;
        font-size: 8px;
    }

    .hero-meta-item > i {
        margin-top: 1px;
        font-size: 10px;
    }

    .hero-rating .stars {
        font-size: 9px;
    }

    .home-hero-strip-marquee {
        animation-duration: 31s;
    }

    .home-hero-bottom > .site-container {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .home-hero-floating-box {
        padding: 15px;
        border-radius: 13px;
    }

    .home-hero-floating-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .home-hero-floating-heading h2 {
        font-size: 14px;
    }

    .home-hero-floating-heading p {
        font-size: 8px;
    }

    .home-hero-problem-list {
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    /*
    |--------------------------------------------------------------------------
    | Bölümler
    |--------------------------------------------------------------------------
    */

    .services-section,
    .districts-section,
    .why-us-section,
    .reviews-section,
    .blog-section,
    .faq-section,
    .home-contact-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: clamp(
            26px,
            8vw,
            33px
        );
    }

    /*
    |--------------------------------------------------------------------------
    | Yatay kartlar tek kart görünümü
    |--------------------------------------------------------------------------
    */

    .mobile-card-rail {
        grid-auto-columns: minmax(
            260px,
            84vw
        );
        margin-right: -13px;
        padding-right: 26px;
    }

    .service-card,
    .why-us-card,
    .review-card,
    .post-card {
        min-height: 208px;
        padding: 19px;
    }

    .service-card h3,
    .why-us-card h3 {
        font-size: 15px;
    }

    /*
    |--------------------------------------------------------------------------
    | Bölgeler
    |--------------------------------------------------------------------------
    */

    .district-card {
        grid-template-columns:
            34px
            minmax(0, 1fr);
        min-height: 68px;
        gap: 9px;
        padding: 10px;
    }

    .district-card-icon {
        width: 34px;
        height: 34px;
    }

    .district-card-arrow {
        display: none;
    }

    .district-card strong {
        font-size: 10px;
    }

    .district-card small {
        font-size: 7px;
    }

    /*
    |--------------------------------------------------------------------------
    | SSS
    |--------------------------------------------------------------------------
    */

    .faq-question {
        min-height: 55px;
        padding: 12px 13px;
        font-size: 10px;
    }

    .faq-answer {
        padding: 0 13px 14px;
        font-size: 10px;
    }

    /*
    |--------------------------------------------------------------------------
    | İletişim
    |--------------------------------------------------------------------------
    */

    .home-contact-card {
        gap: 22px;
        padding: 19px;
        border-radius: 14px;
    }

    .home-contact-copy h2 {
        font-size: 29px;
    }

    .home-contact-copy > p {
        font-size: 10px;
    }

    .home-contact-actions {
        grid-template-columns: 1fr;
    }

    .home-contact-actions .button {
        min-height: 49px;
        font-size: 9px;
    }

    .home-contact-benefits > span {
        font-size: 9px;
    }

    /*
    |--------------------------------------------------------------------------
    | Form partial genel düzeltme
    |--------------------------------------------------------------------------
    */

    .home-contact-form-panel form,
    .home-contact-form,
    .contact-form {
        width: 100%;
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .home-contact-form-panel input,
    .home-contact-form-panel select,
    .home-contact-form-panel textarea,
    .home-contact-form input,
    .home-contact-form select,
    .home-contact-form textarea,
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        font-size: 10px !important;
    }
}

/*
|--------------------------------------------------------------------------
| Çok küçük telefonlar
|--------------------------------------------------------------------------
*/

@media (max-width: 390px) {
    .site-container {
        width: calc(100% - 22px);
    }

    .home-hero-title {
        font-size: 32px;
    }

    .home-hero-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .districts-grid {
        grid-template-columns: 1fr;
    }

    .district-card {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            auto;
    }

    .district-card-arrow {
        display: inline-block;
    }

    .mobile-card-rail {
        grid-auto-columns: minmax(
            250px,
            88vw
        );
    }
}

/*
|--------------------------------------------------------------------------
| Yatay ekran
|--------------------------------------------------------------------------
*/

@media (
    max-width: 900px
) and (
    orientation: landscape
) {
    .home-hero-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-hero-title {
        font-size: 38px;
    }
}

/*
|--------------------------------------------------------------------------
| Hareket azaltma
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .home-hero-strip-marquee {
        animation: none !important;
    }

    .mobile-card-rail,
    .home-hero-problem-list {
        scroll-behavior: auto;
    }
}