/*
 * Hizmetler, referans projeler ve özel proje talep formu stilleri.
 * Renkler --zy-* tema değişkenlerinden gelir; sabit renk yazılmaz.
 */

/* ================================================================ hizmet kartları */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius);
    background: var(--zy-surface);
    box-shadow: var(--zy-shadow);
    color: var(--zy-text);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--zy-primary-rgb), .45);
    box-shadow: 0 24px 50px -26px rgba(var(--zy-primary-rgb), .45);
    color: var(--zy-text);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    border-radius: var(--zy-radius-sm);
    background: linear-gradient(135deg, rgba(var(--zy-primary-rgb), .16), rgba(var(--zy-accent-rgb), .16));
    color: var(--zy-primary);
}

.service-icon-lg {
    width: 68px;
    height: 68px;
    margin: 0;
}

.service-icon-lg .icon {
    width: 1.8rem;
    height: 1.8rem;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: .5rem;
}

.service-card p {
    color: var(--zy-muted);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

.service-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--zy-border);
    font-size: .9rem;
}

.service-price {
    color: var(--zy-text);
    font-weight: 700;
}

.service-more {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    margin-inline-start: auto;
    color: var(--zy-primary);
    font-weight: 650;
}

.service-more .icon {
    transition: transform .2s ease;
}

.service-card:hover .service-more .icon {
    transform: translateX(3px);
}

[dir="rtl"] .service-more .icon,
[dir="rtl"] .project-card .more .icon,
[dir="rtl"] .pr-nav .icon,
[dir="rtl"] .pr-side-link .icon:last-child {
    transform: scaleX(-1);
}

/* hizmet ayrıntısı */

.service-hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.service-hero h1 {
    margin-bottom: .35rem;
}

.service-hero p {
    margin: 0;
}

.service-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius);
}

.service-box {
    position: sticky;
    top: 90px;
}

.service-box-row {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--zy-border);
}

.service-box-row small {
    color: var(--zy-muted);
}

.service-box-price {
    font-family: var(--zy-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--zy-primary);
}

/* çalışma süreci */

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.5rem;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius);
    background: var(--zy-surface);
}

.process-steps li > .icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--zy-primary);
}

.process-num {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1.1rem;
    font-family: var(--zy-font-heading);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
    color: rgba(var(--zy-primary-rgb), .18);
}

/* ================================================================ proje kartları */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius);
    background: var(--zy-surface);
    box-shadow: var(--zy-shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--zy-primary-rgb), .45);
    box-shadow: 0 24px 50px -26px rgba(var(--zy-primary-rgb), .45);
}

.project-card .cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--zy-surface-alt);
}

.project-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card:hover .cover img {
    transform: scale(1.035);
}

.project-card .badges {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.project-card .badges span {
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.project-card .badges .is-accent {
    background: var(--zy-accent);
    color: #111;
}

.project-card .body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.2rem;
}

.project-meta {
    margin-bottom: .35rem;
    color: var(--zy-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.3;
    margin-bottom: .45rem;
}

.project-card h3 a {
    color: var(--zy-text);
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--zy-primary);
}

.project-card p {
    color: var(--zy-muted);
    font-size: .93rem;
    margin-bottom: 1rem;
}

.project-card .foot {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: .88rem;
}

.project-card .client {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    color: var(--zy-muted);
}

.project-card .more {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    margin-inline-start: auto;
    font-weight: 650;
    text-decoration: none;
}

/* filtreler */

.project-filters {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-pills a {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    padding: .4rem .9rem;
    border: 1px solid var(--zy-border);
    border-radius: 999px;
    background: var(--zy-surface);
    color: var(--zy-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.filter-pills a small {
    color: var(--zy-muted);
    font-weight: 500;
}

.filter-pills a:hover {
    border-color: rgba(var(--zy-primary-rgb), .5);
}

.filter-pills a.is-active {
    border-color: var(--zy-primary);
    background: var(--zy-primary);
    color: var(--zy-primary-text);
}

.filter-pills a.is-active small {
    color: inherit;
    opacity: .8;
}

/* ================================================================ proje ayrıntısı */

.project-cover {
    overflow: hidden;
    border: 1px solid var(--zy-border);
    border-radius: calc(var(--zy-radius) + 6px);
    background: var(--zy-surface-alt);
    box-shadow: var(--zy-shadow);
}

.project-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(var(--zy-primary-rgb), .2);
    border-radius: var(--zy-radius);
    background: linear-gradient(135deg, rgba(var(--zy-primary-rgb), .12), rgba(var(--zy-accent-rgb), .1));
}

.result-stat strong {
    font-family: var(--zy-font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--zy-primary);
}

.result-stat span {
    color: var(--zy-text);
    font-size: .92rem;
    font-weight: 550;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .9rem;
}

.project-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
}

.project-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .3s ease;
}

.project-gallery .zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
}

.project-gallery a:hover img,
.project-gallery a:focus-visible img {
    transform: scale(1.05);
}

.project-gallery a:hover .zoom,
.project-gallery a:focus-visible .zoom {
    opacity: 1;
}

.project-quote {
    position: relative;
    margin: 2.5rem 0 0;
    padding: 1.75rem 1.75rem 1.5rem;
    border-inline-start: 4px solid var(--zy-primary);
    border-radius: var(--zy-radius);
    background: var(--zy-surface-alt);
}

.project-quote > .icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: .5rem;
    color: var(--zy-primary);
    opacity: .6;
}

.project-quote blockquote {
    margin: 0 0 .75rem;
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.6;
}

.project-quote figcaption {
    color: var(--zy-muted);
    font-weight: 650;
}

.project-quote figcaption::before {
    content: "— ";
}

.project-facts {
    position: sticky;
    top: 90px;
}

.project-product .product-card {
    height: auto;
}

/* büyütme penceresi (Bootstrap modal) */

.project-lightbox .modal-content {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.project-lightbox .btn-close {
    position: absolute;
    top: -2.5rem;
    inset-inline-end: 0;
    z-index: 2;
    opacity: .9;
}

.project-lightbox img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--zy-radius-sm);
    background: #000;
}

.project-lightbox figcaption {
    padding-top: .75rem;
    color: #fff;
    text-align: center;
    font-size: .95rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    transform: translateY(-50%);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, .8);
}

.lightbox-nav.is-prev {
    inset-inline-start: .75rem;
}

.lightbox-nav.is-next {
    inset-inline-end: .75rem;
}

[dir="rtl"] .lightbox-nav .icon {
    transform: scaleX(-1);
}

/* ================================================================ anasayfa: özel proje çağrısı */

.project-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(var(--zy-primary-rgb), .25);
    border-radius: calc(var(--zy-radius) + 8px);
    background: linear-gradient(130deg, rgba(var(--zy-primary-rgb), .12), rgba(var(--zy-accent-rgb), .1));
}

.project-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 850;
}

.project-cta p {
    color: var(--zy-muted);
    margin-bottom: 1.5rem;
}

.project-cta-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.project-cta-types a {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding: .9rem 1rem;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface);
    color: var(--zy-text);
    font-weight: 650;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.project-cta-types a .icon {
    color: var(--zy-primary);
}

.project-cta-types a:hover {
    border-color: var(--zy-primary);
    transform: translateY(-2px);
}

/* ================================================================ proje talep formu */

.pr-form {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.pr-step {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--zy-border);
}

.pr-step:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.pr-step legend {
    float: none;
    width: 100%;
    margin-bottom: 1.1rem;
    font-family: var(--zy-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.pr-step legend small {
    display: block;
    margin-bottom: .2rem;
    color: var(--zy-primary);
    font-family: var(--zy-font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pr-subhead {
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 700;
}

/* proje türü kartları */

.pr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem;
}

.pr-type,
.pr-choice {
    position: relative;
    cursor: pointer;
}

.pr-type input,
.pr-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pr-type {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    height: 100%;
    padding: 1rem;
    border: 1.5px solid var(--zy-border);
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pr-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: .45rem;
    border-radius: var(--zy-radius-sm);
    background: rgba(var(--zy-primary-rgb), .12);
    color: var(--zy-primary);
}

.pr-type strong {
    font-size: .98rem;
}

.pr-type small {
    color: var(--zy-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.pr-type:hover,
.pr-choice:hover span {
    border-color: rgba(var(--zy-primary-rgb), .5);
}

.pr-type:has(input:checked),
.pr-type.is-checked {
    border-color: var(--zy-primary);
    background: rgba(var(--zy-primary-rgb), .07);
    box-shadow: 0 0 0 3px rgba(var(--zy-primary-rgb), .14);
}

.pr-type:has(input:checked) .pr-type-icon,
.pr-type.is-checked .pr-type-icon {
    background: var(--zy-primary);
    color: var(--zy-primary-text);
}

.pr-type:has(input:focus-visible),
.pr-choice input:focus-visible + span {
    outline: 2px solid var(--zy-primary);
    outline-offset: 2px;
}

/* bütçe ve süre seçimi */

.pr-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.pr-choice span {
    display: inline-block;
    padding: .55rem 1rem;
    border: 1.5px solid var(--zy-border);
    border-radius: 999px;
    background: var(--zy-surface);
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}

.pr-choice input:checked + span {
    border-color: var(--zy-primary);
    background: var(--zy-primary);
    color: var(--zy-primary-text);
}

.pr-type-grid.is-invalid .pr-type,
.pr-choice-grid.is-invalid .pr-choice span {
    border-color: var(--bs-form-invalid-border-color);
}

.pr-product {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding: .55rem .75rem;
    border: 1px solid var(--zy-border);
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
    color: var(--zy-text);
    text-decoration: none;
}

.pr-product img {
    border-radius: 9px;
}

/* adım düğmeleri: JS yokken yalnızca gönder düğmesi görünür */

.pr-nav {
    display: none;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.pr-nav-final {
    display: flex;
    justify-content: flex-end;
}

.pr-nav-final [data-pr-prev],
.pr-progress {
    display: none;
}

/* JS etkin: tek adım görünür, ilerleme çubuğu açılır */

.pr-form.js-steps .pr-step {
    display: none;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.pr-form.js-steps .pr-step.is-current {
    display: block;
    animation: pr-in .25s ease;
}

.pr-form.js-steps .pr-nav {
    display: flex;
}

.pr-form.js-steps .pr-nav-final [data-pr-prev] {
    display: inline-flex;
}

.pr-form.js-steps .pr-progress {
    display: flex;
    gap: .5rem;
    padding: 0;
    margin: 0 0 1.75rem;
    list-style: none;
}

.pr-progress li {
    display: flex;
    flex: 1;
    gap: .45rem;
    align-items: center;
    padding-top: .65rem;
    border-top: 3px solid var(--zy-border);
    color: var(--zy-muted);
    font-size: .82rem;
    font-weight: 650;
}

.pr-progress li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--zy-surface-alt);
    font-size: .75rem;
}

.pr-progress li.is-done,
.pr-progress li.is-current {
    border-top-color: var(--zy-primary);
    color: var(--zy-text);
}

.pr-progress li.is-current span,
.pr-progress li.is-done span {
    background: var(--zy-primary);
    color: var(--zy-primary-text);
}

@keyframes pr-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* yan kutu */

.pr-side {
    position: sticky;
    top: 90px;
}

.pr-timeline {
    padding: 0;
    margin: 0 0 1.25rem;
    list-style: none;
    counter-reset: pr;
}

.pr-timeline li {
    position: relative;
    padding: 0 0 1rem 2.4rem;
    counter-increment: pr;
}

[dir="rtl"] .pr-timeline li {
    padding: 0 2.4rem 1rem 0;
}

.pr-timeline li::before {
    content: counter(pr);
    position: absolute;
    top: -.1rem;
    inset-inline-start: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: rgba(var(--zy-primary-rgb), .14);
    color: var(--zy-primary);
    font-size: .82rem;
    font-weight: 800;
}

.pr-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    bottom: .15rem;
    inset-inline-start: .83rem;
    width: 2px;
    background: var(--zy-border);
}

.pr-side-link {
    display: flex;
    gap: .75rem;
    align-items: center;
    color: var(--zy-text);
    font-weight: 650;
    text-decoration: none;
}

.pr-side-link span {
    flex: 1;
}

.pr-side-link:hover {
    border-color: var(--zy-primary);
    color: var(--zy-primary);
}

/* teşekkür sayfası */

.pr-done {
    padding: clamp(2rem, 5vw, 3rem);
}

.pr-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(var(--zy-primary-rgb), .14);
    color: var(--zy-primary);
}

.pr-done-icon .icon {
    width: 2rem;
    height: 2rem;
}

.pr-number {
    display: inline-flex;
    flex-direction: column;
    gap: .15rem;
    padding: .9rem 1.6rem;
    margin-top: .5rem;
    border: 1px dashed rgba(var(--zy-primary-rgb), .5);
    border-radius: var(--zy-radius);
    background: rgba(var(--zy-primary-rgb), .06);
}

.pr-number small {
    color: var(--zy-muted);
}

.pr-number strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--zy-primary);
}

/* ================================================================ duyarlı düzen */

@media (max-width: 991.98px) {
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-cta {
        grid-template-columns: 1fr;
    }
    .service-box,
    .project-facts,
    .pr-side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .process-steps,
    .project-cta-types {
        grid-template-columns: 1fr;
    }
    .service-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .pr-progress li {
        font-size: 0;
    }
    .pr-progress li span {
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .project-card,
    .project-card .cover img,
    .project-gallery img,
    .pr-form.js-steps .pr-step.is-current {
        transition: none;
        animation: none;
    }
}
