/**
 * Anasayfa: 1 (.home-stage1), 2 (.home-stage2), 3 (.home-stage3), 4 (.home-stage4), 5 (.home-process-wave).
 */

.home-stage1 {
    --home-stage1-accent: var(--pbmit-global-color, #ef1640);
    --home-stage1-surface: #ffffff;
    --home-stage1-border: rgba(15, 23, 42, 0.08);
    --home-stage1-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --home-stage1-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.home-stage1 .home-stage1-box {
    height: 100%;
    min-height: 160px;
    column-gap: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: clamp(1.75rem, 4vw, 1.5rem) 1.5rem;
    background: var(--home-stage1-surface);
    border: 1px solid var(--home-stage1-border);
    border-radius: 16px;
    box-shadow: var(--home-stage1-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.home-stage1 .home-stage1-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-stage1-shadow-hover);
    border-color: rgba(239, 22, 64, 0.22);
}

.home-stage1 .home-stage1-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(64px, 16vw, 80px);
    height: clamp(64px, 16vw, 80px);
    margin-bottom: 0;
    font-size: clamp(1.85rem, 5.5vw, 2.35rem);
    line-height: 1;
    color: var(--home-stage1-accent);
    background: linear-gradient(145deg, rgba(239, 22, 64, 0.12) 0%, rgba(239, 22, 64, 0.03) 100%);
    border-radius: 16px;
}

.home-stage1 .home-stage1-box__title {
    margin: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-align: left;
}

.home-stage1 .home-stage1-box__desc {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.20;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.58);
    text-align: left;
}

/* ---------- 2. aşama: sekmeli kategori ürün vitrinleri ---------- */

.home-stage2 {
    --home-stage2-accent: var(--pbmit-global-color, #ef1640);
    --home-stage2-accent-rgb: 239, 22, 64;
}

.home-stage2 .home-stage2-intro__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.home-stage2 .home-stage2-intro__subtitle {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.55);
}

/* Sekme şeridi: kapsül zemini ve yatay kaydırma (mobil) */
.home-stage2 .home-stage2-tabbar {
    margin-bottom: 1.75rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 6px 30px rgba(15, 23, 42, 0.07);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.home-stage2 .home-stage2-tabbar::-webkit-scrollbar {
    height: 6px;
}

.home-stage2 .home-stage2-tabbar::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}

.home-stage2 .home-stage2-tabs {
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    min-height: 3.35rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

@media (max-width: 991px) {
    .home-stage2 .home-stage2-tabbar {
        justify-content: flex-start;
        border-radius: 20px;
    }

    .home-stage2 .home-stage2-tabs {
        justify-content: flex-start;
    }
}

.home-stage2 .home-stage2-tabs > .nav-item {
    flex: 0 0 auto;
}

.home-stage2 .home-stage2-tabs__btn.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.15rem 0.7rem 0.85rem;
    color: rgba(15, 23, 42, 0.68);
    border:solid 1px #f1f1f1;
    font-weight: 600;
    border-radius: 999px !important;
    white-space: nowrap;
    transition:
        background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.home-stage2 .home-stage2-tabs__btn.nav-link:hover {
    color: var(--home-stage2-accent);
    background: rgba(var(--home-stage2-accent-rgb), 0.08);
}

.home-stage2 .home-stage2-tabs__btn.nav-link.active {
    background: linear-gradient(
        135deg,
        rgba(var(--home-stage2-accent-rgb), 0.94) 0%,
        rgba(var(--home-stage2-accent-rgb), 0.76) 100%
    );
    color: #fff !important;
    box-shadow:
        0 8px 22px rgba(var(--home-stage2-accent-rgb), 0.32),
        0 2px 0 rgba(255, 255, 255, 0.12) inset;
}

.home-stage2 .home-stage2-tabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    font-size: 1.05rem;
    transition: inherit;
}

.home-stage2 .home-stage2-tabs__btn.nav-link.active .home-stage2-tabs__icon {
    background: rgba(255, 255, 255, 0.22);
}

.home-stage2 .home-stage2-tabs__label {
    letter-spacing: -0.03em;
    font-weight: 300;
}

/* İçerik paneli zemini — ürün ızgarası temayla uyumlu kalsın */
.home-stage2 .home-stage2-panels {
    background: transparent;
}

.home-stage2 .home-stage2-pane > .site-content.service-details {
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background: #f5f5f5;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

/* ---------- 3. aşama: vitrin (sol görsel / sağ metin + ürün ızgarası) ---------- */

.home-stage3 {
    --home-stage3-accent: var(--pbmit-global-color, #ef1640);
}

.home-stage3 .home-stage3-visual {
    position: relative;
    height: 100%;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #e8ecf4;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

@media (min-width: 992px) {
    .home-stage3 .home-stage3-visual {
        min-height: 420px;
    }
}

.home-stage3 .home-stage3-visual__img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .home-stage3 .home-stage3-visual__img {
        min-height: 100%;
        position: absolute;
        inset: 0;
    }
}

.home-stage3 .home-stage3-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-stage3 .home-stage3-panel__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-stage3-accent);
    margin: 0 0 0.5rem 0;
}

.home-stage3 .home-stage3-panel__title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

.home-stage3 .home-stage3-panel__lead {
    margin: 0 0 1.25rem 0;
    max-width: 36rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.58);
}

.home-stage3 .home-stage3-panel__cta {
    align-self: flex-start;
}

.home-stage3 .home-stage3-panel__grid {
    margin-top: 0.5rem;
    background: #f5f5f5;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: clamp(1rem, 2.5vw, 1.35rem) !important;
}

/* Sağ sütunda 2x2 ızgara: kart sınıfı col-md-3 kalsa bile vitrin alanında iki sütun */
@media (min-width: 768px) {
    .home-stage3 .home-stage3-panel__grid .pbmit-blog-style-1.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ---------- 4. aşama: kategori bento (solda-yüksek | ortada iki blok | sağda-yüksek), hap etiket ---------- */

.home-stage4 {
    --home-stage4-gap: clamp(14px, 2vw, 20px);
    --home-stage4-radius: 18px;
    background: #fff;
}

.home-stage4 .home-stage4-head {
    margin-bottom: clamp(2rem, 4.5vw, 1.75rem);
}

.home-stage4 .home-stage4-head__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.home-stage4 .home-stage4-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--home-stage4-gap);
    align-items: stretch;
    min-height: min(72vh, 640px);
    max-height: none;
}

.home-stage4 .home-stage4-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--home-stage4-radius);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    isolation: isolate;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s ease;
}

.home-stage4 .home-stage4-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.home-stage4 .home-stage4-tile:focus-visible {
    outline: 2px solid var(--pbmit-global-color, #ef1640);
    outline-offset: 3px;
    z-index: 2;
}

.home-stage4 .home-stage4-tile--tall {
    grid-row: 1 / -1;
    min-height: 280px;
}

.home-stage4 .home-stage4-tile--left {
    grid-column: 1;
}

.home-stage4 .home-stage4-tile--right {
    grid-column: 3;
}

.home-stage4 .home-stage4-stack {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--home-stage4-gap);
    min-height: 0;
}

.home-stage4 .home-stage4-tile--half {
    flex: 1 1 50%;
    min-height: 120px;
}

.home-stage4 .home-stage4-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #e8ecf3;
}

.home-stage4 .home-stage4-tile__pill {
    position: absolute;
    bottom: clamp(14px, 2.8vw, 22px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.55rem clamp(1.80rem, 3vw, 1.85rem);
    background: #fff;
    color: #111827;
    font-size: clamp(1rem, 1.9vw, 0.97rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 999px;
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767px) {
    .home-stage4 .home-stage4-bento {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: unset;
    }

    .home-stage4 .home-stage4-tile--tall {
        grid-row: auto;
        grid-column: auto;
        aspect-ratio: 3 / 4;
        max-height: 420px;
        width: 100%;
    }

    .home-stage4 .home-stage4-stack {
        grid-column: auto;
        grid-row: auto;
    }

    .home-stage4 .home-stage4-tile--half {
        aspect-ratio: 16 / 10;
        min-height: 180px;
    }
}

/* ---------- 5. aşama: dalgalı süreç + ortalanmış düğümler (#e53935, 12px radius ikon kutusu) ---------- */

.home-process-wave {
    --hpw-accent: #e53935;
    --hpw-accent-rgb: 229, 57, 53;
    --hpw-accent-soft: rgba(var(--hpw-accent-rgb), 0.12);
    --hpw-accent-mid: rgba(var(--hpw-accent-rgb), 0.2);
    --hpw-wave: var(--hpw-accent);
    --hpw-text: #0f172a;
    --hpw-muted: rgba(15, 23, 42, 0.56);
    --hpw-paper: linear-gradient(180deg, #fffafa 0%, #ffffff 55%);
    background: var(--hpw-paper);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-process-wave__head {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.25rem, 5vw, 3rem);
}

.home-process-wave__heading {
    margin: 0 0 0.85rem;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--hpw-text);
}

.home-process-wave__heading::after {
    content: '';
    display: block;
    width: clamp(3rem, 12vw, 4.25rem);
    height: 4px;
    margin: 0.65rem auto 0;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--hpw-accent) 18%,
        var(--hpw-accent) 82%,
        transparent 100%
    );
    opacity: 0.92;
}

.home-process-wave__sub {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.58;
    color: var(--hpw-muted);
}

.home-process-wave__diagram {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Sinüs dalgası: tam genişlik, dikeyde yeterli yükseklik (sıkışmayı azaltır) */
.home-process-wave__svg-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: clamp(168px, 26vw, 236px);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    padding-inline: clamp(0.5rem, 2.5vw, 1.25rem);
    box-sizing: border-box;
}

.home-process-wave__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.home-process-wave__path-fill {
    pointer-events: none;
}

.home-process-wave__path-line {
    stroke: var(--hpw-wave);
    opacity: 1;
}

/* Dört kolon: her adımda 3 satır (üst / düğüm / alt) → ikonlar yatay hizada */
.home-process-wave__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 26px);
    min-height: clamp(360px, 44vw, 440px);
    padding-inline: clamp(2px, 0.8vw, 8px);
    align-items: stretch;
}

.home-process-wave__step {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: minmax(5rem, 1fr) auto minmax(5rem, 1fr);
    gap: clamp(10px, 1.8vw, 16px);
    align-items: center;
    justify-items: stretch;
    min-width: 0;
}

.home-process-wave__copy {
    position: relative;
    z-index: 1;
    width: 100%;
    grid-column: 1;
    padding-inline: clamp(2px, 0.35vw, 6px);
}

.home-process-wave__step--pos1 .home-process-wave__copy,
.home-process-wave__step--pos3 .home-process-wave__copy {
    grid-row: 1;
    align-self: end;
}

.home-process-wave__step--pos2 .home-process-wave__copy,
.home-process-wave__step--pos4 .home-process-wave__copy {
    grid-row: 3;
    align-self: start;
}

.home-process-wave__marker {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Arka plan büyük rakam — her sütunun köşesine sabitle, içerik ile çarpışmayı azalt */
.home-process-wave__num-bg {
    position: absolute;
    z-index: 0;
    font-size: clamp(3.5rem, 8.5vw, 16rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(15, 23, 42, 0.04);
    user-select: none;
    pointer-events: none;
    font-family: arial, sans-serif;
}

.home-process-wave__step--pos1 .home-process-wave__num-bg {
    left: 0;
    top: 0;
}

.home-process-wave__step--pos2 .home-process-wave__num-bg {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 0;
}

.home-process-wave__step--pos3 .home-process-wave__num-bg {
    right: 0;
    left: auto;
    top: 0;
}

.home-process-wave__step--pos4 .home-process-wave__num-bg {
    right: 0;
    left: auto;
    top: auto;
    bottom: 0;
}

.home-process-wave__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.4rem, 1.5vw, 1.70rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #dc3545;
}

.home-process-wave__text {
    margin: 0;
    font-size: clamp(0.84rem, 1.05vw, 0.92rem);
    line-height: 1.30;
    color: var(--hpw-muted);
    max-width: 16rem;
}

.home-process-wave__step--pos1 .home-process-wave__copy {
    text-align: left;
}

.home-process-wave__step--pos2 .home-process-wave__copy {
    text-align: center;
}

.home-process-wave__step--pos2 .home-process-wave__text {
    margin-left: auto;
    margin-right: auto;
}

.home-process-wave__step--pos3 .home-process-wave__copy,
.home-process-wave__step--pos4 .home-process-wave__copy {
    text-align: right;
}

.home-process-wave__step--pos3 .home-process-wave__text,
.home-process-wave__step--pos4 .home-process-wave__text {
    margin-left: auto;
}

/* 12px radius ikon kutusu */
.home-process-wave__icon-box {
    width: clamp(64px, 5vw, 76px);
    height: clamp(64px, 5vw, 76px);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    /*border: 1px solid var(--hpw-accent-soft);*/
    box-shadow:
        0 10px 30px rgba(var(--hpw-accent-rgb), 0.10),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.home-process-wave__marker {
    filter: drop-shadow(0 4px 10px rgba(var(--hpw-accent-rgb), 0.09));
}

.home-process-wave__box-icon {
    font-size: clamp(1.35rem, 2vw, 1.62rem);
    line-height: 1;
    color: var(--hpw-accent);
}

/* Tablet: biraz sıkılınca daha kompakt */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .home-process-wave__diagram {
        margin-inline: -0.5rem;
    }

    .home-process-wave__steps {
        gap: 8px;
    }

    .home-process-wave__text {
        max-width: none;
        font-size: 0.84rem;
    }
}

@media (max-width: 991.98px) {
    .home-process-wave__diagram {
        overflow: visible;
    }

    .home-process-wave__svg-layer {
        display: none;
    }

    .home-process-wave__steps {
        grid-template-columns: 1fr;
        gap: clamp(14px, 3vw, 20px);
        min-height: unset;
        padding-inline: 0;
    }

    .home-process-wave__step {
        display: flex;
        flex-flow: row nowrap;
        align-items: flex-start;
        gap: 0 1.1rem;
        min-height: 0;
        padding: 1.25rem clamp(1.1rem, 4vw, 1.35rem);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--hpw-accent-soft);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
        grid-template-rows: unset;
    }

    .home-process-wave__step::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -10px;
        width: 2px;
        height: 11px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, var(--hpw-accent) 0%, transparent 100%);
        border-radius: 2px;
        opacity: 0.55;
    }

    .home-process-wave__step:last-child::after {
        display: none;
    }

    .home-process-wave__step--pos1 .home-process-wave__num-bg,
    .home-process-wave__step--pos2 .home-process-wave__num-bg,
    .home-process-wave__step--pos3 .home-process-wave__num-bg,
    .home-process-wave__step--pos4 .home-process-wave__num-bg {
        position: absolute;
        left: auto;
        right: 70px;
        top: 1.6rem;
        bottom: auto;
        transform: none;
        font-size: 6rem;
        color: rgba(15, 23, 42, 0.05);
    }

    .home-process-wave__copy {
        flex: 1 1 auto;
        grid-row: unset;
        grid-column: unset;
        min-width: 0;
        text-align: left !important;
    }

    .home-process-wave__text {
        max-width: none;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .home-process-wave__marker {
        flex: 0 0 auto;
        grid-row: unset;
        align-self: center;
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-process-wave__path-line {
        opacity: 1;
    }

    .home-process-wave__path-fill {
        opacity: 0.85;
    }

    .home-process-wave__icon-box {
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }
}
