/*****************************
* Theme Name: Pricesinha Devassa
* Author: Flavio Ricardo
* Description: Tema para o blog Pricesinha Devassa
* Version: 1.0
*****************************/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Proza+Libre:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --darker-pink: #ac3455;
    --dark-pink: #b34865;
    /* --dark-pink: #C6778A; */
    --pink: #D595A6;
    --light-pink: #d595a6;
    --lighter-pink: #fde8ee;
    --white: #f8f8f8;
    --light-yellow: #ffefc6;
    --light-gray: #d9d9d9;
    --lighter-gray: #ececec;
    --gray: #646464;
    --black: #222222;
    /* Fonts */
    --font-serif: "Cormorant Garamond", serif;
    --font-sans: "Proza Libre", sans-serif;
    /* Sizes and Spaces */
    --spacer: 2rem;
    --maxWidth: 90rem;
}

.mt8 {
    margin-top: 8rem;
}

.d-none {
    display: none !important;
}

/* Typography */
h1 {
    font: bold 3rem/4rem var(--font-serif);
}

h2 {
    font: bold 2.25rem/3rem var(--font-serif);
}

h3 {
    font: bold 1.75rem/2.25rem var(--font-serif);
}

h4 {
    font: bold 1.5rem/2rem var(--font-serif);
}

h5 {
    font: bold 1.25rem/2rem var(--font-serif);
}

h6 {
    font: bold 1rem/1.5rem var(--font-serif);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--darker-pink);
}

p,
li {
    font: 1rem/1.75rem var(--font-sans);
    color: var(--black);
}

p {
    margin-bottom: 1rem;
}

li {
    list-style-position: inside;
}

label {
    font: 600 .875rem/1.25rem var(--font-sans);
}

/* Links */
a {
    font-family: var(--font-sans);
    text-decoration: none;
    transition: .3s ease;
}

.btn {
    height: 3rem;
    border-radius: 1rem;

    &:hover {
        cursor: pointer;
    }
}

body {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--spacer);
    position: relative;
    background-color: #ae3a55;
}



main {
    width: 100%;
    grid-row: 1/3;
    grid-column: 1/13;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    video {
        width: 300px;
    }

    h1,
    h2 {
        color: var(--light-yellow);
    }
}




footer {
    width: 100%;
    grid-column: 1/13;
    grid-row: 3/4;
    background-color: #ae3a55;
    display: flex;
    justify-content: center;
    padding: var(--spacer);
    position: fixed;
    bottom: 0;

    &::before {
        content: '';
        position: absolute;
        top: -1rem;
        left: 0;
        width: 100%;
        height: 2rem;
        background-image: url('../assets/ribbon-footer.webp');
        background-position: center;
        background-size: auto;
    }

    .ribbon-bow {
        position: absolute;
        top: -4rem;
        left: 50%;
        transform: translateX(-50%);
        width: 174px;
        height: 245px;
        background-image: url('../assets/ribbon-bow-footer.webp');
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--light-yellow);
    }

    p {
        color: var(--white);
    }

    a {
        color: var(--lighter-pink);

        &:hover {
            color: var(--light-yellow);
            text-decoration: underline;
        }
    }

    .contents {
        width: var(--maxWidth);
        display: grid;
        grid-template-columns: 2fr 1fr 2fr;
        grid-template-rows: auto auto auto;
        gap: var(--spacer);

        .slogan {
            grid-column: 1;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .logo {
                height: 5rem;

                img {
                    height: 100%;
                    display: block;
                }
            }
        }

        .newsletter {
            grid-column: 1;
            grid-row: 2;

            form {
                display: flex;
                gap: 1rem;

                input[type="email"] {
                    flex-basis: 0;
                    flex-grow: 2;
                    height: 3rem;
                    padding: 0 1rem;
                    border: 1px solid var(--light-pink);
                    border-radius: 1rem;
                    font-size: 1rem;
                    background-color: var(--dark-pink);
                    outline: none;
                    color: var(--white);

                    &::placeholder {
                        color: var(--lighter-pink);
                    }
                }

                .btn {
                    flex-basis: 0;
                    flex-grow: 1;
                    background-color: var(--pink);
                    color: var(--white);
                    font-weight: bold;
                    border: 1px solid var(--pink);
                    font-size: 1rem;
                    padding: 0 1rem;

                    &:hover {
                        background-color: var(--darker-pink);
                        border: 1px solid var(--white);
                    }
                }
            }
        }

        .social {
            grid-column: 3;
            grid-row: 1/3;
            justify-items: end;
            display: flex;
            justify-content: flex-end;

            .igCard {
                height: fit-content;
                display: flex;
                justify-content: flex-end;
                gap: 1rem;

                .profile {
                    width: 8rem;
                    height: 8rem;
                    background-color: #fff;
                    border-radius: 50%;
                    overflow: hidden;

                    img {
                        width: 100%;
                        display: block;
                    }
                }

                .data {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;

                    p {
                        font-size: .875rem;
                        line-height: 1.3rem;
                        color: var(--white);
                        margin: 0;
                    }

                    .igNome {
                        font-size: 1rem;
                        font-weight: bold;
                    }

                    .igPosts {}

                    .igFollowers {}

                    a.btn {
                        height: 3rem;
                        width: 100%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        border: 1px solid var(--pink);
                        color: var(--white);
                        background-color: var(--pink);
                        text-decoration: none;

                        i {
                            margin-right: .5rem;
                        }

                        &:hover {
                            background-color: var(--darker-pink);
                            border: 1px solid var(--white);
                        }
                    }
                }
            }

        }

        .credits {
            grid-column: 1/4;
            grid-row: 3;
            display: flex;
            justify-content: space-between;
            align-items: center;

            p {
                margin: 0;
                font-size: .875rem;
            }
        }
    }
}

@media(max-width: 1440px) {
    :root {
        --maxWidth: 64rem;
    }

    header>nav>.logo {
        margin-left: 1rem;
    }

    .breadcrumbs {
        padding: 0 1rem;
    }

    .ribbon-bow {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 129px;
        height: 174px;
        background-image: url('../assets/ribbon-bow-new.webp');
        z-index: 13;
        transform: translate(1rem, 7.25rem);
    }

    .contact {
        grid-column: 4/10 !important;
    }

    footer .ribbon-bow {
        position: absolute;
        top: -3rem;
        left: 50%;
        transform: translateX(-50%);
        width: 125px;
        height: 176px;
    }
}

@media(max-width: 1024px) {
    :root {
        --spacer: 1rem;
        --maxWidth: 100%;
    }

    .hero {
        height: 30rem;
        margin-top: 7rem;
        background-image: url(../assets/hero-desktop-1024.webp);
        margin-bottom: 2rem;
    }

    .ribbon-bow {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 129px;
        height: 174px;
        background-image: url('../assets/ribbon-bow-new.webp');
        z-index: 13;
        transform: translate(0rem, 7.25rem);
    }

    header {
        nav {
            height: 7rem;

            .logo {
                height: 5rem;
            }

            .menu-container {
                height: 7rem;

                .menu-toggle {
                    display: flex;
                    height: 7rem;
                    width: 7rem;
                }

                #menu {
                    height: auto;
                    width: 16rem;
                    display: none;
                    flex-direction: column;
                    justify-content: end;
                    position: absolute;
                    top: 7rem;
                    right: 0;
                    background-color: var(--darker-pink);
                    transition: .5s ease;

                    li {
                        width: 100%;

                        a {
                            height: 3rem;
                            width: 100%;

                            &:hover {
                                color: var(--lighter-pink);
                                background-color: var(--dark-pink);
                            }
                        }
                    }
                }

                #menu.show {
                    height: auto;
                    display: flex !important;
                }
            }
        }
    }

    .breadcrumbs {
        padding: 0 1rem;
        top: 7rem;
    }

    .content {
        grid-column: 2/12;
        grid-row: 2/3;
    }

    .jumbotron {
        --jt-h: 20rem;
        padding-top: 1rem;
        margin-bottom: 2rem;

        .contents {
            gap: 1rem;

            .text {
                margin: 0 2rem 2rem 2rem;

                h2 {
                    margin-bottom: 1rem;
                    text-align: center;
                }
            }
        }
    }

    .contact {
        grid-column: 3/11 !important;
    }

    .blogPost,
    .fixedPost,
    .bottomBar {
        grid-column: 2/12;

        h1 {
            text-align: center;
            margin-bottom: 1rem;
        }
    }

    .sidebar {
        grid-column: 2/12;
        grid-row: 3/4;
        margin-bottom: 2rem;
    }

    .contact {
        grid-column: 4/10;
    }

    footer {
        grid-row: 4/5;
        padding: 2rem;

        .newsletter form {
            input[type="email"] {
                flex-grow: 1;
            }
        }
    }
}

@media(max-width: 768px) {

    /* Typography */
    /* Typography */
    h1 {
        font: bold 2.5rem/3rem var(--font-serif);
    }

    h2 {
        font: bold 2rem/2.5rem var(--font-serif);
    }

    h3 {
        font: bold 1.625rem/2rem var(--font-serif);
    }

    h4 {
        font: bold 1.375rem/1.75rem var(--font-serif);
    }

    h5 {
        font: bold 1.125rem/1.5rem var(--font-serif);
    }

    h6 {
        font: bold 1rem/1.25rem var(--font-serif);
    }

    .hero {
        height: 24rem;
        margin-top: 7rem;
        background-image: url(../assets/hero-desktop-768.webp);
    }

    .breadcrumbs {
        nav {
            width: 100%;

            a:nth-child(3) {
                white-space: nowrap;
                /* Prevents text from wrapping to the next line */
                overflow: hidden;
                /* Hides any content that overflows the element's box */
                text-overflow: ellipsis;
                width: 8rem;
            }
        }
    }

    .jumbotron {
        --jt-h: 18rem;
        margin-bottom: 2rem;

        .contents {
            flex-direction: column !important;
            gap: 1rem;

            .text {
                margin: 0 2rem 2rem 2rem;

                h2 {
                    margin-bottom: 1rem;
                    text-align: center;
                }
            }
        }
    }

    .error {
        --jt-h: 18rem;

        .contents {
            flex-direction: column;
            gap: 0;

            .pic,
            .text {
                padding: 2rem;
            }
        }
    }

    .contact {
        grid-column: 2/12 !important;
    }

    .blogPost,
    .bottomBar {
        grid-column: 2/12;

        h1,
        h2 {
            margin-bottom: 1rem;
            text-align: center;
        }
    }

    .bottomBar {
        grid-template-columns: 1fr;

        h2 {
            grid-column: 1;
        }
    }

    footer {
        padding: 1rem;

        .ribbon-bow {
            right: 0rem;
            transform: translateX(4rem);
        }

        .contents {
            width: 100%;
            grid-template-columns: 1fr !important;

            .slogan {
                margin-top: 1rem;
                grid-column: 1/2;
                grid-row: 1/2;
            }

            .newsletter {
                grid-column: 1/2;
                grid-row: 2/3;
            }

            .social {
                grid-column: 1/2;
                grid-row: 3/4;
                justify-content: center;
            }

            .credits {
                grid-column: 1/2;
                grid-row: 4/5;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
        }
    }
}

@media(max-width: 520px) {
    .hero {
        height: 20rem;
        margin-top: 7rem;
        background-image: url(../assets/hero-desktop-520.webp);
    }
}