/* =========================================================
   YKG METAL - ÜRETİM DETAY ŞABLONU
   5 üretim sayfasının (Abkant Press Büküm, Soğuk Şekillendirme,
   Talaşlı İmalat, Kaynak, Montaj) TAMAMI bu tek CSS dosyasını
   paylaşır. Sayfaya özel metin/görsel HTML içinde kalır, bu
   dosyaya sayfa adı/içeriği yazılmaz.
   Header/footer bu dosyada değildir. Hero için style.css'teki
   paylaşılan .page-hero bileşeni kullanılır.
========================================================= */


/* =========================================================
   GİRİŞ BÖLÜMÜ (başlık/paragraf + spesifikasyon tablosu)
========================================================= */

.production-intro {
    background: var(--color-white);
    padding: 80px 0;
}

.production-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 60px;
    align-items: start;
}

.production-intro__title {
    margin: 0 0 22px;
    color: var(--color-text-dark);
    font-size: 50px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
    /* Güvenlik önlemi: 575px altında grid öğesi (min-width:0) ve küçültülmüş
       font-size'la hiçbir kelime kırılmıyor; yine de ileride daha uzun bir
       kelime girilirse (4 hizmetin başlığı henüz yer tutucu) sayfanın
       yatay taşması yerine kelime kırılsın. */
    overflow-wrap: break-word;
}

.production-intro__title span {
    color: var(--color-primary);
}

.production-intro__text {
    max-width: 695px;
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.8;
}

.production-intro__text:last-of-type {
    margin-bottom: 0;
}


/* =========================================================
   TEKNİK SPESİFİKASYONLAR
========================================================= */

.spec-table-wrap {
    background: var(--color-light-bg);
    border: 1px solid var(--color-border-2);
}

.spec-table-wrap__label {
    display: block;
    padding: 16px 20px 0;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.spec-table tr {
    border-top: 1px solid var(--color-border-2);
}

.spec-table th,
.spec-table td {
    padding: 13px 20px;
    text-align: left;
    font-weight: 400;
}

.spec-table th {
    color: var(--color-text-strong);
    font-size: 14px;
    font-weight: 500;
}

.spec-table td {
    color: var(--color-text-dark);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Son satırın değeri amber */
.spec-table tr:last-child td {
    color: var(--color-primary);
}


/* =========================================================
   MAKİNE PARKURU
========================================================= */

.machine-park {
    background: var(--color-gray-bg);
    padding: 80px 0;
}

.machine-park__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.machine-park__title {
    margin: 0 0 40px;
    color: var(--color-text-dark);
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.machine-park__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
    gap: 50px;
    align-items: center;
}

.machine-park__figure {
    margin: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border-2);
    padding: 8px;
}

.machine-park__figure img {
    display: block;
    width: 100%;
    height: auto;
    /* Beş hizmet aynı şablonu kullanır; farklı oranda yüklenen görsel alanı
       uzatmasın. Oran önerilen ölçüdür (1020×447); Abkant'ın görseli zaten bu
       oranda olduğundan onda değişiklik yok, diğerleri ortadan kırpılır. */
    aspect-ratio: 1020 / 447;
    object-fit: cover;
    /* filter: grayscale(100%); */
}


.machine-park__features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.machine-park__feature {
    /* display: flex; */
    gap: 16px;
    align-items: flex-start;
}

.machine-park__feature-icon {
    flex: 0 0 auto;
    color: var(--color-primary);
}

.machine-park__feature-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.machine-park__feature h3 {
    margin: 0 0 6px;
    color: var(--color-text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.machine-park__feature p {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   MAKİNE SLIDER
   .machine-park__grid'in SOL sütunudur: her slayt bir görsel ve altında
   o slayta özel başlık + açıklamadır. Sağdaki özellikler kaymaz.
   Tek slaytta kontroller basılmaz.
========================================================= */

.machine-slider {
    outline: none;
    /* Grid hücresi: tek sütuna düşünce (991px) içerik genişliğiyle taşmasın. */
    min-width: 0;
}

.machine-slider__viewport {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.machine-slider.is-single .machine-slider__viewport {
    cursor: auto;
    user-select: auto;
    -webkit-user-select: auto;
}

.machine-slider.is-dragging .machine-slider__viewport {
    cursor: grabbing;
}

.machine-slider__track {
    display: flex;
    transform: translate3d(calc(var(--ms-index, 0) * -100% + var(--ms-drag, 0px)), 0, 0);
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.machine-slider.is-dragging .machine-slider__track {
    transition: none;
}

.machine-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.machine-slider__text {
    padding: 22px 4px 0;
}

.machine-slider__title {
    margin: 0 0 8px;
    color: var(--color-text-dark);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.machine-slider__desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.65;
}

.machine-slider__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
}

.machine-slider__meta {
    display: flex;
    align-items: center;
    gap: 22px;
}

.machine-slider__counter {
    color: var(--color-text-dark);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* style.css'teki genel `span { color: primary }` sayacın rakamını boyamasın. */
.machine-slider__counter span {
    color: inherit;
}

.machine-slider__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.machine-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--color-border-2);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}

.machine-slider__dot:hover {
    background: var(--color-muted);
}

.machine-slider__dot.is-active {
    width: 28px;
    background: var(--color-primary);
}

.machine-slider__arrows {
    display: flex;
    gap: 10px;
}

.machine-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--color-border-2);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .25s ease;
}

.machine-slider__arrow:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.machine-slider__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.machine-slider__dot:focus-visible,
.machine-slider__arrow:focus-visible,
.machine-slider:focus-visible .machine-slider__viewport {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.machine-slider__progress {
    margin-top: 24px;
    height: 2px;
    background: var(--color-border-2);
    overflow: hidden;
}

.machine-slider__progress > span {
    display: block;
    height: 100%;
    background: var(--color-primary);
    transform: scaleX(var(--ms-progress, 0));
    transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {

    .machine-slider__track,
    .machine-slider__dot,
    .machine-slider__arrow {
        transition: none;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .production-intro,
    .machine-park {
        padding: 60px 0;
    }

    .production-intro__grid,
    .machine-park__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Tek sütuna düşünce grid öğesinin varsayılan min-width:auto'su, içindeki
       en uzun kelimeden küçülmesini engelleyip sayfayı yatay taşırabilir
       (bkz. .production-intro__title taşması, 320px). min-width:0 bunu kapatır;
       992px ve üstünde zaten minmax(0,1fr) aynı işi görüyor, burada gerek yok. */
    .production-intro__grid > div:first-child {
        min-width: 0;
    }

    .spec-table th,
    .spec-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 575px) {

    .production-intro,
    .machine-park {
        padding: 50px 0;
    }

    .production-intro__title {
        font-size: 38px;
    }

    .production-intro__text {
        font-size: 15px;
    }

    .spec-table th,
    .spec-table td {
        padding: 11px 14px;
        font-size: 13px;
    }

    .machine-park__features {
        gap: 24px;
    }

    .machine-slider__title {
        font-size: 19px;
    }

    .machine-slider__desc {
        font-size: 15px;
    }

    .machine-slider__controls {
        margin-top: 28px;
    }
}