/*
Theme Name: Plazart Child Theme
Description: Plazart Child Theme
Author: TemPlaza
Author URI: http://templaza.com
Template: plazart
Version: 1.0
Text Domain: plazart
*/

/* Color contrast improvements for accessibility */
::placeholder {
    color: #555 !important;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #555 !important;
}

::-ms-input-placeholder {
    color: #555 !important;
}

.search-field::placeholder,
input::placeholder,
textarea::placeholder {
    color: #555 !important;
}

.footer,
.site-footer,
.footer-sidebar,
.copyright-text {
    color: #444 !important;
}

.footer a,
.site-footer a {
    color: #333 !important;
    text-decoration: underline;
}

/* Fix for focusable elements in aria-hidden containers */
[aria-hidden="true"] a,
[aria-hidden="true"] button,
[aria-hidden="true"] input,
[aria-hidden="true"] select,
[aria-hidden="true"] textarea {
    pointer-events: none;
}

/* --- Back to Top Button Adjustments --- */

/* Move button to the left and center the icon perfectly */
#templaza-backtotop {
    right: auto !important;
    left: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    /* Remove padding to let Flexbox handle centering */
}

/* Fix the slanted look and ensure icon is centered */
#templaza-backtotop i,
#templaza-backtotop i::before {
    font-style: normal !important;
    /* Removes the slant */
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Ensure icon is visible even if class is missing in PHP template */
#templaza-backtotop i:empty::before,
#templaza-backtotop i:not([class*="fa"])::before {
    content: "\f106" !important;
    /* fa-angle-up */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* --- Fix for Recurring 'Always Expanded' Dropdown Issue --- */
/* Force NAVBAR dropdowns to be hidden by default unless opened by UIKit JS */
/* Use more specific selector to avoid affecting modals */
.uk-navbar-container .uk-navbar-dropdown:not(.uk-open) {
    display: none !important;
}

/* Show when active/open */
.uk-navbar-dropdown.uk-open,
.uk-open>.uk-navbar-dropdown {
    display: block !important;
}

/* Fix gallery grid layout */
.uk-grid-row-collapse {
    margin-left: 0 !important;
}

.uk-grid-row-collapse>* {
    padding-left: 0 !important;
}

/* --- Home Page Spacing Refinements (Jan 13) --- */
/* Remove the 100px margin that messes with RevSlider */
.home .templaza-content-session {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove padding from basic wrap on homepage only */
.home .templaza-basic-wrap {
    padding-top: 20px !important;
}


/* Remove top padding to compensate for alignment */
.home .templaza-basic-page-content .single-page-box {
    padding-top: 0 !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}