/*
 * Home page template (page-templates/home.php).
 * Sizes follow the 1440px-wide "AHM Web Landing Home C" design.
 */

#main {
    display: none;
}

.main-wrapper {
    margin-bottom: 0;
}

/***************************
 *   Store hours + promo   *
 ***************************/

.home-store-bar {
    padding: 48px 0 31px;
    background: linear-gradient(var(--ahm-beige), white);
}

.home-store-bar .ahm-wrap {
    display: flex;
    align-items: center;
}

.store-hours {
    display: flex;
    flex: none;
    align-items: center;
    margin-left: 19px; /* line up with the header logo */
}

.store-hours-find {
    width: 217px;
    text-align: center;
}

.store-hours-title {
    margin: 0 0 1px;
    color: var(--ahm-gray);
    font: bold 22px/24px var(--ahm-sans);
}

.find-store {
    padding: 7px 10px 9px;
    background: var(--ahm-brown);
}

.find-store-title {
    display: block;
    margin-bottom: 4px;
    color: white;
    font: 25px/30px 'League Gothic', sans-serif;
    letter-spacing: 0.5px;
}

.find-store-fields {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.find-store-fields input {
    width: 112px;
    height: 20px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #a9a9a9;
    border-radius: 0;
    box-sizing: border-box;
    background: white;
    color: #333;
    font: 11px var(--ahm-sans);
}

.find-store-fields button {
    height: 20px;
    margin: 0;
    padding: 0 3px;
    border: 1px solid #c4c4c4;
    border-radius: 2px;
    background: #efefef;
    color: black;
    font: 11px var(--ahm-sans);
    cursor: pointer;
}

.find-store-fields button:hover,
.find-store-fields button:focus {
    background: white;
}

.store-hours-info {
    margin: 10px 0 0 33px;
    color: var(--ahm-gray-text);
    font: bold 22px/26px var(--ahm-sans);
}

.store-hours-name {
    display: block;
    color: var(--ahm-gold);
    font-size: 29px;
    line-height: 32px;
}

/* Title on the left, the 3-day-sale slider filling the rest of the row */
.home-promo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 68px;
    padding-left: 67px;
    border-left: 3px solid var(--ahm-gold);
    text-decoration: none;
}

.home-promo-title {
    margin-right: 33px;
    color: var(--ahm-gold);
    font: 300 50px/0.88 var(--ahm-sans);
    text-align: center;
    text-transform: uppercase;
}

.home-promo-title strong {
    display: block;
    font-weight: bold;
}

.banner-container {
    border-radius: 20px;
    overflow: hidden;
}

/**************************
 *   Slider + weekly ad   *
 **************************/

.home-feature {
    padding: 37px 0 20px;
    background: var(--ahm-gray);
}

.banner-container .cycloneslider {
    margin: 0 auto;
}

.home-weekly {
    display: flex;
    align-items: center;
    margin-top: 25px;
    text-decoration: none;
}

.home-weekly-image {
    display: block;
    flex: none;
    width: 65.5%;
    height: 380px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center 18%; /* keep the team member's face in the crop */
}

.home-weekly-text {
    flex: 1;
    padding: 20px 10px 0;
    text-align: center;
}

.home-weekly-title {
    display: block;
    margin-right: -0.15em; /* balance the trailing letter-spacing */
    color: var(--ahm-gold-light);
    font: 300 57px/1.1 var(--ahm-sans);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-weekly-cta {
    display: inline-block;
    margin-top: 3px;
    color: white;
    font: bold 41px/1 var(--ahm-condensed);
    text-transform: uppercase;
}

.home-weekly-cta span {
    color: var(--ahm-gold-light);
}

.home-weekly:hover .home-weekly-cta,
.home-weekly:focus .home-weekly-cta {
    text-decoration: underline;
}

/*************
 *   Cards   *
 *************/

.home-cards {
    padding-top: 17px;
}

.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-card {
    position: relative;
    display: block;
    height: 240px;
    border: 6px solid var(--ahm-gold-light);
    border-radius: 22px;
    box-sizing: border-box;
    background: white;
    overflow: hidden;
    text-decoration: none;
}

.home-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

a.home-card:hover .home-card-image,
a.home-card:focus .home-card-image {
    transform: scale(1.05);
}

.home-card-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 12px;
    background: rgba(91, 94, 94, 0.85);
    color: white;
    font: bold 25px/32px var(--ahm-sans);
    text-align: center;
    text-transform: uppercase;
}

.home-card-label small {
    display: block;
    margin-top: -3px;
    padding-bottom: 5px;
    font-size: 16px;
    line-height: 20px;
    text-transform: none;
}

.home-card-partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    height: 100%;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.home-card-partners a {
    display: block;
    transition: transform 0.2s;
}

.home-card-partners a:hover,
.home-card-partners a:focus {
    transform: scale(1.05);
}

.home-card-partners img {
    display: block;
    width: 100%;
    height: auto;
}

.home-card-partners .partner-instacart {
    width: 64%;
}

.home-card-partners .partner-doordash {
    width: 74%;
}

.home-card-partners .partner-uber-eats {
    width: 15%;
    min-width: 48px;
}

.home-card--partners .home-card-label {
    background: var(--ahm-gray);
}

/************************
 *   Family of stores   *
 ************************/

.home-family {
    padding: 40px 0 17px;
    text-align: center;
}

.home-family-title {
    margin: 0 0 7px;
    color: var(--ahm-gray);
    font: bold 33px/1.25 var(--ahm-sans);
}

.home-family-title span {
    color: var(--ahm-gold);
}

.home-family-link {
    display: inline-block;
}

.home-family-image {
    display: block;
    width: 455px;
    max-width: 100%;
    height: auto;
}

/******************
 *   Responsive   *
 ******************/

@media (max-width: 1200px) {
    .home-weekly-title {
        font-size: 40px;
    }
    .home-family-title {
        font-size: 28px;
    }
    .home-card-label {
        font-size: 20px;
        line-height: 26px;
    }
    .home-card-label small {
        font-size: 14px;
    }
}

@media (max-width: 1100px) {
    .home-store-bar .ahm-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }
    .store-hours {
        margin-left: 0;
    }
    .home-promo {
        flex-basis: 100%;
        margin: 24px 0 0;
        padding: 24px 0 0;
        border-top: 3px solid var(--ahm-gold);
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .home-weekly {
        flex-direction: column;
    }
    .home-weekly-image {
        width: 100%;
    }
    .home-weekly-text {
        padding: 20px 0 6px;
    }
    .home-cards-grid {
        grid-template-columns: minmax(0, 460px);
        justify-content: center;
    }
    .home-family-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .home-store-bar {
        padding: 24px 0;
    }
    .store-hours {
        flex-direction: column;
        text-align: center;
    }
    .store-hours-info {
        margin: 16px 0 0;
    }
    .home-promo {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-promo-title {
        margin: 0 0 14px;
        font-size: 40px;
    }
    .home-feature {
        padding: 20px 0;
    }
    .home-weekly-image {
        height: 180px;
    }
    .home-weekly-title {
        font-size: 36px;
    }
    .home-weekly-cta {
        font-size: 30px;
    }
    .home-card {
        height: 220px;
    }
    .home-card-label {
        font-size: 18px;
    }
    .home-family {
        padding: 32px 0 24px;
    }
    .home-family-title {
        font-size: 20px;
    }
}
