/* Rayat Najd - homepage redesign (brand colours unchanged) */
:root {
    --rn-primary: #962E2F;
    --rn-primary-dark: #7a2324;
    --rn-dark: #2d2d2d;
    --rn-text: #5d5d5d;
    --rn-muted: #8d8d8d;
    --rn-line: #e8e8e8;
    --rn-soft: #f9f9f9;
    --rn-radius: 18px;
    --rn-shadow: 0 10px 30px rgba(45, 45, 45, .08);
    --rn-shadow-lg: 0 20px 50px rgba(45, 45, 45, .14);
}

/* Header on the home page: solid, clean bar */
.site-header.home-header {
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .06);
    z-index: 50;
}

.rn-home {
    font-family: 'Tajawal', sans-serif;
    color: var(--rn-text);
    padding-top: 89px;
}
.rn-home h1, .rn-home h2, .rn-home h3 { font-family: 'Tajawal', sans-serif; }
.rn-home img { max-width: 100%; }

/* Reveal on scroll (only hidden once JS is ready) */
.rn-home.rn-anim .rn-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.rn-home.rn-anim .rn-reveal.is-in { opacity: 1; transform: none; }

/* Shared */
.rn-section { padding: 90px 0; }
.rn-center { text-align: center; margin-top: 40px; }
.rn-eyebrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--rn-primary);
    background: rgba(150, 46, 47, .08);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.rn-eyebrow--light { color: #fff; background: rgba(255, 255, 255, .16); }
.rn-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--rn-dark);
    line-height: 1.35;
    margin: 0 0 18px;
}
.rn-lead { font-size: 18px; line-height: 2; color: var(--rn-text); margin-bottom: 30px; }
.rn-heading { text-align: center !important; margin-bottom: 50px; }
.rn-heading .rn-title { margin-bottom: 14px; text-align: center !important; }
.rn-heading__bar { display: inline-block; width: 64px; height: 4px; border-radius: 4px; background: var(--rn-primary); }

.rn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all .25s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.rn-btn--primary { background: var(--rn-primary); color: #fff !important; }
.rn-btn--primary:hover { background: var(--rn-primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(150, 46, 47, .3); }
.rn-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.rn-btn--ghost:hover { background: #fff; color: var(--rn-dark) !important; }
.rn-btn--light { background: #fff; color: var(--rn-primary) !important; }
.rn-btn--light:hover { background: var(--rn-dark); color: #fff !important; }
.rn-btn--outline { border-color: var(--rn-primary); color: var(--rn-primary) !important; }
.rn-btn--outline:hover { background: var(--rn-primary); color: #fff !important; }

/* 1. Hero */
.rn-hero { position: relative; background: var(--rn-dark); overflow: hidden; }
.rn-hero__slider { height: min(78vh, 720px); min-height: 520px; }
.rn-hero__slider .slick-list, .rn-hero__slider .slick-track { height: 100%; }
.rn-hero__slide { position: relative; height: min(78vh, 720px); min-height: 520px; }
.rn-hero__slider:not(.slick-initialized) .rn-hero__slide:not(:first-child) { display: none; }
.rn-hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s ease;
}
.rn-hero .slick-active .rn-hero__img { transform: scale(1); }
.rn-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, .25) 0%, rgba(20, 20, 20, .55) 45%, rgba(60, 14, 15, .88) 100%);
}
[dir="ltr"] .rn-hero__overlay {
    background: linear-gradient(270deg, rgba(20, 20, 20, .25) 0%, rgba(20, 20, 20, .55) 45%, rgba(60, 14, 15, .88) 100%);
}
.rn-hero__inner { position: relative; height: 100%; display: flex; align-items: center; }
.rn-hero__content { max-width: 620px; color: #fff; }
.rn-hero__title {
    font-size: 54px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.rn-hero__text { font-size: 20px; line-height: 1.9; color: rgba(255, 255, 255, .9); margin-bottom: 34px; }
.rn-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rn-hero .slick-active .rn-hero__content > * { animation: rnUp .9s ease both; }
.rn-hero .slick-active .rn-hero__content > *:nth-child(2) { animation-delay: .12s; }
.rn-hero .slick-active .rn-hero__content > *:nth-child(3) { animation-delay: .24s; }
.rn-hero .slick-active .rn-hero__content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rnUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rn-hero .slick-dots { bottom: 90px; text-align: inherit; }
.rn-hero .slick-dots li { margin: 0 4px; width: auto; height: auto; }
.rn-hero .slick-dots li button { width: 10px; height: 10px; padding: 0; border-radius: 10px; background: rgba(255, 255, 255, .45); transition: all .3s; }
.rn-hero .slick-dots li button:before { display: none; }
.rn-hero .slick-dots li.slick-active button { width: 34px; background: #fff; }

/* 2. Stats (overlapping the hero) */
.rn-stats { position: relative; z-index: 3; margin-top: -60px; }
.rn-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-radius: var(--rn-radius);
    box-shadow: var(--rn-shadow-lg);
    overflow: hidden;
}
.rn-stat { display: flex; align-items: center; gap: 18px; padding: 30px 34px; }
.rn-stat + .rn-stat { border-inline-start: 1px solid var(--rn-line); }
.rn-stat__icon {
    flex: 0 0 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(150, 46, 47, .08);
    color: var(--rn-primary);
    font-size: 28px;
}
.rn-stat__label { display: block; font-size: 14px; color: var(--rn-muted); }
.rn-stat__label--strong { color: var(--rn-dark); font-weight: 700; font-size: 16px; }
.rn-stat__num { display: block; font-size: 38px; font-weight: 800; color: var(--rn-primary); line-height: 1.2; direction: ltr; text-align: inherit; }
[dir="rtl"] .rn-stat__num { text-align: right; }

/* 3. About */
.rn-about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.rn-about__media {
    position: relative;
    background: linear-gradient(160deg, var(--rn-soft), #f0e6e6);
    border-radius: 28px;
    padding: 30px 30px 0;
    text-align: center;
}
.rn-about__media:before {
    content: "";
    position: absolute;
    inset-inline-end: -18px;
    top: -18px;
    width: 120px; height: 120px;
    border-radius: 24px;
    border: 3px solid var(--rn-primary);
    opacity: .25;
}
.rn-about__media img { position: relative; max-height: 420px; }

/* 4. Services */
.rn-services { background: var(--rn-soft); }
.rn-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rn-service {
    position: relative;
    display: block;
    height: 400px;
    border-radius: var(--rn-radius);
    overflow: hidden;
    box-shadow: var(--rn-shadow);
    text-decoration: none !important;
}
.rn-service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rn-service__shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(30, 10, 10, .85) 100%);
    transition: background .4s ease;
}
.rn-service__body { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; color: #fff; }
.rn-service__num { display: block; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.rn-service__title { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.5; margin: 0 0 16px; }
.rn-service__more {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transition: all .3s ease;
}
.rn-service:hover img { transform: scale(1.08); }
.rn-service:hover .rn-service__shade { background: linear-gradient(180deg, rgba(150, 46, 47, .25) 0%, rgba(122, 35, 36, .92) 100%); }
.rn-service:hover .rn-service__more { background: #fff; color: var(--rn-primary); }

/* 5. Story / video */
.rn-story { background: var(--rn-dark); position: relative; overflow: hidden; }
.rn-story:after {
    content: "";
    position: absolute;
    inset-inline-start: -120px; bottom: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: var(--rn-primary);
    opacity: .25;
    filter: blur(10px);
}
.rn-story__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.rn-story__media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.rn-story__media img { display: block; width: 100%; height: 420px; object-fit: cover; }
.rn-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 86px; height: 86px;
    border-radius: 50%;
    background: var(--rn-primary);
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    box-shadow: 0 0 0 0 rgba(150, 46, 47, .6);
    animation: rnPulse 2s infinite;
}
@keyframes rnPulse {
    0% { box-shadow: 0 0 0 0 rgba(150, 46, 47, .6); }
    70% { box-shadow: 0 0 0 26px rgba(150, 46, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(150, 46, 47, 0); }
}
.rn-story__title { font-size: 21px; font-weight: 500; color: rgba(255, 255, 255, .92); line-height: 2.1; margin: 0 0 32px; }

/* 6. Partners */
.rn-partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.rn-partner {
    display: flex; align-items: center; justify-content: center;
    height: 130px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--rn-line);
    border-radius: 16px;
    transition: all .3s ease;
}
.rn-partner img { width: 100%; height: 100%; max-height: 110px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s ease; }
.rn-partner:hover { border-color: transparent; box-shadow: var(--rn-shadow); transform: translateY(-4px); }
.rn-partner:hover img { filter: none; opacity: 1; }

/* 7. Testimonials */
.rn-testimonials { background: var(--rn-soft); }
.rn-testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rn-quote {
    position: relative;
    margin: 0;
    padding: 34px;
    background: #fff;
    border-radius: var(--rn-radius);
    box-shadow: var(--rn-shadow);
    border-top: 4px solid var(--rn-primary);
}
.rn-quote__mark { position: absolute; top: 18px; inset-inline-end: 26px; font-size: 54px; color: var(--rn-primary); opacity: .15; line-height: 1; }
.rn-quote blockquote { margin: 0 0 24px; font-size: 17px; line-height: 2; color: var(--rn-dark); }
.rn-quote figcaption { display: flex; align-items: center; gap: 14px; }
.rn-quote figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--rn-soft); }
.rn-quote figcaption strong { display: block; color: var(--rn-dark); font-size: 16px; }
.rn-quote figcaption small { color: var(--rn-muted); font-size: 14px; }

/* 8. FAQ */
.rn-faq__list { max-width: 860px; margin: 0 auto; }
.rn-faq__item { background: #fff; border: 1px solid var(--rn-line); border-radius: 14px; margin-bottom: 14px; transition: box-shadow .3s; }
.rn-faq__item[open] { box-shadow: var(--rn-shadow); border-color: transparent; }
.rn-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rn-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.rn-faq__item summary::-webkit-details-marker { display: none; }
.rn-faq__item summary:after {
    content: "+";
    flex: 0 0 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(150, 46, 47, .08);
    color: var(--rn-primary);
    font-size: 22px;
    transition: transform .3s;
}
.rn-faq__item[open] summary:after { content: "−"; background: var(--rn-primary); color: #fff; }
.rn-faq__item p { padding: 0 26px 24px; margin: 0; line-height: 2; color: var(--rn-text); }

/* 9. Blog */
.rn-blog { background: var(--rn-soft); }
.rn-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rn-post { background: #fff; border-radius: var(--rn-radius); overflow: hidden; box-shadow: var(--rn-shadow); transition: transform .3s, box-shadow .3s; }
.rn-post:hover { transform: translateY(-6px); box-shadow: var(--rn-shadow-lg); }
.rn-post__thumb { display: block; height: 220px; overflow: hidden; }
.rn-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rn-post:hover .rn-post__thumb img { transform: scale(1.06); }
.rn-post__body { padding: 22px 24px 26px; }
.rn-post__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rn-post__cats span { font-size: 12px; font-weight: 700; color: var(--rn-primary); background: rgba(150, 46, 47, .08); padding: 3px 10px; border-radius: 999px; }
.rn-post__title { font-size: 18px; font-weight: 700; line-height: 1.7; margin: 0; }
.rn-post__title a { color: var(--rn-dark); }
.rn-post__title a:hover { color: var(--rn-primary); }

/* 10. CTA */
.rn-cta { padding: 0 0 90px; }
.rn-blog + .rn-cta, .rn-testimonials + .rn-cta { padding-top: 90px; }
.rn-cta__box {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: 56px 60px;
    border-radius: 28px;
    background: linear-gradient(120deg, var(--rn-primary) 0%, var(--rn-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rn-cta__box:before {
    content: "";
    position: absolute;
    inset-inline-end: -60px; top: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .06);
}
.rn-cta__box > * { position: relative; }
.rn-cta__box h2 { font-size: 34px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.rn-cta__box p { font-size: 18px; color: rgba(255, 255, 255, .85); margin: 0; line-height: 1.9; }

/* Responsive */
@media (max-width: 1199px) {
    .rn-services__grid { grid-template-columns: repeat(2, 1fr); }
    .rn-hero__title { font-size: 44px; }
}
@media (max-width: 991px) {
    .rn-section { padding: 70px 0; }
    .rn-about__grid, .rn-story__grid { grid-template-columns: 1fr; gap: 40px; }
    .rn-blog__grid { grid-template-columns: repeat(2, 1fr); }
    .rn-stat { padding: 24px; }
    .rn-stat__num { font-size: 32px; }
    .rn-cta__box { flex-direction: column; text-align: center; padding: 44px 30px; }
}
@media (max-width: 767px) {
    .rn-home { padding-top: 70px; }
    .rn-title { font-size: 28px; }
    .rn-lead { font-size: 16px; }
    .rn-hero__slider, .rn-hero__slide { height: 560px; min-height: 0; }
    .rn-hero__title { font-size: 32px; }
    .rn-hero__text { font-size: 16px; }
    .rn-hero__overlay, [dir="ltr"] .rn-hero__overlay { background: linear-gradient(180deg, rgba(20, 20, 20, .35) 0%, rgba(60, 14, 15, .88) 100%); }
    .rn-hero__inner { align-items: flex-end; padding-bottom: 110px; }
    .rn-hero__actions .rn-btn { flex: 1 1 auto; }
    .rn-hero .slick-dots { bottom: 76px; }
    .rn-stats { margin-top: -40px; }
    .rn-stats__grid { grid-template-columns: 1fr; }
    .rn-stat + .rn-stat { border-inline-start: 0; border-top: 1px solid var(--rn-line); }
    .rn-stat { padding: 18px 22px; }
    .rn-services__grid, .rn-testimonials__grid, .rn-blog__grid { grid-template-columns: 1fr; }
    .rn-service { height: 320px; }
    .rn-story__media img { height: 260px; }
    .rn-story__title { font-size: 17px; }
    .rn-partners__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rn-partner { height: 100px; }
    .rn-quote { padding: 26px 22px; }
    .rn-faq__item summary { font-size: 16px; padding: 18px; }
    .rn-faq__item p { padding: 0 18px 20px; }
    .rn-cta__box h2 { font-size: 26px; }
    .rn-cta__box .rn-btn { width: 100%; }
}

/* Guard against theme-wide slider image sizes */
.rn-hero .rn-hero__img { width: 100% !important; height: 100% !important; max-width: none !important; }
.rn-service img, .rn-post__thumb img { max-width: none; }
@media (max-width: 767px) { .rn-home { padding-top: 89px; } }

/* Services: 7 cards, centred rows */
.rn-services__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.rn-services__grid .rn-service { flex: 0 0 calc(25% - 18px); }
@media (max-width: 1199px) { .rn-services__grid .rn-service { flex-basis: calc(50% - 12px); } }
@media (max-width: 767px) { .rn-services__grid .rn-service { flex-basis: 100%; } }

/* Blog: up to 4 latest articles in one row */
@media (min-width: 1200px) { .rn-blog__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .rn-blog__grid { grid-template-columns: repeat(2, 1fr); } }
.rn-post__thumb { height: 190px; }
