/* bs5-compat.css - Makes Bootstrap 5 grid behave like Bootstrap 3 */
/* Loaded AFTER main.min.css to override conflicts */
/* The theme's CSS was built for BS3's float-based grid. */
/* BS5 uses flexbox grid which breaks the theme. This file */
/* reverts the grid to float-based while keeping BS5's classes. */

/* ============================================
   1. REVERT BS5 GRID TO FLOAT-BASED (BS3 STYLE)
   ============================================ */

/* BS5 .row uses display:flex - revert to block + clearfix */
.row {
    display: block !important;
    margin-left: -15px;
    margin-right: -15px;
}
.row::before,
.row::after {
    display: table;
    content: " ";
}
.row::after {
    clear: both;
}

/* BS5 .row > * targets all children - revert to float */
.row > * {
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    /* Remove BS5 flex properties */
    flex-shrink: unset;
    flex-grow: unset;
    flex-basis: unset;
}

/* ============================================
   2. BS3 UTILITY CLASSES RESTORED
   ============================================ */
.page-header {
    padding-bottom: 9px;
    margin: 0 0 20px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.pull-left {
    float: left !important;
}
.pull-right {
    float: right !important;
}

/* ============================================
   3. CLEARFIX (BS5 removed this helper)
   ============================================ */
.clearfix::before,
.clearfix::after {
    display: table;
    content: " ";
}
.clearfix::after {
    clear: both;
}

/* ============================================
   4. BS5 REBOOT OVERRIDES
   ============================================ */

/* BS5 reboot adds margin-bottom to ul - breaks nav menus */
.menu,
.menu ul,
.submenu,
.megamenu ul,
.footer-links,
.footer-contact {
    margin-bottom: 0;
}

.menu,
.menu ul {
    padding-left: 0;
}

.menu a,
.menu a:hover,
.menu a:focus {
    text-decoration: none;
}

/* BS5 reboot sets body line-height:1.5 - match BS3 */
body {
    line-height: 1.42857143;
}

/* ============================================
   5. TOPBAR SOCIAL ICONS
   ============================================ */
.topbar ul.social-icon,
.topbar ul.social-light {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.topbar ul.social-icon li,
.topbar ul.social-light li {
    display: inline-block;
}

/* ============================================
   6. REVOLUTION SLIDER FIX
   ============================================ */
.tp-banner-container {
    width: 100% !important;
}

/* ============================================
   7. LABEL RESTORE (BS3 .label class)
   ============================================ */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

/* ============================================
   8. SECTION HEADERS — LARGER SIZE
   ============================================ */
.title-uppercased.hyt {
    font-size: 36px;
}

@media (max-width: 768px) {
    .title-uppercased.hyt {
        font-size: 26px;
    }
}

/* ============================================
   9. PAIN CARD GRID (used across multiple pages)
   ============================================ */
.pain-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.pain-col {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.pain-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-left: none;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.pain-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, rgba(218,165,32,0.1) 0%, rgba(218,165,32,0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-icon i {
    font-size: 24px;
    color: #DAA520;
}

.pain-content {
    flex: 1;
}

.pain-question {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pain-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.pain-bottom-line {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pain-col {
        width: 100%;
    }

    .pain-card {
        flex-direction: column;
        gap: 15px;
        padding: 25px;
    }

    .pain-question {
        font-size: 16px;
    }

    .pain-bottom-line {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pain-card {
        transition: none;
    }
    .pain-card:hover {
        transform: none;
    }
}

/* ============================================
   10. MOBILE HEADER — LOGO + HAMBURGER FIX
   ============================================ */

/* New hamburger button: hidden on desktop, visible on mobile */
.mobile-toggle-btn {
    display: none;
}

@media (max-width: 991px) {
    /* Ensure header columns span full width on all mobile sizes */
    .header-wrapper .row > * {
        width: 100%;
    }
    .menu-wrapper {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 60px;
    }
    .menu-wrapper::before,
    .menu-wrapper::after {
        display: none !important;
    }
    .logo-wrapper {
        float: none !important;
        flex-shrink: 0;
    }

    /* Show the new hamburger button, hide the original inside the nav */
    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
    }
    .menu > .toggle-menu {
        display: none !important;
    }

    /* Hamburger bar styling */
    .mobile-toggle-btn .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 28px;
        height: 24px;
        cursor: pointer;
    }
    .mobile-toggle-btn .hamburger .bar {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #eaecf1;
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease-out;
    }
}
