/* Health Apexia - Custom Styles */

/* Color Variables */
:root {
    --primary-color: #6D28D9;
    --secondary-color: #0EA5E9;
    --accent-color: #F59E0B;
    --success-color: #16A34A;
    --warning-color: #F59E0B;
    --danger-color: #DC2626;
    --dark-color: #0B1220;
    --light-color: #F8FAFC;
    --white: #FFFFFF;
    --text-primary: #0B1220;
    --text-secondary: #475569;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
    --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.10);
    --shadow-lg: 0 22px 60px rgba(2, 6, 23, 0.18);
}

/* 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: var(--light-color);
}

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

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

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 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: #5B21B6;
    border-color: #5B21B6;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(91, 33, 182, 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 12px 26px rgba(91, 33, 182, 0.22);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.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(109, 40, 217, 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(109, 40, 217, 0.10);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(1100px 600px at 20% 10%, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.0) 55%),
        radial-gradient(900px 520px at 92% 26%, rgba(14, 165, 233, 0.40) 0%, rgba(14, 165, 233, 0.0) 55%),
        linear-gradient(135deg, rgba(109, 40, 217, 0.96) 0%, rgba(109, 40, 217, 0.86) 40%, rgba(14, 165, 233, 0.92) 100%) !important;
    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: 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.14;
}

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

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

.hero-section h1 {
    letter-spacing: -0.02em;
    text-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
}

.hero-section .lead {
    opacity: 0.95;
}

.hero-section img {
    border-radius: 1.25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
    transform: translateY(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-section img:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.34);
}

.page-header i,
.service-hero i {
    filter: drop-shadow(0 18px 40px rgba(2, 6, 23, 0.20));
}

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

.page-header::before,
.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 12% 10%, rgba(245, 158, 11, 0.26) 0%, rgba(245, 158, 11, 0.0) 60%),
        radial-gradient(780px 500px at 92% 26%, rgba(14, 165, 233, 0.30) 0%, rgba(14, 165, 233, 0.0) 58%),
        linear-gradient(135deg, rgba(109, 40, 217, 0.94) 0%, rgba(14, 165, 233, 0.92) 100%);
    opacity: 1;
}

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

.service-hero .hero-image {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.25rem 1.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

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

.service-hero .hero-stats .stat-item small {
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.service-hero .btn.btn-light,
.page-header .btn.btn-light,
.hero-section .btn.btn-light {
    color: #3B0764;
}

.service-hero .btn.btn-outline-light,
.page-header .btn.btn-outline-light,
.hero-section .btn.btn-outline-light {
    border-width: 2px;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md) !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: rgba(248, 250, 252, 0.8);
}

.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: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.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: radial-gradient(900px 520px at 15% 10%, rgba(245, 158, 11, 0.28) 0%, rgba(245, 158, 11, 0.0) 60%),
        linear-gradient(135deg, rgba(109, 40, 217, 0.94) 0%, rgba(14, 165, 233, 0.94) 100%) !important;
}

.value-card,
.feature-card,
.program-card,
.benefits-visual,
.savings-item,
.testimonial-card.bg-light,
.accordion-item {
    border-radius: 1rem;
}

.value-card,
.feature-card,
.program-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover,
.feature-card:hover,
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.25);
}

.process-step .step-number {
    width: 56px;
    height: 56px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.14);
}

.accordion-item {
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(109, 40, 217, 0.22);
}

.accordion-button:not(.collapsed) {
    color: var(--text-primary);
    background: rgba(109, 40, 217, 0.08);
}

.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(109, 40, 217, 0.22);
}

.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: var(--shadow-md);
}

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