/* Feel Better Healthcare - Custom Styles */

/* Color Variables */
:root {
    --primary-color: #3B82F6;
    --primary-rgb: 59, 130, 246;
    --secondary-color: #8B5CF6;
    --secondary-rgb: 139, 92, 246;
    --accent-color: #F97316;
    --accent-rgb: 249, 115, 22;
    --success-color: #14B8A6;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #0B1220;
    --light-color: #F6F7FF;
    --white: #FFFFFF;
    --text-primary: #0B1220;
    --text-secondary: #475569;
    --border-color: #E2E8F0;
    --ring-color: rgba(var(--primary-rgb), 0.22);
    --shadow-color: 15, 23, 42;
}

/* 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:
        radial-gradient(1200px 800px at 10% 0%, rgba(var(--primary-rgb), 0.10) 0%, rgba(var(--primary-rgb), 0) 55%),
        radial-gradient(1000px 700px at 100% 20%, rgba(var(--secondary-rgb), 0.12) 0%, rgba(var(--secondary-rgb), 0) 60%),
        var(--white);
}

/* 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;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

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

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 1) 0%, rgba(var(--secondary-rgb), 1) 100%);
    border-color: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.92) 0%, rgba(var(--secondary-rgb), 0.92) 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--shadow-color), 0.16);
}

.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 12px 28px rgba(var(--shadow-color), 0.16);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.navbar-light {
    background-color: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(var(--shadow-color), 0.08);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(var(--shadow-color), 0.10);
}

.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.10);
}

.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.10);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(500px 500px at 15% 15%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(560px 560px at 85% 25%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(600px 600px at 45% 85%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
}

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

.hero-section img {
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.service-hero,
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.service-hero::before,
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 520px at 10% 25%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(560px 560px at 95% 20%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 64%);
    pointer-events: none;
}

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

.hero-stats .stat-item {
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.hero-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 60px rgba(var(--shadow-color), 0.14) !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;
}

.contact-card,
.sharing-card,
.office-hours-card {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--shadow-color), 0.10);
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(var(--shadow-color), 0.08);
}

.accordion-item {
    border: 1px solid rgba(var(--shadow-color), 0.10);
    border-radius: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem var(--ring-color);
}

.alert {
    border-radius: 1rem;
    border: 1px solid rgba(var(--shadow-color), 0.10);
}

/* 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 18px 50px rgba(var(--shadow-color), 0.12);
}

.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, var(--primary-color) 0%, var(--secondary-color) 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);
}

.feature-card,
.value-card,
.benefit-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--shadow-color), 0.10);
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(var(--shadow-color), 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.value-card:hover,
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(var(--shadow-color), 0.12);
    border-color: rgba(var(--primary-rgb), 0.28);
}

.process-step .step-number {
    width: 56px;
    height: 56px;
    box-shadow: 0 16px 40px rgba(var(--shadow-color), 0.14);
}

.trust-stat .stat-number {
    letter-spacing: -0.03em;
}

.subscription-form {
    border: 1px solid rgba(var(--shadow-color), 0.10);
    box-shadow: 0 30px 80px rgba(var(--shadow-color), 0.12);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--ring-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 var(--ring-color);
}

.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;
    }
}
