/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress Child Theme for One Sole RCM
 Author:       One Sole Team
 Author URI:   https://generatepress.com
 Template:     generatepress
 Version:      1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Global Color Variables & Base System (One Sole RCM)
   ========================================================================== */
:root {
    --color-primary: #0f4c81;
    --color-primary-hover: #0b3a63;
    --color-secondary: #00a69c;
    --color-secondary-hover: #00847c;
    --color-accent: #e8f4f8;
    --color-dark: #1a2332;
    --color-light: #f8fafc;
    --color-gray-text: #4b5563;
    --color-gray-border: #e5e7eb;

    --gradient-primary: linear-gradient(135deg, #0f4c81 0%, #00a69c 100%);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);

    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Override GeneratePress Default Dark Button Hover
   ========================================================================== */
button:hover,
button:focus,
html input[type="button"]:hover,
input[type="reset"]:hover {
    background-color: transparent;
    color: inherit;
}

/* Specialties Tab Buttons Override */
button.specialty-tab,
.specialty-tab {
    background: transparent !important;
    background-color: transparent !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

button.specialty-tab:hover,
button.specialty-tab:focus,
.specialty-tab:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #6b7280 !important;
    border-bottom: 2px solid transparent !important;
}

button.specialty-tab.active,
button.specialty-tab.active:hover,
button.specialty-tab.active:focus,
.specialty-tab.active {
    background: transparent !important;
    background-color: transparent !important;
    color: #0f4c81 !important;
    border-bottom: 2px solid #00a69c !important;
}

/* FAQ Toggle Buttons Override */
button.faq-toggle,
.faq-toggle {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a2332 !important;
    box-shadow: none !important;
    border: 0 !important;
}

button.faq-toggle:hover,
button.faq-toggle:focus,
.faq-toggle:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a2332 !important;
}

/* ==========================================================================
   Disable Link & Navigation Menu Hover Effects
   ========================================================================== */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* Remove nav link animated underline */
.nav-link::after {
    display: none !important;
}

/* Disable GeneratePress main navigation hover backgrounds & underlines */
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li:hover > a {
    background-color: transparent !important;
    text-decoration: none !important;
}

/* ==========================================================================
   Global Color & Background Utilities
   ========================================================================== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-dark { color: var(--color-dark) !important; }
.text-light { color: var(--color-light) !important; }
.text-accent { color: var(--color-accent) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-dark { background-color: var(--color-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.gradient-bg { background: var(--gradient-primary) !important; }
.hero-gradient { background: var(--gradient-hero) !important; }

/* ==========================================================================
   Header Sub-Menu & Dropdown System
   ========================================================================== */
#onesole-header nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#onesole-header nav ul li {
    position: relative;
}
#onesole-header nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 0;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
#onesole-header nav ul li a:hover,
#onesole-header nav ul li.current-menu-item > a,
#onesole-header nav ul li.current-menu-ancestor > a {
    color: #0f4c81 !important;
}

/* Dropdown Caret Icon for Parent Items */
#onesole-header nav ul li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: 0.35rem;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.2s ease;
}
#onesole-header nav ul li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #00a69c;
}

/* Floating Sub-Menu Dropdown Container */
#onesole-header nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 60;
}
#onesole-header nav ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#onesole-header nav ul li ul.sub-menu li {
    width: 100%;
}
#onesole-header nav ul li ul.sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 1.25rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: all 0.15s ease !important;
    border-radius: 0 !important;
}
#onesole-header nav ul li ul.sub-menu li a::after {
    display: none !important;
}
#onesole-header nav ul li ul.sub-menu li a:hover {
    background-color: #e8f4f8 !important;
    color: #0f4c81 !important;
    padding-left: 1.5rem !important;
}

/* 3rd Level Sub-menu */
#onesole-header nav ul li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0 !important;
    margin-left: 0.25rem !important;
}

/* Mobile Drawer Sub-Menu */
#onesole-mobile-drawer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#onesole-mobile-drawer ul li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none !important;
}
#onesole-mobile-drawer ul.sub-menu {
    padding-left: 1rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
    border-left: 2px solid #e5e7eb !important;
}
#onesole-mobile-drawer ul.sub-menu li a {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ==========================================================================
   Button System (Global Front-End Buttons Scoped Away From Admin Bar)
   ========================================================================== */

/* Primary Button Style */
.btn-primary,
a.btn-primary,
button.btn-primary,
.wp-block-button__link,
.button,
a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #ffffff !important;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* WordPress Comment Submit Button Specific Override (Front-End Only) */
#commentform input#submit,
#commentform input[type="submit"],
.comment-form input[type="submit"],
.form-submit input[type="submit"],
.comment-respond input[type="submit"] {
    background: linear-gradient(135deg, #0f4c81 0%, #00a69c 100%) !important;
    background-color: #00a69c !important;
    color: #ffffff !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2) !important;
    display: inline-block !important;
    text-transform: none !important;
    line-height: 1.5 !important;
}

#commentform input#submit:hover,
#commentform input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover,
.comment-respond input[type="submit"]:hover {
    background: linear-gradient(135deg, #0d4270 0%, #008f87 100%) !important;
    background-color: #008f87 !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(15, 76, 129, 0.3) !important;
}

/* Protect WordPress Admin Bar from Theme Styles */
#wpadminbar,
#wpadminbar * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#wpadminbar input,
#wpadminbar button,
#wpadminbar .button,
#wpadminbar .ab-item {
    background: initial !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: initial !important;
}

/* Secondary Button Style */
.btn-secondary,
a.btn-secondary,
button.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link,
.button.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-secondary);
    color: #ffffff !important;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.button.secondary:hover {
    background-color: var(--color-secondary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 166, 156, 0.2);
}

/* Outline / Light Button Variant */
.btn-outline,
a.btn-outline,
button.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--color-primary) !important;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 76, 129, 0.2);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-outline:hover,
a.btn-outline:hover,
button.btn-outline:hover {
    background-color: rgba(15, 76, 129, 0.05);
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Cards & Hover Effects
   ========================================================================== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==========================================================================
   Border Radius Utilities
   ========================================================================== */
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
