/*
 * Anasayfa slider'ı (views/web/home/modules/slider_line.php): kenardan kenara, ekran yüksekliğinde
 * (.hs-ratio: ilk slaytın görsel oranında, --hs-ratio / mobilde --hs-ratio-m).
 * Sabit başlık (site-header.css) slider'ın üstüne saydam biner; üstteki hafif karartma menüyü okunur tutar.
 * Sağ altta bir sonraki bölümün renginde, iç bükey köşeli ok çentiği (renk hero-slider.js'ten gelir).
 * Panel ayarları: yazı konumu slayt sınıflarıyla (is-h-left|center|right, is-v-top|center|bottom), renkler
 * --hs-title, --hs-text, --hs-btn-bg, --hs-btn-fg; karartma hs-shade-none|light|normal|strong.
 */
.hs {
    /* Ok çentiğinin köşesi: temanın banner köşesi (--radius-banner, varsayılan 0) */
    --hs-radius: var(--radius-banner, 0px);
    --hs-notch: #fff;
    position: relative;
    font-family: var(--sh-font, 'Mulish', sans-serif);
}

.hs-frame {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 540px;
    overflow: hidden;
    background: #1d1d1f;
}

/* Görsel oranında: yükseklik görselden, kırpma yok */
.hs-ratio .hs-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: var(--hs-ratio);
}

.hs-swiper,
.hs-swiper .swiper-wrapper,
.hs-slide {
    height: 100%;
}

.hs-slide picture,
.hs-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Üstten karartma: saydam başlıktaki beyaz menü açık renkli görselde de okunur */
.hs-slide::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: min(280px, 40%);
    background: linear-gradient(180deg, rgba(10, 12, 16, .55) 0%, rgba(10, 12, 16, .22) 55%, rgba(10, 12, 16, 0) 100%);
    pointer-events: none;
}

/* Metinli slaytta okunabilirlik için yazının bulunduğu köşeden karartma */
.hs-slide.has-caption::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 95% 95% at var(--hs-sx, 12%) var(--hs-sy, 88%), rgba(10, 12, 16, .66) 0%, rgba(10, 12, 16, .3) 45%, rgba(10, 12, 16, 0) 80%);
    pointer-events: none;
}

.hs-slide.is-h-center { --hs-sx: 50%; }
.hs-slide.is-h-right { --hs-sx: 88%; }
.hs-slide.is-v-top { --hs-sy: 28%; }
.hs-slide.is-v-center { --hs-sy: 55%; }

.hs-shade-none .hs-slide.has-caption::after { display: none; }
.hs-shade-light .hs-slide.has-caption::after { opacity: .55; }
.hs-shade-strong .hs-slide.has-caption::after { background-color: rgba(10, 12, 16, .32); }

/* Metin, başlıktaki logoyla aynı hizada başlar (1200px kapsayıcının kenarı) */
.hs-caption {
    --hs-edge: max(24px, calc((100% - var(--sh-width, 1200px)) / 2 + 15px));
    position: absolute;
    left: var(--hs-edge);
    bottom: clamp(56px, 12vh, 140px);
    z-index: 2;
    max-width: 680px;
    color: var(--hs-text, #fff);
    transform: translate(var(--hs-tx, 0), var(--hs-ty, 0));
}

.is-h-right .hs-caption {
    left: auto;
    right: var(--hs-edge);
    text-align: right;
}

.is-h-center .hs-caption {
    --hs-tx: -50%;
    left: 50%;
    width: min(820px, calc(100% - 48px));
    max-width: none;
    text-align: center;
}

/* Üstte: sabit başlığın altından başlar; ortada: başlık payı düşülerek ortalanır */
.is-v-top .hs-caption {
    top: calc(var(--sh-offset, 143px) + clamp(24px, 6vh, 72px));
    bottom: auto;
}

.is-v-center .hs-caption {
    --hs-ty: -50%;
    top: calc(50% + var(--sh-offset, 0px) / 2);
    bottom: auto;
}

.hs-title {
    margin: 0 0 18px;
    color: var(--hs-title, #fff);
    font-family: inherit;
    font-size: clamp(32px, 4.2vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.hs-text {
    margin: 0 0 30px;
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.6;
    opacity: .92;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    background: var(--hs-btn-bg, #fff);
    color: var(--hs-btn-fg, #1d1d1f);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.hs-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.hs-btn:hover {
    background: var(--color-accent, #000000);
    color: #fff;
}

/* Ok çentiği: sağ altta, alttaki bölümle birleşen kutu; sol alt köşesi iç bükey */
.hs-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 44px;
    padding: 22px 30px 20px 34px;
    background: var(--hs-notch);
    border-top-left-radius: var(--hs-radius);
}

.hs-nav::after {
    content: '';
    position: absolute;
    right: 100%;
    bottom: 0;
    width: var(--hs-radius);
    height: var(--hs-radius);
    background: radial-gradient(circle at 0 0, transparent calc(var(--hs-radius) - .5px), var(--hs-notch) var(--hs-radius));
    pointer-events: none;
}

.hs-arrow {
    display: inline-flex;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #1d1d1f;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
}

.hs-arrow svg {
    width: 30px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hs-prev:hover {
    color: var(--color-accent, #000000);
    transform: translateX(-3px);
}

.hs-next:hover {
    color: var(--color-accent, #000000);
    transform: translateX(3px);
}

/* WhatsApp düğmesi (footer, .floating-btn) de sağ altta: çentik ekrandayken onun üstüne çıkar
   (hero-slider.js çentiği izleyip body'ye hs-nav-visible ekler) */
.floating-btn {
    transition: transform .3s, bottom .35s ease;
}

body.hs-nav-visible .floating-btn {
    bottom: 96px;
}

@media (max-width: 768px) {
    body.hs-nav-visible .floating-btn {
        bottom: 72px;
    }
}

@media (max-width: 991px) {
    .hs-frame {
        min-height: 500px;
    }

    .hs-caption {
        right: 24px;
    }

    .is-h-center .hs-caption {
        --hs-tx: 0;
        left: 24px;
        right: 24px;
        width: auto;
    }
}

@media (max-width: 767px) {
    .hs-ratio .hs-frame {
        aspect-ratio: var(--hs-ratio-m, var(--hs-ratio));
    }
}

@media (max-width: 575px) {
    .hs-frame {
        min-height: 460px;
    }

    .hs-caption {
        bottom: 96px;
    }

    .hs-text {
        margin-bottom: 20px;
    }

    .hs-btn {
        padding: 13px 22px;
    }

    .hs-nav {
        gap: 30px;
        padding: 16px 22px 14px 24px;
    }
}
