/* ═══════════════════════════════════════════════════
   Rejal Omran Sections – Premium Design
   ═══════════════════════════════════════════════════ */

:root {
    --ro-gold: #b1892c;
    --ro-gold-light: #d4ab4a;
    --ro-gold-dark: #8a6a1e;
    --ro-bg: #fafaf8;
    --ro-card-bg: rgba(255, 255, 255, 0.95);
    --ro-text: #3a3a3a;
    --ro-text-light: #666;
    --ro-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
    --ro-shadow-md: 0 15px 40px rgba(0, 0, 0, 0.1);
    --ro-shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.12);
    --ro-shadow-gold: 0 10px 40px rgba(177, 137, 44, 0.15);
    --ro-radius: 20px;
    --ro-radius-lg: 28px;
}

/* ── Section wrapper ── */
.ro-sec {
    padding: 80px 0;
    background: var(--ro-bg);
    position: relative;
    overflow: hidden;
}

.ro-sec + .ro-sec {
    padding-top: 30px;
}

/* Decorative background pattern */
.ro-sec::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(177,137,44,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ro-sec::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(177,137,44,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Container grid ── */
.ro-sec__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .ro-sec__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 48px;
    }

    .ro-sec--text-only .ro-sec__container {
        grid-template-columns: 1fr;
        max-width: 1200px;
    }

    .ro-sec--gallery .ro-sec__container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 1000px;
    }
}

/* ── Image column ── */
.ro-sec__img {
    position: relative;
    padding: 12px;
    border: 2px solid var(--ro-gold);
    border-radius: var(--ro-radius-lg);
    background: rgba(177, 137, 44, 0.04);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.ro-sec:hover .ro-sec__img {
    border-color: var(--ro-gold-light);
    box-shadow: 0 0 20px rgba(177, 137, 44, 0.12);
}

.ro-sec__img-el {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--ro-radius-lg);
    box-shadow: var(--ro-shadow-md);
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    position: relative;
    z-index: 1;
}

.ro-sec:hover .ro-sec__img-el {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--ro-shadow-gold);
}

/* ── Text card (glassmorphism) ── */
.ro-sec__text {
    background: var(--ro-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(177, 137, 44, 0.18);
    border-radius: var(--ro-radius-lg);
    padding: 40px 40px 36px;
    box-shadow: var(--ro-shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.ro-sec:hover .ro-sec__text {
    transform: translateY(-4px);
    box-shadow: var(--ro-shadow-lg);
}

/* Decorative corner accent on card */
.ro-sec__text::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, rgba(177,137,44,0.08) 0%, transparent 60%);
    border-radius: 0 var(--ro-radius-lg) 0 100%;
    pointer-events: none;
}

/* Bottom-left accent */
.ro-sec__text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(177,137,44,0.06) 0%, transparent 60%);
    border-radius: 0 100% 0 var(--ro-radius-lg);
    pointer-events: none;
}

/* ── Title ── */
.ro-sec__title {
    font-size: 30px;
    line-height: 1.35;
    margin: 0 0 20px;
    color: var(--ro-gold-dark);
    font-weight: 800;
    position: relative;
    padding-bottom: 16px;
}

/* Gold underline accent */
.ro-sec__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ro-gold), var(--ro-gold-light));
    border-radius: 3px;
    transition: width 0.5s ease;
}

html[dir="ltr"] .ro-sec__title::after {
    left: 0;
    right: auto;
    background: linear-gradient(90deg, var(--ro-gold-light), var(--ro-gold), transparent);
}

.ro-sec:hover .ro-sec__title::after {
    width: 120px;
}

/* Diamond decorator before title */
.ro-sec__title::before {
    content: "◆";
    position: absolute;
    top: 4px;
    right: -28px;
    font-size: 10px;
    color: var(--ro-gold);
    opacity: 0.4;
}

html[dir="ltr"] .ro-sec__title::before {
    left: -28px;
    right: auto;
}

/* ── Description ── */
.ro-sec__desc {
    color: var(--ro-text);
    font-size: 16px;
    line-height: 1.85;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ro-sec__desc p {
    margin: 0 0 14px;
    color: var(--ro-text-light);
}

.ro-sec__desc p:last-child {
    margin-bottom: 0;
}

.ro-sec__desc ul {
    margin: 0 0 14px 1.2em;
    color: var(--ro-text-light);
}

.ro-sec__desc strong,
.ro-sec__desc b {
    color: var(--ro-gold-dark);
    font-weight: 700;
}

/* ── Button ── */
.ro-sec__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--ro-gold) 0%, var(--ro-gold-light) 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(177, 137, 44, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ro-sec__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ro-gold-light) 0%, var(--ro-gold-dark) 100%);
    z-index: -1;
    transition: left 0.4s ease;
    border-radius: 50px;
}

.ro-sec__btn:hover::before {
    left: 0;
}

.ro-sec__btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(177, 137, 44, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

.ro-sec__btn:active {
    transform: translateY(-1px) scale(1.01);
}

.ro-sec__btn-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.ro-sec__btn:hover .ro-sec__btn-arrow {
    transform: translateX(-5px);
}

html[dir="ltr"] .ro-sec__btn-arrow {
    transform: scaleX(-1);
}

html[dir="ltr"] .ro-sec__btn:hover .ro-sec__btn-arrow {
    transform: scaleX(-1) translateX(-5px);
}

/* Button animation on scroll */
.ro-sec__btn {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.55s,
                transform 0.5s ease 0.55s,
                box-shadow 0.4s ease,
                background 0.4s ease;
}

.ro-sec.ro-visible .ro-sec__btn {
    opacity: 1;
    transform: translateY(0);
}

.ro-sec.ro-visible:hover .ro-sec__btn:hover {
    transform: translateY(-3px) scale(1.03);
}

/* ── Direction support ── */
.ro-sec[dir="rtl"] .ro-sec__container {
    direction: rtl;
}

html[dir="ltr"] .ro-sec__container {
    direction: ltr;
}

/* ═══════════════════════════════════════════════════
   Scroll Animations
   ═══════════════════════════════════════════════════ */

.ro-sec__img {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ro-sec__text {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                box-shadow 0.5s ease;
}

/* RTL: flip directions */
.ro-sec[dir="rtl"] .ro-sec__img {
    transform: translateX(-60px);
}

.ro-sec[dir="rtl"] .ro-sec__text {
    transform: translateX(60px);
}

/* Visible state */
.ro-sec.ro-visible .ro-sec__img,
.ro-sec.ro-visible .ro-sec__text {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Title slide up */
.ro-sec__title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, color 0.3s ease;
}

.ro-sec.ro-visible .ro-sec__title {
    opacity: 1;
    transform: translateY(0);
}

/* Description fade in */
.ro-sec__desc {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
}

.ro-sec.ro-visible .ro-sec__desc {
    opacity: 1;
    transform: translateY(0);
}

/* Hover re-states (after visible) */
.ro-sec.ro-visible:hover .ro-sec__text {
    transform: translateY(-4px);
}

.ro-sec.ro-visible:hover .ro-sec__img-el {
    transform: translateY(-6px) scale(1.01);
}

/* Gallery variant: animate from bottom */
.ro-sec--gallery .ro-sec__img {
    transform: translateY(50px) translateX(0);
}

.ro-sec--gallery .ro-sec__text {
    transform: translateY(40px) translateX(0);
}

.ro-sec--gallery.ro-visible .ro-sec__img,
.ro-sec--gallery.ro-visible .ro-sec__text {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.ro-sec--gallery .ro-sec__title::after {
    right: 50%;
    transform: translateX(50%);
}

.ro-sec--gallery .ro-sec__title::before {
    display: none;
}

/* ═══════════════════════════════════════════════════
   Slider / Gallery
   ═══════════════════════════════════════════════════ */

.ro-slider {
    position: relative;
    border-radius: var(--ro-radius-lg);
    overflow: hidden;
    box-shadow: var(--ro-shadow-lg);
}

.ro-slider__track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0ece3;
}

.ro-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.ro-slider__slide--active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.ro-slider__slide--exit {
    opacity: 0;
    transform: scale(0.97);
    z-index: 2;
}

.ro-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Arrows */
.ro-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    color: var(--ro-gold-dark);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.ro-slider:hover .ro-slider__arrow {
    opacity: 1;
}

.ro-slider__arrow:hover {
    background: var(--ro-gold);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(177, 137, 44, 0.3);
}

.ro-slider__arrow--prev {
    left: 14px;
}

.ro-slider__arrow--next {
    right: 14px;
}

/* Dots */
.ro-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 30px;
}

.ro-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--ro-gold);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ro-slider__dot--active {
    background: var(--ro-gold);
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(177, 137, 44, 0.4);
}

.ro-slider__dot:hover {
    background: var(--ro-gold-light);
}

/* Gallery/slider variant: remove single-image frame from the wrapper */
.ro-sec__img--slider {
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.ro-sec__img--slider::before,
.ro-sec__img--slider::after {
    display: none;
}

/* ── Image position: top ── */
.ro-sec--img-top .ro-sec__container {
    grid-template-columns: 1fr !important;
    max-width: 1000px;
    gap: 0;
}

.ro-sec--img-top .ro-sec__img {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.ro-sec--img-top .ro-sec__img-el {
    border-radius: var(--ro-radius-lg) var(--ro-radius-lg) 0 0;
}

.ro-sec--img-top .ro-sec__text {
    border-radius: 0 0 var(--ro-radius-lg) var(--ro-radius-lg);
    border-top: 3px solid var(--ro-gold);
    text-align: center;
}


.ro-sec--img-top .ro-sec__title::after {
    right: 50%;
    transform: translateX(50%);
}

.ro-sec--img-top .ro-sec__title::before {
    display: none;
}

/* ── Image position: bottom ── */
.ro-sec--img-bottom .ro-sec__container {
    grid-template-columns: 1fr !important;
    max-width: 1000px;
    gap: 0;
}

.ro-sec--img-bottom .ro-sec__img {
    width: 100%;
    order: 2;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.ro-sec--img-bottom .ro-sec__img-el {
    border-radius: 0 0 var(--ro-radius-lg) var(--ro-radius-lg);
}

.ro-sec--img-bottom .ro-sec__text {
    border-radius: var(--ro-radius-lg) var(--ro-radius-lg) 0 0;
    border-bottom: 3px solid var(--ro-gold);
    text-align: center;
}


.ro-sec--img-bottom .ro-sec__title::after {
    right: 50%;
    transform: translateX(50%);
}

.ro-sec--img-bottom .ro-sec__title::before {
    display: none;
}

/* ── Image position: top/bottom animations ── */
.ro-sec--img-top .ro-sec__img,
.ro-sec--img-bottom .ro-sec__img {
    transform: translateY(50px) translateX(0);
}

.ro-sec--img-top .ro-sec__text,
.ro-sec--img-bottom .ro-sec__text {
    transform: translateY(40px) translateX(0);
}

.ro-sec--img-top.ro-visible .ro-sec__img,
.ro-sec--img-top.ro-visible .ro-sec__text,
.ro-sec--img-bottom.ro-visible .ro-sec__img,
.ro-sec--img-bottom.ro-visible .ro-sec__text {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ── Image position: top/bottom in media query ── */
@media (min-width: 900px) {
    .ro-sec--img-top .ro-sec__container,
    .ro-sec--img-bottom .ro-sec__container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 1000px;
    }
}

/* Text-only variant: full width when no image */
.ro-sec--text-only .ro-sec__container {
    grid-template-columns: 1fr !important;
    max-width: 960px;
}

.ro-sec--text-only .ro-sec__text {
    text-align: center;
    padding: 48px 56px 44px;
}

.ro-sec--text-only .ro-sec__title::after {
    right: 50%;
    transform: translateX(50%);
}

.ro-sec--text-only .ro-sec__title::before {
    display: none;
}

.ro-sec--text-only .ro-sec__text {
    transform: translateY(40px) translateX(0);
}

.ro-sec--text-only.ro-visible .ro-sec__text {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Gallery variant: stacked layout (slider top, text bottom) */
.ro-sec--gallery .ro-sec__container {
    grid-template-columns: 1fr !important;
    gap: 0;
    max-width: 1000px;
}

.ro-sec--gallery .ro-sec__img {
    width: 100%;
}

.ro-sec--gallery .ro-slider {
    border-radius: var(--ro-radius-lg) var(--ro-radius-lg) 0 0;
}

.ro-sec--gallery .ro-slider__track {
    aspect-ratio: 16 / 9;
}

.ro-sec--gallery .ro-sec__text {
    border-radius: 0 0 var(--ro-radius-lg) var(--ro-radius-lg);
    border-top: 3px solid var(--ro-gold);
    text-align: center;
}

/* Progress bar on active dot (auto-play indicator) */
@keyframes ro-dot-fill {
    from { box-shadow: inset 0 0 0 0 var(--ro-gold-light); }
    to   { box-shadow: inset 0 0 0 6px var(--ro-gold-light); }
}

.ro-slider__dot--active {
    animation: ro-dot-fill 5s linear;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 899px) {
    .ro-sec {
        padding: 50px 0;
    }

    .ro-sec__text {
        padding: 28px 24px 24px;
    }

    .ro-sec__title {
        font-size: 24px;
    }

    .ro-sec__desc {
        font-size: 15px;
    }

    .ro-sec__img::before {
        top: 10px;
        right: -8px;
        bottom: -10px;
        left: 8px;
    }

    .ro-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
        opacity: 1;
    }

    .ro-slider__arrow--prev { left: 8px; }
    .ro-slider__arrow--next { right: 8px; }

    .ro-slider__dots {
        bottom: 10px;
        gap: 8px;
        padding: 4px 10px;
    }

    /* On mobile, animate from bottom */
    .ro-sec__img,
    .ro-sec[dir="rtl"] .ro-sec__img {
        transform: translateY(40px) translateX(0);
    }

    .ro-sec__text,
    .ro-sec[dir="rtl"] .ro-sec__text {
        transform: translateY(40px) translateX(0);
    }
}

@media (max-width: 600px) {
    .ro-sec {
        padding: 36px 0;
    }

    .ro-sec__container {
        padding: 0 16px;
        gap: 24px;
    }

    .ro-sec__text {
        padding: 22px 20px 20px;
        border-radius: var(--ro-radius);
    }

    .ro-sec__img-el {
        border-radius: var(--ro-radius);
    }

    .ro-sec__title {
        font-size: 22px;
    }
}
