/* Studio Detail Page - Responsive Styles */

/* Performans: below-the-fold bölümlerde layout/paint maliyetini azalt */
#about, #expertise, #gallery, #piercing, #faq, #location, #contact {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

/* Introduction Section - 4 Feature Badges */
@media (max-width: 768px) {
    .intro-badges {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .intro-badges>div {
        font-size: 0.8125rem !important;
    }

    .intro-badges svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 480px) {
    .intro-badges {
        grid-template-columns: 1fr !important;
    }
}

/* Hygiene & Safety Section */
@media (max-width: 1024px) {
    .hygiene-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .hygiene-grid {
        grid-template-columns: 1fr !important;
    }

    .hygiene-badges {
        grid-template-columns: 1fr !important;
    }
}

/* Expertise Section - Tattoo Styles */
@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobilde uzmanlık kutuları hep 2'şer sütun (alt alta) */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .expertise-grid > div {
        padding: 16px 12px !important;
    }
    .expertise-grid h3 {
        font-size: 0.9rem !important;
    }
    .expertise-grid p {
        font-size: 0.8rem !important;
    }
}

/* Piercing gallery grid */
.piercing-img-wrapper:hover img {
    transform: scale(1.05);
}
@media (max-width: 992px) {
    .piercing-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .piercing-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* 3-Step Process: mobilde tek sırada, kompakt */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 8px !important;
        padding: 16px 12px !important;
        margin-bottom: 32px !important;
    }
    .steps-container > div {
        flex: 1;
        min-width: 0;
    }
    .steps-container > svg {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        margin: 0 2px;
    }
    .steps-container h4 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }
    .steps-container p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    .steps-container > div > div:first-child {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.875rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .steps-container {
        gap: 4px !important;
        padding: 12px 8px !important;
    }
    .steps-container > svg {
        width: 12px;
        height: 12px;
    }
    .steps-container h4 {
        font-size: 0.75rem !important;
    }
    .steps-container p {
        display: none;
    }
}

/* Address & Hours Section + Harita mobil uyum */
@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .studio-map-wrap {
        height: 280px !important;
        min-height: 280px;
        width: 100%;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }
    .studio-map-wrap iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        border: 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .studio-map-wrap {
        height: 240px !important;
        min-height: 240px;
    }
    #location .address-grid {
        gap: 28px !important;
    }
    #location .section-header {
        margin-bottom: 40px !important;
    }
}

/* & karakterinin doğru görünmesi (yazı stili) */
.hero-intro-text,
.intro-paragraph-text {
    font-feature-settings: normal;
    text-rendering: optimizeLegibility;
}

/* General Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .container {
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
}

/* ===== Contact Form - mobil uyum + kaydırınca form belli olsun ===== */
.section-contact-form {
    border-top: 3px solid rgba(197, 160, 89, 0.6);
    position: relative;
}
.section-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 768px) {
    .section-contact-form {
        padding: 48px 0 56px !important;
    }
    .container--form {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .contact-form-inner {
        max-width: 100% !important;
    }
    .contact-form-head {
        margin-bottom: 28px !important;
    }
    .contact-form-head .section-title {
        font-size: 1.5rem !important;
    }
    .contact-form-box {
        padding: 28px 20px !important;
        border-radius: 12px;
    }
    .section-contact-form .steps-container {
        padding: 20px 12px !important;
        margin-bottom: 28px !important;
    }
}

@media (max-width: 480px) {
    .container--form {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .contact-form-box {
        padding: 24px 16px !important;
    }
    .section-contact-form .steps-container {
        padding: 16px 8px !important;
    }
}

/* ===== Footer mobil: Bağlantılar + Hizmetler yan yana, linkler aynı hizada ===== */
@media (max-width: 768px) {
    .footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 28px 24px !important;
        text-align: left !important;
        align-items: start !important;
    }
    .footer .footer-grid .footer-brand {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    .footer .footer-grid .footer-brand .brand-desc {
        margin: 0 auto 24px !important;
    }
    .footer .footer-grid .footer-social {
        justify-content: center !important;
    }
    .footer .footer-grid .footer-links-col:nth-child(2),
    .footer .footer-grid .footer-links-col:nth-child(3) {
        min-width: 0;
    }
    .footer .footer-grid .footer-links-col:nth-child(2) .footer-title,
    .footer .footer-grid .footer-links-col:nth-child(3) .footer-title {
        text-align: left;
    }
    .footer .footer-grid .footer-links-col:nth-child(2) .footer-title::after,
    .footer .footer-grid .footer-links-col:nth-child(3) .footer-title::after {
        left: 0;
        transform: none;
    }
    .footer .footer-grid .footer-links-col .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .footer .footer-grid .footer-links-col .footer-links li {
        width: 100%;
    }
    .footer .footer-grid .footer-links-col:nth-child(4) {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    .footer .footer-grid .footer-links-col:nth-child(4) .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}