﻿/* Header fixed olduğu için sayfa içeriğini aşağı itmek (hero header'a yapışık kalır) */
:root {
    --header-offset: 85px;
    --brand-h: 120px; /* brand band yüksekliği (yaklaşık) */
}
/* JS bunu otomatik güncelleyecek */

/* hero artık margin-top almayacak */

.hero {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h) - var(--brand-h));
    min-height: 420px;
    max-height: none;
    margin-top: var(--header-offset);
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Resimlerin tamamı aynı ölçüde, taşma yok */
.hero-track {
    height: 100%;
    position: relative;
}

.hero-slide {
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity .35s ease;
}

    .hero-slide.is-active {
        opacity: 1;
        z-index: 1;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Hafif premium overlay (yazı yok ama kalite hissi) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.06), rgba(0,0,0,.18));
    pointer-events: none;
}

/* Oklar */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
    z-index: 2;
}

    .hero-btn:hover {
        background: rgba(255,255,255,.28);
        transform: translateY(-50%) scale(1.04);
    }

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

/* Dots */
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.40);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
    opacity: .4;
}

    .hero-dot.is-active {
        background: rgba(255,255,255,.85);
        transform: scale(1.25);
        opacity: 1;
    }

/* Mobil ayarları */
@media (max-width: 900px) {
    .hero {
        height: 56vh; /* mobilde daha kısa */
        min-height: 320px; /* çok küçülmesin */
        max-height: 520px; /* aşırı uzamasın */
    }
}

/* Çok küçük telefonlar */
@media (max-width: 420px) {
    .hero {
        height: 52vh;
        min-height: 280px;
        max-height: 480px;
    }
}