/*
Theme Name: Construction Child
Theme URI: http://www.wpcharming.com
Description: Construction Child Theme
Author: WPCharming
Author URI: http://www.wpcharming.com
Template: construction
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpcharming
Tags:two-columns, left-sidebar, right-sidebar, light, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/
/* Mobile header call and quote buttons (Mobile Menu header is 107px tall, shown up to 1250px) */
.ams-mob-cta { display: none; }
@media screen and (max-width: 1250px) {
	.ams-mob-cta { display: flex; align-items: center; gap: 6px; position: absolute; top: 0; right: 10px; height: 107px; z-index: 10001; }
	.ams-mob-cta a { display: inline-flex; align-items: center; justify-content: center; height: 36px; border-radius: 18px; font: 600 13px/1 Montserrat, sans-serif; text-decoration: none; }
	.ams-mob-cta__call { width: 36px; color: #ea1c2d; border: 2px solid #ea1c2d; }
	.ams-mob-cta__quote { padding: 0 12px; color: #fff; background: #ea1c2d; text-transform: uppercase; letter-spacing: .5px; }
}
@media screen and (max-width: 359px) {
	.ams-mob-cta__quote { display: none !important; }
}

/* Quote pop-up and service images fit small screens (were fixed at 800px) */
@media screen and (max-width: 860px) {
	.quote-form { width: auto; max-width: calc(100% - 24px); }
	.construction-img img, .service-img img { max-width: 100%; height: auto; }
}

/* 12px minimum for small print */
.contact__hours dt, .pe-stickybar__pay small { font-size: 12px; }

/* Desktop Refrigeration Parts dropdown: brand catalog items styled like "Parts Listing" (theme CSS targets only item 17166) */
#mega-menu-item-17165 > ul.mega-sub-menu > li:not(#mega-menu-item-17166) { display: block !important; padding: 0; }
#mega-menu-item-17165 > ul.mega-sub-menu > li:not(#mega-menu-item-17166) > a { padding: 5px 18px !important; margin-bottom: 3px; display: inline-block !important; background: transparent !important; text-decoration: none !important; font-size: 13px !important; color: white !important; text-shadow: 1px 1px #0000007a; transition: color 0.3s ease; text-transform: uppercase !important; position: relative; }
#mega-menu-item-17165 > ul.mega-sub-menu > li:not(#mega-menu-item-17166) > a:hover { color: #ea1c2d !important; }
#mega-menu-item-17165 > ul.mega-sub-menu > li:not(#mega-menu-item-17166) > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 11px; height: 2px; width: 0%; background: currentColor; transform-origin: left; transition: width 0.35s ease; }
#mega-menu-item-17165 > ul.mega-sub-menu > li:not(#mega-menu-item-17166) > a:hover::after { width: calc(100% - 36px); }

/* Hide the call/quote buttons while the mobile menu panel is open */
body.show-nav-left .ams-mob-cta, body.show-nav-right .ams-mob-cta { visibility: hidden; }

/* D1 (approved by Chris, Mon 10/26): the top section of each page (its "*-hero") appears
   immediately instead of fading in after the page loads. Fade-ins further down are kept. */
html.js-reveal [class*="hero"] [data-reveal],
html.js-reveal [class*="hero"] [data-reveal-x],
html.js-reveal [class*="hero"] [data-reveal-r],
html.js-reveal [class*="hero__"][data-reveal],
html.js-reveal [class*="hero__"][data-reveal-x],
html.js-reveal [class*="hero__"][data-reveal-r] { opacity: 1 !important; transform: none !important; transition: none !important; }
