/* ============================================================
   Huda Interior — All Projects Page
   ============================================================ */

/* ---- Page hero ---- */
.projects-page .hi-page-hero-wrap {
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.90) 0%, rgba(26, 26, 26, 0.65) 100%),
        url(/images/interior_3.jpg) center / cover no-repeat;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.projects-page .hi-page-hero-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--huda-warm-white), transparent);
    pointer-events: none;
}

.projects-page .hi-page-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1rem 5rem;
    position: relative;
    z-index: 1;
    color: var(--huda-white);
}

.projects-page .hi-page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--huda-white);
}

.projects-page .hi-page-hero h1 em {
    font-style: italic;
    color: var(--huda-gold-light);
}

.projects-page .hi-page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ---- Filter Bar ---- */
.hi-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hi-filter-bar__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--huda-text);
    white-space: nowrap;
}

.hi-filter-bar__count {
    font-size: 0.85rem;
    color: var(--huda-text-light);
    margin-left: auto;
}

/* ---- Projects masonry grid ---- */
.hi-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Every 3rd project spans full width for visual rhythm */
.hi-project-card--wide {
    grid-column: 1 / -1;
}

/* ---- Project Card ---- */
.hi-project-card {
    background: var(--huda-white);
    border: 1px solid var(--huda-border);
    border-radius: var(--huda-radius);
    overflow: hidden;
    box-shadow: var(--huda-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}

.hi-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--huda-shadow-lg);
    border-color: var(--huda-gold-light);
}

/* Wide card layout */
.hi-project-card--wide {
    flex-direction: row;
}

.hi-project-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.hi-project-card--wide .hi-project-card__image {
    width: 52%;
    aspect-ratio: unset;
}

.hi-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hi-project-card:hover .hi-project-card__image img {
    transform: scale(1.06);
}

.hi-project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hi-project-card:hover .hi-project-card__overlay {
    opacity: 1;
}

.hi-project-card__view-btn {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background: var(--huda-gold);
    color: var(--huda-white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.35s ease;
    text-decoration: none;
}

.hi-project-card:hover .hi-project-card__view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hi-project-card__body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hi-project-card--wide .hi-project-card__body {
    padding: 2.5rem 3rem;
}

.hi-project-card__number {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--huda-gold);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hi-project-card__number::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--huda-gold-light);
}

.hi-project-card__body h2,
.hi-project-card__body h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.25;
    margin-bottom: 0.85rem;
    color: var(--huda-dark);
}

.hi-project-card--wide .hi-project-card__body h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.hi-project-card__body p {
    font-size: 0.9rem;
    color: var(--huda-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hi-project-card--wide .hi-project-card__body p {
    -webkit-line-clamp: 5;
}

.hi-project-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--huda-gold);
    text-decoration: none !important;
    transition: var(--transition);
    align-self: flex-start;
}

.hi-project-card__cta i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.hi-project-card__cta:hover {
    color: var(--huda-dark);
}

.hi-project-card__cta:hover i {
    transform: translateX(4px);
}

/* ---- Empty state (when no projects) ---- */
.hi-projects-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--huda-text-light);
}

.hi-projects-empty i {
    font-size: 3rem;
    color: var(--huda-border);
    margin-bottom: 1.5rem;
}

.hi-projects-empty h3 {
    font-size: 1.5rem;
    color: var(--huda-dark);
    margin-bottom: 0.75rem;
}

.hi-projects-empty p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ---- How We Work ---- */
.hi-how-we-work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hi-how-we-work__text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hi-how-we-work__text p {
    color: var(--huda-text);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 0.975rem;
}

.hi-how-we-work__text p:last-of-type {
    margin-bottom: 2rem;
}

.hi-how-we-work__steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hi-hww-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--huda-white);
    border: 1px solid var(--huda-border);
    border-radius: var(--huda-radius-sm);
    transition: var(--transition);
}

.hi-hww-step:hover {
    border-color: var(--huda-gold-light);
    transform: translateX(4px);
    box-shadow: var(--huda-shadow);
}

.hi-hww-step__num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--huda-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--huda-white);
}

.hi-hww-step__text h4 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--huda-dark);
}

.hi-hww-step__text p {
    font-size: 0.82rem;
    color: var(--huda-text);
    margin: 0;
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hi-projects-grid {
        grid-template-columns: 1fr;
    }

    .hi-project-card--wide {
        grid-column: auto;
        flex-direction: column;
    }

    .hi-project-card--wide .hi-project-card__image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .hi-project-card--wide .hi-project-card__body {
        padding: 1.75rem;
    }

    .hi-how-we-work {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hi-filter-bar {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .projects-page .hi-page-hero {
        padding: 6rem 1rem 4rem;
    }

    .hi-project-card__body {
        padding: 1.25rem;
    }
}
