/*-- -------------------------- -->
<---     Hero                   -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem){
    #hero{
        position: relative;
        padding: clamp(7.5rem, 11vw, 9.5rem) 1.5rem clamp(4rem, 7vw, 6rem);
        background:
            radial-gradient(60rem 30rem at 85% 10%, rgba(203, 191, 227, 0.45), rgba(203, 191, 227, 0) 70%),
            radial-gradient(40rem 24rem at 0% 100%, rgba(243, 201, 154, 0.35), rgba(243, 201, 154, 0) 70%),
            var(--cream);
        overflow-x: clip;
        z-index: 2;
    }
    .hero-container{
        position: relative;
        max-width: 75rem;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 4rem);
        align-items: center;
    }
    .hero-text{
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #hero h1{
        font-size: clamp(2.5rem, 5.4vw, 4.25rem);
        line-height: 1.06;
        letter-spacing: -0.02em;
        max-width: 18ch;
        margin: 0 0 1.25rem;
    }
    #hero p{
        font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
        line-height: 1.65;
        color: var(--muted);
        max-width: 31rem;
        margin: 0 0 2.25rem;
    }
    .hero-art{
        width: 100%;
        max-width: 16rem;
        margin: 0 auto;
        filter: drop-shadow(0 2rem 3rem rgba(42, 38, 80, 0.28));
    }
    .hero-art svg{
        display: block;
        width: 100%;
        height: auto;
    }
    .search-container{
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        max-width: 32rem;
        box-sizing: border-box;
        padding: 0.45rem;
        background-color: #fff;
        position: relative;
        border-radius: 1.1rem;
        border: 1px solid #E6DEEF;
        box-shadow: 0 1.25rem 2.5rem rgba(78, 63, 122, 0.12);
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .search-container:focus-within{
        border-color: var(--secondary);
        box-shadow: 0 1.25rem 2.5rem rgba(78, 63, 122, 0.16), 0 0 0 4px rgba(122, 106, 168, 0.18);
    }
    .search-box{
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6A88' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 1rem center / 1.1rem no-repeat;
        padding: 0.95rem 1rem 0.95rem 2.75rem;
        box-sizing: border-box;
        font-family: inherit;
        font-size: 1rem;
        color: var(--ink);
    }
    .search-box::placeholder{
        color: #958EA3;
    }
    .search-button{
        flex: none;
        background-color: var(--secondaryDark);
        color: #fff;
        padding: 0.95rem 1.75rem;
        cursor: pointer;
        border: none;
        border-radius: 0.8rem;
        box-sizing: border-box;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    .search-button:hover{
        background-color: var(--secondaryDarker);
        transform: translateY(-1px);
    }
    .results{
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0;
        right: 0;
        z-index: 20;
        max-height: min(24rem, 60vh);
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0.5rem;
        text-align: left;
        background-color: #fff;
        border: 1px solid #E6DEEF;
        border-radius: 1rem;
        box-shadow: 0 1.25rem 3rem rgba(36, 32, 60, 0.18);
    }
    .results[hidden]{
        display: none;
    }
    .search-result{
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 0.7rem;
        text-decoration: none;
        transition: background-color 0.15s ease;
    }
    .search-result:hover,
    .search-result.is-active{
        background-color: var(--secondaryTint);
    }
    .search-result-title{
        display: block;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.35;
        color: var(--ink);
    }
    .search-result.is-guide .search-result-title{
        color: var(--secondaryDark);
    }
    .search-result-title mark{
        background-color: transparent;
        color: inherit;
        text-decoration: underline;
        text-decoration-color: var(--gold);
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }
    .search-result-meta{
        display: block;
        margin-top: 0.15rem;
        font-size: 0.875rem;
        color: var(--muted);
    }
    #hero .search-empty{
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        line-height: 1.5;
        color: var(--muted);
    }
}

@media only screen and (min-width: 64rem){
    .hero-container{
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
    .hero-text{
        align-items: flex-start;
        text-align: left;
    }
    .hero-art{
        max-width: 25rem;
        margin: 0 0 0 auto;
    }
}

@media only screen and (max-width: 63.9375rem){
    .hero-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .hero-text{
        display: contents;
    }
    #hero h1{
        order: 1;
        text-align: center;
    }
    .hero-art{
        order: 2;
        margin: 0.5rem auto 2rem;
    }
    #hero p{
        order: 3;
        text-align: center;
    }
    .search-container{
        order: 4;
    }
    .search-box{
        padding: 0.85rem 0.75rem 0.85rem 2.6rem;
    }
    .search-button{
        padding: 0.85rem 1.25rem;
    }
}


/*-- -------------------------- -->
<---     Section Headings       -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    .featured-container h2,
    .state-pages-container h2{
        font-size: clamp(2.1rem, 4vw, 3rem);
        letter-spacing: -0.015em;
        text-align: center;
        margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
    }
    .featured-container h2::before,
    .state-pages-container h2::before{
        content: "";
        display: block;
        width: 1.5rem;
        height: 2.25rem;
        margin: 0 auto 0.9rem;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M12 1C15 6 18 9 18 13.5A6 6 0 0 1 6 13.5C6 9 9 6 12 1Z' fill='%23E2A857'/%3E%3Cpath d='M12 7C13.6 9.6 15 11.2 15 13.6A3 3 0 0 1 9 13.6C9 11.2 10.4 9.6 12 7Z' fill='%23FFF1D2'/%3E%3Crect x='11.3' y='19' width='1.4' height='3' rx='.7' fill='%2326223A'/%3E%3Crect x='7' y='22' width='10' height='13' rx='2' fill='%237A6AA8'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}


/*-- -------------------------- -->
<---     Featured               -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #featured{
        position: relative;
        background-color: #fff;
        padding: clamp(4rem, 8vw, 6.5rem) 1.5rem clamp(4rem, 8vw, 6.5rem);
    }
    .featured-container{
        max-width: 75rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .featured-listings{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 22.5rem));
        justify-content: center;
        gap: clamp(1.5rem, 3vw, 2.25rem);
        width: 100%;
    }
    .featured-listing{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1rem 0;
        background-color: var(--cream);
        border: 1px solid #EEE6DC;
        border-radius: 12rem 12rem 1.25rem 1.25rem;
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .featured-listing:hover{
        transform: translateY(-5px);
        box-shadow: 0 1.5rem 3rem rgba(42, 38, 80, 0.12);
    }
    .fl-image{
        order: -1;
        width: 100%;
        margin: 0;
        overflow: hidden;
        border-radius: 11rem 11rem 0.75rem 0.75rem;
    }
    .fl-image picture{
        display: block;
        width: 100%;
    }
    .fl-image img{
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3.6;
        object-fit: cover;
        transition: transform 0.7s ease;
    }
    .featured-listing:hover .fl-image img{
        transform: scale(1.04);
    }
    .fl-image-empty{
        aspect-ratio: 4 / 3.6;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60C90 30 170 40 240 52S350 40 400 30V120H0Z' fill='%233B3060'/%3E%3Cpath d='M0 90C110 70 210 76 300 84S380 82 400 80V120H0Z' fill='%23241F3E'/%3E%3C/svg%3E") bottom center / 100% 40% no-repeat,
            radial-gradient(circle at 70% 30%, #FFF3D6 0 0.6rem, rgba(255, 243, 214, 0.25) 0.7rem 1.6rem, transparent 1.7rem),
            linear-gradient(180deg, #2A2650 0%, #5D4E8C 45%, #C88FA0 80%, #F3C99A 100%);
    }
    .fl-title{
        padding: 1.5rem 0.75rem 0;
    }
    .fl-title h3{
        font-size: 1.6rem;
        line-height: 1.2;
        letter-spacing: -0.01em;
        margin: 0;
    }
    .fl-title h3 a{
        font-size: inherit;
        color: var(--ink);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .fl-title h3 a:hover{
        color: var(--secondaryDark);
    }
    .location{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.5rem 0.75rem 0;
    }
    .location picture{
        display: flex;
    }
    .location .info-icon{
        width: 1rem;
        height: 1rem;
        opacity: 0.65;
    }
    .location p{
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .fl-tags{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 1rem 0.75rem 0;
    }
    .fl-tag{
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.3rem 0.75rem;
        border-radius: 999px;
        background-color: #fff;
        border: 1px solid #E6DEEF;
        color: var(--secondaryDark);
        font-size: 0.8125rem;
        font-weight: 700;
    }
    .fl-tag::before{
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background-color: var(--gold);
    }
    .fl-description{
        padding: 1rem 0.75rem 0;
    }
    .fl-description p{
        margin: 0;
        font-size: 1rem;
        line-height: 1.7;
        color: #4F4960;
    }
    .fl-description p + p{
        display: none;
    }
    .fl-button{
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: auto;
        padding: 1.5rem 0.75rem 1.75rem;
        box-sizing: border-box;
    }
    .view-crematory{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.85rem 1.5rem;
        border-radius: 0.8rem;
        background-color: var(--secondaryDark);
        color: #fff;
        font-size: 0.9375rem;
        font-weight: 700;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    .view-crematory::after{
        content: "\2192";
        transition: transform 0.2s ease;
    }
    .view-crematory:hover{
        background-color: var(--secondaryDarker);
    }
    .view-crematory:hover::after{
        transform: translateX(3px);
    }
}


/*-- -------------------------- -->
<---     State Links             -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #state-pages{
        position: relative;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cg fill='%23FFF6E4'%3E%3Ccircle cx='40' cy='40' r='1.4' opacity='.7'/%3E%3Ccircle cx='150' cy='110' r='1' opacity='.5'/%3E%3Ccircle cx='260' cy='30' r='1.2' opacity='.6'/%3E%3Ccircle cx='380' cy='90' r='1.5' opacity='.7'/%3E%3Ccircle cx='520' cy='50' r='1' opacity='.5'/%3E%3Ccircle cx='470' cy='200' r='1.2' opacity='.5'/%3E%3Ccircle cx='90' cy='230' r='1' opacity='.4'/%3E%3Ccircle cx='310' cy='250' r='1.3' opacity='.5'/%3E%3Ccircle cx='570' cy='270' r='1' opacity='.4'/%3E%3C/g%3E%3C/svg%3E") top left / 37.5rem auto repeat,
            linear-gradient(180deg, #24203C 0%, #2E2850 100%);
        padding: clamp(4.5rem, 8vw, 6.5rem) 1.5rem;
    }
    .state-pages-container{
        max-width: 64rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .state-pages-container h2{
        color: #FBF7F2;
    }
    .state-links{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem 0.75rem;
    }
    .state-link{
        display: flex;
    }
    .state-link a{
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.7rem 1.3rem 0.7rem 1rem;
        border-radius: 0.6rem 1.6rem 1.6rem 0.6rem;
        background: linear-gradient(180deg, #FBF7F2 0%, #EFE7DA 100%);
        color: var(--ink);
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
        transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }
    .state-link a::before{
        content: "";
        flex: none;
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 50%;
        background-color: #2E2850;
        box-shadow: 0 0 0 2px #C9BFA8;
    }
    .state-link a:hover{
        background: linear-gradient(180deg, #F6D48F 0%, #E2A857 100%);
        color: #24203C;
        transform: translateY(-3px) rotate(-1.5deg);
    }
    .state-link a:hover::before{
        box-shadow: 0 0 0 2px #B8853C;
    }
}

/*-- -------------------------- -->
<---     Marketing Callout      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #marketing{
        padding: clamp(4rem, 8vw, 6rem) 1.5rem 0;
        background-color: #fff;
    }
    .marketing-callout{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        max-width: 64rem;
        margin: 0 auto;
        box-sizing: border-box;
        padding: clamp(2rem, 4vw, 3rem);
        border-radius: 1.5rem;
        background-color: var(--cream);
        border: 1px solid #EEE6DC;
        overflow: hidden;
    }
    .marketing-callout::before{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0.4rem;
        height: 100%;
        background: linear-gradient(180deg, var(--gold) 0%, var(--secondary) 100%);
    }
    .marketing-callout h2{
        font-size: clamp(1.75rem, 3vw, 2.25rem);
        letter-spacing: -0.01em;
        color: var(--ink);
        margin: 0;
    }
    #marketing .marketing-callout p{
        font-size: 1.0625rem;
        line-height: 1.65;
        color: var(--muted);
        margin: 0.6rem 0 0;
        max-width: 32rem;
    }
    .marketing-callout-button{
        flex: none;
        padding: 0.95rem 1.75rem;
        border-radius: 0.8rem;
        background-color: var(--forest);
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    .marketing-callout-button:hover{
        background-color: var(--secondaryDark);
        transform: translateY(-1px);
    }
}

@media only screen and (max-width: 47.9375rem){
    .marketing-callout{
        flex-direction: column;
        align-items: flex-start;
    }
    .marketing-callout-button{
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}