@import url('base.css');

/* Banner */
#banner {
    width: 100%;
}

/* Cards */
.highlight-cards-section {
    text-align: center;
    margin-bottom: 40px;
}

.highlight-cards-title {
    color: var(--brown-dark);
    margin-top: 20px;
    margin-bottom: 40px;
}

.highlight-cards-title:after {
    content: "";
    width: 100px;
    height: 4px;
    background-color: #f9c987;
    display: block;
    margin: 0.5rem auto;
    margin-bottom: 25px;
}

.highlight-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.highlight-card {
    flex-basis: clamp(200px, 25%, 300px);
    background-color: var(--accent-color);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.4s ease,
        background-color 0.4s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    background-color: var(--beige-light);
}

.highlight-card h3 {
    color: var(--primary-color);
    font-size: var(--size-subtitle);
    margin-bottom: 10px;
}

.highlight-card p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Highlight */
.highlights-container .highlight:nth-child(odd) {
    background-color: var(--beige-light);
    color: var(--brown-dark);
}

.highlights-container .highlight:nth-child(even) {
    background-color: var(--primary-color);
    color: var(--brown-light);
}

.highlight {
    width: 100%;

    display: flex;
    justify-content: space-around;
    align-items: center;

    text-align: center;

    margin: 0 auto;
    padding: 80px 20px;
    gap: 20px;
}

.highlight-text {
    max-width: 450px;
}

.highlight-text h2 {
    color: var(--brown-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight-text p {
    font-size: var(--size-text);
    text-align: justify;
    margin: 40px 30px;
}

.highlight-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--yellow-dark);
    color: var(--brown-dark);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition:
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.highlight-button:hover {
    box-shadow: var(--box-shadow-light);
    background-color: var(--yellow-light);
}

.highlight-image img {
    width: clamp(300px, 90%, 800px);
    max-height: calc(100vh - 70px - 40px);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .highlight {
        flex-direction: column;
        align-items: center;
        padding: 40px 10px;
    }

    .highlight-text {
        order: 1;
    }

    .highlight-button {
        order: 2;
        margin-top: 10px;
    }

    .highlight-image {
        order: 3;
        margin-top: 20px;
        height: fit-content;
    }
}

@media (max-width: 480px) {
    .highlight {
        gap: 10px;
    }

    .highlight-text h2 {
        font-size: 2rem;
    }
}

@media (orientation: landscape) {
    .highlight-image {
        max-height: max-content;
    }
}

/* Differentials */
.differentials-section {
    width: 100%;
    background-color: #dad0b9;
    padding: 30px;
    text-align: center;
    margin: 0 auto;
}

.differentials-title {
    font-size: 2rem;
    color: var(--brown-dark);
    font-family: "Arial", sans-serif;
    font-weight: bold;
}

.differentials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}

.differential {
    background-color: #ede8dc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.differential:hover {
    transform: scale(1.05);
}

.differential h3 {
    color: var(--brown-dark);
    font-size: 1.5rem;
}

.differential p {
    text-align: justify;
    color: var(--brown-light);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .differentials-section {
        padding: 20px;
    }

    .differentials-section h2 {
        font-size: 1.8rem;
    }

    .differential h3 {
        font-size: 1.3rem;
    }

    .differential p {
        font-size: 0.9rem;
    }
}
