/*
Theme Name: MaisonCo Child
Theme URI: https://torrinhahousingconcept.com/
Description: Child theme for MaisonCo - Single Property WordPress Theme
Author: i-Mediata
Author URI: https://i-mediata.pt
Template: maisonco
Version: 1.0.0
Text Domain: maisonco-child
*/

/* ===========================================================
   FONTES E PERFORMANCE
   =========================================================== */
@font-face {
  font-family: 'eicons';
  font-display: swap;
}
@font-face {
  font-family: 'opal-icon';
  font-display: swap;
}
@font-face {
  font-family: 'FontAwesome';
  src: url('/fonts/fontawesome-webfont.woff2') format('woff2');
  font-display: swap;
}

/* ===========================================================
   BOTÕES GERAIS
   =========================================================== */
.elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 160px !important;
  min-height: 40px !important;
  padding: 0 30px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: none !important;
}
.elementor-button .elementor-button-text {
  display: inline-block !important;
  min-width: 120px !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  transform: none !important;
  transition: none !important;
}

/* ===========================================================
   HEADER E NAVEGAÇÃO
   =========================================================== */
#masthead,
.site-header {
  transform: none !important;
  transition: none !important;
}
.elementor-element-6534aef.elementor-nav-menu {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
}

/* ===========================================================
   HEADER SOBREPOSTO E BOTÃO "AGENDAR VISITA"
   =========================================================== */
header#masthead.site-header,
.site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #fff !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease;
}
body.home .site-content-contain {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body::before {
  display: none !important;
}
header#masthead.site-header.is-sticky,
.opal-element-sticky.is-sticky header#masthead.site-header {
  position: fixed !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===========================================================
   BOTÃO "AGENDAR VISITA" E ÍCONE CUSTOM
   =========================================================== */
.header-main-content {
  position: relative;
}
.menu-extra {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-agendar-visita {
  background-color: #DBC6A2;
  color: #fff !important;
  text-transform: uppercase;
  padding: 15px 25px;
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: inherit;
  display: inline-block;
  line-height: 1;
}
.btn-agendar-visita:hover {
  background-color: #ccb693;
  transform: translateY(-1px);
}

/* ===========================================================
   HEADER STICKY — SCROLL BEHAVIOR
   =========================================================== */
#opal-header-content {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background-color: #f2f2f2 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.35s ease, opacity 0.25s ease !important;
  transform: translateY(0);
  opacity: 1;
}

/* scroll hide/reveal — versão suave */
#opal-header-content {
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.4s ease,
              background-color 0.5s ease,
              box-shadow 0.5s ease !important;
}

#opal-header-content.hide-header {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
}

#opal-header-content.scrolled-up {
  transform: translateY(0) !important;
  opacity: 1 !important;
  background-color: rgba(242, 242, 242, 0.96) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}


/* elimina o pseudo-elemento que empurra conteúdo */
body::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}
.site-content-contain {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===========================================================
   MENU MOBILE — ÍCONE CUSTOM
   =========================================================== */
@media (max-width: 1024px) {
  button.menu-toggle,
  .btn-agendar-visita {
    display: none !important;
    visibility: hidden !important;
  }
  .popup-menu-trigger {
    display: inline-flex !important;
  }
  .main-navigation .top-menu,
  .main-navigation .mainmenu-container {
    display: none !important;
  }
}
.popup-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #a68c6d;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 10030;
  transition: color .25s ease;
}
.popup-menu-trigger svg {
  pointer-events: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform .2s ease;
}
.popup-menu-trigger:hover svg {
  transform: scale(1.1);
  color: #000;
}

/* ===========================================================
   CUSTOM MENU POPUP — FINAL LIMPO E TESTADO
   =========================================================== */
#custom-menu-popup {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: rgba(255, 255, 255, 0.98) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  transition: opacity .3s ease, visibility .3s ease !important;
  z-index: 999999 !important;
}
#custom-menu-popup.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#custom-menu-popup .popup-close {
  position: absolute !important;
  top: 25px !important;
  right: 30px !important;
  background: none !important;
  border: none !important;
  font-size: 38px !important;
  color: #333 !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
#custom-menu-popup ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
#custom-menu-popup li {
  margin: 15px 0 !important;
}
#custom-menu-popup a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 24px !important;
  text-decoration: none !important;
  color: #9c9c9c !important;
  letter-spacing: 1px !important;
  transition: color .25s ease !important;
}
#custom-menu-popup a:hover {
  color: #000 !important;
}

/* ===========================================================
   BLOQUEIO DO MENU OFFCANVAS ORIGINAL
   =========================================================== */
#mp-menu,
.mp-menu,
.mlpushmenu,
.opal-menu-canvas,
#opal-canvas-menu {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -1 !important;
}

/* ===========================================================
   FIX FINAL — ALTURA DO HEADER
   =========================================================== */
#masthead,
.site-header,
#opal-header-content {
  background-color: #fff !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  transition: background-color 0.3s ease-in-out;
}
#masthead,
.site-header,
#opal-header-content {
  min-height: 125px !important;
}
body::before {
  content: "";
  display: block;
  height: 125px !important;
}
@media (min-width: 1025px) {
  #masthead,
  .site-header,
  #opal-header-content {
    min-height: 87px !important;
  }
  body::before {
    height: 87px !important;
  }
}

/* ===========================================================
   ESCONDE O MENU ORIGINAL E MOSTRA APENAS O BURGER
   =========================================================== */

/* Esconde os links do menu do tema em todas as resoluções */
.main-navigation .top-menu,
.main-navigation .mainmenu-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mostra apenas o ícone burger custom (o teu .popup-menu-trigger) */
.popup-menu-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #a68c6d;
  z-index: 10030;
  transition: color 0.25s ease;
}

.popup-menu-trigger svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  pointer-events: none;
}

.popup-menu-trigger:hover svg {
  transform: scale(1.1);
  color: #000;
}

/* Mostra o botão também em desktop */
@media (min-width: 1025px) {
  .popup-menu-trigger {
    display: inline-flex !important;
  }
}

/* ===========================================================
   CENTRALIZAÇÃO HORIZONTAL E VERTICAL FINAL DO POPUP
   =========================================================== */
#custom-menu-popup {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  flex-direction: column !important;
}

#custom-menu-popup .popup-menu {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 22px !important;
}

#custom-menu-popup ul {
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#custom-menu-popup li {
  list-style: none !important;
  margin: 12px 0 !important;
}

#custom-menu-popup .menu-btn-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 28px !important;
}

/* Icons estado dos apartamentos */
/* Wrapper */
.estado-apto-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* Bolinha */
.estado-apto {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Cores */
.estado-apto-verde { background:#28a745 !important; }
.estado-apto-amarelo { background:#ffc107 !important; }
.estado-apto-vermelho { background:#dc3545 !important; }
.estado-apto-indef { background:#cccccc; }

/* Texto */
.estado-apto-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #444;
}

/* ===========================================================
   CONTACT FORM 7 — CHECKBOXES (ESPAÇAMENTO CORRETO)
   =========================================================== */

/* Texto "Li o Aviso..." */
.cf7-inline-text {
    margin-top: 0px !important;
    margin-bottom: 8px !important;
    font-size: inherit !important;
    color: inherit !important;
}

/* Linha das opções */
.cf7-inline-consent {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cada item (checkbox + label) */
.cf7-inline-consent .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Checkbox */
.cf7-inline-consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 !important;
    accent-color: #d4c7ab; /* se quiseres retirar, diz */
}

/* Label — sem cor fixa, sem tamanho fixo */
.cf7-inline-consent .wpcf7-list-item-label {
    font-size: inherit !important;
    color: inherit !important;
    letter-spacing: 0.3px;
}

/* Remove legandas da lightbox */
.elementor-lightbox .elementor-slideshow__title,
.elementor-lightbox .elementor-slideshow__description {
    display: none !important;
}

/* caicas de icon pagina comoercialização */
.caixa-icons-vp {
    min-height: 340px; /* ajusta até alinhar tudo */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* mantém ícone + título sempre no mesmo topo */
}
