/*
 * Navbar e rodapé do site público (Elements/navbar e Components/Footer).
 * CSS escrito à mão (sem Tailwind) porque esses dois aparecem também nas telas antigas,
 * que ainda são Bootstrap. Tudo prefixado com "sh-" para não colidir com nada.
 */
:root {
    --sh-marrom: #654737;
    --sh-marrom-escuro: #3b281e;
    --sh-marrom-profundo: #2c1e16;
    --sh-amarelo: #e9cc66;
    --sh-amarelo-forte: #f2c94c;
    --sh-creme: #faf6ee;
    --sh-texto: #27272a;
    --sh-texto-suave: #52525b;
    --sh-fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sh-fonte-titulo: Fraunces, Georgia, serif;
    --sh-altura-nav: 76px;
}

/* O custom.css antigo põe overflow-x: hidden no html/body, o que quebra o "sticky" da navbar.
   "clip" corta o excesso lateral do mesmo jeito sem criar um contêiner de rolagem. */
html:not(#sh), body:not(#sh) { overflow-x: clip !important; }
html { scroll-padding-top: calc(var(--sh-altura-nav) + 16px); }

/* ============================== NAVBAR ============================== */
.sh-nav, .sh-nav *, .sh-rodape, .sh-rodape * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--sh-fonte); }
.sh-nav .fas, .sh-rodape .fas { font-family: "Font Awesome 5 Free" !important; font-weight: 900; }
.sh-nav .fab, .sh-rodape .fab { font-family: "Font Awesome 5 Brands" !important; font-weight: 400; }
.sh-nav a, .sh-rodape a { text-decoration: none; text-align: inherit !important; }

.sh-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.sh-nav.is-rolado { background: rgba(255, 255, 255, .94); border-bottom-color: rgba(101, 71, 55, .08); box-shadow: 0 8px 30px -18px rgba(59, 40, 30, .35); }

.sh-nav__barra {
    max-width: 1240px; height: var(--sh-altura-nav); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sh-nav__logo { display: flex; align-items: center; flex-shrink: 0; border-radius: 10px; }
.sh-nav__logo img { display: block; height: 44px; width: auto; }
.sh-nav__logo:focus-visible { outline: 3px solid var(--sh-amarelo); outline-offset: 4px; }

.sh-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.sh-nav__item { position: relative; list-style: none; }

.sh-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1; white-space: nowrap;
    color: var(--sh-texto-suave) !important; transition: color .2s ease, background .2s ease;
}
.sh-nav__link:hover, .sh-nav__link[aria-expanded="true"] { color: var(--sh-marrom) !important; background: rgba(233, 204, 102, .18); }
.sh-nav__link.is-ativo { color: var(--sh-marrom) !important; }
.sh-nav__link.is-ativo::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 3px; border-radius: 3px;
    background: var(--sh-amarelo-forte); transform: translateX(-50%);
}
.sh-nav__link:focus-visible { outline: 3px solid var(--sh-amarelo); outline-offset: 2px; }
.sh-nav__seta { font-size: 10px; transition: transform .2s ease; }
.sh-nav__link[aria-expanded="true"] .sh-nav__seta { transform: rotate(180deg); }

.sh-nav__sub {
    position: absolute; top: calc(100% + 10px); left: 50%; min-width: 248px; padding: 8px;
    background: #fff; border-radius: 18px; border: 1px solid rgba(101, 71, 55, .08);
    box-shadow: 0 24px 48px -20px rgba(59, 40, 30, .35), 0 2px 6px rgba(0, 0, 0, .04);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sh-nav__sub.is-aberto { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-nav__sub a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--sh-texto) !important; transition: background .15s ease;
}
.sh-nav__sub a:hover, .sh-nav__sub a:focus-visible { background: var(--sh-creme); outline: none; }
.sh-nav__sub a small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #71717a; }
.sh-nav__sub-icone {
    display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 10px; background: rgba(233, 204, 102, .25); color: var(--sh-marrom); font-size: 14px;
}

.sh-nav__acoes { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
    border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.sh-btn:focus-visible { outline: 3px solid var(--sh-amarelo); outline-offset: 3px; }
.sh-btn--doe { background: var(--sh-amarelo-forte); color: var(--sh-marrom-escuro) !important; box-shadow: 0 8px 20px -10px rgba(214, 160, 20, .8); }
.sh-btn--doe:hover { transform: translateY(-1px); background: #f5d265; box-shadow: 0 12px 26px -12px rgba(214, 160, 20, .9); }
.sh-btn--doe .fa-heart { animation: sh-batida 1.8s ease-in-out infinite; }
.sh-btn--contorno { border: 1.5px solid rgba(101, 71, 55, .25); color: var(--sh-marrom) !important; }
.sh-btn--contorno:hover { border-color: var(--sh-marrom); background: var(--sh-marrom); color: #fff !important; }
@keyframes sh-batida { 0%, 60%, 100% { transform: scale(1); } 15%, 35% { transform: scale(1.22); } }

.sh-nav__hamburguer { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(233, 204, 102, .2); cursor: pointer; position: relative; }
.sh-nav__hamburguer span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--sh-marrom); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.sh-nav__hamburguer span:nth-child(1) { top: 15px; }
.sh-nav__hamburguer span:nth-child(2) { top: 21px; }
.sh-nav__hamburguer span:nth-child(3) { top: 27px; }
.sh-nav__hamburguer[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.sh-nav__hamburguer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-nav__hamburguer[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
    .sh-nav__link { padding: 0 10px; font-size: 14px; }
    .sh-nav__acoes .sh-btn--contorno span { display: none; }
    .sh-nav__acoes .sh-btn--contorno { width: 42px; padding: 0; }
}

@media (max-width: 1023px) {
    :root { --sh-altura-nav: 68px; }
    .sh-nav__logo img { height: 38px; }
    .sh-nav__hamburguer { display: block; }
    .sh-nav__painel {
        position: fixed; inset: var(--sh-altura-nav) 0 auto 0; max-height: calc(100dvh - var(--sh-altura-nav)); overflow-y: auto;
        padding: 12px 20px 28px; background: #fff; border-top: 1px solid rgba(101, 71, 55, .08);
        box-shadow: 0 30px 40px -20px rgba(59, 40, 30, .35);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .sh-nav__painel.is-aberto { opacity: 1; visibility: visible; transform: none; }
    .sh-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .sh-nav__link { width: 100%; height: 52px; justify-content: space-between; padding: 0 14px; border-radius: 14px; font-size: 16px; }
    .sh-nav__link.is-ativo { background: rgba(233, 204, 102, .2); }
    .sh-nav__link.is-ativo::after { display: none; }
    .sh-nav__sub { position: static; transform: none; min-width: 0; padding: 0 0 8px 8px; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; }
    .sh-nav__sub.is-aberto { display: block; transform: none; }
    .sh-nav__acoes--painel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
    .sh-nav__acoes--painel .sh-btn { height: 50px; font-size: 15px; }
    .sh-nav__acoes--painel .sh-btn--contorno { width: auto; padding: 0 20px; }
    .sh-nav__acoes--painel .sh-btn--contorno span { display: inline; }
    .sh-nav__acoes--barra { display: none; }
}
@media (min-width: 1024px) {
    .sh-nav__painel { display: contents; }
    .sh-nav__acoes--painel { display: none; }
}

/* ============================== RODAPÉ ============================== */
/* Amarelo da marca, textos marrons e detalhes em tons escuros para boa leitura */
.sh-rodape {
    position: relative; overflow: hidden; margin-top: 0;
    background: var(--sh-amarelo);
    color: var(--sh-marrom-escuro); font-size: 15px; line-height: 1.65; text-align: left;
}
.sh-rodape__onda { display: block; width: 100%; height: 72px; margin-bottom: -1px; color: var(--sh-amarelo); background: transparent; }
.sh-rodape__onda--topo { position: relative; z-index: 1; }

/* Patinhas flutuando (marrom, amarelo-escuro e cinza) */
.sh-patinhas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sh-patinha { position: absolute; width: var(--t, 40px); height: var(--t, 40px); color: var(--c, var(--sh-marrom)); opacity: var(--o, .2); transform: rotate(var(--r, 0deg)); animation: sh-flutuar var(--d, 9s) ease-in-out var(--a, 0s) infinite; }
.sh-patinha svg { display: block; width: 100%; height: 100%; }
@keyframes sh-flutuar {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 10deg)); }
}

/* Rastro de patinhas atravessando o rodapé */
.sh-rastro { position: absolute; left: 0; right: 0; bottom: 92px; height: 60px; pointer-events: none; }
.sh-rastro span { position: absolute; width: 22px; height: 22px; color: var(--sh-marrom); opacity: 0; animation: sh-pegada 12s linear infinite; }
.sh-rastro span:nth-child(odd) { top: 6px; }
.sh-rastro span:nth-child(even) { top: 30px; }
.sh-rastro svg { display: block; width: 100%; height: 100%; transform: rotate(90deg); }
@keyframes sh-pegada { 0% { opacity: 0; } 4% { opacity: .4; } 30% { opacity: .22; } 45%, 100% { opacity: 0; } }

.sh-rodape__conteudo { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 24px 24px 0; }
.sh-rodape__grade { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 48px; padding-bottom: 56px; }
.sh-rodape__marca img { display: block; width: 200px; height: auto; margin-left: -14px; }
.sh-rodape__marca p { margin-top: 8px; max-width: 34ch; font-size: 15px; color: var(--sh-marrom-escuro); }
.sh-rodape__marca b { color: var(--sh-marrom-profundo); }
.sh-rodape__titulo { margin-bottom: 18px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-marrom); }
.sh-rodape__lista { list-style: none; display: grid; gap: 10px; }
.sh-rodape__lista li { list-style: none; }
.sh-rodape__lista a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--sh-marrom-escuro) !important; transition: color .2s ease, transform .2s ease; }
.sh-rodape__lista a:hover { color: var(--sh-marrom-profundo) !important; transform: translateX(3px); text-decoration: underline; text-underline-offset: 3px; }
.sh-rodape__lista i { width: 16px; font-size: 13px; color: var(--sh-marrom); }

.sh-redes { display: flex; gap: 10px; margin-top: 22px; }
.sh-redes a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sh-marrom); color: #fff !important; font-size: 16px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.sh-redes a:hover { background: #fff; color: var(--sh-marrom) !important; transform: translateY(-3px); }
.sh-redes a i { color: inherit !important; }

.sh-novidades { align-self: start; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px -24px rgba(59, 40, 30, .45); }
.sh-novidades p { font-size: 14px; color: #52525b; }
.sh-novidades .sh-rodape__titulo { color: var(--sh-marrom); }
.sh-novidades form { display: flex; gap: 8px; margin-top: 16px; }
.sh-novidades input {
    flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(101, 71, 55, .2);
    background: #fff; color: var(--sh-texto); font-size: 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.sh-novidades input::placeholder { color: #a1a1aa; }
.sh-novidades input:focus { border-color: var(--sh-marrom); box-shadow: 0 0 0 4px rgba(233, 204, 102, .45); }
.sh-novidades button { height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--sh-marrom); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease; }
.sh-novidades button:hover { background: var(--sh-marrom-escuro); }

.sh-rodape__base {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding: 22px 0 28px; border-top: 1px solid rgba(101, 71, 55, .2); font-size: 13px; font-weight: 500; color: var(--sh-marrom-escuro);
}
.sh-rodape__base a { color: var(--sh-marrom-escuro) !important; font-weight: 700; }
.sh-rodape__base a:hover { color: var(--sh-marrom-profundo) !important; text-decoration: underline; }

@media (max-width: 1023px) {
    .sh-rodape__grade { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 639px) {
    .sh-rodape__grade { grid-template-columns: 1fr; gap: 36px; }
    .sh-rodape__marca img { width: 170px; }
    .sh-rodape__onda { height: 44px; }
    .sh-rastro { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sh-patinha, .sh-rastro span, .sh-btn--doe .fa-heart { animation: none; }
    .sh-rastro { display: none; }
}
