/* CSS index */

#logo {
    height: 80px;
}

/* ============== Title ============== */

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    width: 80%;
    max-width: 800px;
    background-color: #fff;
    border: 1px solid var(--secundary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.3s;
}

.main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-family: 'Baskerville Old Face', serif;
    font-size: 4vw; 
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3rem; 
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem; 
    }
}

/* ============== homepage carousel ============== */

.swiper {
    width: 100%;
    height: fit-content;
}

.swiper-slide::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    opacity: 0.6;
    z-index: 4;
    transition: 0.3s;
}

.swiper-slide-active::before {
    opacity: 0;
}

.carousel-card {
    display: flex;
    justify-content: center;
    height: 15em;
}

.carousel-card img {
    width: 100%;
    height: auto;
}

.swiper-slide, .carousel-card img {
    object-fit: cover;
}

@media (max-width: 480px) {
    .carousel-card img {
        width: 70%;
        height: 200px;
    }
    .carousel-card {
        height: 200px;
    }
}

@media (min-width: 1300px) {
    .carousel-card img {
        width: 100%;
        height: 400px;
    }
    .carousel-card {
        height: 25em;
    }
}

/* =============================== PAGE CONTENT =============================== */

#content-container {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.content-section {
    display: flex;
    width: 75%;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    will-change: opacity, transform;
}

.content-section.right {
    justify-content: right;
    margin: 0 0 0 auto;
    transform: translateX(100px);
}

.content-section.left {
    justify-content: left;
    transform: translateX(-100px);
}

.content-section.visible {
    opacity: 1;
    transform: translateX(0px);
}

.content-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.content-section p {
    font-size: 1em;
}

.content-section:hover {
    transform: translateY(-5px);
}

@media screen and (max-width: 768px) {
    #logo {
        height: 100px;
    }
    .content-section {
        width: 80%;
        padding: 5px;
    }
}

/* ================= Main quote styling ================= */

.quote-main {
    font-size: 1.8em;
    color: var(--secundary-color); 
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    border-left: 5px solid var(--main-color);
    max-width: 800px;
}

/* ================= Mission statement styling ================= */

.mission-text {
    color: var(--main-color);
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1000px;
}

/* ================= Realtor Information ================= */

.realtor-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    /* border: 2px solid var(--secundary-color);
    border-radius: 2px 80px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.realtor-photo {
    width: 200px;
    height: auto;
    border-radius: 50%;
    margin-right: 20px;
}

.realtor-info {
    color: var(--main-color);
    font-family: "Roboto Condensed", sans-serif;
    text-align: left;
}

.realtor-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.realtor-info p {
    margin: 5px 0;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .quote-main, .client-quote {
        padding: 15px;
        font-size: 1.4em;
        max-width: 95%;
    }
    .mission-text {
        font-size: 1.2em;
        padding: 20px 40px;
    }
    .realtor-container {
        flex-direction: column;
        text-align: center;
    }
    .realtor-photo {
        margin: 0 0 20px 0;
        width: 150px;
    }
    .realtor-info {
        text-align: center;
    }
}

/* ================= Client quotes styling ================= */

.client-quotes-title {
    font-size: 2em;
    color: var(--main-color);
    text-align: center;
    margin: 40px auto 20px;
    font-family: "Roboto Condensed", sans-serif;
}

.client-quote {
    color: var(--main-color);
    font-style: italic;
    background-color: #f9f9f9; 
    padding: 20px;
}

.client-quote::before {
    content: '“';
    font-size: 3em;
    position: absolute;
    left: 10px;
    top: 10px;
    color: var(--main-color);
}

.client-quote::after {
    content: '”';
    font-size: 3em;
    position: absolute;
    right: 10px;
    bottom: -10px;
    color: var(--main-color);
}

@media (max-width: 768px) {
    .quote-main, .client-quote {
        padding: 15px;
        font-size: 1.4em;
        max-width: 95%;
    }
    .mission-text {
        font-size: 1.2em;
        padding: 20px 40px;
    }
}
