:root {
    --clr-text: #3d3d3d;
    --clr-primary: #067e0a;
    --clr-primary-dark: #125814;
    --clr-accent: #613b6b;
    --clr-accent-dark: #44264d;

    --ff-title: "BFNarrow", sans-serif ;
    --ff-serif: "Crimson Text", serif;
    --ff-logo: "BetterFly", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html{
    box-sizing: border-box;
    font-family: var(--ff-serif);
    color: var(--clr-text);
    font-size: 1.25rem;
    scroll-behavior: smooth;
}

body{
    margin: 0;
    text-align: center;
    background-color: #ffffff;
}

img{
    display: block;
    max-width: 100%;
    margin: auto;
}

section{
    padding: 3em 1em;
}

.mb{
    margin-bottom: 0;
}

/* typo */

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h2, h3 {
    font-family: var(--ff-title);
    /* line-height: 0.8; */
    letter-spacing: 0.5px;
}

h2{
    font-size: 3rem;
}

p{
    margin-bottom: 0.85rem;
}

p:last-child{
    margin-bottom: 0;
}

.sectiontitlesmall{
    font-size: 2rem;
}

.sectiontitlesmall small{
    font-size: 0.7em;
    display: block;
}

.textprimary{
    color: var(--clr-primary);
}

.logo{
    font-family: var(--ff-logo);
    text-align: center;
    color: var(--clr-text);
    cursor: pointer;
}

/* nav */

header{
    padding: 1em 0 1em;
    background-color: #ffffff;
}

nav ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
}

nav a{
    display: inline-block;
    padding: 0.5rem;
    color: var(--clr-primary);
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    color: var(--clr-accent);
    text-decoration: underline;
}

/* button */

.btngroup{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
}

.btn{
    padding: 0.75em 2.5em;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 0.5em 0.5em;
    border-radius: 0.35em;
}
/* 
.btn + .btn{
     margin-left: 0.5em;
} */

.btnprimary{
    background: var(--clr-primary);
}

.btnprimary:hover,
.btnprimary:focus{
    background: var(--clr-primary-dark);
}

.btnaccent{
    background: var(--clr-accent);
}

.btnaccent:hover,
.btnaccent:focus{
    background: var(--clr-accent-dark);
}

/* homepage */

.zero{
    background-color: #555;
    background-image: url(wow.jpg);
    background-blend-mode: multiply;
    /* background-attachment: fixed; */
    background-size: cover;
    color: white;
    text-align: center;
    padding: 15vh 1em;
}

main .intro{
    background-color: #ffffff;
}

.aboutus{
    background: var(--clr-accent);
    display: flex;
    flex-direction: column;
    color: white;
    padding: 0;
}

.aboutus__intro{
    background-color: #555;
    background-blend-mode: multiply;
    background-image: url(wow2.png);
    background-size: cover;
    padding: 3em 1em 1.5em;
}

.aboutus__body{
    padding: 1.5em 1em 3em;
}

.orderonline{
    background: #f0f0f0;
}

.orderonline header{
    background: #f0f0f0;
}

.productshowcase{
    background-color: #ffffff;
}

.products{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 30rem;
    margin: 0 auto;
    margin-bottom: 2em;
}

.product{
    /* background: #423131; */
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
}

.productcontent{
    padding: 1.5em;
}

.producttitle{
    color: var(--clr-primary);
    font-size: 2rem;
    margin-bottom: 0.5em;
    padding: 0.5em;
}

.product:last-of-type {
    margin-bottom: 0;
}
 
.fineprint{
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.85);
}

footer{
    background: var(--clr-accent-dark);
    padding: 3em 1em;
    color: white;
    display: flex;
    justify-content: center;
    gap: 5em;
    margin-top: 1em;
}

.footernav,
.footersocial{
    list-style: none;
    margin: 0;
    padding: 0;
}

footer a{
    color: inherit;
}

.footernav a{
    padding: 0.75em;
    text-decoration: none;
}

.footernav a:hover{
    text-decoration: underline;
}

@media only screen and (min-width: 750px) {
    section{
        padding: 6em 1em;
    }

    .btngroup{
        margin-top: 1em;
        flex-direction: row;
    }

    .btn + .btn{
        margin-left: 0.5em;
    }

    .aboutus{
        flex-direction: row;
    }

    .aboutus__intro,
    .aboutus__body{
        flex: 0 1 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 4em 2em;
    }

    .aboutus__intro{
        text-align: right;
    }

    .aboutus__intro > * {
        max-width: 27rem;
        margin-left: auto;
    }

    .aboutus__body{
        text-align: left;
    }

    .aboutus__body > * {
        max-width: 27rem;
        margin-right: auto;
    }

    .ordderonline > * {
        max-width: 70ch;
        margin-left: auto;
        margin-right: auto;
    }

    .orderonline{
        display: grid;
    }

    .products{
        flex-direction: row;
        max-width: 1200px;
        padding: 0 1em;
    }

    .product{
        margin: 0;
        flex: 0 1 33%;
    }

    .product + .product{
        margin-left: 1em;
    }
}

