/*
Theme Name: Halstein Child
Theme URI: https://halstein.qodeinteractive.com
Description: A child theme of Halstein
Author: Mikado Themes
Author URI: https://qodeinteractive.com
Version: 1.2
Text Domain: halstein
Template: halstein
*/

.qodef-accordion,
.qodef-contact-form-7.qodef-button-layout--textual button {
    color: white;
}

.qodef-tab-title {
    color: #B29063;
}

@media only screen and (max-width: 680px) {
    #qodef-back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* Fix for logo with picture tag */
.qodef-header-logo-link picture,
.qodef-mobile-header-logo-link picture {
    display: inline-flex;
    align-items: center;
    height: 100%;
    max-height: 100%;
}

.qodef-header-logo-link picture img,
.qodef-mobile-header-logo-link picture img {
    max-height: 100%;
    width: auto;
}

/* Ensure only the active logo is visible when wrapped in picture */
.qodef-header-logo-link picture.qodef-logo--main,
.qodef-mobile-header-logo-link picture.qodef-logo--main {
    display: inline-flex;
}

#qodef-page-header .qodef-header-logo-link picture img.qodef--main,
#qodef-page-mobile-header .qodef-mobile-header-logo-link picture img.qodef--main {
    opacity: 1;
    position: relative;
}

.qodef-header-logo-link picture.qodef-logo--dark,
.qodef-header-logo-link picture.qodef-logo--light,
.qodef-mobile-header-logo-link picture:not(.qodef-logo--main) {
    display: none;
}

#qodef-page-header .qodef-header-logo-link picture img.qodef--dark,
#qodef-page-header .qodef-header-logo-link picture img.qodef--light,
#qodef-page-mobile-header .qodef-mobile-header-logo-link picture img:not(.qodef--main) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Skin-based visibility for picture-wrapped logos */
#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture.qodef-logo--dark,
#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture.qodef-logo--main {
    display: none;
}
#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture.qodef-logo--light {
    display: inline-flex;
}

#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture img.qodef--dark,
#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture img.qodef--main {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

#qodef-page-header-inner.qodef-skin--light .qodef-header-logo-link picture img.qodef--light {
    opacity: 1;
    position: relative;
}

#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture.qodef-logo--light,
#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture.qodef-logo--main {
    display: none;
}
#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture.qodef-logo--dark {
    display: inline-flex;
}

#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture img.qodef--light,
#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture img.qodef--main {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

#qodef-page-header-inner.qodef-skin--dark .qodef-header-logo-link picture img.qodef--dark {
    opacity: 1;
    position: relative;
}

/* Sticky header logo fix */
.qodef-header-sticky .qodef-header-logo-link picture.qodef-logo--main {
    display: inline-flex;
}
.qodef-header-sticky .qodef-header-logo-link picture:not(.qodef-logo--main) {
    display: none;
}

.qodef-header-sticky .qodef-header-logo-link picture img.qodef--main {
    opacity: 1;
    position: relative;
}

.qodef-header-sticky .qodef-header-logo-link picture img:not(.qodef--main) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer Top Area Padding */
#qodef-page-footer-top-area-inner {
    padding-top: 160px;
    padding-bottom: 160px;
}

@media only screen and (max-width: 1024px) {
    #qodef-page-footer-top-area-inner {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

@media only screen and (max-width: 767px) {
    #qodef-page-footer-top-area-inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Home page link reaction color */
body.home a:hover,
body.home a:focus,
body.home p a:hover,
body.home p a:focus,
body.home h1 a:hover,
body.home h1 a:focus,
body.home .qodef-h1 a:hover,
body.home .qodef-h1 a:focus,
body.home h2 a:hover,
body.home h2 a:focus,
body.home .qodef-h2 a:hover,
body.home .qodef-h2 a:focus,
body.home h3 a:hover,
body.home h3 a:focus,
body.home .qodef-h3 a:hover,
body.home .qodef-h3 a:focus,
body.home h4 a:hover,
body.home h4 a:focus,
body.home .qodef-h4 a:hover,
body.home .qodef-h4 a:focus,
body.home h5 a:hover,
body.home h5 a:focus,
body.home .qodef-h5 a:hover,
body.home .qodef-h5 a:focus,
body.home h6 a:hover,
body.home h6 a:focus,
body.home .qodef-h6 a:hover,
body.home .qodef-h6 a:focus {
    color: #b29063;
}

/* Home page Contact Form 7 focus and response color */
body.home input[type=text]:focus,
body.home input[type=email]:focus,
body.home input[type=url]:focus,
body.home input[type=password]:focus,
body.home input[type=number]:focus,
body.home input[type=tel]:focus,
body.home input[type=search]:focus,
body.home input[type=date]:focus,
body.home textarea:focus,
body.home select:focus,
body.home .wpcf7-response-output {
    color: #fff !important;
}

/* Portfolio Single - Remove info column and expand main content */
.qodef-portfolio-single .qodef-portfolio-info {
    display: none !important;
}

.qodef-portfolio-single .qodef-grid-item.qodef-col--9 {
    width: 100% !important;
}

/* Mailchimp Block Footer Styling */
#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form {
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_form_inside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_merge_var,
#qodef-page-footer .wp-block-mailchimp-mailchimp .wp-block-mailchimp-mailchimp-form-field {
    order: 1;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_signup_submit {
    order: 2;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_message_wrapper {
    order: 3;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_merge_var {
    width: 100%;
    margin-bottom: 20px;
    margin-right: 0;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_var_label {
    display: none;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_input {
    width: 100% !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #fff !important;
    color: #fff !important;
    padding: 10px 0 !important;
    height: 50px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 0 !important;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_input::placeholder {
    color: #fff !important;
    opacity: 1;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_signup_submit {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    order: 2;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_signup_submit_button {
    background-color: #b29063 !important;
    color: #fff !important;
    border: 1px solid #b29063 !important;
    padding: 0 35px !important;
    height: 50px !important;
    line-height: 50px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    font-size: 14px;
    font-family: inherit;
    margin: 0 !important;
    width: 100%;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_signup_form .mc_signup_submit_button:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_message_wrapper {
    width: 100%;
    margin-top: 15px;
    order: 3;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_success_msg,
#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_error_msg {
    color: #fff !important;
    font-weight: 500;
}

#qodef-page-footer .wp-block-mailchimp-mailchimp .mc_subheader > h3 {
    font-family: "Marcellus", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4em;
    color: #ffffff !important;
    margin: 0 0 19px !important;
    text-transform: none;
}


/* Polylang Language Switcher Styling */
.widget_polylang.qodef-header-widget-area-one ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget_polylang.qodef-header-widget-area-one ul li {
    padding: 0;
    margin: 0;
    line-height: 1;
}

.widget_polylang.qodef-header-widget-area-one ul li a {
    display: block;
    line-height: 1;
}

.widget_polylang.qodef-header-widget-area-one ul li a img {
    display: block;
    width: 16px;
    height: 11px;
    max-width: none;
}

.qodef-mobile-header-navigation .lang-item-first {
    margin-top: 30px;
}

.qodef-mobile-header-navigation .lang-item img {
    margin-right: 10px;
}


/* Links in Footer */
.qodef-polylang-html-widget-content .qodef--footer-links a {
    font-size: 13px;
}
.qodef-polylang-html-widget-content .qodef--footer-links a:not(:last-child) {
    border-right-style: solid;
    border-right-width: 1px;
    margin: 0 13px 0 0;
    padding: 0 18px 0 0;
}
@media only screen and (max-width: 1024px) {
    .qodef-polylang-html-widget-content .qodef--footer-links a:not(:last-child) {
        margin: 0 12px 0 0;
        padding: 0 17px 0 0;
    }
}

#qodef-page-footer .qodef-polylang-html-widget-content .qodef--footer-links a:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.2);
}
#qodef-page-footer .qodef-polylang-html-widget-content .qodef--footer-links a:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.2);
}
