/* home page hero */
.hero {
    display: flex;
    min-height: 330px;
    background-color: #edf4f3;
}
/* hero text */
.header-content {
    width: 50%;
    padding: 45px 35px;
    align-self: center;
    text-align: center;
}
.header-content h1 {
    margin: 12px 0 20px;
    color: #16324f;
    font-family: "Brush Script MT", cursive;
    font-size: 65px;
    line-height: 1;
}
.header-content p {
    margin-bottom: 0;
    line-height: 1.6;
}
.header-content .header-label {
    margin: 0;
    color: #246b73;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}
/* hero image */
.header-image {
    width: 50%;
}
.header-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* home page content */
main {
    padding: 40px 30px;
}
/* website introduction */
.intro {
    max-width: 800px;
    margin: 0 auto 35px;
    text-align: center;
}
.section-label {
    margin-bottom: 5px;
    color: #246b73;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.intro h2 {
    margin-top: 5px;
    color: #16324f;
    font-size: 30px;
}
.intro p {
    line-height: 1.6;
}
/* home page cards */
.card-area {
    display: flex;
    gap: 20px;
}
.info-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d1d9df;
    background-color: #f7f9fa;
}
.card-image {
    height: 200px;
    padding: 10px;
    background-color: white;
}
.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-content {
    display: flex;
    flex: 1;
    padding: 20px;
    flex-direction: column;
    text-align: center;
}
.card-content h3 {
    margin: 0 0 10px;
    color: #16324f;
}
.card-content p {
    margin: 0 0 20px;
    line-height: 1.5;
}
/* card buttons */
.card-button {
    display: inline-block;
    align-self: center;
    margin-top: auto;
    padding: 10px 18px;
    color: white;
    background-color: #246b73;
    font-weight: bold;
    text-decoration: none;
}
.card-button:hover {
    background-color: #16324f;
}
/* Deal of the Day card */
.special-card {
    display: flex;
    border: 6px solid #d4c500;
    border-radius: 28px;
    background-color: white;
}
.special-card .card-content {
    width: 100%;
    padding: 24px 18px;
    justify-content: center;
    text-align: center;
}
.special-card .card-content h3 {
    margin: 0 0 12px;
    color: black;
    font-size: 20px;
    white-space: nowrap;
}
.special-card .special-product {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.3;
    white-space: nowrap;
}
.special-card .special-price {
    margin: 0 0 20px;
    font-size: 16px;
    white-space: nowrap;
}
.deal-bottom {
    display: flex;
    margin-top: 25px;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.deal-image {
    width: 95px;
    height: 125px;
    object-fit: contain;
}
/* yellow product button */
.cart-button {
    display: inline-block;
    padding: 10px 14px;
    color: black;
    background-color: yellow;
    border: 3px solid black;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.cart-button:hover {
    color: white;
    background-color: #246b73;
}
/* mobile layout for screens 600 pixels wide or smaller, tested on an iPhone 17 Pro Max */
@media screen and (max-width: 600px) {
    .card-area {
        gap: 25px;
    }
    .card-image {
        height: 180px;
    }
    .special-card .card-content h3,
    .special-card .special-product,
    .special-card .special-price {
        white-space: normal;
    }
    .deal-bottom {
        flex-direction: column;
    }
}