/* Jisr — project pages, archive, and home grid. */

:root {
    --jisr-navy: #033E50;
    --jisr-navy-2: #005670;
    --jisr-gold: #CD9445;
    --jisr-sand: #CCC8C4;
    --jisr-bg: #F5F5F5;
    --jisr-text: #033E50;
    --jisr-radius: 16px;
}

/* ---------- Home-style nav (sticky pill) ---------- */
.jisr-home-nav-wrap {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 24px;
    margin-bottom: 32px;
    pointer-events: none;
}
@media (max-width: 860px) {
    .jisr-home-nav-wrap { margin-bottom: 20px; }
}
.jisr-home-nav {
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 14px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: rgb(3, 61, 79);
    border-radius: 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: "DIN Next LT Arabic Medium", "Inter", sans-serif;
}
.jisr-home-nav__cta {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: rgb(205, 148, 69);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.jisr-home-nav__cta span { direction: rtl; }
.jisr-home-nav__cta:hover { background-color: #b8823a; transform: translateY(-1px); color: #fff; }
.jisr-home-nav__menu {
    order: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.jisr-home-nav__menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.jisr-home-nav__menu a span { direction: rtl; }
.jisr-home-nav__menu a:hover { color: rgb(205, 148, 69); opacity: 1; }
.jisr-home-nav__logo {
    order: 3;
    display: flex;
    align-items: center;
    padding: 2px 6px;
}
.jisr-home-nav__logo img {
    height: 44px;
    width: auto;
    display: block;
}
@media (max-width: 860px) {
    .jisr-home-nav-wrap { padding: 0 12px; top: 8px; }
    .jisr-home-nav { padding: 8px 10px; gap: 12px; border-radius: 24px; }
    .jisr-home-nav__menu { gap: 14px; font-size: 0.9rem; }
    .jisr-home-nav__cta { padding: 8px 14px; font-size: 0.85rem; }
    .jisr-home-nav__logo img { height: 34px; }
}
@media (max-width: 600px) {
    .jisr-home-nav__menu { display: none; }
}

/* ---------- Home-style footer (full-width navy) ---------- */
.jisr-home-footer {
    background-color: rgb(3, 61, 79);
    color: #fff;
    width: 100%;
    padding: 56px 48px 24px;
    box-sizing: border-box;
    font-family: "DIN Next LT Arabic Regular", "Inter", sans-serif;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.jisr-home-footer__logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 32px;
}
.jisr-home-footer__logo img {
    width: 285px;
    max-width: 60%;
    height: auto;
    display: block;
}
.jisr-home-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.jisr-home-footer__col { direction: rtl; }
.jisr-home-footer__col h4 {
    color: #fff;
    font-family: "DIN Next LT Arabic Bold", "DIN Next LT Arabic Medium", sans-serif;
    font-size: 1.15rem;
    margin: 0 0 16px;
    direction: rtl;
}
.jisr-home-footer__col p {
    margin: 6px 0;
    line-height: 1.7;
    font-size: 1rem;
    color: #fff;
}
.jisr-home-footer__col a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.jisr-home-footer__col a:hover { color: rgba(255, 255, 255, 0.7); }
.jisr-home-footer__copy {
    border-top: 1px solid rgb(205, 148, 69);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.jisr-home-footer__socials {
    display: flex;
    align-items: center;
    gap: 14px;
}
.jisr-home-footer__socials a {
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}
.jisr-home-footer__socials a:hover { opacity: 0.7; }
.jisr-home-footer__socials svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: currentColor;
}
.jisr-home-footer__spacer { flex: 1; }
.jisr-home-footer__mark img {
    height: 70px;
    width: auto;
    display: block;
}
@media (max-width: 860px) {
    .jisr-home-footer { padding: 40px 24px 20px; }
    .jisr-home-footer__cols { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
    .jisr-home-footer__copy { flex-wrap: wrap; }
    .jisr-home-footer__mark img { height: 54px; }
}

/* ---------- Shared grid on home + archive ---------- */

.jisr-projects-section {
    padding: 60px 20px;
    background: var(--jisr-bg);
}
.jisr-projects-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.jisr-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.jisr-project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--jisr-radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(3, 62, 80, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    font-family: "DIN Next LT Arabic Regular", "Inter", sans-serif;
}
.jisr-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(3, 62, 80, 0.16);
}
.jisr-project-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}
.jisr-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.jisr-project-card:hover .jisr-project-card__media img {
    transform: scale(1.04);
}
.jisr-project-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jisr-project-card__title {
    font-family: "DIN Next LT Arabic Bold", "Inter", sans-serif;
    font-size: 1.2rem;
    color: var(--jisr-navy);
    margin: 0;
}
.jisr-project-card__subtitle {
    color: var(--jisr-navy-2);
    font-size: .95rem;
    line-height: 1.5;
    margin: 0;
}
.jisr-project-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: .85rem;
}
.jisr-project-card__location {
    color: var(--jisr-navy-2);
}
.jisr-project-card__status {
    color: var(--jisr-gold);
    font-family: "DIN Next LT Arabic Medium", sans-serif;
}

/* ---------- Single project page ---------- */

.jisr-project {
    font-family: "DIN Next LT Arabic Regular", "Inter", sans-serif;
    color: var(--jisr-text);
    background: var(--jisr-bg);
}

.jisr-project__hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}
.jisr-project__hero-media {
    position: absolute;
    inset: 0;
}
.jisr-project__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jisr-project__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,62,80,0) 0%, rgba(3,62,80,.82) 100%);
}
.jisr-project__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 48px;
}
.jisr-project__crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .9rem;
    opacity: .85;
    margin-bottom: 12px;
}
.jisr-project__crumbs a {
    color: #fff;
    text-decoration: none;
}
.jisr-project__crumbs a:hover {
    color: var(--jisr-gold);
}
.jisr-project__title {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 12px;
    line-height: 1.2;
}
.jisr-project__subtitle {
    font-size: 1.1rem;
    max-width: 680px;
    opacity: .95;
    margin: 0;
}

.jisr-project__stats {
    background: #fff;
    border-bottom: 1px solid #e4e2e0;
}
.jisr-project__stats-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.jisr-project__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 2px solid var(--jisr-gold);
    padding-right: 14px;
}
.jisr-project__stat-label {
    color: var(--jisr-navy-2);
    font-size: .85rem;
}
.jisr-project__stat-value {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    color: var(--jisr-navy);
    font-size: 1.05rem;
}

.jisr-project__body-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}
.jisr-project__description h2,
.jisr-project__features h2,
.jisr-project__gallery h2,
.jisr-project__map h2 {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    color: var(--jisr-navy);
    margin: 0 0 16px;
    font-size: 1.5rem;
}
.jisr-project__description p {
    line-height: 1.9;
    color: var(--jisr-navy-2);
    font-size: 1.02rem;
}
.jisr-project__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jisr-project__features {
    min-width: 0; /* allow grid cell to shrink without clipping text */
}
.jisr-project__features ul {
    direction: rtl;
    unicode-bidi: isolate;
}
.jisr-project__features li {
    padding: 10px 22px 10px 0;
    border-bottom: 1px dashed #d9d7d4;
    color: var(--jisr-navy-2);
    position: relative;
    text-align: right;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: normal;
}
.jisr-project__features li bdi {
    display: inline;
    unicode-bidi: isolate;
}
.jisr-project__features li::before {
    content: "✦";
    color: var(--jisr-gold);
    position: absolute;
    right: 0;
    top: 10px;
    font-size: .9em;
}
@media (max-width: 820px) {
    .jisr-project__body-wrap { grid-template-columns: 1fr; gap: 32px; }
}

.jisr-project__gallery {
    background: #fff;
    border-top: 1px solid #e4e2e0;
}
.jisr-project__gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
}
.jisr-project__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.jisr-project__gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}
.jisr-project__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.jisr-project__gallery-item:hover img { transform: scale(1.05); }

/* ---------- Amenity accordion ---------- */
.jisr-project__amenities {
    background: var(--jisr-bg);
    border-top: 1px solid #e4e2e0;
}
.jisr-project__amenities-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jisr-amenity-group {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(3,62,80,.05);
    overflow: hidden;
}
.jisr-amenity-group > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    color: var(--jisr-navy);
}
.jisr-amenity-group > summary::-webkit-details-marker { display: none; }
.jisr-amenity-group__toggle {
    color: var(--jisr-gold);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .2s ease;
}
.jisr-amenity-group[open] .jisr-amenity-group__toggle { transform: rotate(45deg); }
.jisr-amenity-group__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 0 20px 20px;
}
.jisr-amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--jisr-bg);
    border-radius: 10px;
    text-align: center;
}
.jisr-amenity-item__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jisr-amenity-item__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.jisr-amenity-item__label {
    color: var(--jisr-navy-2);
    font-size: .95rem;
}

.jisr-project__units {
    background: var(--jisr-bg);
    border-top: 1px solid #e4e2e0;
}
.jisr-project__units-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
}
.jisr-project__units-wrap h2 {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    color: var(--jisr-navy);
    font-size: 1.6rem;
    margin: 0 0 20px;
}
.jisr-project__units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.jisr-unit-card {
    background: #fff;
    border-radius: var(--jisr-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(3,62,80,.06);
    display: flex;
    flex-direction: column;
}
.jisr-unit-card__media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eee;
}
.jisr-unit-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.jisr-unit-card__body { padding: 18px 20px 20px; }
.jisr-unit-card__name {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    color: var(--jisr-navy);
    font-size: 1.15rem;
    margin: 0 0 10px;
}
.jisr-unit-card__specs {
    list-style: none; padding: 0; margin: 0;
}
.jisr-unit-card__specs li {
    padding: 6px 0;
    border-bottom: 1px dashed #e0ddda;
    color: var(--jisr-navy-2);
    font-size: .95rem;
}
.jisr-unit-card__specs li:last-child { border-bottom: 0; }
.jisr-unit-card__specs li span {
    color: var(--jisr-gold);
    font-family: "DIN Next LT Arabic Medium", sans-serif;
}

.jisr-project__map {
    background: var(--jisr-bg);
}
.jisr-project__map-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}
.jisr-project__map-link {
    display: inline-block;
    background: var(--jisr-gold);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-family: "DIN Next LT Arabic Medium", sans-serif;
}

.jisr-project__cta {
    background: var(--jisr-navy);
    color: #fff;
    text-align: center;
}
.jisr-project__cta-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}
.jisr-project__cta h2 {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    font-size: 2rem;
    margin: 0 0 12px;
}
.jisr-project__cta p { opacity: .9; margin: 0 0 24px; }
.jisr-project__cta-btn {
    display: inline-block;
    background: var(--jisr-gold);
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-family: "DIN Next LT Arabic Medium", sans-serif;
    font-size: 1.05rem;
    transition: transform .2s ease;
}
.jisr-project__cta-btn:hover { transform: translateY(-2px); }

/* ---------- Archive hero ---------- */
.jisr-project-archive__hero {
    background: var(--jisr-navy);
    color: #fff;
    text-align: center;
    padding: 80px 24px 56px;
}
.jisr-project-archive__hero h1 {
    font-family: "DIN Next LT Arabic Bold", sans-serif;
    font-size: 2.6rem;
    margin: 0 0 10px;
}
.jisr-project-archive__hero p { opacity: .85; margin: 0; }
.jisr-project-archive__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
