/* Professional Styling - My Home Heroes */

:root {
    --primary-color: #0066CC;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gold-color: #D4AF37;
    --text-primary: #2c3e50;        /* Softer dark blue-gray instead of harsh black */
    --text-secondary: #5a6c7d;      /* Subtle blue-gray instead of plain gray */
    --heading-color: #1e3a5f;       /* Deep blue for headings */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;       /* Slightly tighter for better readability */
}

h1 {
    color: var(--primary-color);    /* Main headings in brand blue */
    font-weight: 700;
}

h2 {
    color: var(--heading-color);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.125rem;
    line-height: 1.7;
}

/* Add subtle color to links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0052a3;
    text-decoration: none;
}

/* Stronger emphasis for important text */
strong, .fw-bold {
    color: var(--heading-color);
    font-weight: 600;
}

/* Better readability for lead text */
.lead {
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Service Icons */
.service-icon {
    font-size: 4rem;
    line-height: 1;
}

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Sticky CTA */
.sticky-top {
    position: sticky;
    z-index: 1020;
}

/* Sticky header that stays visible on scroll */
header.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add padding to body so content doesn't hide under fixed header */
body {
    padding-top: 80px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}

/* Phone number styling */
.phone-cta {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Hover effect for cards */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Card improvements */
.card {
    border: none;
    transition: all 0.3s ease;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Button improvements */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Review cards */
.review-card {
    border-left: 4px solid var(--warning-color);
}

/* Content sections */
.content-section {
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Mobile-specific optimizations */
    body {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }
    
    /* Touch-friendly buttons - minimum 48x48px */
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 24px;
    }
    
    /* Larger phone number CTAs on mobile */
    a[href^="tel:"] {
        display: inline-block;
        min-height: 48px;
        padding: 12px 20px;
        text-decoration: none;
        border-radius: 8px;
    }
    
    /* Better spacing on mobile */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack cards vertically on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Hide less important content on mobile for speed */
    .mobile-hide {
        display: none;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Star ratings */
.star-rating {
    color: var(--warning-color);
    font-size: 1.2rem;
}

/* Location badge */
.location-badge {
    background: var(--warning-color);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Service category cards */
.service-category {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-category:hover {
    background: var(--primary-color);
    color: white;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .cta-section {
        display: none !important;
    }
}

/* Accessibility improvements */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

