@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Montserrat:wght@400;500;600&display=swap');


/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {
    --gold: #c8a248;
    --gold-light: #e0bd60;
    --paper: #f0eadf;
    --muted: #b8aa8b;
    --line: #4a3b20;
    --background: #070706;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--paper);

    font-family: Montserrat, Arial, sans-serif;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: absolute;
    z-index: 4;

    width: 100%;
    height: 92px;

    display: flex;
    align-items: center;

    padding: 0 7vw;
    gap: 45px;

    border-bottom: 1px solid #46381f;

    background: #060606d8;

    overflow: visible;
}


/* LOGO */

.brand {
    width: 390px;
    height: 82px;

    flex: 0 0 390px;

    display: flex;
    align-items: center;

    overflow: visible;
}

.brand img {
    width: 100%;
    height: 76px;

    display: block;

    object-fit: contain;
    object-position: left center;
}


/* NAVEGAÇÃO */

nav {
    display: flex;
    gap: 38px;

    margin-left: auto;
}

nav a,
.soon {
    color: #eadfc7;

    text-decoration: none;

    font-size: 10px;
    letter-spacing: 4px;
}

nav a {
    transition: color .2s ease;
}

nav a:hover,
.contact a:hover {
    color: var(--gold);
}


/* BOTÃO EM BREVE */

.soon {
    padding: 16px 25px;

    border: 1px solid var(--gold);

    transition:
        background .2s ease,
        color .2s ease;
}

.soon:hover {
    background: var(--gold);
    color: #080806;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    height: 700px;
    min-height: 660px;

    background-image:
        linear-gradient(
            90deg,
            #050504 0%,
            #050504f4 34%,
            #050504b8 54%,
            #05050455 77%,
            #05050430 100%
        ),
        url('../assets/biblioteca-hero.jpg');

    background-position:
        center,
        right center;

    background-size:
        cover,
        cover;

    background-repeat: no-repeat;
}

.hero-copy {
    position: relative;
    z-index: 2;

    max-width: 900px;

    padding:
        175px
        7vw
        50px;
}


/* EYEBROW */

.eyebrow {
    color: var(--gold);

    font-size: 12px;
    letter-spacing: 6px;
}


/* TÍTULOS */

.hero h1,
.about h2 {
    margin: 22px 0;

    font-family:
        'Cormorant Garamond',
        Georgia,
        serif;

    font-size: 82px;
    font-weight: 500;
    line-height: .91;

    letter-spacing: -2px;
}


/* LINHA DOURADA */

.rule {
    display: block;

    width: 54px;

    margin: 30px 0;

    border-top: 2px solid var(--gold);
}


/* TEXTO HERO */

.lead {
    color: #e0d7c5;

    font-family:
        'Cormorant Garamond',
        Georgia,
        serif;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
}


/* =========================================================
   FORMULÁRIO NEWSLETTER
   ========================================================= */

#avisar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    column-gap: 0;
    row-gap: 9px;

    width: 100%;
    max-width: 670px;

    margin-top: 30px;
}


/* EMAIL */

#avisar > #email {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: 62px;

    min-width: 0;

    padding: 0 20px;

    background: #080907e8;
    color: #fff;

    border: 1px solid #67542e;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: 14px;
}

#avisar > #email:focus {
    outline: 1px solid var(--gold);
    outline-offset: 1px;
}


/* BOTÃO */

#avisar > button {
    grid-column: 2;
    grid-row: 1;

    height: 62px;

    padding: 0 34px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            #b98e2d,
            #e0bd60
        );

    color: #111;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-weight: 600;

    letter-spacing: 3px;

    white-space: nowrap;

    cursor: pointer;

    transition:
        filter .2s ease,
        transform .1s ease;
}

#avisar > button:hover {
    filter: brightness(1.08);
}

#avisar > button:active {
    transform: translateY(1px);
}

#avisar > button:disabled {
    cursor: wait;
    opacity: .75;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.website-field {
    position: absolute !important;

    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* =========================================================
   CONSENTIMENTO LGPD
   ========================================================= */

#avisar > .consent-field {
    grid-column: 1 / -1;
    grid-row: 2;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    width: 100%;

    margin: 2px 0 0;
    padding: 0;

    color: rgba(240, 234, 223, .62);

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;

    cursor: pointer;
}


/* CHECKBOX */

#avisar > .consent-field > input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;

    flex: 0 0 13px;

    width: 13px;
    height: 13px;

    min-width: 13px;
    min-height: 13px;

    margin: 1px 0 0;
    padding: 0;

    border: 0;

    accent-color: var(--gold);

    cursor: pointer;
}


/* TEXTO CONSENTIMENTO */

#avisar > .consent-field > span {
    display: block;

    margin: 0;
    padding: 0;

    color: rgba(240, 234, 223, .62);

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}


/* LINK PRIVACIDADE */

#avisar > .consent-field a,
#avisar > .consent-field a:visited {
    color: var(--gold);

    font-size: inherit;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

#avisar > .consent-field a:hover {
    color: var(--gold-light);
}


/* MENSAGEM ABAIXO DO FORM */

.note {
    margin-top: 10px;

    color: #bfa45f;

    font-size: 11px;
}


/* =========================================================
   CATEGORIAS
   ========================================================= */

.categories {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.categories article {
    padding: 34px 12px;

    text-align: center;

    border-right: 1px solid #352d1e;
}

.categories article:last-child {
    border-right: 0;
}

.categories span {
    color: var(--gold);

    font-size: 29px;
}

.categories h3 {
    color: #d3ae52;

    font-size: 11px;

    letter-spacing: 5px;
}

.categories p {
    color: #bcb4a6;

    font-family:
        'Cormorant Garamond',
        Georgia,
        serif;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}


/* =========================================================
   SOBRE
   ========================================================= */

.about {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1250px;

    padding: 100px 7vw;
}

.about > div {
    max-width: 800px;
}

.about h2 {
    font-size: 68px;
}

.about div > p:last-child {
    max-width: 700px;

    color: #aaa18f;

    line-height: 1.8;
}

.about img {
    width: 230px;

    opacity: .72;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    align-items: center;

    padding: 40px 6vw;

    border-top: 1px solid #352d1e;
}

.footer-logo {
    width: 300px;
    height: auto;
}

.contact {
    display: grid;

    gap: 12px;

    justify-self: end;
}

.contact a {
    color: #c8beac;

    text-decoration: none;

    font-size: 12px;
}

.copy {
    grid-column: 1 / -1;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #282318;

    color: #746e63;

    font-size: 10px;
}

.copy span {
    float: right;

    color: #8e7c51;

    letter-spacing: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    header {
        padding-left: 4vw;
        padding-right: 4vw;

        gap: 24px;
    }

    .brand {
        width: 300px;
        flex-basis: 300px;
    }

    nav {
        gap: 22px;
    }

    nav a {
        letter-spacing: 2.5px;
    }

}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 850px) {

    header {
        height: 80px;

        padding: 0 18px;
    }

    .brand {
        width: 230px;
        height: 64px;

        flex: 0 0 230px;
    }

    .brand img {
        height: 60px;
    }

    nav {
        display: none;
    }

    .soon {
        margin-left: auto;

        padding: 12px;

        font-size: 8px;

        white-space: nowrap;
    }


    /* HERO */

    .hero {
        height: auto;
        min-height: 690px;

        background-position:
            center,
            68% center;
    }

    .hero-copy {
        padding:
            135px
            24px
            50px;
    }

    .hero h1 {
        font-size: 57px;
    }

    .lead br {
        display: none;
    }


    /* FORM */

    #avisar {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    #avisar > #email {
        grid-column: 1;
        grid-row: 1;
    }

    #avisar > button {
        grid-column: 1;
        grid-row: 2;

        width: 100%;
    }

    #avisar > .consent-field {
        grid-column: 1;
        grid-row: 3;

        margin-top: 4px;
    }


    /* CATEGORIAS */

    .categories {
        grid-template-columns:
            1fr
            1fr;
    }

    .categories article {
        min-height: 165px;
    }

    .categories article:nth-child(2) {
        border-right: 0;
    }


    /* SOBRE */

    .about {
        padding:
            70px
            24px;
    }

    .about h2 {
        font-size: 48px;
    }

    .about img {
        display: none;
    }


    /* FOOTER */

    footer {
        grid-template-columns: 1fr;

        padding:
            40px
            24px;
    }

    .footer-logo {
        width: 250px;
    }

    .contact {
        justify-self: start;

        margin-top: 25px;
    }

    .copy span {
        float: none;

        display: block;

        margin-top: 12px;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 520px) {

    header {
        height: 74px;
    }

    .brand {
        width: 195px;
        height: 56px;

        flex: 0 0 195px;
    }

    .brand img {
        height: 52px;
    }

    .soon {
        padding: 10px 9px;

        letter-spacing: 2px;
    }


    /* HERO */

    .hero {
        min-height: 720px;

        background-position:
            center,
            62% center;
    }

    .hero-copy {
        padding:
            125px
            20px
            45px;
    }

    .hero h1 {
        font-size: 50px;
        line-height: .94;
    }

    .lead {
        font-size: 18px;
    }


    /* LGPD */

    #avisar > .consent-field,
    #avisar > .consent-field > span {
        font-size: 10px;
        line-height: 1.5;
    }


    /* CATEGORIAS */

    .categories {
        grid-template-columns: 1fr;
    }

    .categories article {
        min-height: auto;

        border-right: 0;
        border-bottom: 1px solid #352d1e;
    }

    .categories article:last-child {
        border-bottom: 0;
    }


    /* SOBRE */

    .about h2 {
        font-size: 44px;
    }

}


/* ==========================================================
   CASA HERMÉTICA — CONSENTIMENTO / GA4
   ========================================================== */

#cookie-consent {
    position: fixed;

    left: 24px;
    right: 24px;
    bottom: 24px;

    z-index: 99999;

    display: none;

    max-width: 1050px;

    margin: 0 auto;

    padding: 22px 25px;

    border: 1px solid #5b4927;

    background:
        rgba(8,8,7,.98);

    box-shadow:
        0 18px 60px
        rgba(0,0,0,.65);
}


#cookie-consent.visible {
    display: block;
}


.cookie-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;
}


.cookie-copy strong {
    display: block;

    margin-bottom: 7px;

    color: #c8a248;

    font-family:
        'Cormorant Garamond',
        Georgia,
        serif;

    font-size: 19px;
    font-weight: 500;
}


.cookie-copy p {
    max-width: 700px;

    margin: 0;

    color: #aaa18f;

    font-size: 11px;
    line-height: 1.7;
}


.cookie-copy a {
    color: #c8a248;
}


.cookie-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.cookie-actions button {
    min-width: 100px;

    padding:
        11px
        15px;

    border: 1px solid #6c572c;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing: 2px;

    cursor: pointer;
}


.cookie-reject {
    background: transparent;

    color: #a99e89;
}


.cookie-accept {
    background: #b18c3e;

    color: #080807;
}


.cookie-actions button:hover {
    opacity: .85;
}


.privacy-preferences {
    position: fixed;

    left: 15px;
    bottom: 15px;

    z-index: 9990;

    padding:
        7px
        10px;

    border:
        1px solid
        #3c3322;

    background:
        rgba(8,8,7,.90);

    color: #8f7c52;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 1.5px;

    cursor: pointer;
}


@media (max-width: 700px) {

    #cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;

        padding: 20px;
    }


    .cookie-inner {
        display: block;
    }


    .cookie-actions {
        margin-top: 18px;
    }


    .cookie-actions button {
        flex: 1;
    }

}
