/* 
 * HealthBridge - Secure Medical Record Sharing Platform
 * Landing Page Styles
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.7;
    font-size: 16px;
}

/* Mobile viewport fix */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    button, .btn, a, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}

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

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Features */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

/* Mobile-first responsive design for landing page */
@media (max-width: 768px) {
    /* Hero section mobile */
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Feature cards mobile */
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    /* Button improvements mobile */
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 18px;
        min-height: 50px;
    }
    
    /* Container mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Footer mobile */
    .footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    .footer .row > div {
        margin-bottom: 1rem;
    }
    
    /* Typography mobile */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
}

/* Timeline */
.timeline-icon {
    flex-shrink: 0;
}

/* Testimonials */
.testimonial-img img {
    border: 3px solid var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.25rem;
}

/* Cards */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Compliance badges */
.compliance-badges .badge {
    padding: 0.5rem 1rem;
    font-weight: normal;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer ul {
    margin-bottom: 0;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* CTA Section */
.bg-primary {
    background-color: var(--secondary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.rounded {
    border-radius: 8px !important;
}