* {
    /*deleting the margin and padding for no invisible border*/
    /*So the header and the footer touches the end of the page*/
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /*Font*/
    font-family: Arial, Helvetica, sans-serif;
}


body {
    background-color: #FAF7F1;
}

button {
    min-height: 44px;
    cursor: pointer;
}

button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

.header-button {
    /*To be able to show tooltip*/
    position:relative;

    color: #593828;
    font-weight: bolder;
    background-color: #C8D1BC;
    font-size: xx-large;
    border-radius: 20px;
    display: flex;
    gap: 10px;

    padding: 5px;
    border: #593828 1px solid;
    box-shadow: 3px 3px;

    transition: transform 0.1s, box-shadow 0.1s ;



    /*vertical alignment*/
    align-items: center;
}


/*Just for the tooltip*/
.header-button:hover .tooltip,
.header-button:focus-visible .tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);

    transition-delay: 1s;
}


.header-button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px #593828;
}




header {
    border-bottom: #593828 2px inset;
    z-index: 1000;
    /*Stick the header to the screen*/
    position: sticky;
    top: 0px;


    background-color: #C8D1BC;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 1.5em;
}

header img {
    height: 50px;
    width: 50px;
    border: #593828 1px solid;
    border-radius: 10px;
}





.footer-section {
    background-color: #593828;
}

.map-section img {
    height: 10%;
    width: 10%;
    border-radius: 20px;
    border: #D9AB98 4px solid;
}

.map-section iframe {
    height: 300px;
    width: min(100%, 500px);
    flex-shrink: 0;
    border-radius: 20px;
    border: #D9AB98 4px solid;
}

.map-section {
    background-color: #593828;

    margin: 10px;
    border-top: #FAF7F1 1px inset;

    display: flex;
    /*vertical*/
    align-items: center;
    gap: 3%;
    /*horizontal*/
    justify-content: center;

    padding: 15px 15px 15px;

    /*FONT + TEXT*/
    color: #D9AB98;
    font-size: large;
    font-weight: bold;
    line-height: 1.6;


}

.footer-title {
    /*Title design*/
    font-size: x-large;
    font-weight: bolder;
    color: #EAD6A3;
    padding-left: 2em;
}

.footer-map-card {
    padding-top: 10px ;
    background-color: #593828;
}





/*Contact Section*/
.footer-contact-card {
    background-color: #593828;
    padding-top: 20px;
    padding-bottom: 5px;

}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px;
}

.contact-slot {
    display: flex;
    align-items: center;
    gap: 15px;

    width: 220px;
    margin: 0 auto;

    /*FONT + TEXT*/
    color: #D9AB98;
    font-size: large;
    font-weight: bold;
}


.contact-button {
    background-color: #593828;
    display: flex;
    align-items: center;
    border: #C8D1BE 1px solid;

    gap: 15px;

    border-radius: 20px;

    padding: 5px;
    width: 220px;
    margin: 0 auto;
    padding-left: 10px;
    /*FONT + TEXT*/
    color: #D9AB98;
    font-size: large;
    font-weight: bold;

    box-shadow: 3px 3px;

    transition: transform 0.1s, box-shadow 0.1s ;


}

.contact-button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px #593828;
}

.contact-slot img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 20px;
    border: #D9AB98 4px solid;
}

.contact-grid {
    border-top: #FAF7F1 1px inset;
    margin: 10px;
    padding: 10px;
}


/*Toast*/

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;

    transform: translate(-50%, 20px);

    background-color: #C8D1BE;
    color: #593828;

    padding: 12px 24px;
    border: 1px solid #593828;
    border-radius: 12px;

    box-shadow: 3px 3px #593828;

    font-weight: bold;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease,
                transform 0.3s ease,
                visibility 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/*Stack the map before the address gets squeezed*/
@media (max-width: 1024px) {
    .map-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/*Keep the header compact and the contacts easy to tap*/
@media (max-width: 600px) {
    header {
        padding: 10px 20px;
    }

    .header-button {
        font-size: 24px;
        border-radius: 16px;
    }

    header img {
        width: 40px;
        height: 40px;
    }

    .footer-title {
        display: block;
        padding: 12px 20px 0;
        font-size: 22px;
    }

    .map-section {
        padding: 20px 10px;
        font-size: 16px;
    }

    .map-section iframe {
        height: 260px;
    }

    .contact-row {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 0 16px;
        gap: 16px;
    }

    .contact-slot,
    .contact-button {
        width: 100%;
        max-width: 400px;
    }

    .contact-button {
        padding: 10px 16px;
    }

    .toast {
        width: max-content;
        max-width: calc(100% - 40px);
        text-align: center;
    }
}
