/* ==========================================================================
   TS Doğalgaz — Responsive Medya Sorguları — v2
   ========================================================================== */

/* ─── 1200px altı ─── */
@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .service-card--large { grid-template-columns: 250px 1fr; }
}

/* ─── Tablet (1024px altı) ─── */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .nav { display: none; }
    .mobile-toggle { display: flex; }

    .header__right {
        gap: 10px;
    }

    .header__phone span { display: none; }
    .header__phone { display: none; }
    .header__whatsapp { display: none; }
    .header__cta { display: none; }

    .topbar__left { gap: 14px; }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-service {
        grid-template-columns: 1fr;
    }

    .featured-service:nth-child(even) {
        direction: ltr;
    }

    .featured-service__img {
        min-height: 220px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-section:nth-child(even) {
        direction: ltr;
    }

    .mission-vision {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-action-bar {
        grid-template-columns: 1fr;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .service-card--large {
        grid-template-columns: 1fr;
    }

    .service-card--large .service-card__img {
        min-height: 200px;
    }
}

/* ─── Mobil Büyük (768px altı) ─── */
@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }

    .topbar { display: none; }

    .header {
        height: 60px;
    }

    .logo__icon {
        width: 34px;
        height: 34px;
    }

    .logo__name {
        font-size: 1.1rem;
    }

    .logo__tagline {
        font-size: 0.55rem;
    }

    .hero-slider {
        height: 80vh;
        min-height: 400px;
        max-height: 550px;
    }

    .hero-slider__title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .hero-slider__desc {
        font-size: 0.88rem;
    }

    .hero-slider__buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-slider__buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-slider__arrows {
        display: none;
    }

    .hero-slider__content {
        transform: translateY(-60%);
    }

    .hero-slider__dots {
        bottom: 20px;
    }

    .hero-slider__dot {
        width: 30px;
        height: 3px;
    }

    .hero-slider__dot.active {
        width: 45px;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: 1fr; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero {
        padding: 70px 0 36px;
    }

    .page-hero__title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .fixed-contact {
        position: fixed;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        width: 100%;
        gap: 0;
    }

    .fixed-contact__btn {
        flex: 1;
        justify-content: center;
        width: auto;
        padding: 14px;
    }

    .fixed-contact__btn:hover {
        width: auto;
    }

    .fixed-contact__btn span {
        opacity: 1;
        transform: none;
    }

    body {
        padding-bottom: 48px;
    }

    .about-preview__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section__title {
        font-size: 1.3rem;
    }

    .blog-detail__cover {
        height: 220px;
    }

    .lightbox__main {
        max-width: 92%;
        max-height: 60vh;
    }

    .lightbox__main img,
    .lightbox__main video {
        max-height: 60vh;
    }

    .lightbox__nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

/* ─── Mobil Küçük (480px altı) ─── */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 36px 0;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.05rem; }

    .hero-slider {
        height: 85vh;
        min-height: 380px;
        max-height: 500px;
    }

    .hero-slider__badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero-slider__title {
        font-size: 1.3rem;
    }

    .hero-slider__desc {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.82rem;
    }

    .btn--lg {
        padding: 13px 24px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .about-preview__stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .stat-box__number {
        font-size: 1.5rem;
    }

    .stat-box__label {
        font-size: 0.65rem;
    }

    .accordion__header {
        font-size: 0.88rem;
        padding: 14px 16px;
    }

    .service-detail__section h2 {
        font-size: 1.15rem;
    }

    .service-faq__question {
        font-size: 0.88rem;
        padding: 14px 16px;
    }

    .service-faq {
        padding: 18px;
    }

    .contact-form-box {
        padding: 20px;
    }

    .contact-info-box {
        padding: 22px;
    }

    .lightbox__thumbs {
        display: none;
    }
}

/* ─── Yatay Taşma Önleme (global) ─── */
body {
    overflow-x: hidden;
}

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