
:root{
    --header-h: 145px;
}

body{
    /*background-color: var(--bgd-contrast-dark);*/
}
.hero-wrapper{
    /*padding-top: var(--header-h);*/
    display: grid;
    grid-template-rows: 1fr auto;
    background: linear-gradient( to right, #57534e 0%, #000 50%, #736557 100% );
    /*overflow:hidden;*/
}
.product-image {
    display: inline-block;
    text-align: right;
    margin: 2rem;
}
.product-image img {
    height: 100px;
    border-radius: 5px;
}

.home-splash {
    position: relative;
    width: 100%;
    max-width: 1800px;
    background-color: rgba(110, 103, 93, 0.85);
    margin: 0 auto;
}


.hero {
    position: relative;
}

.hero__image {
    display: block;
    width: 100%;
    max-width: 1800px;
    height: auto;
    margin: 0 auto;

}

.hero__content {
    position: absolute;
    inset: 0;
}

.home-hero__tagline {
    position: absolute;

    top: 16%;
    right: clamp(2rem, 6vw, 6rem);

    width: min(34vw, 460px);

    text-align: right;

    color: #fff;

    font-size: clamp(1.4rem, 2.3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.25;

    text-shadow:
            0 2px 5px rgba(0, 0, 0, .7),
            0 0 12px rgba(0, 0, 0, .25);
}

.hero-divider {
    width: 350px;
    height: 1px;
    margin: 1rem 0 1rem auto;

    background: rgba(255,255,255,.8);
    border: 0;
}

.tagline-bottom{
    margin-top: 1.5rem
}

.hero-company {
    position: relative;
    margin-top: 1.25rem;
    text-align: center;
    margin-right:-100px;
}

.hero-company__name {
    display:block;

    font-size: clamp(1rem, 1.2vw, 1.45rem);
    font-weight:600;
    line-height:1.1;
}

.hero-company__desc {
    display:block;

    font-size: clamp(.8rem, .95vw, 1rem);
    font-weight:500;
    letter-spacing:.08em;
    opacity:.9;
}


.match-my-molding{
    display: block;
}

.match-my-molding-mobile{
    display: none;
}


.descriptivex-title h1{
    color: var(--ttext-bright);
    text-align: center;
    font-size:2rem;
    font-weight:500;
}

.descriptivex-text {
    color: var(--ttext-bright);
    font-weight: 300;
    font-size: 1rem;
    text-align: justify;
    padding: 15px;
    line-height: 1;

}

.popular-products-container {
    display: inline-block;
}


.popular-items-title h1{
    /*font-family: Belgium, Georgia, Times, serif;*/
    font-size:2rem;
}

/*.molding-menu-header h1{*/
/*    font-family: Belgium, Georgia, Times, serif;*/
/*  }*/
  .popular-items-title {
    text-align: center;
    color: var(--text-light);
    background-color: var(--bgd-special-medium);
    padding: 1rem 0;
}

.popular-items {
    background-color: white;
}

.popular-items-wrapper {
    text-align: center;
    background-color: white;
    display: flex;
    flex-wrap: nowrap;     /* important */
    gap: 1rem;
    overflow: visible;     /* <-- key: remove scrolling from inner */
    white-space: normal;   /* <-- not needed with flex; can cause weirdness */
    scroll-snap-type: none;/* move snap to scroller if you want it */
}


.popular-item-card {
    flex: 0 0 auto; /* don’t shrink, stay fixed width */
    width: 200px; /* card width */
    text-align: center;
    align-content: flex-end;
    scroll-snap-align: start; /* each product snaps to start (optional) */
    color: var(--ptext-medium);
}

.popular-item {
    display: inline-block;
    width: 100%;
    max-width: 75px;
    min-width: 50px;
    border: 2px solid var(--border-dark);
    border-radius: 5px;
    background-color: var(--bgd-light);
}

.profile-pix{
    max-width: 150px;
    max-height: 100px;
}

.popular-item-image .svgs {
    display: inline-block;
    width: 100%;
    height: 100%;
    max-height: 75px;
    line-height: 50px;
    max-width: 75px;
    padding: 5px;
    margin-bottom: 5px;
}

.popular-item-title {
    /*font-size: 1.5em;*/
    color: var(--ptext-dark);
}

.popular-item-content {
    /*font-size: 1.25rem;*/
    text-wrap: nowrap;
}

.popular-item-desc {
    color: var(--ptext-dark);
}

.popular-item-stock img {
    width: 50px;
}


.home-footer {
    background-color: var(--ptext-medium);
    color: var(--text-light);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.home-footer hr {
    border-top: 1px solid rgba(223, 221, 220, 0.65);
}

.home-footer a{
    text-decoration: none;
}

.home-footer a:hover{
    text-decoration: var(--link-hover-bright) underline;
    color:var(--link-hover-bright);
}

.home-footer > * {
    justify-self: center; /* centers content horizontally inside each cell */
    align-self: center; /* centers content vertically inside each cell */
}

.product-questions a {
    color: var(--text-light);
}
.product-questions ul {
    padding-left: 16px;
}

.information a {
    color: var(--text-light);
}
.information ul {
    padding-left: 16px;
}

.help a {
    color: var(--text-light);
}
.help ul {
    padding-left: 16px;
}

.generated-page-content {
    display: block;
}

.scroll-hint {
    position: relative;
    max-width: 100%;
}

/* the actual scroller */
.molding-scroll {
    width: 100%;
    max-width: 100vw;     /* ensures it can't grow wider than viewport */
    min-width: 0;         /* CRITICAL inside flex layouts */

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
}
#moldingScroll > * {
    flex: 0 0 auto;
}

/* left + right fades */
.scroll-hint::before,
.scroll-hint::after{
    content:"";
    position:absolute;
    top:0; bottom:0;
    width:100px;
    pointer-events:none;
    opacity:0;
    transition: opacity 160ms ease;
}

/* left */
.scroll-hint::before{
    left:0;
    background: linear-gradient(to right, rgba(0,0,0,.24), rgba(0,0,0,0));
}

/* right */
.scroll-hint::after{
    right:0;
    background: linear-gradient(to left, rgba(0,0,0,.24), rgba(0,0,0,0));
}

.scroll-hint.can-scroll-left::before{ opacity:1; }
.scroll-hint.can-scroll-right::after{ opacity:1; }

.footer{
    display: none;
}

/*NEW SPLASH*/


@media only screen and (min-width: 1200px) and (max-width: 99999px) {
    /*large Screens*/
    .mobile-text-top {
        display: none;
    }
    .mobile-text-bottom {
        display: none;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    /*Medium Screens and tablets*/
    .mobile-text-top {
        display: none;
    }
    .mobile-text-bottom {
        display: none;
    }

    .popular-item-card{
        width: 150px;
    }
    .profile-pix{
        max-width: 100px;
        max-height: 50px;
    }
    .popular-items-title{
        padding: 0;
    }
    .descriptive-text{
        display: none;
    }

}


@media only screen and (min-width: 0) and (max-width: 767px) {
    /*small Screens and phones*/
    .home-text, .hero-wrapper, .home-footer{
        display: none;
    }
    #mobile-wrapper{
        align-items: center;
        /*min-height: 100%;*/
        padding: 1rem;
        background-image: url("/images/FMS_Splash.jpg")!important;
        background-size: cover;
        background-position: center;
    }
    .mobile-wrapper img{
        opacity:.5;
    }

    .match-my-molding{
        display: none;
    }

    .match-my-molding-mobile{
        display: block;
        font-size: .8rem;
        text-align: center;
    }
    .mobile-text{
        display: grid;
        grid-template-rows: auto 1fr auto;
        justify-self: center;
        text-align: center;
        /*min-height: 100%;*/
        color: #554736;
        /*text-shadow: var(--shadow-1);*/
        text-shadow:
                0 0 3px rgba(255,255,255,.9),
                0 0 3px rgba(0,0,0,.8);
    }
    .mobile-text-top {
        align-self: start;
        /*text-shadow: var(--shadow-1);*/
        opacity: 1;
        /*margin-top: .5rem;*/
    }
    .mobile-text-bottom {
        align-self: end;
        /*text-shadow: var(--shadow-1);*/
        padding-bottom: 120px;
    }

    .optional {
        display: none;
    }
    .product-questions {
        display: block;
    }
    .information {
        display: block;
    }
    .help-items {
        display: block;
    }
    .home-footer {
        grid-template-columns: repeat(1, 1fr);
    }
    .popular-items-title, .popular-items-wrapper, .home-footer{
        display: none;
    }

    .home-splash{
        background: none;
    }

    .mobile-text h2{
        font-size: revert;
    }

    /* --- Mobile hero (isolated) ---------------------------------- */
    :root { --mobile-header-h: 135px; } /* adjust if needed */

    #mobile-wrapper{
        /* fill the visible screen under the header */
        height: calc(100svh - var(--mobile-header-h));

        padding: 1rem;

        /* if you add overlays later */
        position: relative;
    }

    /* This is the key: top locked + bottom locked */
    #mobile-wrapper .mobile-text{
        height: 100%;
        display: grid;
        grid-template-rows: auto 1fr auto; /* top / spacer / bottom */
        justify-items: center;             /* horizontal centering */
        text-align: center;
    }

    /* optional: keep the text readable and not too wide */
    #mobile-wrapper .mobile-text-top,
    #mobile-wrapper .mobile-text-bottom{
        max-width: 32ch;
    }

    /* push top to the top and bottom to the bottom (extra safety) */
    #mobile-wrapper .mobile-text-top{ align-self: start; }
    #mobile-wrapper .mobile-text-bottom{ align-self: end; }

    /* optional: tighten typography for small screens */
    #mobile-wrapper h2{
        margin: 0;
        line-height: 1.1;
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    /* optional: style the subline */
    #mobile-wrapper .fms_font{
        display: inline-block;
        margin-top: 0.5rem;
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    }



}
.mnav{ display: grid !important; }
html, body { overflow: visible !important; }
/*# sourceMappingURL=home.css.map */
