
body {
    padding: 0;
    margin: 0;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    touch-action: pan-x pan-y;
}

* {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;

}
:root {
    --accent-color: #0F144B;
    --secondary-color: #D9D9D9;
    --margin: 100px;
}

.secondary-family {
    font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tertiary-family {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.text-tiny {
    font-size: 10px;
}
.text-xxs {
    font-size: 12px;
}
.text-xs { 
    font-size: 14px;
}
.text-xl {
    font-size: 20px;
}
.text-display {
    font-size: 48px;
}

.weight-medium {
    font-weight: 500;
}
.weight-bold {
    font-weight: 700;
}
.weight-semi-bold {
    font-weight: 600;
}

.color-accent {
    color: var(--accent-color);
}

.bg-accent {
    background-color: var(--accent-color);
    color: white;
}

.alignment-center {
    text-align: center;
}

h3 {
    font-size: 32px;
    line-height: 1.16em;
}

h2 {
    font-size: 36px;
    line-height: 1.2em;
}

h1 {
    font-size: 96px;
    line-height: 1.5em; 
}

h2, h1 {
    font-weight: 400;
    padding: 0;
    margin: 0;
}

.underline {
    text-decoration: underline;
}

.button-primary,
.button-secondary,
.offert-details-button {
    padding: 0 50px;
    height: 60px;
    border: none;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    text-wrap: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-primary,
.offert-details-button {
    background-color: var(--accent-color);
    color: white;
}

.button-secondary {
    background-color: var(--secondary-color);
    color: black;
}

.offert-details-button {
    height: 40px;
    width: fit-content;
    padding: 0 30px;
    margin-top: 20px;
}

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 40% 60%;
    height: 120px;
    box-shadow: 0px 5px 40px rgba(0, 0, 0, 0.1);
    background-color: white;
    
    .header-logo-wrap {
        align-self: flex-end;
        justify-self: center;

        .header-logo {
            max-height: 100px;
            
        }
    }

    .header-content {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: end;
        width: 100%;
        height: 100%;

        .header-phone {
            width: fit-content;
            padding-inline: 30px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--accent-color);
            color: white;
            text-decoration: none;
            cursor: pointer;
        }

        nav {
            height: 100%;
        
            ul {
                list-style: none;
                display: flex;
                gap: 30px;
                margin: 0;
                padding: 0;
                height: 100%;
                align-items: center;
                padding-right: 50px;
                li a {
                    text-decoration: none;
                    color: var(--accent-color);
                }
            }
        }
    }
}

.arrow-button {
    width: 35px;
    height: 35px;
    border: none;
    background-color: var(--accent-color);
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}

.container {
    width: calc(100% - 2*var(--margin)) !important;
    max-width: 1440px !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;

    section {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section {
        height: 550px;
        background-image: url("assets/realco_hero_image.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        .hero-text-block {
            padding: 33px;
            width: fit-content;
            background: #FDFDFD80;
        }
    }

    .social-proof-section {
        padding: 50px 0;

        .social-proof-wrap {
            display: grid;
            max-width: calc(100% - 400px);
            grid-template-columns: repeat(4, 1fr);

            .social-proof-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 20px;

                .social-proof-icon {
                    width: 80px;
                    height: 80px;
                    margin-bottom: 15px;
                }

                .social-proof-text {
                    font-size: 18px;
                }

                .social-proof-number {
                    font-size: 64px;
                }
            }
        }
    }

    .offert-section {
        padding: 100px 0;

        .offert-wrap {
            align-items: center;
            gap: 50px;
            width: 100%;

            .offert-content-wrap {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 40px;
                width: 100%;
                
                .offert-buttons {
                    display: flex;
                    gap: 20px;
                }
                
                .offert-slider {
                    width: 100%;
                    height: fit-content;
                    display: flex;
                    flex-direction: column;

                    .offert-slider-wrapper {
                        display: flex;
                        gap: 60px;
                        width: 100%;
                        max-width: 100%;
                        scroll-snap-type: x mandatory;
                        scroll-behavior: smooth;
                        
                        overflow-x: scroll;
                        
                        &::-webkit-scrollbar {
                            height: 0px;
                        }
    
                    }
                    .offert-slide {
                        scroll-snap-align: start;
                        width: 300px;
                        min-width: 300px;
                        padding: 30px;
                        background-color: var(--secondary-color);
                        display: flex;
                        flex-direction: column;
                        gap: 25px;
                        

                        .offert-slide-image-wrap {
                            width: 100%;
                            height: 200px;
                            overflow: hidden;
                            position: relative;
    
                            img {
                                width: 100%;
                                height: 100%;
                                object-fit: contain;
                            }

                            .offert-location-badge {
                                position: absolute;
                                left: 0;
                                bottom: 0;
                                text-transform: uppercase;
                                background-color: var(--accent-color);
                                color: white;
                                padding: 5px 10px;

                            }
                        }

                        .offert-slide-info {
                            display: flex;
                            flex-direction: column;
                            gap: 15px;
                            width: 100%;

                            .offert-details {
                                display: grid;
                                grid-template-columns: 1fr 1fr;
                                grid-template-rows: auto auto;
                            }

                            .offert-pricing {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                color: var(--accent-color)

                            }
                        }
                    }
                }

                .offert-navigation-buttons {
                    display: flex;
                    flex-direction: row;
                    gap: 20px;
                    align-items: center;
                    justify-content: center;
                }
            }

        }
    }

    .history-section {

        .history-header {
            display: flex; 
            justify-content: center;
            align-items: center;
            margin-top: 30px;
        }

        .history-wrap {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            padding: 100px 0;
            align-items: start;

            .history-wrap-content {
                position: relative;
                width: 100%;
                height: auto;
                display: grid;
                min-height: 500px;
                grid-template-rows: 1fr;

                &:nth-child(1) {
                    grid-template-columns: 85% 15%;
                }

                &:nth-child(2) {
                    grid-template-columns: 20% 80%;
                }

            }

            .history-image {
                position: relative;
                width: 100%;
                height: 100%;
                object-fit: cover;
		max-height: 351px;
            }

            .history-year-selector {
                position: relative;
                list-style: none;
                padding: 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: start;
                height: 100%;
                margin: 0;

                li {
                    font-size: 20px;
                    color: #B3B2B2;
                    cursor: pointer;
                }

                .current {
                    color: black;
                }
            }

            .history-navigation-buttons {
                display: flex;
                flex-direction: column;
                gap: 20px;
                align-items: center;
                justify-content: center;
                height: 100%;
                max-height: 500px;

                .arrow-button:nth-child(1) {
                    transform: rotate(90deg);
                }

                .arrow-button:nth-child(2) {
                    transform: rotate(-90deg);
                }

                
            }
        }

    }

    .cta-banner-section {
        padding: 50px 0;

        .cta-banner-wrap {
            display: flex;
            flex-direction: row;
            padding: 50px 100px;
            align-items: center;
            justify-content: space-between;

            h3 {
                max-width: 70%;
            }
        }
    }
}

p {
    padding: 0;
    margin: 0;
}

footer {
    width: 100%;
    padding: 50px 0;
    
    * {
        text-decoration: none;
        color: white;
    }

    .footer-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 100px;
        max-width: 1240px !important;

        .footer-top {
            display: grid;
            width: 100%;
            grid-template-columns: repeat(3, 1fr);

            .footer-logo {
                max-width: 250px;
                max-height: 90px;
            }
            
            .footer-col {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }
        }
        

        .pzfd-logo {
            max-width: 200px;
            max-height: 70px;
            object-fit: contain;
            margin-top: 10px;;
        }
    }
}

@media screen and (max-width: 1250px) {
    :root {
        --margin: 20px;
    }

    .header {
        grid-template-columns: 25% 75%;

        .header-logo-wrap {
            justify-self: center;
            padding-left: 20px;
        }
    }
}



.hidden-desktop {
    display: none;
}

@media screen and (max-width: 1000px) {
    .hidden-mobile {
        display: none;
    }
}
.expand-history-paragraph-wrap {
    margin-top: 10px;
}

.expand-history-paragraph-trigger {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: 'Poppins', sans-serif;
}
