/* Things Avada's JavaScript used to do, done in CSS instead. */

/* Entrance animations: content started hidden until a script revealed it. */
.fusion-animated, [data-animationtype] { visibility: visible !important; opacity: 1 !important; animation: none !important; }

/* Mobile menu (Avada cloned the desktop menu into this holder with JS). */
.fusion-mobile-nav-holder > ul { display: none; }
.fusion-mobile-nav-holder.fusion-mobile-menu-expanded { display: block !important; }
.fusion-mobile-nav-holder.fusion-mobile-menu-expanded > ul { display: block; }
.fusion-mobile-nav-holder .mobile-nav-heading > span { display: block; padding: 0 20px; font-family: Montserrat, Arial, Helvetica, sans-serif; color: #333; }

/* Static first slide in place of Revolution Slider. */
.static-hero { background-size: cover; background-position: center center; min-height: 380px; display: flex; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; }
/* width is explicit so aspect-ratio + min-height can't widen the hero past the screen on phones */
.static-hero-inner { min-width: 0; box-sizing: border-box; max-width: 1170px; margin: 0 auto; padding: 0 30px; width: 100%; }
.static-hero-inner p { max-width: 560px; color: #fff; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 20px; line-height: 30px; background: rgba(3, 83, 160, .85); padding: 20px 25px; margin: 0; }

/* Lead form honeypot: off-screen, never seen by people. */
.lead-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-response-output[hidden] { display: none; }
form.sent .wpcf7-response-output { border: 2px solid #46b450; }
form.failed .wpcf7-response-output, form.invalid .wpcf7-response-output { border: 2px solid #dc3232; }

/* Mobile menu items (Avada 7 styles these when its JS builds the menu). */
.fusion-mobile-nav-holder .fusion-mobile-menu { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; }
.fusion-mobile-nav-holder .fusion-mobile-nav-item a { display: block; padding: 0 20px; line-height: 42px; border-bottom: 1px solid #e5e5e5; color: #333; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 14px; }
.fusion-mobile-nav-holder .fusion-mobile-sub-item a { padding-left: 36px; }
.fusion-mobile-nav-holder .fusion-mobile-current-nav-item > a, .fusion-mobile-nav-holder .fusion-mobile-current-nav-item > a .menu-text { color: #0353a0; font-weight: 700; }

/* Lazy-load placeholders are gone; never hide images waiting for a script. */
img.lazyload, img.lazyloading, .lazyload { opacity: 1 !important; visibility: visible !important; }

/* Font Awesome 4.7 icon font, self-hosted (the old sites loaded it from use.fontawesome.com). */
@font-face { font-family: 'FontAwesome'; src: url('/fonts/fa4/fontawesome-webfont.woff2') format('woff2'), url('/fonts/fa4/fontawesome-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: block; }
@font-face { font-family: 'fontawesome'; src: url('/fonts/fa4/fontawesome-webfont.woff2') format('woff2'), url('/fonts/fa4/fontawesome-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: block; }

/* Avada "100% height" containers: its JS set them to the window height minus the header, growing with the content.
   Without that JS they fall back to a fixed height and taller content spills under the header. */
.fullwidth-box.hundred-percent-height { height: auto !important; min-height: calc(100vh - 160px); }
.fullwidth-box.hundred-percent-height > .fusion-fullwidth-center-content { height: auto !important; min-height: inherit; }

/* WordPress theme page preloaders: their hide-on-load script is not carried over, so they would cover the page forever. */
#ct-loadding,.ct-loader,#preloader,.preloader,#page-preloader,.page-loader,#loader-wrapper,.site-loader{display:none!important}

/* Phone menu and search buttons: big enough to tap and dark enough to see (the theme made them 21px and #dadada). */
.fusion-mobile-menu-icons a.fusion-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 24px !important; line-height: 1 !important; color: #333 !important; }

/* Service pages: the old Revolution Slider held the quote form on desktop and a copy of it sat below on phones.
   The slider is gone, so the phone copy shows at every width, and the "Free Estimate" buttons scroll to it. */
@media (min-width: 769px) {
	.form_mobile { display: block !important; padding: 30px 20px 10px !important; margin: 0 !important; }
	.form_mobile .krc_form { max-width: 560px; margin: 0 auto !important; padding: 20px !important; background: rgba(0, 0, 0, .9); }
	.form_mobile .krc_form h5 { color: #fff; }
	.form_mobile .krc_form h3 { color: #00afef; font-weight: 700; }
}
#Kitchen-remodeling, #homeremodeling-sd-form { scroll-margin-top: 150px; }

/* Quote panel on the service sub-pages: white text needs a darker panel than #adadad (was 2.2:1). */
.contact-remodeling > .fusion-column-wrapper { background-color: #5f5f5f !important; }

/* Badge row (Angi, BBB, Google...). The Avada carousel needed its script; this is a plain list. */
.trust-badges { list-style: none; margin: 0 auto; padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; max-width: 1100px; }
.trust-badges li { margin: 0; padding: 0; flex: 0 1 140px; min-width: 0; }
.trust-badges img { display: block; width: 100%; height: auto; max-width: none; }
@media (max-width: 1024px) {
	.professional-interior { margin-top: 0 !important; position: relative; }
	.contact-remodeling { margin-bottom: 24px; }
	.trust-badges li { flex-basis: calc(33.333% - 14px); max-width: 140px; }
}

/* FAQ accordion (Bootstrap collapse in the old theme; see site.js). */
.panel-collapse.collapse:not(.in) { display: none; }
.panel-collapse.collapse.in { display: block !important; height: auto !important; overflow: visible !important; visibility: visible; opacity: 1; }

/* Images the child theme's CSS loaded from the San Diego sister site, self-hosted under /ext/ (only the image changes). */
.fusion-custom_row .fusion-email_wrap:before, .fusion-custom_row .fusion-phone_wrap:before, .top-right:after,
.website-logo, .email-1, .phone-banner, .phone, .arrow-small-right { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2020_02_sprite-homeremodling.png); }
.fname:before, .ymail:before, .ymob:before, .ymsg:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2019_10_cf-user.png); }
.ymail:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2019_10_cf-mail.png); }
.ymob:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2019_10_cf-phone.png); }
.ymsg:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2019_10_cf-msg.png); }
a.man-hl-pencil-buttonmore::after { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2020_01_arrow-small-right.png); }
.custom_post_meta .custom_post_date:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2020_02_calender-icon.png); }
.custom_post_meta .custom_post_category:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2020_02_tag-icon.png); }
.custom_post_meta .custom_post_author:before { background-image: url(/ext/homeremodelingsandiego.com_wp-content_uploads_2020_02_user-icon.png); }
