/**
Theme Name: JAB Child
Author: JAB Web Design
Author URI: https://jamesbenavides.com/contact/
Description: JAB Child is a lightweight, flexible child theme built on top of Astra, designed for custom website development by JAB Web Design.
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: jab-child
Template: astra
*/

/* ==================================================
   Header
================================================== */

.ast-theme-transparent-header .ast-primary-header-bar { background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.35) 100%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ast-theme-transparent-header .ast-primary-header-bar::after { content: ""; position: absolute; right: 0; bottom: -20px; left: 0; height: 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent); }
#ast-fixed-header.ast-sticky-active .ast-primary-header-bar::after, #ast-fixed-header.ast-header-sticked .ast-primary-header-bar::after { display: none; }
#ast-desktop-header .site-branding.ast-site-identity { padding-top: 7px; padding-bottom: 7px; }
.ast-theme-transparent-header #ast-desktop-header .main-header-menu > .menu-item > .menu-link { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.main-header-menu .current-menu-item > .menu-link { font-weight: 600; }
#ast-mobile-popup .header-widget-area-inner { padding-top: 0; }
#ast-mobile-popup #menu-toggle-close { border: 1px solid transparent; border-radius: 0; }
.ast-mobile-popup-inner { position: relative; overflow: hidden; }
.ast-mobile-popup-inner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: url('/wp-content/themes/jab-child/images/wash-suds.svg')
center bottom / contain no-repeat; opacity: 0.3; pointer-events: none; z-index: 0; }
.ast-mobile-popup-inner > * { position: relative; z-index: 1; }


.ast-theme-transparent-header #ast-desktop-header  .ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-item.current-menu-item > .menu-link {
   color: #fff;
   background: var(--ast-global-color-1);
}
#ast-fixed-header .main-header-menu > .menu-item-has-children {
    position: relative;
}

#ast-fixed-header .main-header-menu > .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 27px;
    z-index: 9998;
}

#ast-fixed-header .main-header-menu > .menu-item-has-children > .sub-menu {
    margin-top: 27px !important;
    z-index: 9999;
}
/* Default submenu text */
/* .ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-link,
.ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-item.current-menu-item > .menu-link {
    color: var(--ast-global-color-2);
}
 */
/* Current submenu item */
/* .ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .current-menu-item > .menu-link,
.ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .current_page_item > .menu-link,
.ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .current-menu-ancestor > .menu-link {
    color: #fff;
} */

/* Hover submenu text */
/* .ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-link:hover,
.ast-theme-transparent-header
.ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-item:hover > .menu-link {
    color: #fff;
} */
/* ==================================================
   Top Bar Notice
================================================== */
.jab-top-bar-notice {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.jab-top-bar-notice::after { content: ""; position: absolute; top: 0; right: 0; width: 320px; height: 100%; background-image: url('/wp-content/themes/jab-child/images/wash-suds.svg'); background-repeat: no-repeat; background-position: right center; background-size: cover; opacity: 0.25; pointer-events: none; z-index: 1; }
.jab-top-bar-notice__inner { position: relative; z-index: 2; }

/* ==================================================
   Hero Sections
================================================== */
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 40%, #f7f9fa 100%); }

/* ==================================================
   General Content
================================================== */
body #content .entry-content .wp-block-uagb-container ul.wp-block-list { margin-left: 0; }
.post-thumb-img-content.post-thumb img { object-fit: cover; }

/* Portrait Video Embeds */
.is-portrait-video .wp-block-embed__wrapper { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.is-portrait-video iframe { width: 100%; height: 100%; }

/* ==================================================
   Feature Cards / Plan Cards
================================================== */
.feature-cards .feature-card, .feature-card-cta { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease; }
.feature-cards .feature-card:hover, .feature-card-cta:hover { transform: translateY(-6px); }
.feature-cards .feature-card:hover { border-color: rgba(3, 153, 178, 0.35); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); }
.feature-card-cta { cursor: pointer; }
.feature-card-cta:hover { border-color: rgba(3, 153, 178, 0.45); background-color: #f8fdfe; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.plan-card-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; border-radius: 6px; background: #0399b2; color: #fff; font-weight: 600; line-height: 1.2; transition: background-color 0.25s ease; }
.plan-card-cta svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.25s ease; }
.feature-card-cta:hover .plan-card-cta { background: #027a8f; }
.feature-card-cta:hover .plan-card-arrow { transform: translateX(5px); }

/* ==================================================
   Vehicle Pills
================================================== */
.freddies-vehicle-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.freddies-vehicle-pills .vehicle-pill { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: #fff; border-radius: 999px; color: var(--ast-global-color-2); font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); transition: all 0.25s ease; }
.freddies-vehicle-pills .vehicle-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16); }

/* ==================================================
   CTA Sections
================================================== */
.cta-section { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* ==================================================
   Single Post Layout
================================================== */
.blog #content, .single #content {
    background: #f7f9fa;
}

/* Single Post Content Spacing */
.single-post .entry-content h1, .single-post .entry-content h2, .single-post .entry-content h3, .single-post .entry-content h4, .single-post .entry-content h5, .single-post .entry-content h6, .single-post .entry-content .wp-block-heading { margin-top: 32px !important; margin-bottom: 14px !important; line-height: 1.2; }
.single-post .entry-content > h1:first-child, .single-post .entry-content > h2:first-child, .single-post .entry-content > h3:first-child { margin-top: 0 !important; }
.single-post .entry-content p { margin-bottom: 20px; }
.single-post .entry-content p + h2, .single-post .entry-content p + h3, .single-post .entry-content p + h4 { margin-top: 36px !important; }
.single-post .entry-content ul, .single-post .entry-content ol { margin-top: 12px; margin-bottom: 24px; }

/* ==================================================
   Gravity Forms - Freddie's Contact Form
================================================== */
.freddies-contact-form .gform_wrapper, #gform_wrapper_1 { --gf-color-primary: var(--ast-global-color-0); --gf-color-primary-darker: var(--ast-global-color-1); --gf-ctrl-border-color: rgba(17, 17, 17, 0.16); --gf-ctrl-label-color-primary: var(--ast-global-color-2); --gf-radius: 8px; }
.freddies-contact-form, #gform_wrapper_1 { background: var(--ast-global-color-5); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); padding: 25px 36px 30px; }
.freddies-contact-form .gform_required_legend, #gform_wrapper_1 .gform_required_legend { display: none; }

/* Labels */
.freddies-contact-form .gfield_label, #gform_wrapper_1 .gfield_label, .freddies-contact-form .gfield_label_before_complex, #gform_wrapper_1 .gfield_label_before_complex { color: var(--ast-global-color-2); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; }

/* Inputs */
.freddies-contact-form input[type="text"], .freddies-contact-form input[type="email"], .freddies-contact-form input[type="tel"], .freddies-contact-form textarea, #gform_wrapper_1 input[type="text"], #gform_wrapper_1 input[type="email"], #gform_wrapper_1 input[type="tel"], #gform_wrapper_1 textarea { background: var(--ast-global-color-6); border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 8px; color: var(--ast-global-color-2); font-size: 16px; min-height: 52px; padding: 14px 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.freddies-contact-form input:focus, .freddies-contact-form textarea:focus, #gform_wrapper_1 input:focus, #gform_wrapper_1 textarea:focus { background: #fff; border-color: var(--ast-global-color-0); box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.12); outline: none; }

/* Submit Button */
.freddies-contact-form .gform_button, #gform_wrapper_1 .gform_button { background: var(--ast-global-color-0); border: 2px solid var(--ast-global-color-0); border-radius: 6px; color: var(--ast-global-color-5); cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1; min-height: 52px; padding: 15px 35px; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.freddies-contact-form .gform_button:hover, #gform_wrapper_1 .gform_button:hover { background: var(--ast-global-color-1); border-color: var(--ast-global-color-1); color: var(--ast-global-color-5); transform: translateY(-1px); }

/* Validation */
.freddies-contact-form .gfield_error input, .freddies-contact-form .gfield_error textarea, #gform_wrapper_1 .gfield_error input, #gform_wrapper_1 .gfield_error textarea { border-color: #d63638; }
.freddies-contact-form .validation_message, #gform_wrapper_1 .validation_message { color: #d63638; font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ==================================================
   Footer
================================================== */
.site-footer .widget { margin-bottom: 0; }
.site-footer .widget-title { margin-bottom: 12px; }
.site-footer .menu, .site-footer p { margin: 0; }
.site-footer .menu { display: flex; flex-direction: column; gap: 8px; }
.footer-logo img { background: #fff; border: 3px solid #000; border-radius: 500px; padding: 6px; }
.site-footer .site-primary-footer-wrap { position: relative; overflow: hidden; }
.site-footer .site-primary-footer-wrap::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(80px, 10vw, 100px); background-image: url('/wp-content/themes/jab-child/images/wash-suds.svg'); background-repeat: repeat-x; background-position: bottom center; background-size: auto 100%; pointer-events: none; z-index: 0; }
.site-footer .site-primary-footer-wrap > * { position: relative; z-index: 1; }

/* ==================================================
   Responsive
================================================== */
@media screen and (min-width:922px) and (max-width:1024px) {
   #ast-desktop-header .site-primary-header-wrap { padding-left: 15px; padding-right: 15px; }
   #ast-desktop-header .main-header-menu .menu-link {
    padding-left: 15px;
    padding-right: 15px;
}
}
@media (max-width:767px) {
   .single-post .entry-content h1, .single-post .entry-content h2, .single-post .entry-content h3, .single-post .entry-content h4, .single-post .entry-content h5, .single-post .entry-content h6, .single-post .entry-content .wp-block-heading { margin-top: 28px !important; margin-bottom: 12px !important; }
   .freddies-vehicle-pills { gap: 10px; }
   /* .freddies-vehicle-pills .vehicle-pill { padding: 10px 18px; font-size: 13px; } */
   .freddies-contact-form, #gform_wrapper_1 { padding: 24px; border-radius: 12px; }
   .freddies-contact-form .gform_button, #gform_wrapper_1 .gform_button { width: 100%; }
   .freddies-vehicle-pills .vehicle-pill {
    min-width: 120px;
}
}
@media screen and (min-width:922px) {
   .site-footer .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap.ast-builder-grid-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
}

@media (max-width:921px) {
.site-footer .wp-block-group.footer-logo.wp-block-group-is-layout-flex {
    align-items: center;
}
.ast-separate-container .site-content .ast-single-post-featured-section + article {
    margin-top: 30px;
}
}
@media (max-width:640px) {
   .uagb-buttons-repeater.wp-block-button__link, .uagb-buttons-repeater.ast-outline-button { min-width: 220px; }
}
