/* ============================================================================
   RAFO KURUMSAL HERO — Kış Taşı paleti, Fraunces + Inter
   ============================================================================ */
:root {
    --rh-kar:       #f7f6f3;
    --rh-oltu:      #1c1a19;
    --rh-bazalt:    #3a3735;
    --rh-bakir:     #9c6b43;
    --rh-bakir-ac:  #d9b48f;
    --rh-sis:       #d8d3c9;
    --rh-duman:     #6e685f;
    --rh-container: 1120px;
    --rh-ease:      cubic-bezier(.22,.61,.36,1);
}

.rafo-hero {
    position: relative;
    width: 100%;
    min-height: 88vh;
    margin-top: calc(-1 * var(--nav-h, 80px));
    overflow: hidden;
    background: var(--rh-oltu);
    color: var(--rh-kar);
    box-sizing: border-box;
}
.rafo-hero *,
.rafo-hero *::before,
.rafo-hero *::after { box-sizing: border-box; }

@media (max-width: 768px) {
    .rafo-hero {
        min-height: 78svh;
    }
}

.rafo-hero__viewport { position: absolute; inset: 0; }

.rafo-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--rh-ease);
    will-change: opacity;
}
.rafo-hero__slide.is-active { opacity: 1; z-index: 1; }

.rafo-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--rh-fx, 50%) var(--rh-fy, 50%);
    display: block;
    transform-origin: center;
}
@media (max-width: 768px) {
    .rafo-hero__img {
        object-position: var(--rh-fxm, 50%) var(--rh-fym, 50%);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .rafo-hero__slide.is-active .rafo-hero__img {
        animation: rh-kenburns 8s ease-out forwards;
    }
}
@keyframes rh-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* Overlay — sol odaklı güçlü karartma + alt vinyet.
   --rh-alpha = overlay_opacity / 55 (default 55 → 1.0, max 90 → ~1.64) */
.rafo-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(28, 26, 25, calc(0.82 * var(--rh-alpha, 1))) 0%,
            rgba(28, 26, 25, calc(0.62 * var(--rh-alpha, 1))) 38%,
            rgba(28, 26, 25, calc(0.18 * var(--rh-alpha, 1))) 68%,
            rgba(28, 26, 25, 0) 100%),
        linear-gradient(0deg,
            rgba(28, 26, 25, calc(0.55 * var(--rh-alpha, 1))) 0%,
            rgba(28, 26, 25, 0) 35%);
    pointer-events: none;
}

/* ─── İçerik bloğu ────────────────────────────────────────────── */
.rafo-hero__content {
    position: relative;
    z-index: 2;
    min-height: 88vh;             /* hero kadar yer tut; içerik uzarsa büyüsün */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* dikeyde ortala */
    padding: 48px max(32px, calc((100% - var(--rh-container)) / 2)) 120px;
    /* padding-bottom 120px = sayaç/oklar ve rezervasyon çubuğu için güvenli alan */
}
@media (max-width: 768px) {
    .rafo-hero__content {
        min-height: 78svh;
        justify-content: flex-end;
        padding: 48px 24px 180px;    /* alt hizalı + ok/sayaç + booking bar üstü */
    }
}

.rafo-hero__content-inner {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Fade-up animasyon zinciri */
.rafo-hero__eyebrow,
.rafo-hero__title,
.rafo-hero__subtitle,
.rafo-hero__ctas,
.rafo-hero__trust {
    opacity: 0;
    transform: translateY(14px);
    animation: rh-fadeup .9s var(--rh-ease) forwards;
}
.rafo-hero__eyebrow  { animation-delay: .15s; }
.rafo-hero__title    { animation-delay: .30s; }
.rafo-hero__subtitle { animation-delay: .45s; }
.rafo-hero__ctas     { animation-delay: .60s; }
.rafo-hero__trust    { animation-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
    .rafo-hero__slide.is-active .rafo-hero__img { animation: none; }
    .rafo-hero__eyebrow,
    .rafo-hero__title,
    .rafo-hero__subtitle,
    .rafo-hero__ctas,
    .rafo-hero__trust {
        opacity: 1; transform: none; animation: none;
    }
}

@keyframes rh-fadeup {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Eyebrow ────────────────────────────────────────────────── */
.rafo-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rh-bakir-ac);
    margin: 0 0 18px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.rafo-hero__eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--rh-bakir-ac);
    display: inline-block;
}

/* ─── Başlık ─────────────────────────────────────────────────── */
.rafo-hero__title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(36px, 3.6vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--rh-kar);
    margin: 0 0 20px;
    max-width: 760px;
    text-wrap: balance;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
    /* line-clamp KALDIRILDI — içerik uzarsa content uzasın, kesilmesin */
}

/* ─── Alt metin ──────────────────────────────────────────────── */
.rafo-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(247, 246, 243, 0.9);
    margin: 0 0 32px;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ─── Butonlar ───────────────────────────────────────────────── */
.rafo-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.rafo-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .25s var(--rh-ease), color .25s var(--rh-ease),
                border-color .25s var(--rh-ease), transform .2s var(--rh-ease);
}
.rafo-hero__btn--primary {
    background: var(--rh-bakir);
    color: var(--rh-kar);
    border-color: var(--rh-bakir);
}
.rafo-hero__btn--primary:hover {
    background: var(--rh-oltu);
    border-color: var(--rh-kar);
}
.rafo-hero__btn--secondary {
    background: transparent;
    color: var(--rh-kar);
    border-color: rgba(247, 246, 243, 0.6);
}
.rafo-hero__btn--secondary:hover {
    border-color: var(--rh-kar);
    background: rgba(247, 246, 243, 0.08);
}

/* ─── Trust line ─ içerik akışında, butonların altında ───────── */
.rafo-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(247, 246, 243, 0.7);
}
.rafo-hero__trust li {
    padding-left: 15px;
    border-left: 1px solid rgba(247, 246, 243, 0.3);
    line-height: 1.3;
}
.rafo-hero__trust li:first-child {
    padding-left: 0;
    border-left: 0;
}

/* ─── Sayaç + Oklar (sağ alt) ────────────────────────────────── */
.rafo-hero__nav {
    position: absolute;
    right: max(32px, calc((100% - var(--rh-container)) / 2));
    bottom: 96px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--rh-kar);
    font-family: 'Inter', sans-serif;
    pointer-events: auto;
}
.rafo-hero__arrow {
    width: 44px; height: 44px;
    border: 1px solid rgba(247, 246, 243, 0.4);
    background: transparent;
    color: var(--rh-kar);
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: border-color .2s var(--rh-ease), background .2s var(--rh-ease), transform .2s var(--rh-ease);
}
.rafo-hero__arrow:hover {
    border-color: var(--rh-kar);
    background: rgba(247, 246, 243, 0.08);
}
.rafo-hero__arrow:active { transform: scale(0.96); }

.rafo-hero__counter {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.rafo-hero__counter-sep { opacity: 0.6; font-size: 13px; }
.rafo-hero__progress {
    display: inline-block;
    width: 72px;
    height: 1px;
    background: rgba(247, 246, 243, 0.25);
    position: relative;
    overflow: hidden;
    margin-left: 6px;
}
.rafo-hero__progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--rh-kar);
}

/* ─── Mobil (768px ve altı) ──────────────────────────────────── */
@media (max-width: 768px) {
    .rafo-hero__title    { font-size: 34px; line-height: 1.1; max-width: 100%; }
    .rafo-hero__subtitle { font-size: 15px; -webkit-line-clamp: 3; max-width: 100%; }
    .rafo-hero__ctas     { flex-direction: column; align-items: stretch; width: 100%; }
    .rafo-hero__btn      { width: 100%; height: 50px; }
    .rafo-hero__trust    { font-size: 12px; row-gap: 8px; margin-top: 20px; }
    .rafo-hero__nav      { right: 24px; bottom: 100px; gap: 10px; }
    .rafo-hero__progress { width: 44px; }
}

/* ─── BOOKING BAR ─────────────────────────────────────────────── */
.rafo-booking {
    position: relative;
    z-index: 5;
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
    margin-top: -56px;
    margin-bottom: 48px;
    box-sizing: border-box;
}
.rafo-booking * { box-sizing: border-box; }

.rafo-booking__form {
    background: var(--rh-kar);
    border-radius: 2px;
    box-shadow: 0 24px 60px -24px rgba(28, 26, 25, 0.35), 0 2px 6px rgba(28, 26, 25, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 0.8fr auto;
    align-items: stretch;
    padding: 0;
}

.rafo-booking__field {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    border-right: 1px solid var(--rh-sis);
}
.rafo-booking__field:last-of-type { border-right: 0; }

.rafo-booking__label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rh-duman);
}
.rafo-booking__input {
    border: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--rh-oltu);
    padding: 2px 0;
    outline: none;
    width: 100%;
    min-width: 0;
}

/* Grid içindeki bölücü div'leri gizle (eski partial'da kalmış olabilir) */
.rafo-booking__divider { display: none; }

.rafo-booking__stepper { padding: 0; }

.rafo-booking__submit {
    background: var(--rh-oltu);
    color: var(--rh-kar);
    border: 0;
    padding: 0 32px;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s var(--rh-ease);
    white-space: nowrap;
}
.rafo-booking__submit:hover { background: var(--rh-bakir); }

/* 2x2 grid + tam genişlik buton */
@media (max-width: 900px) {
    .rafo-booking {
        margin-top: 0;
        width: 100%;
        padding: 0;
    }
    .rafo-booking__form {
        grid-template-columns: 1fr 1fr;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid var(--rh-sis);
    }
    .rafo-booking__field {
        border-right: 1px solid var(--rh-sis);
        border-bottom: 1px solid var(--rh-sis);
    }
    .rafo-booking__field:nth-child(2n) { border-right: 0; }
    .rafo-booking__submit {
        grid-column: 1 / -1;
        min-height: 54px;
        width: 100%;
    }
}

/* Tek sütun */
@media (max-width: 600px) {
    .rafo-booking__form {
        grid-template-columns: 1fr;
    }
    .rafo-booking__field {
        border-right: 0 !important;
        border-bottom: 1px solid var(--rh-sis);
    }
}
