/* projects-page.css — sections unique to the "all projects" page:
   1. .projects-banner — dark hero banner with title, stats, photo, description
   2. .projects-map    — Israel map with city chip labels (image-as-section)
   3. .projects-gallery — 8 building cards (4x2) with location chip overlay
   Canvas: 1920px. Scaled-stage pattern per claude-html §3.8/§VV. */


/* ===== 1. BANNER ===== */
.projects-banner {
    position: relative;
    width: 100%;
    height: 650px;                     /* Figma banner frame: 650px (excluding the description below) */
    background: #131313;
    overflow: hidden;
    color: var(--c-wht);
}

.projects-banner__stage {
    position: relative;
    width: 1920px;
    height: 650px;
    margin: 0 auto;
    transform-origin: top center;
}

/* Building photo — left side */
.projects-banner__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 1495px;
    height: 650px;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Dark gradients to fade the photo into the dark bg on the right side */
.projects-banner__fade-right {
    position: absolute;
    top: 0;
    left: 800px;                       /* fade starts mid-canvas, goes to right */
    width: 1120px;
    height: 650px;
    background: linear-gradient(to left,
        #131313 0%,
        #131313 35%,
        rgba(19,19,19,0.85) 60%,
        rgba(19,19,19,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.projects-banner__fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 151px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 3;
    pointer-events: none;
}

.projects-banner__fade-bottom {
    position: absolute;
    top: 410px;
    left: 0;
    width: 1920px;
    height: 238px;
    background: linear-gradient(to bottom, rgba(19,19,19,0) 0%, rgba(19,19,19,0.6) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Breadcrumb (top-right area) */
.projects-banner__crumb {
    position: absolute;
    top: 105px;
    right: 310px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-wht);
    font-family: var(--ff-he);
    font-size: 16px;
    font-weight: 300;
    opacity: 0.85;
}

.projects-banner__crumb a { color: inherit; }
.projects-banner__crumb a:hover { opacity: 0.7; }

.projects-banner__crumb svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Title — large "פרויקטים" right side */
.projects-banner__title {
    position: absolute;
    top: 160px;
    right: 310px;
    width: 361px;
    z-index: 5;
    font-family: var(--ff-he);
    font-size: 110px;
    font-weight: 700;
    line-height: 128px;
    color: var(--c-wht);
    text-align: right;
    margin: 0;
    direction: rtl;
}

/* Gold rule below title */
.projects-banner__rule {
    position: absolute;
    top: 294px;
    right: 310px;
    width: 360px;
    height: 6px;
    background: var(--c-gold-flat);
    z-index: 5;
    border-radius: 3px;
}

/* Stats row — right of title */
.projects-banner__stats {
    position: absolute;
    top: 318px;
    right: 310px;
    width: 495px;
    height: 145px;
    z-index: 5;
    color: var(--c-wht);
    direction: rtl;
}

.projects-banner__stat {
    position: absolute;
    text-align: center;
}

.projects-banner__stat--rak {
    right: 0;
    top: 33px;                 /* align "רק" baseline with 350 / 20 */
}

/* top row: "ייצוג" (small) sits to the RIGHT of the big "רק", aligned to the top of the ר */
.projects-banner__stat-rak-main {
    display: flex;
    flex-direction: row;        /* RTL: ייצוג (first) → right, רק (second) → left */
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.projects-banner__stat-rak-yitzug {
    font-family: var(--ff-he);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: var(--c-wht);
    margin-top: 6px;            /* nudge down so it lines up with the top of the ר */
    white-space: nowrap;
}

.projects-banner__stat-rak-text {
    font-family: var(--ff-he);
    font-size: 76px;
    font-weight: 700;
    line-height: 1;            /* match .projects-banner__stat-num */
    color: var(--c-gold-flat);
    display: block;
}

.projects-banner__stat-rak-labels {
    font-family: var(--ff-he);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--c-wht);
    margin-top: 14px;          /* match .projects-banner__stat-label */
}

.projects-banner__stat-rak-labels span {
    display: block;
}

.projects-banner__stat--num1 {
    right: 188px;
    top: 33px;
}
.projects-banner__stat--num2 {
    right: 380px;
    top: 33px;
}

.projects-banner__stat-num {
    font-family: var(--ff-he);
    font-size: 76px;
    font-weight: 700;
    color: var(--c-gold-flat);
    line-height: 1;
    margin: 0;
    display: block;
}

.projects-banner__stat-label {
    font-family: var(--ff-he);
    font-size: 22px;
    font-weight: 300;
    color: var(--c-wht);
    margin-top: 14px;
    display: block;
}

/* Vertical dividers between stats */
.projects-banner__stat-divider {
    position: absolute;
    width: 1px;
    height: 89px;
    background: rgba(255,255,255,0.35);
    top: 45px;
}
.projects-banner__stat-divider--1 { right: 158px; }
.projects-banner__stat-divider--2 { right: 342px; }

/* Responsive scaling for desktop down to 1920 */
@media (max-width: 1919px) {
    .projects-banner {
        height: calc(650px * (100vw / 1920));
    }
    .projects-banner__stage {
        transform: scale(calc(100vw / 1920));
    }
}


/* ===== 1b. BANNER CALLOUT (white card, overlaps onto banner photo) ===== */
.projects-banner-callout-wrap {
    position: relative;
    width: 100%;
    margin-top: -80px;                 /* climbs up onto the banner photo */
    padding: 0 24px 60px;
    z-index: 10;
    background: transparent;
    display: flex;
    justify-content: center;
    pointer-events: none;              /* let card define its own clickable area */
}

.projects-banner-callout {
    position: relative;                /* anchor for the pendant */
    width: 100%;
    max-width: 1300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    padding: 60px 80px 50px;
    pointer-events: auto;
    text-align: center;
}

/* Pendant — half on the photo above, half inside the card */
.projects-banner-callout__pendant {
    position: absolute;
    top: -37px;                        /* half of 75px height — sits half above, half inside */
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 75px;
    display: block;
    z-index: 2;
    pointer-events: none;
}

.projects-banner-callout__text {
    font-family: var(--ff-he);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-blk);
    text-align: center;
    direction: rtl;
    margin: 0;
}

/* Responsive — scale callout proportionally on smaller desktop */
@media (max-width: 1919px) and (min-width: 1025px) {
    .projects-banner-callout-wrap {
        margin-top: calc(-80px * (100vw / 1920));
    }
}


/* ===== 2. MAP SECTION ===== */
.projects-map {
    position: relative;
    width: 100%;
    background: var(--c-wht);
    padding: 80px 0 60px;
    overflow: hidden;
}

.projects-map__title {
    font-family: var(--ff-he);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--c-text);
    text-align: center;
    margin: 0 auto 30px;
    direction: rtl;
}

.projects-map__img-wrap {
    width: 1300px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    position: relative;
}

.projects-map__img {
    width: 100%;
    height: auto;
    display: block;
}


/* ===== 3. GALLERY SECTION ===== */
.projects-gallery {
    position: relative;
    width: 100%;
    background: var(--c-wht);
    padding: 40px 0 100px;
    overflow: hidden;
}

.projects-gallery__title {
    font-family: var(--ff-he);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--c-text);
    text-align: center;
    margin: 0 auto 40px;
    direction: rtl;
}

.projects-gallery__grid {
    width: 1300px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 23px;
    direction: rtl;
}

.projects-gallery__card {
    position: relative;
    aspect-ratio: 301 / 401;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    color: var(--c-wht);
    transition: transform 0.3s var(--ease);
}

.projects-gallery__card:hover {
    transform: translateY(-4px);
}

.projects-gallery__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Bottom-fade overlay so the location text is readable */
.projects-gallery__card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 116px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

.projects-gallery__card-location {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-he);
    font-size: 18px;
    font-weight: 400;
    color: var(--c-wht);
    white-space: nowrap;
    direction: rtl;
}

.projects-gallery__card-pin {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}


/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 1024px) {

    /* ----- BANNER ----- */
    .projects-banner {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 120px 0 32px;
        background: #131313;
        overflow: hidden;
    }

    .projects-banner__stage {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        padding: 0 16px;
    }

    .projects-banner__photo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 280px !important;
        object-fit: cover;
        z-index: 1;
        opacity: 0.55;
    }

    .projects-banner__fade-right {
        display: none !important;
    }

    .projects-banner__fade-top {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 120px !important;
        z-index: 2;
    }

    .projects-banner__fade-bottom {
        position: absolute !important;
        top: 200px !important;
        left: 0 !important;
        width: 100% !important;
        height: 200px !important;
        background: linear-gradient(to bottom, rgba(19,19,19,0) 0%, #131313 80%) !important;
        z-index: 2;
    }

    .projects-banner__crumb {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 5;
        justify-content: center;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .projects-banner__title {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 58px;
        line-height: 1.05;
        text-align: center;
        margin: 0 0 16px;
        z-index: 5;
    }

    .projects-banner__rule {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 200px !important;
        height: 4px !important;
        margin: 0 auto 28px;
        z-index: 5;
    }

    .projects-banner__stats {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 360px !important;
        height: auto !important;
        margin: 0 auto 24px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        z-index: 5;
        gap: 6px;
    }

    .projects-banner__stat,
    .projects-banner__stat--rak,
    .projects-banner__stat--num1,
    .projects-banner__stat--num2 {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .projects-banner__stat-rak-text { font-size: 44px; }
    .projects-banner__stat-num      { font-size: 44px; }
    .projects-banner__stat-rak-labels,
    .projects-banner__stat-label    { font-size: 15px; margin-top: 8px; }
    .projects-banner__stat-rak-labels { margin-top: 8px; }

    .projects-banner__stat-divider {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        height: 60px;
        width: 1px;
        flex: 0 0 1px;
        align-self: flex-start;
        margin-top: 14px;
    }

    /* ----- BANNER CALLOUT (mobile) ----- */
    .projects-banner-callout-wrap {
        margin-top: -40px !important;
        padding: 0 16px 32px;
    }

    .projects-banner-callout {
        padding: 24px 18px 22px;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    }

    .projects-banner-callout__text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* ----- MAP ----- */
    .projects-map {
        padding: 50px 0 30px;
    }
    .projects-map__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .projects-map__img-wrap {
        max-width: 100%;
        padding: 0 16px;
    }

    /* ----- GALLERY ----- */
    .projects-gallery {
        padding: 30px 0 80px;
    }
    .projects-gallery__title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    .projects-gallery__grid {
        max-width: 100%;
        padding: 0 16px;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .projects-gallery__card-location {
        font-size: 13px;
    }
    .projects-gallery__card-pin {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }
}

@media (max-width: 480px) {
    .projects-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .projects-banner__title {
        font-size: 48px;
    }
}


/* ===== HERO stats synced from homepage (lawyer-banner__col-stats) — positioned right, like the old projects-banner stats ===== */
.projects-banner .lawyer-banner__col-stats {
    position: absolute;
    top: 300px;
    right: 310px;
    z-index: 5;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .projects-banner .lawyer-banner__col-stats {
        position: static;
        right: auto;
        top: auto;
        align-items: center;
        margin: 18px auto 0;
    }
}
