@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Reset ── */
.reh-2551-section *,
.reh-2551-section *::before,
.reh-2551-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Section ── */
.reh-2551-section {
    background-color: #0D0A04;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    font-family: 'Cormorant Garamond', serif;
}

/* Ambient top glow */
.reh-2551-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(220,165,74,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Scroll Reveal ── */
.reh-2551-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reh-2551-reveal.reh-2551-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header ── */
.reh-2551-header {
    text-align: center;
    padding: 0 40px;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.reh-2551-eyebrow {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #DCA54A;
    margin-bottom: 18px;
    opacity: 0.85;
}

.reh-2551-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 700;
    color: #FAF5E5;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.reh-2551-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #DCA54A, transparent);
    margin: 0 auto 24px;
}

.reh-2551-subtext {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 300;
    color: rgba(250,245,229,0.5);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

/* ── Carousel Wrapper ── */
.reh-2551-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Edge fade masks */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* ── Track ── */
@keyframes reh-scroll-2551 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reh-2551-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: reh-scroll-2551 var(--reh-speed, 32s) linear infinite;
    will-change: transform;
    padding: 20px 0 40px;
}

.reh-2551-track:hover {
    animation-play-state: paused;
}

/* ── Card ── */
.reh-2551-card {
    position: relative;
    display: block;
    width: 380px;
    min-width: 380px;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    background-color: #1A1208;
    flex-shrink: 0;
    border: 1px solid rgba(220,165,74,0.12);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 -1px 0 rgba(0,0,0,0.3) inset;
    transition:
        transform 0.5s cubic-bezier(0.22,1,0.36,1),
        box-shadow 0.5s cubic-bezier(0.22,1,0.36,1),
        border-color 0.5s ease;
}

.reh-2551-card:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 40px rgba(220,165,74,0.12),
        0 1px 0 rgba(255,255,255,0.08) inset;
    border-color: rgba(220,165,74,0.35);
}

/* Image */
.reh-2551-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2C1F10;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}

.reh-2551-card:hover .reh-2551-card-img {
    transform: scale(1.08);
}

/* No-image fallback */
.reh-2551-card-img:not([style*="background-image"]) {
    background: linear-gradient(145deg, #3D2B1A 0%, #2C1F10 55%, #141004 100%);
}

/* Gradient overlay */
.reh-2551-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,7,2,0.95) 0%,
        rgba(10,7,2,0.55) 35%,
        rgba(10,7,2,0.15) 65%,
        transparent 100%
    );
    z-index: 1;
    transition: opacity 0.45s ease;
}

.reh-2551-card:hover .reh-2551-card-overlay {
    opacity: 0.85;
}

/* Light reflection / shine sweep */
.reh-2551-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255,255,255,0.06) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    z-index: 2;
    transition: background-position 0.7s ease;
    pointer-events: none;
}

.reh-2551-card:hover .reh-2551-card-shine {
    background-position: 200% 0;
}

/* Glassmorphism label */
.reh-2551-card-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 24px 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(
        to top,
        rgba(10,7,2,0.7) 0%,
        rgba(10,7,2,0.3) 60%,
        transparent 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), backdrop-filter 0.45s ease;
}

.reh-2551-card:hover .reh-2551-card-glass {
    transform: translateY(-8px);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.reh-2551-cat-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    color: #FAF5E5;
    letter-spacing: 0.04em;
    line-height: 1.2;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    transition: letter-spacing 0.4s ease;
}

.reh-2551-card:hover .reh-2551-cat-name {
    letter-spacing: 0.07em;
}

.reh-2551-cat-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(250,245,229,0.6);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.reh-2551-card:hover .reh-2551-cat-desc {
    opacity: 1;
    transform: translateY(0);
}

.reh-2551-cat-line {
    display: block;
    width: 0;
    height: 1.5px;
    background-color: #DCA54A;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

.reh-2551-card:hover .reh-2551-cat-line {
    width: 48px;
}

/* ── CTA ── */
.reh-2551-cta-wrap {
    text-align: center;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.reh-2551-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #FAF5E5;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(220,165,74,0.5);
    border-radius: 3px;
    padding: 18px 64px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(220,165,74,0.15);
    transition:
        gap 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease,
        transform 0.4s cubic-bezier(0.22,1,0.36,1);
    cursor: pointer;
    overflow: hidden;
}

/* Glow pulse on hover */
.reh-2551-cta:hover {
    gap: 22px;
    transform: scale(1.04);
    background: rgba(220,165,74,0.08);
    border-color: #DCA54A;
    box-shadow:
        0 0 40px rgba(220,165,74,0.4),
        0 0 80px rgba(220,165,74,0.15),
        0 0 0 1px rgba(220,165,74,0.2) inset;
}

/* Inner shimmer */
.reh-2551-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.reh-2551-cta:hover::before {
    left: 160%;
}

.reh-2551-cta-label {
    position: relative;
    z-index: 1;
}

.reh-2551-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.reh-2551-cta:hover .reh-2551-arrow {
    transform: translateX(5px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .reh-2551-section {
        padding: 72px 0;
    }
    .reh-2551-header {
        padding: 0 24px;
        margin-bottom: 48px;
    }
    .reh-2551-card {
        width: 280px;
        min-width: 280px;
        height: 380px;
    }
    .reh-2551-cta {
        padding: 16px 44px;
        font-size: 0.78rem;
    }
}
