/* ==========================================================================
   Obut Yapı — Responsive (1200 / 992 / 768 / 576 / 420)
   ========================================================================== */

/* --- 1200px Laptop --- */
@media (max-width: 1200px) {
    :root { --hero-h: 780px; }
    .container { padding: 0 24px; }
    .services-luxury__bento { grid-template-columns: repeat(2, 1fr); }
    .service-lux-card,
    .service-lux-card:nth-child(4),
    .service-lux-card:nth-child(5) { grid-column: span 1; }
    .footer-premium__top { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
    .footer-premium__brand { grid-column: 1 / -1; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-premium__grid { gap: 48px; }
    .blog-magazine { grid-template-columns: 1fr; }
    .quote-premium__visual { width: 38%; }
    .quote-premium__wrap { width: 62%; }
    .team-premium__grid { grid-template-columns: repeat(3, 1fr); }
    .team-stats-band__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- 992px Tablet yatay --- */
@media (max-width: 992px) {
    :root { --hero-h: 620px; --header-h: 88px; }
    .section-block { padding: 80px 0; }
    .content-section { padding: 72px 0; }
    .page-hero { padding: 88px 0 64px; }

    /* Header mobil */
    .header-inner {
        display: flex; align-items: center; justify-content: space-between;
        gap: 10px; padding: 0;
    }
    .logo { flex: 1 1 auto; min-width: 0; }
    .logo img { height: 40px; max-width: 160px; object-fit: contain; object-position: left; }
    .desktop-nav { display: none !important; }
    .header-lang-desktop { display: none; }
    .header-lang-mobile { display: flex; align-items: center; flex-shrink: 0; }
    .header-cta { display: none; }
    .header-actions {
        display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    }
    .header-actions .lang-switch--compact { flex-shrink: 0; }
    .header-actions .lang-switch--compact .lang-switch__btn {
        min-width: 36px; min-height: 36px; padding: 8px 10px; font-size: 13px;
    }
    .hamburger { display: flex; width: 46px; height: 46px; }
    .site-header {
        background: #ffffff;
        box-shadow: 0 2px 16px rgba(13,13,13,0.06);
    }

    /* Hero tablet */
    .hero-glass { padding: 36px 32px; max-width: 100%; }
    .hero-glass__title { font-size: clamp(34px, 6vw, 48px); }
    .hero-glass__text { font-size: 16px; }
    .hero-premium__inner { padding-bottom: 88px; }
    .hero-premium__nav { width: 44px; height: 44px; font-size: 14px; }
    .hero-premium__nav--prev { left: 16px; }
    .hero-premium__nav--next { right: 16px; }
    .hero-stats__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 0; }

    /* Gridler */
    .about-premium__grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr 1fr; }
    .projects-premium__grid { grid-template-columns: repeat(2, 1fr); }
    .services-luxury__stats { grid-template-columns: repeat(2, 1fr); padding: 36px 28px; }
    .services-luxury__stat { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 20px; }
    .services-luxury__stat:nth-child(2),
    .services-luxury__stat:nth-last-child(-n+2) { border-bottom: none; }
    .team-premium__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .team-stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .team-cta__inner { flex-direction: column; text-align: center; padding: 40px 32px; }
    .team-cta__actions { justify-content: center; }
    .team-modal__grid { grid-template-columns: 1fr; }
    .team-modal__photo img { min-height: 260px; }

    /* Quote & contact */
    .quote-premium { flex-direction: column; min-height: auto; }
    .quote-premium__visual { position: relative; width: 100%; height: 260px; }
    .quote-premium__visual::after { background: linear-gradient(180deg, transparent, var(--white)); }
    .quote-premium__wrap { width: 100%; margin: 0; padding: 48px 0 80px; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-premium__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* --- 768px Tablet dikey / mobil hero --- */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .container { padding: 0 20px; }
    .section-block { padding: 64px 0; }
    .content-section { padding: 56px 0; }
    .section-head { margin-bottom: 40px; }

    /* Hero mobil — tam ekran deneyimi */
    .hero-premium {
        height: auto;
        min-height: calc(100vh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .hero-premium__viewport {
        flex: 1 1 auto;
        min-height: calc(100vh - var(--header-h) - 72px);
        min-height: calc(100dvh - var(--header-h) - 72px);
        height: auto;
    }
    .hero-premium__slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-premium__nav { display: none; }
    .hero-premium__shade {
        background: linear-gradient(
            180deg,
            rgba(13,13,13,0.15) 0%,
            rgba(13,13,13,0.05) 40%,
            rgba(255,255,255,0.25) 100%
        );
    }
    .hero-premium__bg {
        background-position: center center;
        background-size: cover;
    }
    .hero-premium__inner {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 16px 20px;
        width: 100%;
        max-width: 100%;
    }
    .hero-glass {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
        padding: 28px 24px;
        border-radius: 24px;
        background: rgba(255,255,255,0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.9);
        box-shadow: 0 12px 40px rgba(13,13,13,0.1);
    }
    .hero-glass__label {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 16px;
    }
    .hero-glass__title {
        font-size: 38px;
        line-height: 1.08;
        margin-bottom: 16px;
    }
    .hero-glass__text {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 24px;
        max-width: 100%;
    }
    .hero-glass__btn,
    .hero-glass .btn-lg {
        width: 100%;
        font-size: 15px;
        min-height: 56px;
        height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero-premium__controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        flex-shrink: 0;
        padding: 12px 0 20px;
        margin: 0;
        z-index: 6;
    }
    .hero-premium__dots {
        justify-content: center;
        gap: 10px;
        padding: 0;
    }
    .hero-stats {
        display: none;
    }

    .services-luxury { padding: 72px 0 56px; }
    .services-luxury__bento { grid-template-columns: 1fr; gap: 20px; }
    .service-lux-card { height: auto; min-height: 0; }
    .service-lux-card__visual { flex: 0 0 200px; min-height: 200px; max-height: 240px; }
    .service-lux-card__hover-btn { opacity: 1; transform: none; }
    .service-lux-card__cta { display: inline-flex; }
    .services-luxury__stats { grid-template-columns: 1fr 1fr; padding: 28px 20px; }

    .projects-premium__grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; font-size: 16px; }
    .quote-premium__form { padding: 28px 20px; }
    .quote-form .btn-primary, .quote-premium__form .btn-primary { width: 100%; }

    .footer-premium__top { grid-template-columns: 1fr; padding: 56px 0 36px; gap: 28px; }
    .footer-premium__brand p { max-width: 100%; }
    .footer-premium__bottom-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-map-wrap iframe { height: 200px; }

    .blog-magazine__item a { flex-direction: column; }
    .blog-magazine__thumb { width: 100%; height: 160px; }
    .blog-share { flex-wrap: wrap; gap: 12px; }
    .detail-meta { flex-direction: column; gap: 12px; }

    .team-hero { padding: 88px 0 64px; text-align: center; }
    .team-hero__inner { max-width: 100%; }
    .team-hero__visual { display: none; }
    .team-premium__grid { grid-template-columns: 1fr; }
    .team-premium__media { height: 280px; }
    .team-premium__social { opacity: 1; transform: none; }
    .team-modal__box { max-height: 92vh; margin: 0 12px; }
    .team-modal__info { padding: 28px 20px; }

    .page-hero h1 { font-size: clamp(30px, 7vw, 40px); }
    .references-page-grid { grid-template-columns: repeat(2, 1fr); }

    .whatsapp-premium { bottom: 88px; left: 16px; width: 52px; height: 52px; font-size: 24px; z-index: 890; }
    .back-to-top { width: 44px; height: 44px; }
}

/* --- 576px Büyük telefon --- */
@media (max-width: 576px) {
    :root { --header-h: 88px; }
    .container { padding: 0 16px; }
    .section-block { padding: 52px 0; }
    .logo img { height: 36px; max-width: 140px; }

    .hero-premium__dot.is-active { width: 28px; }

    .service-lux-card__visual { flex: 0 0 180px; min-height: 180px; }
    .services-luxury__stats { grid-template-columns: 1fr; }
    .services-luxury__stat { border-bottom: 1px solid rgba(0,0,0,0.06); }
    .services-luxury__stat:last-child { border-bottom: none; }

    .team-stats-band__grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px 0; }
    .team-cta__actions { flex-direction: column; width: 100%; }
    .team-cta__actions .btn { width: 100%; }
    .team-cta__inner { padding: 32px 20px; }

    .modal-success__box { margin: 0 12px; padding: 36px 24px; }
    .references-page-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    .project-filters {
        flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: 12px; margin-bottom: 32px;
        scrollbar-width: none;
    }
    .project-filters::-webkit-scrollbar { display: none; }
    .project-filter-btn { flex-shrink: 0; }

    .pb-hero__grid { min-height: 280px; padding: 32px 24px; }
    .pb-text-image__grid { grid-template-columns: 1fr; gap: 28px; }
    .pb-text-image__grid.is-reverse { direction: ltr; }
}

/* --- 430px / 414px — mobil header dil seçici --- */
@media (max-width: 430px) {
    .header-inner { gap: 8px; }
    .logo img { height: 36px; max-width: 130px; }
    .header-actions { gap: 6px; }
    .header-actions .lang-switch--compact .lang-switch__btn {
        min-width: 34px; min-height: 34px; padding: 7px 9px; font-size: 12px;
    }
    .hamburger { width: 44px; height: 44px; }
}

@media (max-width: 414px) {
    :root { --header-h: 84px; }
    .header-inner { gap: 6px; }
    .logo img { height: 34px; max-width: 118px; }
    .header-actions .lang-switch--compact { padding: 2px; }
    .header-actions .lang-switch--compact .lang-switch__btn {
        min-width: 32px; min-height: 32px; padding: 6px 8px; font-size: 11px;
    }
    .hamburger { width: 42px; height: 42px; gap: 5px; }
    .hamburger span { width: 20px; }
}

@media (max-width: 390px) {
    .logo img { max-width: 108px; height: 32px; }
    .header-actions { gap: 5px; }
    .hero-glass { padding: 24px 20px; }
    .hero-glass__title { font-size: 34px; line-height: 1.08; }
    .hero-glass__text { font-size: 15px; }
}

@media (max-width: 360px) {
    .logo img { max-width: 96px; height: 30px; }
    .header-actions .lang-switch--compact .lang-switch__btn {
        min-width: 30px; min-height: 30px; padding: 5px 7px; font-size: 11px;
    }
    .hamburger { width: 40px; height: 40px; }
}

/* --- 420px Küçük mobil --- */
@media (max-width: 420px) {

    .btn { padding: 12px 22px; font-size: 12px; }
    .section-title { font-size: clamp(26px, 7vw, 32px); }
    .team-stats-band__grid { grid-template-columns: 1fr; }
    .team-premium__media { height: 240px; }

    .whatsapp-premium { bottom: 80px; left: 12px; width: 48px; height: 48px; font-size: 22px; }
    .site-topbar__inner { padding: 10px 36px 10px 12px; font-size: 12px; }
    .premium-popup { padding: 12px; }
    .premium-popup__box { max-width: 92vw; border-radius: 14px; }
    .premium-popup__body { padding: 20px 18px 24px; }
    .premium-popup__close { width: 40px; height: 40px; top: 8px; right: 8px; }
}
