﻿/* =========================================================
   STREGA HOME
========================================================= */


/* =========================================================
   HERO
========================================================= */


.home-hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    color: var(--strega-paper);
    background-image: linear-gradient( 100deg, rgba(28, 18, 12, 0.90) 0%, rgba(36, 25, 18, 0.72) 38%, rgba(38, 48, 39, 0.22) 70%, rgba(38, 57, 45, 0.12) 100% ), url('/images/home/strega-home-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.home-hero__content {
    width: min( calc(100% - 3rem), var(--content-width) );
    margin: 0 auto;
}


.home-hero__copy {
    max-width: 760px;
}


    .home-hero__copy .eyebrow {
        display: block;
        margin-bottom: 1.5rem;
    }


.home-hero__title {
    margin: 0;
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp( 5rem, 11vw, 10rem );
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.82;
}


.home-hero__descriptor {
    max-width: 620px;
    margin: 2.25rem 0 0;
    font-size: clamp( 1.25rem, 2vw, 1.6rem );
    line-height: 1.35;
}


.home-hero__introduction {
    max-width: 560px;
    margin: 1rem 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.78;
}


/* =========================================================
   STORY
========================================================= */

.home-story {
    width: 100%;
}


.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.9fr 1.05fr;
}


.story-panel {
    min-height: 610px;
    padding: clamp(2rem, 4vw, 4.5rem);
    display: flex;
    align-items: flex-end;
}


.story-panel__content {
    max-width: 470px;
}


.story-panel .eyebrow {
    display: block;
    margin-bottom: 1.2rem;
}


.story-panel h2 {
    margin: 0 0 1.4rem;
    font-size: clamp( 2rem, 3.5vw, 3.25rem );
    font-weight: 400;
    line-height: 1.03;
}


.story-panel p {
    max-width: 390px;
    margin: 0 0 1.75rem;
    line-height: 1.65;
    opacity: 0.76;
}


.story-panel__link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.story-panel--mare {
    color: var(--strega-paper);
    background: var(--strega-brown-deep);
}


.story-panel--house {
    align-items: center;
    color: var(--strega-ink);
    background: var(--strega-cream);
}


.story-panel--farm {
    color: var(--strega-paper);
    background: var(--strega-green);
}


/* =========================================================
   SHARED HOME SECTION HEADER
========================================================= */

.home-section-header {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: clamp( 3rem, 8vw, 8rem );
}


    .home-section-header h2 {
        margin: 0.5rem 0 0;
        font-size: clamp( 2.8rem, 5vw, 5rem );
        font-weight: 400;
        line-height: 0.95;
    }


.home-section-header__copy {
    max-width: 560px;
}


    .home-section-header__copy p {
        margin: 0 0 2rem;
        font-size: 1.1rem;
        line-height: 1.65;
    }


/* =========================================================
   GIFTING
========================================================= */

.home-gifting {
    padding: 8rem 0;
    color: var(--strega-ink);
    background: var(--strega-paper);
}


.home-gifting__inner {
    width: min( calc(100% - 3rem), var(--content-width) );
    margin: 0 auto;
}


.home-gifting__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}


.home-gifting-card {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--strega-paper);
    background: linear-gradient( 145deg, #66503e, #29382e );
}


    .home-gifting-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 400ms ease;
    }


    .home-gifting-card:hover img {
        transform: scale(1.025);
    }


.home-gifting-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.03) 30%, rgba(20, 14, 10, 0.74) 100% );
}


.home-gifting-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.75rem;
}


    .home-gifting-card__content .eyebrow {
        margin-bottom: 0.65rem;
    }


.home-gifting-card h3 {
    margin: 0;
    font-size: clamp( 1.5rem, 2vw, 2.1rem );
    font-weight: 400;
    line-height: 1.05;
}


.home-gifting__empty {
    padding: 4rem;
    background: var(--strega-cream);
}


/* =========================================================
   JOURNAL
========================================================= */

.home-journal {
    padding: 8rem 0;
    color: var(--strega-paper);
    background: var(--strega-green-deep);
}


.home-journal__inner {
    width: min( calc(100% - 3rem), var(--content-width) );
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.65fr);
    gap: clamp( 3rem, 7vw, 7rem );
}


.home-journal__introduction {
    max-width: 370px;
}


    .home-journal__introduction h2 {
        margin: 0.5rem 0 1.5rem;
        font-size: clamp( 2.8rem, 5vw, 4.5rem );
        font-weight: 400;
        line-height: 0.95;
    }


    .home-journal__introduction p {
        margin: 0 0 2rem;
        line-height: 1.65;
        opacity: 0.72;
    }


.home-journal__all {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.home-journal__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}


.home-journal-card__image {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.5);
    background: #4c5a4e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


    .home-journal-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 350ms ease;
    }


.home-journal-card:hover
.home-journal-card__image img {
    transform: scale(1.025);
}


.home-journal-card__content .eyebrow {
    margin-bottom: 0.65rem;
}


.home-journal-card h3 {
    margin: 0 0 0.9rem;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.1;
}


    .home-journal-card h3 a {
        color: inherit;
        text-decoration: none;
    }


.home-journal-card p {
    margin: 0 0 1rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.68;
}


.home-journal-card time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    opacity: 0.45;
}


.home-journal__empty {
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
}


/* =========================================================
   CLOSING
========================================================= */

.home-closing {
    padding: 5rem 0;
    color: var(--strega-ink);
    background: var(--strega-cream);
}


.home-closing__inner {
    width: min( calc(100% - 3rem), var(--content-width) );
    margin: 0 auto;
    text-align: center;
}


    .home-closing__inner p {
        margin: 0.75rem 0 0;
        font-size: 1.15rem;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .story-grid {
        grid-template-columns: 1fr;
    }


    .story-panel {
        min-height: 480px;
    }


    .story-panel--house {
        align-items: flex-end;
    }


    .home-section-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .home-gifting__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .home-journal__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }


    .home-journal__introduction {
        max-width: 600px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .home-hero {
        min-height: 620px;
    }


    .home-hero__content,
    .home-gifting__inner,
    .home-journal__inner,
    .home-closing__inner {
        width: calc(100% - 2rem);
    }


    .home-hero__title {
        font-size: clamp( 4.3rem, 20vw, 6rem );
    }


    .home-gifting,
    .home-journal {
        padding: 5rem 0;
    }


    .home-gifting__grid {
        grid-template-columns: 1fr;
    }


    .home-gifting-card {
        min-height: 360px;
    }


    .home-journal__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


    .home-closing {
        padding: 4rem 0;
    }
}

/* =========================================================
   JOURNAL FEATURE IMAGE
========================================================= */

.journal-feature-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

    .journal-feature-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


/* MOBILE */

@media (max-width: 700px) {

    .journal-feature-image {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   JOURNAL FEATURE IMAGE
========================================================= */

.home-journal__feature {
    width: 100%;
    aspect-ratio: 2.8 / 1;
    overflow: hidden;
}

    .home-journal__feature img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

@media (max-width: 700px) {

    .home-journal__feature {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   HOME CLOSING / NEWSLETTER
========================================================= */

.home-closing__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-closing__form {
    display: flex;
    align-items: stretch;
    width: min(100%, 480px);
    margin: 2rem auto 0;
    border-bottom: 1px solid var(--strega-ink);
}

    .home-closing__form input {
        flex: 1;
        min-width: 0;
        min-height: 52px;
        padding: 0.75rem 0;
        border: 0;
        border-radius: 0;
        outline-offset: 4px;
        color: var(--strega-ink);
        background: transparent;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
    }

        .home-closing__form input::placeholder {
            color: var(--strega-ink);
            opacity: 0.55;
        }

    .home-closing__form button {
        padding: 0.75rem 1rem;
        border: 0;
        color: var(--strega-ink);
        background: transparent;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        cursor: pointer;
    }

        .home-closing__form button:hover {
            opacity: 0.6;
        }

.home-closing__note {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    opacity: 0.65;
}

@media (max-width: 640px) {

    .home-closing__form {
        width: 100%;
    }
}
