/*  - - - - - HEADER - - - - - */
/* tudo posicionado com position:absolute dentro de .header .central,
   igual o XD (medi as posições direto no preview do XD) */

.header {
    position: relative;
    z-index: 100;
    background: var(--white);
}

.header .central {
    height: 150px;
}

/* faixa rosa -- ::after no HEADER (não no nav), sem padding em lugar
   nenhum -- só position:absolute, igual o XD */
.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 43%;
    right: 0;
    height: 70px;
    background: var(--primary);
    border-top-left-radius: 26px;
    border-bottom-left-radius: 0;
    z-index: 1;
}

/* logo -- centralizado (horizontal e vertical) dentro do espaço
   branco acima do after. Largura SEMPRE no .logo (nunca na img) --
   a img só leva width:100%. height explícito (não auto) pra não
   cair no auto-height esquisito de absoluto só com top/bottom. */
.header .logo {
    position: absolute;
    top: 35px;
    left: 0;
    width: 415px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .logo img {
    width: 100%;
}

/* contato -- canto superior direito, antes das redes */
.header_contatos {
    position: absolute;
    top: 40px;
    transform: translateY(-50%);
    right: 110px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header_contatos-icone {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_contatos-icone img {
    width: 18px;
    filter: invert(35%) sepia(100%) saturate(295%) hue-rotate(-72deg) brightness(88%) contrast(200%);
}

.header_contatos-texto {
    font-family: var(--font-alt);
    font-size: 17px;
    font-weight: 500;
    color: #0A0A0A;
    white-space: nowrap;
}

.header_contatos-texto strong {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.header_contatos-texto a {
    color: var(--dark);
}

.header_contatos-texto a:hover {
    color: var(--primary);
}

/* redes -- canto superior direito, cor primária */
.header_redes {
    position: absolute;
    top: 40px;
    transform: translateY(-50%);
    right: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header_redes img {
    width: 22px;
    filter: invert(35%) sepia(100%) saturate(295%) hue-rotate(-72deg) brightness(88%) contrast(200%);
}

/* faixa de navegação -- só os links, sem padding; o fundo rosa é o
   ::after do .header, começando em 43%. left: calc(43% + 10px) deixa
   o "Home" a uns 10px da curva do border-radius */
.header_nav {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 4.7vw;
}

.header_nav>a,
.header_nav .menuhover-wrap {
    position: relative;
    z-index: 2;
}

.header_nav>a,
.header_nav .menuhover-btn {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.header_nav>a.active,
.header_nav>a:hover,
.header_nav .menuhover-btn:hover {
    opacity: .8;
}

.menuhover-wrap {
    position: relative;
}

.menuhover-btn {
    display: inline-block;
}

.menuhover {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 220px;
    height: 0;
    overflow: hidden;
    background: rgba(90, 90, 90, .72);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    transition: height .25s ease;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.menuhover a {
    padding: 13px 20px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.menuhover a:last-child {
    border-bottom: none;
}

.menuhover a:hover {
    color: var(--white);
    background: rgba(205, 19, 84, .65);
}

/* header fixo ao rolar -- o JS (fn.js) adiciona essa classe depois de
   60px de scroll (só em telas > 1000px; no mobile o header já é
   fixo sempre, via mobile.css). Versão compacta: barra branca, só logo
   + nav (sem contato/redes), ::after reto (sem o canto arredondado) e
   sem sombra. */
.header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header--fixed .central {
    height: 70px;
}

.header--fixed::after {
    bottom: 0;
    height: 70px;
    border-top-left-radius: 0;
}

.header--fixed .logo {
    top: 0;
    left: 20%;
    right: auto;
    width: 230px;
    height: 70px;
    margin: 0;
    transform: translateX(-50%);
}

.header--fixed .logo img {
    width: 100%;
}

.header--fixed .header_contatos,
.header--fixed .header_redes {
    display: none !important;
}

.header--fixed .header_nav {
    bottom: 0;
    height: 70px;
    gap: 4.7vw;
    justify-content: flex-end;
}

/* compensa o espaço que o header deixa de ocupar no fluxo quando vira
   fixed -- sem isso o conteúdo "pula" pra cima de repente ao rolar */
body.header-fixo {
    padding-top: 70px;
}

/*  - - - - - HEADER - - - - - */

/*  - - - - - NEWSLETTER - - - - - */
/* código real do site Papel Ecológico (papelecologico.com.br), adaptado
   às cores/fontes da Brogliplast -- ::before cobre 40% da largura TOTAL
   da barra (bleed até a borda esquerda), e dentro do .central o label/
   input/botão dividem 40/50/20% (como no site original) */

.newsletter {
    width: 100%;
    height: 60px;
    position: relative;
    background: var(--footer-bg);
    border-bottom: 1px solid var(--primary);
}

.newsletter::before {
    content: "";
    width: 40%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
}

.newsletter .central {
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter_form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.newsletter_label {
    width: 40%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-headers);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    box-sizing: border-box;
}

.newsletter_label img {
    width: 25px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.newsletter_msg {
    position: absolute;
    left: 40%;
    top: 100%;
    z-index: 5;
    padding: 6px 14px;
    background: var(--footer-bg);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter_msg--ok {
    background: #2e7d32;
}

.newsletter_msg--erro {
    background: #c62828;
}

.newsletter_form input {
    width: 50%;
    height: 100%;
    padding: 0 20px;
    background: var(--footer-bg);
    color: var(--white);
    font-family: var(--font-alt);
    font-size: 14px;
    border-bottom: 1px solid var(--primary);
}

.newsletter_form input::placeholder {
    color: var(--white);
    opacity: .7;
}

.newsletter_form button {
    width: 20%;
    height: 100%;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-headers);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter_form button:hover {
    background: var(--primary-hover);
}

/*  - - - - - NEWSLETTER - - - - - */

/*  - - - - - FOOTER - - - - - */
/* valores (fontes/tamanhos/cores) tirados direto do JSON do XD */

.footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 70px 0 0;
}

.footer_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 60px;
}

.footer_col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 0;
    min-width: 220px;
    padding: 0 40px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.footer_col:first-child {
    padding-left: 0;
    border-left: none;
}

.footer_col h4 {
    font-family: var(--font-headers);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, .18);
    width: fit-content;
}

.footer_col-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer_col a {
    font-family: var(--font-alt);
    font-size: 14px;
    color: var(--white);
}

.footer_col a:hover {
    color: var(--primary);
}

.footer_logo {
    width: 140px;
    height: auto;
    margin: 20px auto 0;
}

.footer_sobre {
    font-family: var(--font-alt);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
    margin-top: 12px;
}

.footer_endereco {
    font-family: var(--font-alt);
    font-style: italic;
    font-size: 13px;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 18px;
}

.footer_endereco:last-child {
    margin-bottom: 0;
}

.footer_endereco a {
    color: var(--white);
    font-style: italic;
}

.footer_contato-linha {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer_contato-icone {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_contato-icone img {
    width: 25px;
    height: 25px;
    filter: invert(100%) brightness(200%);
}

.footer_contato-texto {
    display: flex;
    flex-direction: column;
}

.footer_contato-texto a {
    font-family: var(--font-alt);
    font-size: 13px;
    color: var(--white);
}

.footer_redes-label {
    font-family: var(--font-headers);
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    text-align: center;
    margin-top: 36px;
}

/* o próprio PNG do ícone já vem com o quadrado arredondado desenhado
   (olhei o ícone ampliado) -- então sem border/box extra aqui, senão
   fica um border duplicado e o ícone pequeno "flutuando" dentro dele,
   diferente do XD */
.footer_redes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.footer_redes a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_redes img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(100%) brightness(200%);
}

.footer_credito {
    background: var(--primary);
}

.footer_credito-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.footer_credito-logo {
    height: 16px;
    width: auto;
}

.footer_credito span {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--white);
}

/*  - - - - - FOOTER - - - - - */

/* - - - - - AVISO DE COOKIES (LGPD) - - - - - */

.cookie-banner {
    width: 100%;
    padding: 20px 24px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--primary);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
    font-family: var(--font-primary);
}

.cookie-banner p {
    max-width: 640px;
    margin: 0;
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.cookie-banner a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner_botoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-banner_btn {
    padding: 12px 28px;
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 16px;
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
}

/* botão cheio (Aceitar): no hover inverte pra cor do site, como os
   outros botões sólidos do template -- já muda sozinho se trocar
   --primary/--primary-hover em outro site */
.cookie-banner_btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

/* botão outline (Recusar): transparente com borda branca; no hover
   vira branco cheio com o texto na cor do site -- mesma lógica, só
   troca sozinho junto com a cor do site */
.cookie-banner_btn--outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cookie-banner_btn--outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

/* - - - - - AVISO DE COOKIES (LGPD) - - - - - */