/* Portal Cimento Brasil — navegação, contatos e rodapé (v2.0.72) */

/* Barra superior e cabeçalho fixo */
.pcb-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    background: rgba(255,255,255,.98);
}

.pcb-topbar {
    max-height: 40px;
    overflow: hidden;
    color: #fff;
    background: var(--pcb-blue-dark);
    border-bottom: 1px solid rgba(255,255,255,.12);
    transition: max-height .24s ease, opacity .2s ease, border-color .2s ease;
}

.pcb-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pcb-topbar-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.pcb-topbar-contact a,
.pcb-topbar-contact button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.pcb-topbar-contact a:hover,
.pcb-topbar-contact button:hover,
.pcb-topbar-contact a:focus,
.pcb-topbar-contact button:focus {
    color: #a7e39f;
}

.pcb-topbar-talk { font-weight: 700 !important; }

.pcb-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcb-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: currentColor;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.pcb-social-links--topo { color: #fff; }
.pcb-social-links--topo a:hover,
.pcb-social-links--topo a:focus { color: var(--pcb-blue-dark); background: #fff; transform: translateY(-1px); }

.pcb-header.is-scrolled .pcb-topbar {
    max-height: 0;
    opacity: 0;
    border-bottom-color: transparent;
    pointer-events: none;
}

.pcb-header.is-scrolled .pcb-header-inner { min-height: 78px; }
.pcb-header .pcb-search-panel,
.pcb-header.is-scrolled .pcb-search-panel { top: calc(100% - 8px); }

/* Breadcrumb */
.pcb-breadcrumb {
    position: relative;
    z-index: 2;
    background: #f5f8f8;
    border-bottom: 1px solid #e0e8e9;
}

.pcb-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    font-size: 12px;
}

.pcb-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.pcb-breadcrumb li + li::before { content: '›'; color: var(--pcb-green); font-size: 17px; line-height: 1; }
.pcb-breadcrumb a { color: var(--pcb-blue); font-weight: 700; }
.pcb-breadcrumb a:hover,
.pcb-breadcrumb a:focus { color: var(--pcb-green); text-decoration: underline; text-underline-offset: 3px; }
.pcb-breadcrumb [aria-current="page"] { color: #62686b; }

/* Rodapé reorganizado */
.pcb-footer-top {
    grid-template-columns: minmax(230px,1.2fr) minmax(145px,.75fr) minmax(165px,.8fr) minmax(240px,1.1fr) !important;
    gap: 48px !important;
    padding-top: 38px !important;
}

.pcb-footer-institutional-logos { gap: 22px; margin-top: 24px; }
.pcb-footer-institutional-logos img { opacity: 1 !important; }

.pcb-footer-contact > p,
.pcb-footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pcb-footer-contact > p i,
.pcb-footer-address > i {
    flex: 0 0 16px;
    margin-top: 3px;
    color: var(--pcb-green);
    text-align: center;
}

.pcb-footer-address > div { min-width: 0; }
.pcb-footer-address p { margin-top: 0; }
.pcb-footer-contact a:hover,
.pcb-footer-contact a:focus { color: var(--pcb-green); }

.pcb-footer-contact .pcb-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pcb-footer-social-title {
    margin-top: 28px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

.pcb-social-links--rodape { color: var(--pcb-blue); }
.pcb-social-links--rodape a { border: 1px solid #d6e1e3; background: #f5f8f8; }
.pcb-social-links--rodape a:hover,
.pcb-social-links--rodape a:focus { color: #fff; background: var(--pcb-green); border-color: var(--pcb-green); transform: translateY(-2px); }

.pcb-footer-legal { display: flex; align-items: center; gap: 22px; }
.pcb-footer-legal a,
.pcb-footer-legal span { font-size: 10px; text-transform: uppercase; }

/* Botão voltar ao topo */
.pcb-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pcb-green);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,71,106,.24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}

.pcb-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pcb-back-to-top:hover,
.pcb-back-to-top:focus { background: var(--pcb-blue); }
.pcb-back-to-top:focus-visible { outline: 3px solid rgba(69,173,56,.3); outline-offset: 3px; }

@media (max-width: 1000px) {
    .pcb-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 38px !important; }
}

@media (max-width: 760px) {
    .pcb-header { position: sticky !important; top: 0 !important; box-shadow: 0 4px 18px rgba(0,72,102,.08) !important; }
    .pcb-topbar-inner { min-height: 36px; gap: 10px; }
    .pcb-topbar-contact { gap: 12px; }
    .pcb-topbar-contact a,
    .pcb-topbar-contact button { font-size: 11px; }
    .pcb-social-links { gap: 3px; }
    .pcb-social-links a { width: 27px; height: 27px; }
    .pcb-nav-wrap { top: 100% !important; }
    .pcb-header.is-scrolled .pcb-header-inner { min-height: 70px; }
    .pcb-header.is-scrolled .pcb-brand-small { font-size: 20px; letter-spacing: -.4px; }
    .pcb-header.is-scrolled .pcb-brand-large { font-size: 36px; letter-spacing: -1px; }
    .pcb-breadcrumb ol { min-height: 38px; font-size: 11px; }
    .pcb-footer-top { grid-template-columns: 1fr !important; gap: 30px !important; }
    .pcb-footer-bottom { display: flex !important; flex-direction: column; gap: 10px; }
    .pcb-footer-legal { flex-wrap: wrap; }
    .pcb-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 560px) {
    .pcb-topbar-contact a span,
    .pcb-topbar-contact button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .pcb-topbar-contact a,
    .pcb-topbar-contact button { justify-content: center; width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .pcb-topbar,
    .pcb-back-to-top,
    .pcb-social-links a { transition: none; }
}
