/* Toruklar Group - mobile layout layer */
/* Revision: 2026-07-21.2 */
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body,
#root,
main,
main > * {
    min-width: 0;
    max-width: 100%;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

p,
li,
h1,
h2,
h3,
a {
    overflow-wrap: break-word;
}

input,
textarea,
select,
button {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1023px) {
    :root {
        --header-height: 72px;
        --section-space: 76px;
    }

    body > div#root > div > nav {
        height: 72px !important;
    }

    body > div#root > div > nav > div:first-child {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .navbar-logo {
        height: 72px !important;
        margin: 0 !important;
    }

    .navbar-logo-img {
        width: auto !important;
        height: 56px !important;
        max-width: 132px !important;
    }

    .mobile-menu-btn {
        width: 48px !important;
        height: 48px !important;
        padding: 12px !important;
    }

    .mobile-nav {
        top: 72px !important;
        max-height: 0;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .mobile-nav[style*="max-height: 500"],
    .mobile-nav[style*="max-height:500"] {
        max-height: calc(100dvh - 72px) !important;
    }

    .about-hero-container {
        padding: 104px 24px 64px !important;
    }

    .about-hero-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 42px !important;
    }

    .about-hero-mark,
    .about-hero-copy {
        width: 100% !important;
        min-width: 0 !important;
    }

    .about-hero-emblem {
        width: min(300px, 72vw) !important;
        max-width: 300px !important;
    }

    .about-hero-copy > div:nth-of-type(2) {
        max-width: 720px;
    }

    .about-experience-card {
        min-width: 220px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .team-grid,
    .service-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .project-detail-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .project-facts-grid {
        flex-wrap: wrap;
        row-gap: 26px;
    }

    .project-facts-grid > div {
        flex: 1 1 33%;
    }

    .blog-article-copy {
        width: min(760px, calc(100% - 40px));
    }

    #teklif {
        min-height: 0 !important;
    }

    #teklif > div:last-child {
        min-height: 560px !important;
    }

    #teklif iframe {
        min-height: 420px;
    }
}

@media (max-width: 700px) {
    :root {
        --section-space: 64px;
    }

    body > div#root > div > nav > div:first-child {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .navbar-logo-img {
        height: 52px !important;
        max-width: 116px !important;
    }

    .mobile-nav > div {
        padding: 14px 16px 22px !important;
    }

    .mobile-route-item,
    .mobile-nav a {
        min-height: 46px;
    }

    .container,
    body .container {
        width: calc(100% - 32px) !important;
    }

    main > section:first-child h1,
    .page-title,
    .project-detail-intro h1,
    .blog-detail-head h1 {
        font-size: clamp(2rem, 10vw, 2.65rem) !important;
        line-height: 1.12 !important;
    }

    .section-title,
    .content-title,
    .about-heading h2,
    .project-detail-grid h2,
    .related-projects h2,
    .recent-blogs header h2 {
        font-size: clamp(1.8rem, 8vw, 2.25rem) !important;
        line-height: 1.2 !important;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .hero {
        min-height: max(620px, 100svh);
        padding: 100px 0 64px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-copy {
        margin-top: 18px;
        margin-bottom: 26px;
        line-height: 1.7;
    }

    .hero-buttons,
    main > section:first-child .flex.flex-col {
        width: 100%;
    }

    .hero-buttons .btn,
    main > section:first-child a.sm\:min-w-\[200px\],
    main > section:first-child a.sm\:min-w-\[280px\] {
        width: min(100%, 310px) !important;
        min-width: 0 !important;
    }

    .stats-grid {
        padding: 10px 0;
    }

    .services-section,
    .featured-projects-section,
    .luxury-scroll-section {
        scroll-margin-top: 72px;
    }

    .service-hover-card {
        height: 360px !important;
    }

    .project-card,
    .project-card:first-child,
    .featured-project,
    .project-page-card,
    .project-page-card:nth-child(4n+1),
    .project-page-card:nth-child(4n) {
        height: 380px !important;
    }

    .project-card-content,
    .featured-project-content,
    .project-page-content {
        right: 20px !important;
        bottom: 22px !important;
        left: 20px !important;
    }

    .project-card:first-child .project-card-title,
    .featured-project h2,
    .project-page-content h3 {
        font-size: 1.75rem !important;
    }

    .cta {
        padding: 76px 0 86px !important;
    }

    .cta-title {
        margin-right: 0;
        margin-left: 0;
        font-size: clamp(2rem, 9vw, 2.55rem) !important;
    }

    .cta-copy {
        margin-bottom: 34px;
        font-size: .95rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
    }

    .site-footer > div:first-child {
        padding: 58px 16px 38px !important;
    }

    .footer-grid {
        gap: 30px !important;
    }

    .footer-bottom {
        padding: 24px 0 !important;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .about-hero-container {
        padding: 96px 18px 54px !important;
    }

    .about-hero-grid {
        gap: 28px !important;
    }

    .about-hero-mark {
        order: 0;
    }

    .about-hero-emblem {
        width: min(210px, 58vw) !important;
    }

    .about-hero-copy {
        text-align: left;
    }

    .about-hero-copy > div:first-child {
        margin-bottom: 18px !important;
    }

    .about-hero-copy h1 {
        margin-bottom: 18px !important;
    }

    .about-hero-copy > p {
        margin-bottom: 20px !important;
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .about-hero-copy > div:nth-of-type(2) {
        margin-bottom: 28px !important;
        color: #aaaab5 !important;
        font-size: .95rem !important;
        line-height: 1.85 !important;
    }

    .about-hero-copy > div:nth-of-type(2) p {
        margin-bottom: 18px !important;
    }

    .about-experience-card {
        display: block !important;
        width: 100%;
        min-width: 0;
        padding: 26px 28px !important;
        text-align: center;
    }

    .about-experience-card > div:first-child {
        font-size: 3.25rem !important;
    }

    .values-grid,
    .team-grid,
    .service-fields-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .about-value-card,
    .about-service-card,
    .rep-card {
        min-height: 0 !important;
        padding: 28px 20px !important;
    }

    .luxury-scroll-section > div[style*="max-width: 1200px"] {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .official-panel,
    .family-note {
        padding: 24px 18px !important;
    }

    .project-detail-hero {
        height: auto;
        min-height: 580px;
    }

    .project-detail-intro {
        padding-bottom: 46px;
    }

    .project-detail-intro > p,
    .blog-detail-head > p {
        font-size: .95rem;
    }

    .project-facts-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .project-facts-grid > div {
        padding: 0 !important;
        border: 0 !important;
    }

    .project-features {
        padding: 24px 18px;
    }

    .project-gallery {
        margin-top: 48px;
    }

    .project-gallery figure {
        height: 260px;
    }

    .blog-hero {
        height: auto;
        min-height: 390px;
        padding: 132px 0 62px;
    }

    .blog-list {
        padding-right: 16px;
        padding-bottom: 72px;
        padding-left: 16px;
    }

    .blog-page-image {
        height: 210px;
    }

    .blog-page-body {
        padding: 22px 18px;
    }

    .blog-page-body h2,
    .blog-page-body h3 {
        font-size: 1.35rem;
    }

    .blog-detail-hero {
        min-height: 570px;
    }

    .blog-detail-head {
        padding-bottom: 48px;
    }

    .blog-detail-content {
        padding: 64px 0 76px;
    }

    .blog-article-copy {
        width: calc(100% - 32px);
        font-size: .96rem;
        line-height: 1.85;
    }

    .blog-article-copy h2 {
        margin-top: 38px;
        font-size: 1.85rem;
    }

    .blog-article-copy h3 {
        font-size: 1.45rem;
    }

    .blog-article-copy blockquote {
        margin: 32px 0;
        padding-left: 18px;
        font-size: 1.25rem;
    }

    .contact-header-strip {
        padding: 22px 18px !important;
    }

    #teklif > div:first-child {
        padding: 46px 18px !important;
    }

    #teklif > div:first-child form {
        gap: 22px !important;
    }

    main form[style*="grid-template-columns"],
    main form > [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #teklif > div:first-child input,
    #teklif > div:first-child textarea {
        padding: 16px 18px !important;
        font-size: 16px !important;
    }

    #teklif > div:first-child button[type="submit"] {
        width: 100%;
        padding: 18px 20px !important;
        letter-spacing: .09em !important;
    }

    #teklif > div:last-child {
        min-height: 500px !important;
    }

    #teklif iframe {
        min-height: 340px;
    }

    #teklif > div:last-child > div:last-child {
        align-items: stretch !important;
        padding: 24px 18px !important;
        text-align: left !important;
    }

    #teklif > div:last-child > div:last-child a {
        width: 100%;
        justify-content: center;
        padding: 16px 18px !important;
    }

    .floating-project-cta {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        min-height: 54px;
        padding: 14px 18px;
    }

    [role="dialog"] {
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 390px) {
    .container,
    body .container {
        width: calc(100% - 24px) !important;
    }

    .about-hero-container {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .project-facts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-kicker,
    .project-category,
    .blog-date,
    .contact-info-label,
    .stat-label,
    [style*="text-transform: uppercase"] {
        letter-spacing: .14em !important;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .mobile-nav {
        max-height: calc(100dvh - 72px) !important;
    }

    .hero {
        min-height: 560px;
    }
}

/* Mobile prestige pass: 2026-07-22 */
@media (max-width: 700px) {
    main input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        display: inline-grid !important;
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        flex: 0 0 25px !important;
        margin: 0 !important;
        place-content: center;
        border: 1px solid rgba(212, 175, 55, .72) !important;
        border-radius: 6px;
        background: rgba(212, 175, 55, .06);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 5px 16px rgba(0, 0, 0, .28);
        cursor: pointer;
    }

    main input[type="checkbox"]::after {
        content: "";
        width: 11px;
        height: 6px;
        border-bottom: 2px solid #08080b;
        border-left: 2px solid #08080b;
        opacity: 0;
        transform: translateY(-1px) rotate(-45deg) scale(.65);
        transition: opacity .18s ease, transform .18s ease;
    }

    main input[type="checkbox"]:checked {
        border-color: #e7c54d !important;
        background: linear-gradient(145deg, #e7c54d, #b89222);
        box-shadow: 0 0 0 4px rgba(212, 175, 55, .12), 0 8px 22px rgba(0, 0, 0, .3);
    }

    main input[type="checkbox"]:checked::after {
        opacity: 1;
        transform: translateY(-1px) rotate(-45deg) scale(1);
    }

    main label:has(> input[type="checkbox"]) {
        min-height: 52px;
        align-items: center !important;
        gap: 14px !important;
        padding: 8px 2px;
        line-height: 1.7 !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav a[href*="/lang/"] {
        display: inline-flex !important;
        width: 52px;
        min-height: 44px !important;
        align-items: center;
        justify-content: center;
        padding: 0 12px !important;
        line-height: 1 !important;
    }

    .mobile-nav a[href*="/lang/"] + div {
        width: 1px !important;
        height: 20px !important;
        margin: 0 2px;
        align-self: center;
        background: linear-gradient(transparent, rgba(212, 175, 55, .72), transparent) !important;
        transform: none !important;
    }

    .project-feature-card,
    .project-list-card {
        border-radius: 12px !important;
        border-color: rgba(212, 175, 55, .38) !important;
        background: #0d0d12;
        box-shadow: 0 18px 46px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .035);
    }

    .project-feature-card > img {
        filter: brightness(.75) contrast(1.04) saturate(1.08) !important;
    }

    .project-list-card > img {
        filter: brightness(.82) contrast(1.02) saturate(1.08) !important;
    }

    .project-feature-card > img + div {
        background: linear-gradient(rgba(5, 5, 7, .04) 0%, rgba(5, 5, 7, .04) 38%, rgba(5, 5, 7, .46) 70%, rgba(5, 5, 7, .88) 100%) !important;
    }

    .project-list-card > img + div {
        background: linear-gradient(transparent 0%, rgba(5, 5, 7, .02) 44%, rgba(5, 5, 7, .42) 68%, rgba(5, 5, 7, .84) 100%) !important;
    }

    .project-list-card h3,
    .project-feature-card h2 {
        color: #fff !important;
        font-weight: 500 !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 8px 24px rgba(0, 0, 0, .55) !important;
    }

    .project-list-card [style*="bottom: 32px"] {
        z-index: 2 !important;
        bottom: 24px !important;
        left: 20px !important;
        right: 20px !important;
    }

    .project-list-card [style*="bottom: 32px"] > span:first-child {
        color: #f2cf58 !important;
        border-color: rgba(242, 207, 88, .72) !important;
        background: rgba(12, 12, 16, .72) !important;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
        backdrop-filter: blur(8px);
    }

    .project-list-card h3 + div span {
        color: rgba(255, 255, 255, .82) !important;
        text-shadow: 0 1px 5px rgba(0, 0, 0, .9);
    }

    .mobile-nav {
        background: linear-gradient(155deg, rgba(18, 18, 25, .985), rgba(10, 10, 15, .99)) !important;
        border-bottom-color: rgba(212, 175, 55, .28) !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .72) !important;
    }

    .mobile-route-item {
        border: 1px solid transparent !important;
        border-radius: 10px !important;
    }

    .mobile-route-item.is-active {
        border-color: rgba(212, 175, 55, .18) !important;
        background: linear-gradient(90deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .07)) !important;
    }

    #teklif input:not([type="checkbox"]),
    #teklif textarea {
        border-radius: 11px !important;
        border-color: rgba(212, 175, 55, .3) !important;
        background: linear-gradient(145deg, rgba(14, 14, 19, .92), rgba(2, 2, 4, .86)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 10px 30px rgba(0, 0, 0, .16) !important;
    }

    .blog-page-card,
    .blog-grid article {
        border-radius: 12px !important;
        border-color: rgba(212, 175, 55, .2) !important;
        box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
    }
}
