@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

/* =======================
   RESET + GLOBAL
======================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Fira Sans", sans-serif;
    font-weight: 300;
    background-color: #FEF5EE;
    color: #493029;
}

button {
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    border: none;
}

/* =======================
   HEADER
======================= */

header {
    background-color: #F2EAE3;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
}

#left {
    font-size: 40px;
    font-weight: 500;
}

#right {
    display: flex;
    gap: 40px;
}

#right a {
    position: relative;
    text-decoration: none;
    color: #493029;
    font-size: 22px;
}

#right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#right a:hover::after {
    transform: scaleX(1);
}

/* =======================
   MAIN
======================= */

main {
    padding: 3% 3%;
}

/* ===== TOP ===== */

#top {
    display: flex;
    gap: 40px;
    margin-bottom: 100px;

}   

#topLeft {
    flex: 1;
}

#topRight {
    flex: 1;
    display: flex;
    gap: 20px;
}

#topRight img {
    width: 48%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.24);
}

/* BUTTON */

.underText a {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 30px;
    border-radius: 30px;
    background-color: rgba(240,240,240,0.6);
    border: 1px solid #DFDFDF;
    text-decoration: none;
    color: #493029;
    transition: 0.2s ease;
}

.underText a:hover {
    background-color: #fff;
    border-color: rgba(0,0,0,0.2);
}

/* ===== MIDDLE ===== */

#middleTopText {
    margin-bottom: 40px;
}

#middlePicsContainer {
    display: flex;
    justify-content: center;
}

#middlePics {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    position: relative;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.card button {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 40px;
    border-radius: 40px;
    background: #f3eee9;
}

/* RESPONSIVE GRID */

@media (max-width: 900px) {
    #middlePics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #middlePics {
        grid-template-columns: 1fr;
    }

    #top {
        flex-direction: column;
    }

    #topRight img {
        height: 250px;
    }
}

/* ===== BOTTOM ===== */

#bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
   margin-top: 10%;
}

#Bleft {
    flex: 1;
}

#Bright {
    flex: 1;
    display: flex;
    justify-content: center;
}

#Bright_img {
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.24);
}

/* =======================
   FOOTER
======================= */

footer {
    background-color: #F2EAE3;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}