/* ======================================================================
   Politermica — header + menu lateral
   ----------------------------------------------------------------------
   EXTRAIDO de politermica.pt/media/css/{base,custom}.css
   para que blog.politermica.pt reproduza o site principal tal e qual.

   Markup em views/Cms/politermica-header.tpl.
   Comportamento em media/js/sidebar-menu.js (copiado do site principal).

   REGENERAR, NAO EDITAR A MAO: python _main_assets/extract_css.py
   Se o header/footer do site principal mudar, volta a correr o script
   em vez de remendar este ficheiro, ou os dois sites divergem.
   ====================================================================== */

/* ==================================================================
   de custom.css — 46 de 683 regras
   ================================================================== */
.header-politermica {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 110px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: inline-block;
    text-decoration: none;
}
.logo-img {
    width: 266px;
    height: auto;
    display: block;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.email-btn {
    background: #FFF;
    border: none;
    border-radius: 19px;
    box-shadow: 0 4px 17px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    z-index: 3000;
    transition: opacity 0.3s ease;
    text-decoration: none;
}
.email-btn:hover {
    opacity: 0.8;
}
.email-btn svg {
    width: 24px;
    height: 24px;
}
.menu-btn {
    background: #FFF;
    border: none;
    border-radius: 19px;
    box-shadow: 0 4px 17px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 10px 20px;
    font-family: "Geist", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    color: #28282D;
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.2);
}
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #28282D;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #B4BD00;
    z-index: 2000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}
.sidebar-menu.active {
    right: 0;
}
.sidebar-content {
    padding: 40px 40px 40px;
    position: relative;
}
.sidebar-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 3000;
    transition: opacity 0.2s ease;
}
.sidebar-close-btn:hover {
    opacity: 0.7;
}
.close-icon {
    font-size: 40px;
    color: #fff;
    line-height: 1;
    font-weight: 300;
}
.sidebar-menu-title {
    font-family: "Geist", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #83872B;
    line-height: normal;
    margin: 0 0 15px 0;
}
.sidebar-nav {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}
.sidebar-nav-item {
    margin-bottom: 0;
}
.sidebar-nav-link {
    display: block;
    padding: 10px 0;
    color: #FFF;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sidebar-nav-link:hover {
    color: #FFF;
    transform: translateX(3px);
}
.sidebar-social {
    margin: 40px 0;
    padding: 25px 0;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    transition: opacity 0.2s ease;
}
.social-icon:hover {
    opacity: 0.7;
}
.sidebar-contact {
    margin-top: 40px;
}
.sidebar-contact-title {
    font-family: "Geist", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #83872B;
    line-height: normal;
    margin: 0 0 15px 0;
}
.sidebar-contact-item {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFF;
    line-height: normal;
    padding: 10px 0;
    margin: 0;
}
.sidebar-contact-item strong {
    font-weight: 600;
}
body.sidebar-open {
    overflow: hidden;
}
body.sidebar-open #header,
body.sidebar-open .bannerHomepage,
body.sidebar-open .containerHomepage,
body.sidebar-open .containerGridHomepage,
body.sidebar-open .containerServicosHomepage {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

@media (max-width: 1100px) {
    .header-politermica {
        padding: 40px 70px;
    }
}

@media (max-width: 992px) {
    .sidebar-menu {
        width: 80%;
        right: -80%;
    }
    .sidebar-content {
        padding: 60px 30px 30px;
    }
    .sidebar-nav-link {
        font-size: 20px;
        padding: 15px 0;
    }
}

@media (max-width: 680px) {
    .logo-img {
        width: 188px;
    }
    .email-btn {
        display: none;
    }
    .menu-btn {
        padding: 14px;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .menu-text {
        display: none;
    }
    .hamburger-icon {
        display: flex;
    }
    .sidebar-menu {
        width: 90%;
        right: -90%;
    }
}

@media (max-width: 500px) {
    .header-politermica {
        padding: 40px 40px;
    }
    .sidebar-menu {
        width: 100%;
        right: -100%;
    }
}
