/* ============================================================
   CUSTOM FOOTER — Dr. Felipe Romano
   High specificity selectors to override TouchUp theme styles
   ============================================================ */

/* ── Padronizar largura do conteúdo ── */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px !important;
}
html {
  overflow-x: hidden !important;
}
/* Resetar margin-top negativo do tema (vem do customizer para page title) */
#qodef-page-outer {
  margin-top: 0 !important;
}
#qodef-page-wrapper {
  overflow: clip !important;
}

/* Paginas Elementor — full width sem padding */
.elementor-page #qodef-page-inner {
  padding: 0 !important;
}
.elementor-page .qodef-content-grid {
  width: 100% !important;
  max-width: 100% !important;
}
.elementor-page #qodef-page-content.qodef-grid > .qodef-grid-inner {
  margin: 0 !important;
}
.elementor-page #qodef-page-content.qodef-grid > .qodef-grid-inner > .qodef-grid-item.qodef-col--12 {
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

/* Blog, single post, search, archive — manter grid original com sidebar */
.blog #qodef-page-inner,
.single-post #qodef-page-inner,
.search #qodef-page-inner,
.archive #qodef-page-inner,
.error404 #qodef-page-inner {
  padding: 30px 0 !important;
}
.blog .qodef-content-grid,
.single-post .qodef-content-grid,
.search .qodef-content-grid,
.archive .qodef-content-grid,
.error404 .qodef-content-grid {
  width: 1200px !important;
  max-width: calc(100% - 40px) !important;
  margin: 0 auto !important;
}
.blog #qodef-page-content.qodef-grid > .qodef-grid-inner,
.single-post #qodef-page-content.qodef-grid > .qodef-grid-inner,
.search #qodef-page-content.qodef-grid > .qodef-grid-inner,
.archive #qodef-page-content.qodef-grid > .qodef-grid-inner {
  margin: 0 -15px !important;
}
.blog #qodef-page-content.qodef-grid > .qodef-grid-inner > .qodef-grid-item,
.single-post #qodef-page-content.qodef-grid > .qodef-grid-inner > .qodef-grid-item,
.search #qodef-page-content.qodef-grid > .qodef-grid-inner > .qodef-grid-item,
.archive #qodef-page-content.qodef-grid > .qodef-grid-inner > .qodef-grid-item {
  padding: 0 15px !important;
}

/* Mobile — garantir largura total e respiro no conteudo */
@media (max-width: 768px) {
  .elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
  }
  .elementor-section.elementor-section-full_width .elementor-column {
    width: 100% !important;
  }
  /* Padding lateral no conteudo dos blocos */
  .elementor-widget-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Imagens full-width — quebram o padding com margem negativa */
  .elementor-widget-image {
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
  .elementor-widget-image img {
    width: calc(100% + 32px) !important;
    max-width: none !important;
  }
  /* Colunas com background (procedimentos) — sem padding extra */
  .elementor-column[data-element_type="column"][style*="background"] > .elementor-widget-wrap,
  .elementor-column.elementor-element-populated[class*="background"] > .elementor-widget-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Blog, single post e search — padding no conteudo */
  .qodef-blog article,
  .qodef-blog .qodef-e-inner,
  #qodef-page-comments-list,
  #qodef-page-comments-form,
  #qodef-single-post-navigation,
  #qodef-page-sidebar,
  .qodef-page-content-section,
  .qodef-search,
  .qodef-e-search-heading,
  .qodef-m-posts-not-found {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ── Hide side area opener button ── */
.widget_touchup_core_side_area_opener,
.qodef-side-area-opener {
  display: none !important;
}

/* ── Hide back to top button (conflita com WhatsApp fab) ── */
#qodef-back-to-top {
  display: none !important;
}

/* ── Hide empty top area bar ── */
#qodef-top-area {
  display: none !important;
}

/* ── Hide page title area (black banner with image) ── */
.qodef-page-title {
  display: none !important;
}

/* ── Header overlay (content goes behind header) ── */
#qodef-page-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  background: transparent !important;
}
#qodef-page-mobile-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  background: transparent !important;
}

/* ── Header logo white (normal state) ── */
#qodef-page-header .qodef-header-logo-link img {
  filter: brightness(0) invert(1) !important;
}
#qodef-page-mobile-header .qodef-header-logo-link img,
#qodef-page-mobile-header .qodef-mobile-header-logo-link img {
  filter: brightness(0) invert(1) !important;
}

/* ── Mobile hamburger icon white ── */
#qodef-page-mobile-header #qodef-mobile-header-opener {
  color: #fff !important;
}

/* ── Header logo original/blue (sticky state) ── */
#qodef-page-header .qodef-header-sticky .qodef-header-logo-link img {
  filter: none !important;
}
#qodef-page-header.qodef-header-appearance--sticky .qodef-header-sticky .qodef-header-logo-link img {
  filter: none !important;
}

/* ── Slider Revolution fullscreen ── */
sr7-module#SR7_10_1,
sr7-module#SR7_10_1 sr7-adjuster,
sr7-module#SR7_10_1 sr7-content,
sr7-module#SR7_10_1 sr7-slide,
sr7-module#SR7_10_1 sr7-module-bg {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
}
.wp-block-themepunch-revslider {
  height: 100vh !important;
  min-height: 100vh !important;
}

/* ── Reset theme footer styles ── */
#qodef-page-footer.custom-footer,
#qodef-page-footer.custom-footer > * {
  display: block !important;
  width: 100% !important;
  float: none !important;
}

/* ── FOOTER BASE ── */
#qodef-page-footer.custom-footer {
  background: #14223c !important;
  padding: 72px 0 0 !important;
  margin-top: 0 !important;
  border: none !important;
}
#qodef-page-footer.custom-footer * {
  box-sizing: border-box;
}

/* ── CONTAINER ── */
#qodef-page-footer .custom-footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
}

/* ── GRID 4 COLUMNS ── */
#qodef-page-footer .custom-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
  gap: 48px !important;
  padding-bottom: 56px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  width: 100% !important;
  float: none !important;
}

/* ── BRAND COLUMN ── */
#qodef-page-footer .custom-footer-brand {
  display: block !important;
  width: auto !important;
}
#qodef-page-footer .custom-footer-brand img {
  height: 48px !important;
  width: auto !important;
  filter: brightness(0) invert(1) !important;
  margin-bottom: 20px !important;
  max-width: 100% !important;
}
#qodef-page-footer .custom-footer-brand p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  text-align: left !important;
}

/* ── SOCIAL ICONS ── */
#qodef-page-footer .custom-footer-social {
  display: flex !important;
  gap: 16px !important;
}
#qodef-page-footer .custom-footer-social a {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  background: transparent !important;
  padding: 0 !important;
}
#qodef-page-footer .custom-footer-social a:hover {
  border-color: #bba176 !important;
  color: #bba176 !important;
  background: rgba(187,161,118,0.1) !important;
}

/* ── LINKS COLUMNS ── */
#qodef-page-footer .custom-footer-links {
  display: block !important;
  width: auto !important;
}
#qodef-page-footer .custom-footer-links h4,
#qodef-page-footer .custom-footer-contact h4 {
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
#qodef-page-footer .custom-footer-links ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#qodef-page-footer .custom-footer-links li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#qodef-page-footer .custom-footer-links a {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.85rem !important;
  font-family: 'Montserrat', sans-serif !important;
  transition: color 0.3s ease !important;
  text-decoration: none !important;
}
#qodef-page-footer .custom-footer-links a:hover {
  color: #bba176 !important;
}

/* ── CONTACT COLUMN ── */
#qodef-page-footer .custom-footer-contact {
  display: block !important;
  width: auto !important;
}
#qodef-page-footer .custom-footer-contact p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.85rem !important;
  font-family: 'Montserrat', sans-serif !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
  line-height: 1.5 !important;
}
#qodef-page-footer .custom-footer-contact i {
  color: #bba176 !important;
  width: 16px !important;
  min-width: 16px !important;
}

/* ── CTA BUTTON ── */
#qodef-page-footer a.custom-footer-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 20px !important;
  padding: 12px 28px !important;
  background: #bba176 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  width: auto !important;
}
#qodef-page-footer a.custom-footer-btn:hover {
  background: #9e8660 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── FOOTER BOTTOM BAR ── */
#qodef-page-footer .custom-footer-bottom {
  padding: 24px 0 !important;
  display: block !important;
  width: 100% !important;
}
#qodef-page-footer .custom-footer-bottom-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
#qodef-page-footer .custom-footer-bottom p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.78rem !important;
  font-family: 'Montserrat', sans-serif !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
#qodef-page-footer .custom-cfm-note {
  font-style: italic !important;
}
#qodef-page-footer .custom-developed-by a {
  color: rgba(255,255,255,0.4) !important;
  text-decoration: underline !important;
  transition: color 0.3s ease !important;
}
#qodef-page-footer .custom-developed-by a:hover {
  color: #bba176 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #qodef-page-footer .custom-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  #qodef-page-footer.custom-footer {
    padding: 48px 0 0 !important;
  }
  #qodef-page-footer .custom-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #qodef-page-footer .custom-footer-bottom-content {
    flex-direction: column !important;
    text-align: center !important;
  }
}


/* ============================================================
   MOBILE NAVIGATION — Menu Sanduiche
   ============================================================ */

/* Container do menu mobile */
#qodef-mobile-header-navigation .qodef-m-inner {
  background: #14223c !important;
  border-bottom: none !important;
  padding: 24px 0 0 !important;
}

/* Itens do menu */
#qodef-mobile-header-navigation .menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

#qodef-mobile-header-navigation .menu-item > a {
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

#qodef-mobile-header-navigation .menu-item > a:hover,
#qodef-mobile-header-navigation .menu-item.current-menu-item > a {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* Underline animado no item ativo */
#qodef-mobile-header-navigation .menu-item.current-menu-item > a {
  border-left: 3px solid #bba176 !important;
}

/* Submenu items */
#qodef-mobile-header-navigation .sub-menu .menu-item > a {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  padding-left: 40px !important;
  color: rgba(255,255,255,0.6) !important;
}

/* Esconder underline padrao do tema */
#qodef-mobile-header-navigation .menu-item > a .qodef-menu-item-inner:after {
  display: none !important;
}

/* ── Footer do menu mobile ── */
.ocw-mobile-nav-footer {
  padding: 28px 24px 32px !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  background: #14223c !important;
}

.ocw-mobile-nav-contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.ocw-mobile-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: rgba(255,255,255,0.6) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

a.ocw-mobile-nav-item:hover {
  color: #bba176 !important;
}

.ocw-mobile-nav-item i {
  color: #bba176 !important;
  font-size: 1rem !important;
  width: 20px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

/* Redes sociais */
.ocw-mobile-nav-social {
  display: flex !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.ocw-mobile-nav-social a {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.ocw-mobile-nav-social a:hover {
  border-color: #bba176 !important;
  color: #bba176 !important;
  background: rgba(187,161,118,0.1) !important;
}

/* Botao CTA */
.ocw-mobile-nav-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 16px 24px !important;
  background: linear-gradient(135deg, #bba176, #9e8660) !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(187,161,118,0.3) !important;
}

.ocw-mobile-nav-cta:hover {
  background: linear-gradient(135deg, #9e8660, #8a7350) !important;
  color: #ffffff !important;
}

.ocw-mobile-nav-cta i {
  font-size: 1.15rem !important;
}

/* Hamburger icon styling */
#qodef-page-mobile-header #qodef-mobile-header-opener {
  color: #fff !important;
  font-size: 22px !important;
}

/* Mobile header inner padding */
#qodef-page-mobile-header-inner {
  padding: 0 20px !important;
}
