/* Angels Senior Live-In Care - Custom Styles */

/* Custom CSS Variables */
:root {
    /* Primary Colors */
    --primary: 45 69% 50%; /* #4A90B8 - Professional Blue */
    --primary-light: 45 69% 65%; /* Lighter shade */
    --primary-dark: 45 69% 35%; /* Darker shade */
    
    /* Accent Colors */
    --accent: 15 85% 60%; /* #E6A15C - Warm Orange */
    --success: 120 50% 45%; /* #5CB85C - Success Green */
    --warning: 45 100% 50%; /* #FFC107 - Warning Yellow */
    --danger: 0 70% 55%; /* #DC3545 - Danger Red */
    
    /* Neutral Colors */
    --white: 0 0% 100%; /* #FFFFFF */
    --light: 210 20% 97%; /* #F8F9FA - Very Light Gray */
    --gray-100: 210 15% 95%; /* #F1F3F4 */
    --gray-200: 210 10% 90%; /* #E9ECEF */
    --gray-300: 210 8% 80%; /* #DEE2E6 */
    --gray-400: 210 8% 65%; /* #CED4DA */
    --gray-500: 210 7% 50%; /* #ADB5BD */
    --gray-600: 210 9% 40%; /* #6C757D */
    --gray-700: 210 10% 30%; /* #495057 */
    --gray-800: 210 11% 20%; /* #343A40 */
    --gray-900: 210 12% 15%; /* #212529 */
    --dark: 210 12% 10%; /* #1A1D20 */
    
    /* Semantic Colors */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 12% 15%; /* #212529 */
    --text-secondary: 210 9% 40%; /* #6C757D */
    --text-muted: 210 7% 50%; /* #ADB5BD */
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Typography */
    --font-family-sans: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}

/* Base Styles */
body {
    font-family: var(--font-family-sans);
    line-height: var(--line-height-base);
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

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

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Color Utilities */
.text-primary {
    color: hsl(var(--primary)) !important;
}

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

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

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

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

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

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

.navbar-nav .nav-link {
    font-weight: 500;
    color: hsl(var(--text-primary));
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: hsl(var(--primary));
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    border-color: hsl(var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
    transform: translateY(-1px);
}

.btn-light {
    background-color: white;
    border-color: white;
    color: hsl(var(--text-primary));
}

.btn-light:hover {
    background-color: hsl(var(--gray-100));
    border-color: hsl(var(--gray-100));
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Page Header Styles */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="7" cy="7" r="7"/></g></g></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Card Styles */
.feature-card,
.service-card,
.testimonial-card,
.team-card,
.value-card,
.plan-card,
.contact-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--gray-200));
    height: 100%;
}

.feature-card:hover,
.service-card:hover,
.team-card:hover,
.value-card:hover,
.plan-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card {
    border-left: 4px solid hsl(var(--accent));
}

/* Feature Icons */
.feature-icon,
.service-icon,
.value-icon,
.contact-icon {
    width: 80px;
    height: 80px;
    background: hsl(var(--light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Team Photos */
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid hsl(var(--light));
    margin: 0 auto;
}

/* Testimonial Styles */
.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-testimonial {
    position: relative;
    overflow: hidden;
}

.featured-testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="7" cy="7" r="7"/></g></g></svg>');
    opacity: 0.5;
}

.featured-testimonial .container {
    position: relative;
    z-index: 1;
}

/* Rating Stars */
.rating i {
    color: #ffc107;
    margin-right: 0.25rem;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--gray-300));
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem hsla(var(--primary), 0.25);
}

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

.contact-form-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

/* Specialized Service Cards */
.specialized-service {
    background: hsl(var(--light));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.specialized-service:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Pricing Plans */
.plan-card {
    border: 2px solid hsl(var(--gray-200));
}

.plan-card.bg-primary {
    border-color: hsl(var(--primary));
    position: relative;
    transform: scale(1.05);
}

.plan-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Video Testimonials */
.video-placeholder {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

/* Service Stories */
.service-story {
    background: hsl(var(--light));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border-left: 4px solid hsl(var(--primary));
    transition: all 0.3s ease;
}

.service-story:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Emergency Contact */
.emergency-contact {
    background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(15 85% 45%) 100%);
    border-radius: var(--border-radius-lg);
}

/* Map Placeholder */
.map-placeholder {
    background: hsl(var(--light));
    border: 2px dashed hsl(var(--gray-300));
    border-radius: var(--border-radius-lg);
}

/* Statistics */
.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    color: hsl(var(--primary));
    font-weight: 700;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: hsla(var(--white), 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: hsla(var(--white), 0.2);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, hsl(var(--dark)) 0%, hsl(var(--gray-900)) 100%);
}

footer h5,
footer h6 {
    color: white;
}

footer .text-light {
    color: hsl(var(--gray-300)) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
        min-height: auto;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card,
    .team-card,
    .value-card,
    .plan-card,
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

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

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

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid hsl(var(--primary));
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Accessibility Improvements */
.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 Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
        padding: 2rem 0 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary: 220 100% 30%;
        --text-primary: 0 0% 0%;
        --background: 0 0% 100%;
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .form-control,
    .form-select {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
