/* =========================================
   HİZMETLERİMİZ SAYFASI (hizmetlerimiz.html) STİLLERİ
========================================= */

.services-page {
    background-color: var(--acik-gri);
    padding-bottom: 84px;
}

/* Üst Banner Alanı */
.services-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 12%;
    text-align: center;
    margin-bottom: 56px;
    color: var(--beyaz);
    background:
        radial-gradient(circle at 82% 18%, rgba(104, 180, 70, 0.26), transparent 25%),
        linear-gradient(120deg, #102f3a 0%, #087f9d 100%);
}

.services-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.services-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #d7e8eb;
    font-size: 16px;
}

/* Ana Konteyner */
.services-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mavi);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

/* =========================================
   1. BÖLÜM: SIDEBAR + DİNAMİK İÇERİK PANELİ
========================================= */
.service-explorer {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Sol Sidebar */
.service-sidebar {
    position: sticky;
    top: 105px;
    background-color: var(--beyaz);
    border: 1px solid var(--kenarlik);
    border-top: 4px solid var(--koyu-mavi);
    border-radius: 16px;
    box-shadow: var(--golge);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--kenarlik);
    background: linear-gradient(180deg, #f9fcfc 0%, #ffffff 100%);
}

.sidebar-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--mavi);
    margin-bottom: 4px;
}

.sidebar-header h2 {
    color: var(--koyu-mavi);
    font-size: 18px;
    font-weight: 700;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
    max-height: 540px;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #cbd8dc;
    border-radius: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--metin-rengi);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sidebar-item:hover {
    background-color: #f0f7f8;
    color: var(--mavi);
}

.sidebar-item.active {
    background: linear-gradient(135deg, #102f3a 0%, #087f9d 100%);
    color: var(--beyaz);
    box-shadow: 0 6px 16px rgba(8, 127, 157, 0.22);
}

.sidebar-item.is-featured-item:not(.active) {
    background-color: #edf7f9;
    border-color: rgba(8, 127, 157, 0.25);
    color: var(--koyu-mavi);
    font-weight: 700;
}

.sidebar-item-pill {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background-color: var(--yesil);
    color: var(--beyaz);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* Sağ Detay Paneli */
.service-detail-panel {
    background-color: var(--beyaz);
    border: 1px solid var(--kenarlik);
    border-top: 4px solid var(--mavi);
    border-radius: 16px;
    box-shadow: var(--golge);
    overflow: hidden;
}

.service-detail-panel.is-featured-panel {
    border-top-color: var(--yesil);
}

.service-detail-panel.fade-in {
    animation: panelFade 0.28s ease;
}

@keyframes panelFade {
    from {
        opacity: 0.65;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1600x600 (8:3) Görsel Alanı - Masaüstü ve Mobilde Tam Sığar ve Net Kalır */
.detail-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 3;
    background-color: #eef5f7;
    overflow: hidden;
    border-bottom: 1px solid var(--kenarlik);
}

.detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.03) saturate(1.04);
}

/* Marka Logosu Modu ("isLogoImage": true ise ortalı gösterir) */
.detail-image-wrapper.is-logo-mode {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, #ffffff 35%, #e5f3f6 100%);
    padding: 24px;
}

.detail-image-wrapper.is-logo-mode img {
    width: auto;
    height: auto;
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: none;
}

.detail-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 47, 58, 0.92), rgba(8, 127, 157, 0.92));
    backdrop-filter: blur(4px);
    color: var(--beyaz);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 16px rgba(16, 47, 58, 0.24);
}

.detail-body {
    padding: 34px 38px 38px;
}

.detail-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mavi);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.detail-body h2 {
    color: var(--koyu-mavi);
    font-size: clamp(23px, 2.6vw, 30px);
    line-height: 1.25;
    margin-bottom: 14px;
}

.detail-desc {
    color: var(--ikincil-metin);
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.detail-features-box {
    background-color: #f6fafb;
    border: 1px solid var(--kenarlik);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 26px;
}

.detail-features-box h3 {
    color: var(--koyu-mavi);
    font-size: 15px;
    margin-bottom: 12px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-btn-primary {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    background-color: var(--yesil);
    color: var(--beyaz);
    font-size: 14.5px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-btn-primary:hover {
    background-color: #589e39;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(104, 180, 70, 0.28);
}

/* =========================================
   2. BÖLÜM: MARKA LOGOLARI GRID
========================================= */
.service-card-full,
.service-card,
.service-card-small {
    background-color: var(--beyaz);
    border: 1px solid var(--kenarlik);
    border-top: 4px solid var(--yesil);
    border-radius: 16px;
    box-shadow: var(--golge);
    padding: 38px;
}

.service-card {
    border-top-color: var(--mavi);
    display: flex;
    align-items: center;
    gap: 40px;
}

.service-header-area {
    margin-bottom: 28px;
}

.service-header-area h2,
.service-card h2 {
    color: var(--koyu-mavi);
    font-size: clamp(22px, 2.5vw, 27px);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-intro {
    color: var(--ikincil-metin);
    font-size: 15px;
    line-height: 1.7;
}

.service-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 18px;
}

.brand-box {
    background-color: #f7fafb;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 92px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid var(--kenarlik);
}

.brand-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.25s ease;
}

.brand-box:hover {
    transform: translateY(-4px);
    background-color: var(--beyaz);
    box-shadow: 0 10px 22px rgba(18, 55, 68, 0.08);
    border-color: var(--mavi);
}

.brand-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Inovance Yetkili Servisi Kutusunu Grid İçinde Belirgin ve Büyük Tut */
.brand-box.featured-brand-box {
    background: linear-gradient(135deg, #ffffff, #e5f4f8);
    border: 2px solid var(--mavi);
    box-shadow: 0 6px 18px rgba(8, 127, 157, 0.14);
}

.brand-box.featured-brand-box img {
    filter: grayscale(0%);
    opacity: 1;
    width: 130px;
    max-width: none;
    max-height: none;
    transform: scale(1.75);
}

/* =========================================
   3. & 4. BÖLÜM: TEKSTİL, CNC VE CPU KARTLARI
========================================= */
.service-content {
    flex: 1.2;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px 16px;
    margin-top: 14px;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    color: var(--metin-rengi);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
}

.service-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--yesil);
    font-weight: 700;
}

.service-image {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(18, 55, 68, 0.1);
    image-rendering: -webkit-optimize-contrast;
}

.services-grid-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-card-small h3 {
    color: var(--koyu-mavi);
    font-size: 21px;
    margin-bottom: 16px;
    font-weight: 700;
}

.cpu-card-with-img {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.small-card-image {
    margin-top: 22px;
    width: 100%;
}

.small-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(18, 55, 68, 0.08);
    image-rendering: -webkit-optimize-contrast;
}

/* =========================================
   MOBİL & TABLET UYUM (TÜM RESİMLER SIĞAR & NET)
========================================= */
@media (max-width: 960px) {
    .service-explorer {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    /* Mobilde yatay kaydırma yerine 2 sütunlu temiz buton gridi */
    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
        padding: 12px;
        gap: 8px;
    }

    .sidebar-item {
        width: 100%;
        white-space: normal;
        font-size: 13px;
        padding: 10px 12px;
        border: 1px solid var(--kenarlik);
        line-height: 1.35;
    }

    /* Inovance Yetkili Servisi butonu mobilde tam genişlik en üstte */
    .sidebar-item.is-featured-item {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .services-hero {
        padding: 54px 24px;
        margin-bottom: 34px;
    }

    .services-container {
        gap: 24px;
        padding: 0 18px;
    }

    .service-card {
        flex-direction: column;
        padding: 26px;
        gap: 22px;
    }

    .service-image {
        width: 100%;
    }

    .services-grid-dual {
        grid-template-columns: 1fr;
    }

    .service-card-full,
    .service-card-small,
    .detail-body {
        padding: 24px;
    }

    /* Üst panel görselleri mobilde 8:3 oranını koruyarak hiç kesilmeden tam sığar */
    .detail-image-wrapper {
        width: 100%;
        aspect-ratio: 8 / 3;
        min-height: 0;
        max-height: none;
    }

    .detail-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .detail-image-wrapper.is-logo-mode {
        padding: 18px;
    }

    .detail-image-wrapper.is-logo-mode img {
        max-width: 65%;
        max-height: 75%;
    }

    /* Mobilde marka logoları 2'li yan yana */
    .service-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-box {
        height: 82px;
        padding: 12px;
    }

    .brand-box.featured-brand-box img {
        width: 115px;
        transform: scale(1.65);
    }
}

@media (max-width: 560px) {

    /* Küçük telefonlarda 1600x600 görseller kenarlardan hiç kırpılmadan tam sığar */
    .detail-image-wrapper {
        aspect-ratio: 8 / 3;
    }

    .detail-badge {
        top: 8px;
        right: 8px;
        padding: 3px 9px;
        font-size: 9px;
    }

    .service-image img,
    .small-card-image img {
        aspect-ratio: 16 / 10;
    }

    .detail-btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}