/* =========================================================
   RESPONSIVE.CSS
   Dt. Hasan Çelik
========================================================= */

/* Her cihazda taşmayı önle */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}


/* =========================================================
   TABLET / KÜÇÜK LAPTOP
   1050px ve altı
========================================================= */

@media (max-width: 1050px) {

    /* HEADER */
    .header {
        gap: 18px;
        padding-left: 30px;
        padding-right: 30px;
    }

        .header nav {
            gap: 18px;
        }


    /* ANA SAYFA HERO */
    .hero {
        grid-template-columns: 1fr 1fr;
        padding-left: 5vw;
        padding-right: 5vw;
        gap: 40px;
    }

        .hero h1 {
            font-size: clamp(55px, 6vw, 75px);
        }


    /* TEDAVİLER */
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* HEKİM SAYFASI */
    .doctor-layout,
    .doctor-page {
        gap: 40px;
    }
}


/* =========================================================
   TABLET / TELEFON
   820px ve altı
========================================================= */

@media (max-width: 820px) {

    /* ---------------- HEADER ---------------- */

    .header {
        height: 76px;
        padding: 0 18px;
        gap: 12px;
        position: relative;
    }

    .brand b {
        font-size: 17px;
    }

    .brand small {
        font-size: 8px;
    }

    .header nav {
        display: none;
        position: absolute;
        z-index: 9999;
        top: 76px;
        left: 12px;
        right: 12px;
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(5, 40, 94, 0.16);
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

        .header nav.open {
            display: flex;
        }

        .header nav a {
            padding: 13px 15px;
            width: 100%;
        }

    /* Headerdaki büyük randevu butonu */
    .header > .btn {
        display: none;
    }

    .menu {
        display: block;
        margin-left: auto;
    }


    /* ---------------- ANA SAYFA HERO ---------------- */

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 55px 24px 90px;
        gap: 30px;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 55px;
        line-height: 0.98;
        letter-spacing: -3px;
    }

    .hero p {
        max-width: 600px;
    }


    /* ANA FOTOĞRAF */

    .hero-photo {
        width: 100% !important;
        height: 480px !important;
        margin-top: 20px;
        border-radius: 24px;
        overflow: hidden;
    }

        .hero-photo img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: 50% 30%;
            display: block;
        }


    /* ---------------- HERO BUTONLARI ---------------- */

    .actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .actions .btn {
            width: 100%;
            text-align: center;
            justify-content: center;
        }


    /* ---------------- HIZLI İLETİŞİM ---------------- */

    .quick {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, 1fr);
        margin-top: -45px;
    }

        .quick a {
            min-width: 0;
        }


    /* ---------------- GENEL BÖLÜMLER ---------------- */

    .section {
        padding: 70px 24px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }


    /* ---------------- TEDAVİLER ---------------- */

    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }


    /* ---------------- ANASAYFA HEKİM BÖLÜMÜ ---------------- */

    .about {
        margin: 20px 16px 70px;
        padding: 40px 24px;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-photo {
        width: 100% !important;
        height: 430px !important;
    }

        .about-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 50% 30%;
        }

    .features {
        grid-template-columns: 1fr;
    }


    /* ---------------- HEKİMLERİMİZ SAYFASI ---------------- */

    .doctor-layout,
    .doctor-page {
        grid-template-columns: 1fr !important;
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-photo-area {
        width: 100% !important;
        max-width: 600px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-photo {
        width: 100% !important;
        /* Mobil portre oranı */
        height: auto !important;
        aspect-ratio: 4 / 5;
        border-radius: 24px;
        overflow: hidden;
    }

    .doctor-profile-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 50% 25% !important;
    }

    .doctor-photo-label {
        width: calc(100% - 30px) !important;
        max-width: none !important;
        margin: -20px auto 25px !important;
    }

    .doctor-info {
        width: 100%;
    }


    /* ---------------- İLETİŞİM ---------------- */

    .contact,
    .contact-wrap {
        grid-template-columns: 1fr !important;
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
        gap: 25px;
    }

    .map,
    .map-wrap {
        width: 100%;
        min-height: 420px;
    }

        .map iframe,
        .map-wrap iframe {
            width: 100%;
            min-height: 420px;
        }

    .contact-panel,
    .contact aside {
        width: 100%;
    }


    /* ---------------- SAYFA BAŞLIKLARI ---------------- */

    .page-hero {
        padding: 65px 24px;
    }

        .page-hero h1 {
            font-size: 48px;
        }


    /* ---------------- SABİT TELEFON / WHATSAPP ---------------- */

    .floating {
        right: 12px;
        top: auto;
        bottom: 14px;
        transform: none;
        flex-direction: row;
        z-index: 9998;
    }

    .float {
        width: 50px;
        height: 50px;
    }


    /* ---------------- FOOTER ---------------- */

    footer {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-left: 24px;
        padding-right: 24px;
    }
}


/* =========================================================
   TELEFON
   480px ve altı
========================================================= */

@media (max-width: 480px) {

    /* HEADER */

    .header {
        height: 68px;
        padding: 0 14px;
    }

        .header nav {
            top: 68px;
        }

    .brand b {
        font-size: 15px;
    }

    .brand small {
        font-size: 7px;
    }


    /* HERO */

    .hero {
        padding: 45px 18px 80px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: 43px;
        line-height: 1;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* ANA FOTOĞRAF */

    .hero-photo {
        height: auto !important;
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

        .hero-photo img {
            object-position: 50% 25%;
        }


    /* HIZLI İLETİŞİM */

    .quick {
        grid-template-columns: 1fr;
        width: calc(100% - 28px);
    }

        .quick a {
            border-right: 0;
            border-bottom: 1px solid #e6f2f8;
        }


    /* BAŞLIKLAR */

    .section-head h2,
    .about h2,
    .page-hero h1 {
        font-size: 38px;
        line-height: 1.1;
    }


    /* TEDAVİLER */

    .section {
        padding: 55px 16px;
    }

    .grid {
        gap: 24px;
    }


    /* ANASAYFA HEKİM FOTOĞRAFI */

    .about {
        margin: 15px 10px 55px;
        padding: 30px 18px;
        border-radius: 24px;
    }

    .about-photo {
        height: auto !important;
        aspect-ratio: 4 / 5;
    }


    /* HEKİM SAYFASI */

    .doctor-layout,
    .doctor-page {
        width: calc(100% - 24px);
    }

    .doctor-photo {
        aspect-ratio: 4 / 5;
    }

    .doctor-info h1,
    .doctor-info h2 {
        font-size: 36px;
    }


    /* İLETİŞİM */

    .contact,
    .contact-wrap {
        width: calc(100% - 24px);
    }

        .contact-panel,
        .contact aside {
            padding: 30px 20px;
        }

    .map,
    .map-wrap,
    .map iframe,
    .map-wrap iframe {
        min-height: 330px;
    }


    /* SABİT TELEFON / WHATSAPP */

    .floating {
        right: 10px;
        bottom: 10px;
    }

    .float {
        width: 46px;
        height: 46px;
    }


    /* BUTONLAR */

    .btn {
        max-width: 100%;
    }
}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
========================================================= */

@media (max-width: 360px) {

    .hero h1 {
        font-size: 38px;
    }

    .section-head h2,
    .about h2,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero,
    .section {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   MOBILE NAV FINAL FIX
   Yeni V2 header (.site-header / .main-nav) icin.
========================================================= */
@media (max-width: 1120px) {
    .site-header {
        overflow: visible !important;
        z-index: 100000 !important;
    }

    .header-container {
        position: relative !important;
        overflow: visible !important;
    }

    .mobile-menu-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        position: relative !important;
        z-index: 100002 !important;
    }

    .mobile-menu-button span {
        width: 26px !important;
        height: 2px !important;
        margin: 0 !important;
        flex: 0 0 2px !important;
    }

    .main-nav {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        background: #fff !important;
        border: 1px solid #dceef7 !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 45px rgba(5,40,94,.16) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 3px !important;
        z-index: 100001 !important;
    }

    .main-nav.open {
        display: flex !important;
    }

    .main-nav a {
        display: flex !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 13px 16px !important;
        align-items: center !important;
        color: #082b62 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 11px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-decoration: none !important;
        transform: none !important;
    }

    .main-nav a::before,
    .main-nav a::after {
        display: none !important;
        content: none !important;
    }

    .main-nav a.active,
    .main-nav a:hover {
        color: #078fe0 !important;
        background: #eef9ff !important;
    }
}

@media (max-width: 620px) {
    .main-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        top: calc(100% + 8px) !important;
    }
}
