*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 60px;
    background:
        linear-gradient(rgba(248, 248, 248, 0.94), rgba(248, 248, 248, 0.94)),
        url('../images/compasses-plans.jpg') center / cover no-repeat fixed;
}

.hero{
    width: min(1250px, 92%);
    margin: 0 auto;
    min-height: 350px;
    border-radius: 18px;
    overflow: hidden;
    background: url('../images/3d-view-house-model.jpg') center / cover no-repeat;
}

.overlay{
    min-height: 350px;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.45));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: clamp(22px, 4vw, 52px);
}

.eyebrow{
    font-size: 20px;
    text-transform: uppercase;
    color: #ffbe85;
    letter-spacing: 1px;
}

.overlay h1{
    font-size: clamp(40px, 5vw, 64px);
}

.overlay p{
    font-size: clamp(21px, 1.9vw, 27px);
    max-width: 980px;
}

.facade-gallery{
    width: min(1250px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
}

.facade-gallery figure{
    border: 1px solid #e8e8e8;
    border-radius: 13px;
    overflow: hidden;
    background-color: white;
}

.facade-gallery img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facade-gallery figcaption{
    font-size: 22px;
    text-align: center;
    padding: 12px;
}

.insights{
    width: min(1250px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px;
}

.insights article{
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: white;
}

.insights img{
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.insights div{
    padding: 16px;
}

.insights h4{
    font-size: 33px;
    margin-bottom: 6px;
}

.insights p{
    font-size: 22px;
    color: #3f3f3f;
}

.facade-clickable{
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.facade-clickable:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #f0c8a5;
}

.facade-clickable:focus{
    outline: 3px solid rgba(245, 129, 33, 0.35);
    outline-offset: 2px;
}

.info-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.info-modal.open{
    display: block;
}

.info-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.info-modal-card{
    position: relative;
    width: min(900px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: white;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #ececec;
    z-index: 1;
}

.info-modal-close{
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: #111;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.info-modal-card img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}

.info-modal-card h3{
    font-size: clamp(30px, 3.2vw, 42px);
    margin-bottom: 8px;
}

.info-modal-card p{
    font-size: clamp(20px, 1.8vw, 24px);
    color: #3f3f3f;
    margin-top: 8px;
}

.hint-toast{
    position: fixed;
    right: 20px;
    bottom: 22px;
    background: #111;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #333;
    font-size: 20px;
    z-index: 1100;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hint-toast.show{
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1100px){
    .facade-gallery{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 700px){
    .hero,
    .overlay{
        min-height: 300px;
    }
    .facade-gallery,
    .insights{
        grid-template-columns: 1fr;
    }
    .hint-toast{
        right: 12px;
        left: 12px;
        bottom: 14px;
        font-size: 18px;
    }
}
