/*
Theme Name: MediaFoundry Child
Theme URI: https://preview.wolfthemes.store/mediafoundry/landing/
Description: MediaFoundry Child theme
Author: WolfThemes
Author URI: https://wolfthemes.com
Template: mediafoundry
Version: 1.0.0
*/


/* ==========================================================================
   TYPOGRAPHY - Elementor Text Widgets
   ========================================================================== */

/**
 * Removes bottom margin from the last paragraph in text editor widgets.
 * Prevents extra spacing at the bottom of text blocks.
 */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0px;
}


/* ==========================================================================
   ACCESSIBILITY - Ally Plugin (Web Accessibility & Usability)
   ========================================================================== */

/**
 * Adjusts the positioning of the accessibility toggle button and toolbar
 * provided by the "Ally - Web Accessibility & Usability" plugin.
 * - Ensures the toolbar stays at the bottom of the screen.
 * - Avoids conflict with floating UI elements or footers.
 */
.pojo-a11y-toolbar-toggle {
	bottom: 0 !important;
}
#pojo-a11y-toolbar {
	bottom: 30px;
	top: auto !important;
}
@media all and (max-width: 1024px) {
	#pojo-a11y-toolbar {
		bottom: 15px;
	}
}
@media all and (max-width: 767px) {
	#pojo-a11y-toolbar {
		bottom: 10px;
	}
}


/* ==========================================================================
   SECONDARY MENU (Desktop)
   ========================================================================== */

/* Styles buttons in the top-right secondary menu */
#site-navigation-secondary-desktop .wpb-menu-button a .menu-item-inner {
	font-family: "Albert Sans";
	border-radius: 50px !important;
	background: #000;
	padding: 10px 30px;
}


/* ==========================================================================
   PRIMARY MENU (Desktop)
   ========================================================================== */

/* Applies black font color and custom font to primary menu links */
#site-navigation-primary-desktop a {
	color: #000;
	font-family: "Albert Sans";
}


/* ==========================================================================
   DESKTOP NAVIGATION - Inner Padding
   ========================================================================== */

/* Adds horizontal padding to the desktop nav wrap */
#desktop-navigation .flex-wrap {
	padding-left: 3%;
	padding-right: 3%;
}


/* ==========================================================================
   HEADER LOGO (Desktop)
   ========================================================================== */

/* Adjusts the logo container size once the menu is fully loaded */
#header-content .logo-container.menu-loaded {
	width: 60px;
	min-height: auto;
}


/* ==========================================================================
   MOBILE HEADER - Responsive Layout (<= 1024px)
   ========================================================================== */

@media all and (max-width: 1024px) {
	/* Adds spacing to mobile header */
	#header-content .flex-mobile-wrap {
		padding: 15px 24px !important;
	}
	#mobile-bar {
		height: auto !important;
	}
	#mobile-bar * {
		max-height: 100%;
	}
	/* Prevents logo and hamburger menu from overflowing their container */
	#header-content .flex-mobile-wrap .logo-container a,
	#header-content .flex-mobile-wrap .hamburger-container {
		max-height: 100% !important;
	}
	/* Adjusts right padding on secondary nav links in mobile view */
	#header-content .flex-mobile-wrap #site-navigation-secondary-desktop li a {
		padding-right: 5px;
	}
	/* Sets fixed logo size in mobile header */
	#header-content .logo-container .logo {
		width: 55px !important;
		height: auto !important;
	}
}


/* ==========================================================================
   SMALL DEVICES (<= 767px)
   ========================================================================== */

@media all and (max-width: 767px) {
	/* Smaller padding for mobile layout on very small devices */
	#header-content .flex-mobile-wrap {
		padding: 10px 10px !important;
	}
	/* Adjusts padding and font size of button in secondary nav */
	#header-content .flex-mobile-wrap #site-navigation-secondary-desktop li a span {
		padding: 3px 8px !important;
		margin-right: 0px !important;
		font-size: 11px !important;
	}
	/* Sets a fixed size for icons inside buttons in mobile menu */
	#header-content .flex-mobile-wrap #site-navigation-secondary-desktop li a .btn-icon-wrap .btn-icon {
		width: 9px !important;
		height: 9px !important;
	}
}


/* ==========================================================================
   STICKY NAVIGATION (Mobile)
   ========================================================================== */

@media all and (max-width: 1024px) {
	/* Prevents mobile bar from being fixed when scrolling */
	#mobile-bar.will-stick-nav {
		position: relative;
	}
}