/*
    Template: consulting
    Theme Name: Consulting Child Theme - JDA SFAI
    Theme URI: http://consulting.stylemixthemes.com/
    Author: StylemixThemes / JDA
    Author URI: http://stylemixthemes.com/
    Description: Child theme for JDA SFAI with custom post types, forms and styling.
    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: consulting-child-theme
*/

/* ==========================================================================
   JDA Custom CSS (migrated from Customizer custom_css)
   ========================================================================== */

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p {
    letter-spacing: -0.01em;
}
a {
    text-decoration: none;
}

/* Moove GDPR cookie modal */
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder a.mgbutton.moove-gdpr-modal-save-settings,
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton.moove-gdpr-modal-save-settings {
    display: inline-block !important;
}

.barreta #moove_gdpr_cookie_info_bar.moove-gdpr-dark-scheme {
    background-color: #202020;
    border-top: 1px solid #fff;
    display: none;
}

.cook {
    cursor: pointer;
    background-color: #ac899f;
    color: #fff;
    padding: 10px 25px;
    border: 0;
    font-weight: 700;
}

.cook:hover {
    background-color: #382246;
    color: #fff;
    padding: 10px 25px;
    border: 0;
    font-weight: 700;
}

#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton.moove-gdpr-modal-save-settings {
    margin-left: 24px !important;
    float: left !important;
}

#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder {
    width: 100%;
    display: block;
    padding: 0;
    margin-left: -67% !important;
}

.wpb_wrapper ul li { font-size: 15px; }

/* Floating button */
.btn-flotante {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
    border-radius: 5px;
    letter-spacing: 2px;
    background-color: #b493a0;
    padding: 11px 15px;
    position: fixed;
    bottom: 20px;
    left: 40px;
    transition: all 300ms ease;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.btn-flotante:hover {
    background-color: #382246;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-7px);
}

@media only screen and (max-width: 600px) {
    .btn-flotante {
        font-size: 14px;
        padding: 12px 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* Moove GDPR icons */
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-left-content #moove-gdpr-menu li button span.gdpr-icon {
    font-size: 34px !important;
    width: 46px !important;
    font-weight: 300 !important;
}

#moove_gdpr_cookie_info_bar * {
    font-weight: 300 !important;
}

/* WebToLead form */
form#WebToLeadForm div.buttons {
    padding: 10px 0;
    border-top: 0;
    background-color: transparent !important;
}

/* Checkboxes */
.checkbox-532,
.checkbox-707 {
    width: 507px;
    height: 70px;
    background-color: #cacaca !important;
    position: relative;
    display: block;
}

.wpcf7-form-control-wrap .checkbox-707 {
    display: none !important;
}

.wpcf7-list-item-label {
    margin-top: -30px;
    font-size: 10px !important;
    padding: 2px !important;
}

.blogout {
    display: none !important;
}

.popupaoc-button {
    background: #ac899f !important;
    font-weight: 700;
}

.paoc-popup-modal {
    padding: 20px;
    width: 26% !important;
}

/* WebToLead form fields */
form#WebToLeadForm input[type="text"],
form#WebToLeadForm input[type="email"] {
    color: #000 !important;
}

/* Footer links */
#footer .copyright_row .copyright_row_wr .copyright a,
#footer .footer_widgets .widget.widget_nav_menu ul li a {
    color: #ac899f !important;
    font-weight: bold;
}

/* Portals */
.portals a {
    background-color: #ac899f;
    color: #fff !important;
    margin-bottom: 0;
    padding: 10px 40px;
    text-align: center;
    font-weight: 600;
}

/* Subscribe button */
.paoc-popup-btn {
    display: inline-block;
    background-color: #ac899f !important;
    color: #fff !important;
    margin-bottom: 0;
    padding: 10px 40px;
    text-align: center;
    font-weight: 600;
}

form#sib_signup_form_2 input.sib-default-btn,
form#sib_signup_form_3 input.sib-default-btn,
form#sib_signup_form_4 input.sib-default-btn {
    float: none;
    padding: 8px 21px;
    width: auto;
    min-width: auto;
    transition: all 0.3s ease;
    outline: none !important;
    font-weight: 700;
    font-family: Poppins;
    font-size: 14px;
    color: #fff;
    border-radius: 0;
    background: #382246;
    border: 3px solid #382246;
    display: inline-block;
}

/* Contact Form 7 */
.cf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #61a600 !important;
}

/* Print */
#printfriendly img {
    float: none !important;
    margin-top: 12px;
    margin-right: 12px;
}

#printfriendly {
    font-family: Arial;
    font-size: 14px;
}

#printfriendly h1,
#printfriendly h2,
#printfriendly h3,
#printfriendly h5 {
    color: #000 !important;
}

#printfriendly #pf-src,
a#pf-src-url,
a#pf-src-url:visited {
    display: none !important;
}

#pf-content .mediumImage {
    float: none !important;
}

/* LOPD inputs */
.lopd input {
    width: 25px;
    margin-top: 0 !important;
    float: none !important;
    margin-right: 0 !important;
}

/* Responsive */
@media (max-width: 764px) {
    .consulting-rev-title {
        font-size: 36px !important;
        line-height: 1.0em !important;
    }

    .paoc-popup-modal {
        padding: 20px;
        width: 100% !important;
    }

    #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder {
        margin-left: 0 !important;
    }
}

@media (min-width: 765px) and (max-width: 1400px) {
    .consulting-rev-title {
        font-size: 36px !important;
        line-height: 1.0em !important;
    }

    .paoc-popup-modal {
        padding: 20px;
        width: 90% !important;
    }
}

/* SEO helpers */
.CTA {
    font-size: 13px;
    line-height: 24px;
    font-family: Poppins;
    letter-spacing: 1px;
    padding-top: 0;
    margin: 0;
    font-weight: 700;
}

.blanco { color: #ffffff; }
.centro { text-align: center; }

h1.tituloseo {
    text-transform: uppercase;
    font-size: 14px;
    color: #382246;
}

h1.tituloseo.centro:after {
    display: none !important;
}

.sns {
    font-size: 14pt;
    letter-spacing: 0.005em;
}

/* Footer widget titles */
p.widget_title {
    font-size: 20px !important;
    font-family: 'Poppins';
    font-weight: 600;
}

/* Home news */
div.stm_news_unit-block p {
    margin: 0 0 23px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 22px;
    padding: 28px 0 0;
    font-family: 'Poppins';
}

div.stm_news_unit-block p a {
    color: #382246;
}

.h2ap {
    color: #000;
    font-family: Poppins;
    margin-bottom: 23px;
    font-size: 36px;
    letter-spacing: -0.06em;
    line-height: 45px;
    font-weight: 700;
    padding: 10px 0 0;
}

/* Submenu visibility */
li.menu-item:hover ul.sub-menu {
    display: block;
}

#lang_sel {
    z-index: 5;
}

.trimmed-excerpt {
    max-height: 3em;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.show-arrow {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    font-weight: normal;
}

/* =====================================================
   TOP BAR (JDA - matches production: single row, 51px)
   ===================================================== */
.top_bar {
    padding: 0;
}
.top_bar .container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    padding: 0 15px;
}
.top_bar .top_bar_info_wr {
    display: none !important;
}
.top_bar .container .lang_sel {
    order: 1;
    flex: 0 0 auto;
    margin: 0 !important;
}
.top_bar .container .lang_sel,
.top_bar .container .lang_sel .wpml-ls {
    display: inline-block !important;
    width: auto !important;
}
/* Toggle (Español ▼) */
.top_bar .container .lang_sel .wpml-ls-item-toggle {
    font-size: 13px !important;
    padding: 16px 24px 16px 1px !important;
    line-height: 19px !important;
    border: none !important;
    color: #fff !important;
    background: transparent !important;
    text-decoration: none !important;
}
.top_bar .container .lang_sel .wpml-ls-item-toggle::after {
    border-top-color: #fff !important;
}
/* Dropdown sub-menu */
.top_bar .container .lang_sel .wpml-ls-sub-menu {
    background-color: #382246 !important;
    border: none !important;
    padding: 4px 0 8px !important;
}
.top_bar .container .lang_sel .wpml-ls-sub-menu a {
    padding: 6px 16px !important;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 19px !important;
}
.top_bar .container .lang_sel .wpml-ls-sub-menu a:hover {
    background: #ac899f !important;
}
.top_bar .container .top_bar_socials {
    order: 3;
    flex-shrink: 0;
    margin: 0 0 0 auto !important;
    display: flex;
    align-items: center;
    gap: 2px;
}
.top_bar .top_bar_socials a {
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 22px !important;
}
.top_bar .top_bar_socials a:hover {
    color: #fff !important;
}
.top_bar .container .top_bar_custom_menu {
    order: 2;
    margin: 0 !important;
    display: flex;
}
.top_bar_custom_menu .top_bar_menu_nav {
    list-style: none;
    margin: 15px 0;
    padding: 0 0 0 30px;
    display: flex;
    gap: 0;
    line-height: 18.57px;
}
.top_bar_custom_menu .top_bar_menu_nav li {
    margin: 0 10px;
}
.top_bar_custom_menu .top_bar_menu_nav li a {
    color: #ac899f;
    font-size: 13px;
    font-weight: 400;
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
}
.top_bar_custom_menu .top_bar_menu_nav li a:hover {
    color: #fff;
}

/* =====================================================
   TOP BAR RESPONSIVE (≤991px — matches production v3.4)
   ===================================================== */
@media (max-width: 991px) {
    /* Top bar must appear BEFORE header-box */
    .top_bar {
        order: -1 !important;
    }

    /* Force show elements hidden by mobile_*_hidden classes
       Parent uses: .mobile_grid_tablet .top_bar.mobile_*_hidden .element (0,0,4,0)
       body prefix bumps specificity to (0,0,5,1) to guarantee override */
    body.mobile_grid_tablet .top_bar.mobile_wpml_hidden .lang_sel {
        display: inline-block !important;
    }
    body.mobile_grid_tablet .top_bar.mobile_socials_hidden .top_bar_socials {
        display: flex !important;
    }

    /* Flex-wrap container for 2-row layout */
    .top_bar .container {
        flex-wrap: wrap !important;
    }

    /* Row 1: lang_sel left */
    .top_bar .container .lang_sel {
        order: 1;
        flex: 0 0 auto;
    }

    /* Row 1: socials right */
    .top_bar .container .top_bar_socials {
        order: 2;
        flex-shrink: 0;
        margin: 0 0 0 auto !important;
    }

    /* Row 2: custom menu full width, centered */
    .top_bar .container .top_bar_custom_menu {
        order: 3;
        width: 100%;
    }
    .top_bar_custom_menu .top_bar_menu_nav {
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        margin: 8px 0;
    }
    .top_bar_custom_menu .top_bar_menu_nav li {
        margin: 2px 8px;
    }

    /* ── Mobile header: logo left, hamburger right (matches production v3.4) ── */
    .header-box {
        background: #fff !important;
        height: auto !important;
    }
    .header-box .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-box .logo-box {
        width: 100% !important;
        background: #fff !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 25px 15px !important;
        height: auto !important;
    }
    .header-box .nav-box {
        background: transparent !important;
    }

    /* ── Mobile menu: white text on dark bg (matches production)
       Higher specificity needed to beat desktop .main_menu_nav > li > a !important ── */
    .header-box .nav-box .main_menu_nav > li > a {
        color: #fff !important;
    }
    .header-box .nav-box .main_menu_nav > li > a:hover,
    .header-box .nav-box .main_menu_nav > li.current-menu-item > a,
    .header-box .nav-box .main_menu_nav > li.current_page_item > a,
    .header-box .nav-box .main_menu_nav > li.current-menu-ancestor > a {
        color: #ac899f !important;
    }
}

/* =====================================================
   HEADER BAR (JDA - matches production)
   ===================================================== */
.header-box {
    background-color: rgba(255, 255, 255, 0.3) !important;
    height: 110px;
    display: flex;
    align-items: center;
}
.header-box .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Main menu items */
.main_menu_nav > li > a {
    color: #382246 !important;
    font-size: 16px;
    font-weight: 600;
    font-family: Poppins, sans-serif;
    padding: 10px 16px !important;
    text-transform: lowercase !important;
    letter-spacing: -0.64px;
    line-height: 16px;
}
.main_menu_nav > li > a:hover {
    color: #ac899f !important;
}

/* Active menu item */
.main_menu_nav > li.current-menu-item > a,
.main_menu_nav > li.current_page_item > a,
.main_menu_nav > li.current-menu-ancestor > a,
.main_menu_nav > li.current-menu-parent > a,
.main_menu_nav > li.current_page_ancestor > a,
.main_menu_nav > li.current_page_parent > a {
    color: #ac899f !important;
}

/* Blog button (last menu item) */
.main_menu_nav > li.blog > a,
.main_menu_nav > li:last-child > a {
    color: #fff !important;
    background-color: #382246;
    border-radius: 5px;
    padding: 10px 16px !important;
}
.main_menu_nav > li.blog > a:hover,
.main_menu_nav > li:last-child > a:hover {
    background-color: #ac899f;
    color: #fff !important;
}

/* RevSlider arrows - match production */
.tparrows.custom {
    background: transparent !important;
    border: 3px solid #bac3c6 !important;
    border-radius: 0 !important;
    width: 45px !important;
    height: 45px !important;
}

/* WPBakery purple buttons - JDA corporate color */
body .vc_general.vc_btn3.vc_btn3-style-flat.vc_btn3-color-purple {
    background-color: #ac899f !important;
    border-color: #ac899f !important;
}

body .vc_general.vc_btn3.vc_btn3-style-flat.vc_btn3-color-purple:hover,
body .vc_general.vc_btn3.vc_btn3-style-flat.vc_btn3-color-purple:focus {
    background-color: #96768a !important;
    border-color: #96768a !important;
}

/* =====================================================
   GMAP ADDRESSES GRID (JDA - 4 columns, no map)
   ===================================================== */
.gmap_addresses--grid .addresses--grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.gmap_addresses--grid .addresses--grid > .item {
    flex: 1 1 calc(25% - 23px);
    min-width: 200px;
    display: inline-block;
}
@media (max-width: 991px) {
    .gmap_addresses--grid .addresses--grid > .item {
        flex: 1 1 calc(50% - 15px);
    }
}
@media (max-width: 575px) {
    .gmap_addresses--grid .addresses--grid > .item {
        flex: 1 1 100%;
    }
}

/* =====================================================
   CF7 LOPD TEXT (JDA - match production line breaks)
   ===================================================== */
.request_callback div[style*="font-size:10px"] > p {
    white-space: pre-line !important;
}
.request_callback div[style*="font-size:10px"] > p b[style*="inline-block"] {
    display: block !important;
}

/* CF7 form inputs - match production: Poppins bold */
.request_callback input[type="text"],
.request_callback input[type="email"],
.request_callback input[type="tel"],
.request_callback textarea {
    font-family: Poppins, sans-serif !important;
    font-weight: 700 !important;
}

/* CF7 acceptance checkboxes - no gray background */
.request_callback .wpcf7-acceptance {
    background-color: transparent !important;
}

/* WPBakery text column list items - match production v3.4 */
.wpb_text_column ul li,
.comment-body .comment-text ul li {
    color: #222222;
}
