/* ===================================
   Button Color Fixes
   =================================== */

/* Fix theme-btn6 color visibility */
.theme-btn6 {
    color: var(--had-white) !important;
    border: 2px solid var(--had-white) !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-btn6:hover {
    color: var(--had-primary-blue) !important;
    background: var(--had-white) !important;
    border-color: var(--had-white) !important;
    text-shadow: none;
}

/* Fix for homepage hero buttons */
.hero5 .theme-btn6 {
    color: var(--had-white) !important;
    border: 2px solid var(--had-white) !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero5 .theme-btn6:hover {
    color: var(--had-primary-blue) !important;
    background: var(--had-white) !important;
    border-color: var(--had-white) !important;
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Fix for theme-btn7 as well */
.theme-btn7 {
    color: var(--had-white) !important;
    background: var(--had-primary-orange) !important;
    border: 2px solid var(--had-primary-orange) !important;
}

.theme-btn7:hover {
    color: var(--had-primary-orange) !important;
    background: var(--had-white) !important;
    border-color: var(--had-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* Fix for any other theme buttons */
.theme-btn1 {
    color: var(--had-white) !important;
    background: var(--had-primary-orange) !important;
    border: 2px solid var(--had-primary-orange) !important;
}

.theme-btn1:hover {
    color: var(--had-primary-orange) !important;
    background: transparent !important;
    border-color: var(--had-primary-orange) !important;
}

/* Fix for dark backgrounds */
.dark-bg .theme-btn6,
.hero5 .theme-btn6,
.inner-hero .theme-btn6 {
    color: var(--had-white) !important;
    border-color: var(--had-white) !important;
    background: transparent !important;
}

/* Fix for light backgrounds */
.light-bg .theme-btn6,
.about-page-brand .theme-btn6 {
    color: var(--had-primary-blue) !important;
    border-color: var(--had-primary-blue) !important;
    background: transparent !important;
}

.light-bg .theme-btn6:hover,
.about-page-brand .theme-btn6:hover {
    color: var(--had-white) !important;
    background: var(--had-primary-blue) !important;
    border-color: var(--had-primary-blue) !important;
}

/* Ensure text visibility in all button states */
.theme-btn6 .text,
.theme-btn7 .text,
.theme-btn1 .text {
    color: inherit !important;
    opacity: 1 !important;
}

/* Fix arrow colors in buttons */
.theme-btn6 .arrow1 i,
.theme-btn6 .arrow2 i,
.theme-btn7 .arrow1 i,
.theme-btn7 .arrow2 i,
.theme-btn1 .arrow1 i,
.theme-btn1 .arrow2 i {
    color: inherit !important;
}

/* Mobile button fixes */
@media (max-width: 767px) {
    .theme-btn6,
    .theme-btn7,
    .theme-btn1 {
        padding: 16px 20px !important;
        font-size: 16px !important;
    }
}

/* Focus states for accessibility */
.theme-btn6:focus,
.theme-btn7:focus,
.theme-btn1:focus {
    outline: 2px solid var(--had-primary-orange) !important;
    outline-offset: 2px !important;
}

/* Active states */
.theme-btn6:active,
.theme-btn7:active,
.theme-btn1:active {
    transform: translateY(1px);
}