/*
Theme Name:     Buildpress Child Theme
Theme URI:      http://www.proteusthemes.com
Description:    Child theme for the Buildpress — Standard Professional Services
Author:         Standard Professional Services
Template:       buildpress
Version:        1.0
*/

/* ── Standard Professional Services — Child Theme CSS ── */

/* ── FULL-WIDTH BUILDER ──────────────────────────────────────────── */
.sps-fullwidth-builder {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.sps-fullwidth-builder .entry-content {
    padding: 0;
    margin: 0;
}
.sps-fullwidth-builder .panel-row-style {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.siteorigin-widget-hero-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.navigation {
    overflow: visible;
    display: flex;
    align-items: center;
    width: 100%;
}
.navigation--main {
    display: flex;
    align-items: center;
    background-color: #D52B1E;
    color: #ffffff;
}
.navigation--main > li > a {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 18px;
    font-size: 15px;
    color: #ffffff;
}
.navigation--main > li > a:hover,
.navigation--main > li:hover > a {
    color: #f0f0f0;
    background-color: rgba(0,0,0,0.15);
}
.navigation--main > .current-menu-item > a,
.navigation--main > .current-menu-ancestor > a {
    background-color: rgba(0,0,0,0.2);
    color: #ffffff;
}
.navigation--main > .menu-item-has-children > a::after {
    display: none;
}
.navigation--main .sub-menu {
    background-color: #b01e14;
    border-color: #b01e14;
}
.navigation--main .sub-menu > li > a {
    color: #ffffff;
}
.navigation--main .sub-menu > li > a:hover {
    background-color: rgba(0,0,0,0.2);
    color: #ffffff;
}

/* ── LOGO ────────────────────────────────────────────────────────── */
.logo {
    padding: 10px 0;
}
.logo img {
    max-height: 72px;
    width: auto;
}

/* ── TOP BAR ─────────────────────────────────────────────────────── */
.top {
    background-color: #111111 !important;
    color: #ffffff;
}
.top .icon-box__title,
.top .icon-box__subtitle,
.top a,
.top .widget-icon-box .icon-box {
    color: #ffffff !important;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
    background-color: #1a1a1a !important;
}
.footer, .footer .textwidget, .footer__headings {
    color: #cccccc;
}
.footer a { color: #D52B1E; }
.footer a:hover { color: #ff4433; }
.footer-bottom {
    background-color: #111111 !important;
    color: #aaaaaa;
}
.footer-bottom a { color: #aaaaaa; }
.footer-bottom a:hover { color: #ffffff; }

/* ── BRAND COLORS ────────────────────────────────────────────────── */
a { color: #D52B1E; }
a:hover { color: #b01e14; }
.btn-primary,
.widget_search .search-submit,
#comments-submit-button {
    background-color: #D52B1E !important;
    border-color: #D52B1E !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.widget_search .search-submit:hover,
#comments-submit-button:hover {
    background-color: #b01e14 !important;
    border-color: #b01e14 !important;
}

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh !important;
        width: 80%;
        max-width: 300px;
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 9999;
        display: block !important;
        overflow-y: auto;
        padding: 20px 0;
    }
    .navbar-collapse.in,
    .navbar-collapse.show,
    .navbar-collapse.open {
        transform: translateX(0);
    }
    #menu-primary-navigation {
        display: block !important;
        padding: 0;
        margin: 0;
    }
    #menu-primary-navigation > li,
    #menu-primary-navigation li ul.sub-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    #menu-primary-navigation > li > a,
    #menu-primary-navigation li ul.sub-menu li a {
        display: block;
        padding: 14px 20px;
        color: #111;
        text-decoration: none;
        font-weight: 600;
        background-color: #fff;
        height: auto;
    }
    #menu-primary-navigation li a:hover {
        background-color: #f5f5f5;
    }
    #menu-primary-navigation li.current-menu-item > a,
    #menu-primary-navigation li.current-menu-ancestor > a {
        background-color: #D52B1E !important;
        color: #fff !important;
    }
    #menu-primary-navigation li ul.sub-menu {
        display: none;
        padding-left: 15px;
        background: #f9f9f9;
    }
    #menu-primary-navigation li.menu-item-has-children.open > ul.sub-menu {
        display: block;
    }
    .navbar-toggle__text { color: #ffffff; }
    .navbar-toggle .icon-bar { background: #ffffff; }
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex;
        width: 100%;
    }
    .navigation--main {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .navigation--main > li {
        float: none;
        flex: 1;
        text-align: center;
    }
    .navigation--main > li > a {
        justify-content: center;
        width: 100%;
    }
}

/* ── CONTACT FORM 7 ──────────────────────────────────────────── */
.wpcf7-form {
    display: block !important;
}
.wpcf7-form p {
    display: block !important;
    width: 100% !important;
    margin-bottom: 16px;
    float: none !important;
}
.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100% !important;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}
.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}
.wpcf7-form p:has(input[type="submit"]) {
    text-align: center !important;
}
.wpcf7-form input[type="submit"] {
    display: inline-block;
    background-color: #D52B1E !important;
    color: #fff !important;
    border: none;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
}
.wpcf7-form input[type="submit"]:hover {
    background-color: #b01e14 !important;
}
.wpcf7-form .wpcf7-response-output {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 4px;
}

/* ── STICKY NAV — disabled ────────────────────────────────────── */
.is-sticky-navbar .navigation {
    position: static !important;
    top: auto !important;
    width: auto !important;
}

/* ── HEADER WIDGETS LAYOUT ────────────────────────────────────── */
/* ── HEADER WIDGETS LAYOUT ────────────────────────────────────── */
/* Override theme's flex-end default */
html.flexbox .header-widgets {
    -webkit-justify-content: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}
.header .container:first-child {
    display: flex !important;
    align-items: center;
}
.header-widgets.header-widgets-desktop {
    display: flex !important;
    flex: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px;
    width: 100%;
}
.header-widgets.header-widgets-desktop .logo {
    flex-shrink: 0;
}
.header-widgets.header-widgets-desktop .widget {
    margin: 0;
    flex-shrink: 0;
}
/* Phone widget: no wrapping, stretch full width of its box */
.header-widgets .widget-icon-box:last-child {
    flex-shrink: 0;
}
.header-widgets .icon-box__title,
.header-widgets .icon-box__subtitle {
    white-space: nowrap;
}
/* Hide broken FA icons inside icon boxes */
.icon-box__icon,
.widget-icon-box .icon-box__icon {
    display: none !important;
}
/* Icon box text styling in header */
.header-widgets .icon-box__title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.header-widgets .icon-box__subtitle {
    font-size: 12px;
    color: #dddddd;
    margin: 0;
}
