/* Fit Health Care Pro - Custom Styles */

/* Color Variables */
:root {
    --primary-color: #0b5fff;
    --primary-rgb: 11, 95, 255;
    --secondary-color: #ff4d6d;
    --secondary-rgb: 255, 77, 109;
    --accent-color: #00c2a8;
    --accent-rgb: 0, 194, 168;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --dark-color: #0b1220;
    --light-color: #f5f7ff;
    --white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fbfcff;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.display-5 {
    font-size: 3rem;
    font-weight: 700;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Custom Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: radial-gradient(circle at 15% 25%, rgba(var(--accent-rgb), 0.32) 0%, rgba(var(--accent-rgb), 0) 42%),
        radial-gradient(circle at 80% 20%, rgba(var(--secondary-rgb), 0.22) 0%, rgba(var(--secondary-rgb), 0) 46%),
        linear-gradient(135deg, #0b5fff 0%, #6d28d9 48%, #ff4d6d 100%) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0747c2;
    border-color: #0747c2;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.28);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.28);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-rgb), 0.08);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
}

.page-header,
.service-hero,
.hero-section {
    position: relative;
    overflow: hidden;
}

.page-header::after,
.service-hero::after,
.hero-section::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.28) 0%, rgba(var(--accent-rgb), 0) 45%),
        radial-gradient(circle at 78% 32%, rgba(var(--secondary-rgb), 0.18) 0%, rgba(var(--secondary-rgb), 0) 46%),
        linear-gradient(135deg, rgba(11, 95, 255, 0.08) 0%, rgba(255, 77, 109, 0.08) 100%);
    pointer-events: none;
}

.hero-section {
    background: linear-gradient(135deg, #0b1220 0%, #0b5fff 45%, #ff4d6d 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.service-hero,
.page-header {
    background: linear-gradient(135deg, #0b1220 0%, #0b5fff 55%, #ff4d6d 100%);
}

.hero-section .container,
.service-hero .container,
.page-header .container {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(420px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-copy {
    padding: 2.25rem 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-copy .btn {
    border-radius: 0.75rem;
}

.feature-card,
.value-card,
.contact-card,
.benefit-card,
.category-card,
.condition-card,
.program-card,
.sharing-card,
.responsibility-card,
.subscription-form,
.team-card,
.office-hours-card,
.benefits-visual {
    border-radius: 1.25rem;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}

.feature-card,
.value-card,
.contact-card,
.benefit-card,
.category-card,
.condition-card,
.program-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.value-card:hover,
.contact-card:hover,
.benefit-card:hover,
.category-card:hover,
.condition-card:hover,
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.12);
}

.footer {
    background: linear-gradient(180deg, #0b1220 0%, #070b15 100%) !important;
}

.footer a.text-light {
    opacity: 0.9;
}

.footer a.text-light:hover {
    opacity: 1;
}

.accordion-item {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.06);
}

.accordion-button:not(.collapsed) {
    color: var(--text-primary);
    background-color: rgba(var(--primary-rgb), 0.07);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.14);
}

/* Hero Section */
.hero-section::before,
.service-hero::before,
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-60 {
    min-height: 60vh;
}

.service-hero .hero-copy,
.hero-section .hero-copy {
    max-width: 40rem;
}

.hero-image {
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.hero-image i {
    filter: drop-shadow(0 18px 38px rgba(2, 6, 23, 0.45));
}

.hero-section img {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 991.98px) {
    .hero-copy {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        width: min(340px, 100%);
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .btn {
    margin-top: 1rem;
}

/* Trust Section */
.trust-section {
    background-color: var(--light-color);
}

.trust-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-item i {
    transition: all 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0b1220 0%, #0b5fff 45%, #ff4d6d 100%);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
}

.footer h5,
.footer h6 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 0.5rem;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.18);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        border-radius: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .trust-item {
        padding: 1.5rem 0.5rem;
    }
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-lg {
    border-radius: 1rem;
}

.border-radius-xl {
    border-radius: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
