/* ==========================================================================
   CME — camada de site completo (v1, Dez 2026)
   Carregada depois de cme-hero.css. Banner de título, sidebar, rodapé,
   galeria, blog, testemunhos, formulário de contacto, menu móvel e
   ajustes responsivos. Aditiva: não edita o tema original.
   ========================================================================== */

/* ---------- banner de título (páginas internas) ---------- */
.page-title {
    position: relative;
    overflow: hidden;
}
.page-title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(15, 35, 24, .72) 0%, rgba(15, 35, 24, .42) 45%, rgba(15, 35, 24, .18) 100%);
}
.page-title .auto-container { position: relative; z-index: 2; }
.page-title h1 {
    font-family: var(--cme-f-display, "Plus Jakarta Sans", sans-serif) !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}
.page-title ul.page-breadcrumb li a {
    transition: color .2s var(--cme-ease, ease);
}
.page-title ul.page-breadcrumb li a:hover { color: var(--cme-gold, #D98C2B) !important; }

/* ---------- sidebar (páginas de serviços) ---------- */
.sidebar.services-sidebar .sidebar-widget {
    border-radius: var(--cme-r, 16px);
    overflow: hidden;
    box-shadow: var(--cme-shadow-sm, 0 1px 2px rgba(15,35,24,.06), 0 4px 14px -6px rgba(15,35,24,.12));
    margin-bottom: 30px;
}
.sidebar.services-sidebar .services-categories { list-style: none; margin: 0; padding: 0; }
.sidebar.services-sidebar .services-categories li { border-bottom: 1px solid #eef2eb; }
.sidebar.services-sidebar .services-categories li:last-child { border-bottom: none; }
.sidebar.services-sidebar .services-categories li a {
    display: block;
    padding: 14px 20px;
    transition: background-color .2s var(--cme-ease, ease), color .2s var(--cme-ease, ease), padding-left .2s var(--cme-ease, ease);
}
.sidebar.services-sidebar .services-categories li a:hover,
.sidebar.services-sidebar .services-categories li.active a {
    background: var(--cme-stone, #F4F7F1);
    color: var(--cme-green, #57A52E);
    padding-left: 26px;
}
.sidebar.services-sidebar .brochures-box {
    border-radius: var(--cme-r, 16px);
    overflow: hidden;
    box-shadow: var(--cme-shadow-sm, 0 1px 2px rgba(15,35,24,.06), 0 4px 14px -6px rgba(15,35,24,.12));
}
.sidebar.services-sidebar .brochures-box .inner { padding: 26px; }
.sidebar.services-sidebar .brochures-box h4 {
    font-family: var(--cme-f-display, "Plus Jakarta Sans", sans-serif);
}

/* ---------- rodapé ---------- */
.main-footer {
    background: var(--cme-ink, #0F2318) !important;
    color: var(--cme-on-ink, #CFE0C8);
}
.main-footer .widget-title {
    font-family: var(--cme-f-display, "Plus Jakarta Sans", sans-serif);
    color: #fff;
}
.main-footer .footer-widget.about-widget .text { color: var(--cme-on-ink, #CFE0C8); }
.main-footer .contact-list .icon {
    color: var(--cme-gold, #D98C2B);
}
.main-footer .footer-widget.recent-posts .post .date { color: var(--cme-gold-dk, #B06F1E); }
.main-footer .footer-widget.recent-posts .post {
    transition: transform .2s var(--cme-ease, ease);
}
.main-footer .footer-widget.recent-posts .post:hover { transform: translateX(4px); }
.main-footer a { transition: color .2s var(--cme-ease, ease); }
.main-footer a:hover { color: var(--cme-gold, #D98C2B) !important; }
.main-footer .footer-bottom {
    background: rgba(0, 0, 0, .18);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.main-footer .footer-bottom .scroll-to-top {
    border-radius: 50%;
    background: var(--cme-green, #57A52E) !important;
    transition: background-color .2s var(--cme-ease, ease), transform .2s var(--cme-ease, ease);
}
.main-footer .footer-bottom .scroll-to-top:hover {
    background: var(--cme-gold, #D98C2B) !important;
    transform: translateY(-3px);
}

/* ---------- galeria ---------- */
.mixitup-gallery .filter-tabs.filter-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mixitup-gallery .filter-tabs.filter-btns .filter {
    border-radius: 999px !important;
    padding: 10px 22px !important;
    transition: background-color .2s var(--cme-ease, ease), color .2s var(--cme-ease, ease), transform .2s var(--cme-ease, ease);
    cursor: pointer;
}
.mixitup-gallery .filter-tabs.filter-btns .filter:hover { transform: translateY(-2px); }
.mixitup-gallery .filter-tabs.filter-btns .filter.active {
    background: var(--cme-green, #57A52E) !important;
    color: #fff !important;
}
.mixitup-gallery .filter-list .image-box,
.mixitup-gallery .filter-list .inner-box {
    border-radius: var(--cme-r, 16px);
    overflow: hidden;
    transition: transform .3s var(--cme-ease, ease), box-shadow .3s var(--cme-ease, ease);
}
.mixitup-gallery .filter-list .image-box:hover,
.mixitup-gallery .filter-list .inner-box:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--cme-shadow, 0 1px 2px rgba(15,35,24,.06), 0 18px 40px -18px rgba(15,35,24,.28));
}
.mixitup-gallery .filter-list img { transition: transform .5s var(--cme-ease, ease); }
.mixitup-gallery .filter-list .image-box:hover img { transform: scale(1.06); }

/* ---------- blog (lista e detalhe) ---------- */
.news-block-three .inner-box,
.news-block .inner-box {
    border-radius: var(--cme-r, 16px);
    overflow: hidden;
    transition: transform .3s var(--cme-ease, ease), box-shadow .3s var(--cme-ease, ease);
    box-shadow: var(--cme-shadow-sm, 0 1px 2px rgba(15,35,24,.06), 0 4px 14px -6px rgba(15,35,24,.12));
}
.news-block-three .inner-box:hover,
.news-block .inner-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--cme-shadow, 0 1px 2px rgba(15,35,24,.06), 0 18px 40px -18px rgba(15,35,24,.28));
}
.news-block-three h3 a:hover,
.news-block h3 a:hover,
.sidebar-page-container .post h5 a:hover {
    color: var(--cme-green, #57A52E) !important;
}
.post img, article img { border-radius: var(--cme-r, 16px); }

/* ---------- testemunhos ---------- */
.testimonial-section { background: var(--cme-stone, #F4F7F1); }
.testimonial-block {
    border-radius: var(--cme-r, 16px) !important;
    box-shadow: var(--cme-shadow-sm, 0 1px 2px rgba(15,35,24,.06), 0 4px 14px -6px rgba(15,35,24,.12)) !important;
}
.testimonial-block .thumb-box img {
    border-radius: 50% !important;
    border: 3px solid var(--cme-gold, #D98C2B);
}
.client-testimonial-carousel .owl-dots .owl-dot span {
    border-radius: 50% !important;
    background: #d7e0d2 !important;
}
.client-testimonial-carousel .owl-dots .owl-dot.active span {
    background: var(--cme-green, #57A52E) !important;
}

/* ---------- formulário de contacto ---------- */
.contact-form input,
.contact-form textarea,
.contact-form select,
#email-form input,
#email-form textarea {
    border-radius: var(--cme-r-sm, 10px) !important;
    border: 1px solid #dfe6da !important;
    transition: border-color .2s var(--cme-ease, ease), box-shadow .2s var(--cme-ease, ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
#email-form input:focus,
#email-form textarea:focus {
    border-color: var(--cme-green, #57A52E) !important;
    box-shadow: 0 0 0 3px rgba(87, 165, 46, .15) !important;
    outline: none;
}

/* ---------- menu móvel (mmenu) ---------- */
.mm-menu {
    background: var(--cme-ink, #0F2318) !important;
}
.mm-menu .mm-listview > li > a,
.mm-menu .mm-listview > li > span {
    color: var(--cme-on-ink, #CFE0C8) !important;
}
.mm-menu .mm-listview > li:not(.mm-divider):after { border-color: rgba(255, 255, 255, .08) !important; }
.mm-menu .mm-navbar { border-color: rgba(255, 255, 255, .08) !important; }
.mobile-nav-toggler {
    border-radius: 10px;
    transition: background-color .2s var(--cme-ease, ease);
}

/* ---------- responsivo ---------- */
@media only screen and (max-width: 1139px) {
    body .sd-sec, body .fun-fact-section, .testimonial-section { padding: 70px 0; }
}
@media only screen and (max-width: 1023px) {
    .rev_slider .tp-caption h2 { font-size: 30px !important; line-height: 1.2 !important; }
    .sidebar-side { margin-top: 40px; }
}
@media only screen and (max-width: 767px) {
    .page-title { padding: 60px 0 !important; }
    .rev_slider .tp-caption .title { font-size: 11px !important; }
    .rev_slider .tp-caption h2 { font-size: 24px !important; }
    .rev_slider .tp-caption .text { font-size: 14px !important; }
    .mixitup-gallery .filter-tabs.filter-btns .filter { padding: 8px 16px !important; font-size: 13px; }
    .main-footer .footer-bottom .inner-container { text-align: center; }
    .cme-progress { height: 2px; }
}
@media only screen and (max-width: 599px) {
    .page-title h1 { font-size: 26px !important; }
    .testimonial-block { padding: 24px !important; }
    .news-block-three .inner-box, .news-block .inner-box { margin-bottom: 20px; }
}
@media only screen and (max-width: 479px) {
    .sidebar.services-sidebar .brochures-box .inner { padding: 18px; }
    .contact-form .theme-btn, #email-form .theme-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mixitup-gallery .filter-list .image-box:hover,
    .mixitup-gallery .filter-list .inner-box:hover,
    .news-block-three .inner-box:hover,
    .news-block .inner-box:hover,
    .main-footer .footer-bottom .scroll-to-top:hover {
        transform: none !important;
    }
}
