/**
 * ALH Real Estate - Projets Cover Widget Styles
 * 100% Match to Architectural & Editorial Reference Design with Full Responsive Capabilities
 */

.alh-projets-cover-widget {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

.alh-projets-cover-widget *,
.alh-projets-cover-widget *::before,
.alh-projets-cover-widget *::after {
    box-sizing: border-box;
}

/* Background Image Layer */
.alh-projets-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.3, 1);
}

.alh-projets-cover-widget.alh-zoom-effect:hover .alh-projets-cover-bg {
    transform: scale(1.04);
}

/* Gradient Overlay Layer */
.alh-projets-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Inner Container - Fixed strictly to the bottom */
.alh-projets-cover-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: auto auto 0 auto; /* Sticks strictly to the bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 50px 50px 50px;
}

/* Vertical Alignment Utilities */
.alh-projets-cover-widget.alh-valign-top .alh-projets-cover-inner {
    margin-top: 0;
    margin-bottom: auto;
    justify-content: flex-start;
}
.alh-projets-cover-widget.alh-valign-center .alh-projets-cover-inner {
    margin-top: auto;
    margin-bottom: auto;
    justify-content: center;
}
.alh-projets-cover-widget.alh-valign-bottom .alh-projets-cover-inner {
    margin-top: auto;
    margin-bottom: 0;
    justify-content: flex-end;
}

/* Content Wrapper */
.alh-projets-cover-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Top Section: Title & Subtitle/Location */
.alh-projets-cover-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    width: 100%;
}

.alh-projets-cover-title {
    margin: 0 0 4px 0;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.015em;
    font-family: inherit;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.alh-projets-cover-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.alh-projets-cover-meta-wrap.alh-meta-inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.alh-projets-cover-subtitle {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    display: block;
}

.alh-projets-cover-location {
    font-size: 22px;
    font-weight: 600;
    color: #38b6ff;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: block;
}

.alh-projets-cover-meta-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

/* Lower Section: Description & CTA Button */
.alh-projets-cover-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.alh-projets-cover-footer.alh-layout-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.alh-projets-cover-desc-wrap {
    width: 100%;
    max-width: 780px;
}

.alh-projets-cover-footer.alh-layout-split .alh-projets-cover-desc-wrap {
    flex: 1 1 70%;
}

.alh-projets-cover-description {
    font-size: 15.5px;
    line-height: 1.55;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.01em;
}

.alh-projets-cover-description b,
.alh-projets-cover-description strong {
    font-weight: 700;
    color: #ffffff;
}

.alh-projets-cover-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.alh-projets-cover-footer.alh-layout-split .alh-projets-cover-btn-wrap {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
}

/* CTA Button Styles */
.alh-projets-cover-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding: 0 0 6px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
    letter-spacing: 0.01em;
}

.alh-projets-cover-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38b6ff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    transform-origin: left center;
}

.alh-projets-cover-btn:hover::after {
    transform: scaleX(1.08);
}

.alh-projets-cover-btn .alh-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1em;
    line-height: 1;
}

.alh-projets-cover-btn .alh-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.alh-projets-cover-btn:hover .alh-btn-icon {
    transform: translateX(5px);
}

/* Button style variants */
.alh-projets-cover-btn.alh-btn-solid {
    padding: 12px 26px;
    background-color: #ffffff;
    color: #110e23;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.alh-projets-cover-btn.alh-btn-solid::after {
    display: none;
}
.alh-projets-cover-btn.alh-btn-solid:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.alh-projets-cover-btn.alh-btn-outline {
    padding: 12px 26px;
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid #38b6ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.alh-projets-cover-btn.alh-btn-outline::after {
    display: none;
}
.alh-projets-cover-btn.alh-btn-outline:hover {
    background-color: #38b6ff;
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .alh-projets-cover-inner {
        padding: 50px 35px 40px 35px;
    }
    .alh-projets-cover-title {
        font-size: 46px;
    }
    .alh-projets-cover-subtitle {
        font-size: 28px;
    }
    .alh-projets-cover-location {
        font-size: 20px;
    }
    .alh-projets-cover-desc-wrap {
        max-width: 620px;
    }
}

@media (max-width: 767px) {
    .alh-projets-cover-inner {
        padding: 40px 20px 35px 20px;
    }
    .alh-projets-cover-header {
        margin-bottom: 18px;
    }
    .alh-projets-cover-title {
        font-size: 38px;
        margin-bottom: 2px;
    }
    .alh-projets-cover-subtitle {
        font-size: 24px;
    }
    .alh-projets-cover-location {
        font-size: 18px;
    }
    .alh-projets-cover-footer.alh-layout-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .alh-projets-cover-desc-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .alh-projets-cover-btn-wrap,
    .alh-projets-cover-footer.alh-layout-split .alh-projets-cover-btn-wrap {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}
