/* River City Junk Removal Premium Styles */
/* Font preloaded in HTML head for better performance */

/* Advanced Color Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent-color: #fbbf24;
    --accent-dark: #f59e0b;
    --success-color: #10b981;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.2);
    --link-color: #1d4ed8; /* High contrast link color */
    --link-hover: #1e40af; /* Even higher contrast for hover */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Service Icon Circles */
.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

/* Feature Icons Improved */
.feature-icon-improved {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon-improved::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feature-icon-improved:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.feature-icon-improved:hover::before {
    left: 100%;
}

.feature-icon-improved i,
.feature-icon-improved svg {
    color: white !important;
    font-size: 1.5rem;
    z-index: 1;
    fill: white !important;
    width: 24px !important;
    height: 24px !important;
}

/* Override any existing feature icon styles */
.feature-item .feature-icon-improved {
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Small feature icons styling */
.feature-icon-small {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.3s ease !important;
}

.feature-icon-small svg {
    fill: white !important;
    width: 20px !important;
    height: 20px !important;
}

/* Image optimization */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.loaded {
    opacity: 1;
}

/* Service demo image optimization */
.service-demo-image {
    transition: transform 0.3s ease;
}

.service-demo-image:hover {
    transform: scale(1.02);
}

/* Progressive enhancement for animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.icon-circle i {
    font-size: 36px;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.service-card:hover .icon-circle i {
    transform: scale(1.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Smooth Animations */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Gradient text only on light backgrounds */
section:not(.bg-primary):not(.hero-section):not(.page-header) .display-1,
section:not(.bg-primary):not(.hero-section):not(.page-header) .display-2,
section:not(.bg-primary):not(.hero-section):not(.page-header) .display-3,
section:not(.bg-primary):not(.hero-section):not(.page-header) .display-4,
section:not(.bg-primary):not(.hero-section):not(.page-header) .display-5 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* White text on colored backgrounds */
.bg-primary .display-1,
.bg-primary .display-2,
.bg-primary .display-3,
.bg-primary .display-4,
.bg-primary .display-5,
.hero-section .display-1,
.hero-section .display-2,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5,
.page-header .display-1,
.page-header .display-2,
.page-header .display-3,
.page-header .display-4,
.page-header .display-5 {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Hero section specific text styling */
.hero-section h1,
.hero-section h2, 
.hero-section h3,
.hero-section p,
.hero-section .lead,
.hero-section .btn {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    text-shadow: none;
}

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

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

/* Premium Button Styles */
.btn {
    position: relative;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0.025em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border: none;
    color: white;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(251, 191, 36, 0.4);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Premium Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.service-icon i {
    color: white !important;
    width: 32px !important;
    height: 32px !important;
}

/* Premium Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Brand-Aligned Hero Section */
.hero-section-new {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section-new::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 100 100"><defs><pattern id="hexagon" width="50" height="50" patternUnits="userSpaceOnUse"><polygon points="25,5 45,15 45,35 25,45 5,35 5,15" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>');
    animation: slide 40s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50px); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-link {
    color: #facc15;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-link:hover {
    color: #fde047;
    border-bottom-color: #facc15;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border: none;
    color: #1e40af;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(250, 204, 21, 0.6);
    color: #1e40af;
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(250, 204, 21, 0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(250, 204, 21, 0.2);
    border-color: #facc15;
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dbeafe;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(250, 204, 21, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(250, 204, 21, 0.4);
}

.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Page Header Enhancement */
.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    padding: 6rem 0 4rem;
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: slide 30s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* Enhanced Sections */
section {
    position: relative;
    z-index: 1;
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Footer Enhancement */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

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

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

/* Glassmorphism Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-form-container {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .card {
        margin-bottom: 2rem;
    }
}

/* Loading Animation for Better UX */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Why Choose Section - Text Only Override */
.why-choose-section {
    background-color: #f8f9fa !important;
}

.why-choose-section img {
    display: none !important;
}

.why-choose-section .col-lg-6 img {
    display: none !important;
}

/* Remove any background images */
.why-choose-section * {
    background-image: none !important;
}

/* Trust Indicators Enhanced Styling */
.trust-indicators-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.trust-indicators-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0.6;
}

.trust-indicators-mini .trust-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(29, 78, 216, 0.12));
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 18px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.trust-indicators-mini .trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.trust-indicators-mini .trust-item:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.18));
}

.trust-indicators-mini .trust-item:hover::before {
    left: 100%;
}

.trust-number-new {
    display: block;
    font-size: 2.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
    margin-bottom: 6px;
    text-shadow: none;
    filter: drop-shadow(0 3px 6px rgba(37, 99, 235, 0.2));
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

.trust-label-new {
    display: block;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Responsive Trust Indicators */
@media (max-width: 768px) {
    .trust-indicators-mini {
        gap: 15px;
        padding: 16px 20px;
        margin-top: 20px;
    }
    
    .trust-indicators-mini .trust-item {
        padding: 14px 18px;
        min-width: 100px;
    }
    
    .trust-number-new {
        font-size: 2.2rem;
    }
    
    .trust-label-new {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* About Page Story Image Styling */
.story-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.story-image {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    object-fit: cover;
    width: 100%;
    max-height: 350px;
}

.story-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
}

/* Service Area Image Styling */
.service-area-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.service-demo-image {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 400px;
}

.service-demo-image:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

/* Service Work Image Styling */
.service-showcase-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    text-align: center;
}

.service-work-image {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 400px;
}

.service-work-image:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-strong);
}





.estimate-benefits .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 0.25rem;
}



/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-medium);
}

/* Related Services Cards */
.related-service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.related-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.related-service-card h5 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.related-service-card h5 a:hover {
    color: var(--accent-color);
}



/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Premium Alert Styles */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    box-shadow: var(--shadow-soft);
}

.alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
}

.alert-info {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
}

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

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Remove duplicate - handled above */

/* Remove duplicate pseudo-elements */

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

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

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

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.lead-form-wrapper iframe {
    border-radius: 10px;
    overflow: hidden;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    margin-bottom: 0.5rem;
}

.stat-icon i {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-truck-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.truck-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.truck-container:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.truck-icon {
    width: 80px;
    height: 80px;
    stroke-width: 1.5;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.truck-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-icon {
    width: 100px;
    height: 100px;
    stroke-width: 1.5;
}

/* Remove duplicate page header CSS - handled above */

/* Accessibility Improvements */
/* High contrast links with proper identification */
a {
    color: var(--link-color);
    text-decoration: underline;
    transition: all 0.2s ease;
}

a:hover, a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    outline: 2px solid var(--link-hover);
    outline-offset: 2px;
}

/* Exception for navigation and button-style links */
.navbar-nav .nav-link,
.btn,
.dropdown-item {
    text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    outline: none;
    text-decoration: underline;
}

/* Ensure text-accent links maintain accessibility */
.text-accent {
    color: #d97706 !important;
    font-weight: 600;
    text-decoration: underline;
}

.text-accent:hover,
.text-accent:focus {
    color: #92400e !important;
    text-decoration: underline;
}

/* Fix heading hierarchy visual consistency */
h3.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

h3.mb-2 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Form section headings */
.glass-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.estimate-benefits h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.estimate-benefits h3 {
    font-size: 1rem;
    font-weight: 600;
}

.benefit-item h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Cards */
.service-card,
.blog-card,
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.service-card:hover,
.blog-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    width: 30px;
    height: 30px;
}

/* Features */
.feature-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-small i {
    width: 20px;
    height: 20px;
}

/* Testimonials */
.rating-summary .stars i {
    width: 24px;
    height: 24px;
    color: #fbbf24;
    fill: currentColor;
}

.star-filled {
    color: #fbbf24;
    fill: currentColor;
}

.star-empty {
    color: #d1d5db;
}

.customer-avatar {
    width: 50px;
    height: 50px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.trust-stat {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Blog */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h3,
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* Service Areas */
.service-area-item {
    padding: 1rem;
    text-align: center;
}

.service-area-item i {
    width: 30px;
    height: 30px;
}

/* Footer */
footer {
    background-color: #1f2937 !important;
}

footer h5,
footer h6 {
    color: var(--accent-color);
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .truck-container {
        padding: 1.5rem;
    }
    
    .truck-icon {
        width: 60px;
        height: 60px;
    }
    
    .lead-form-wrapper {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .lead-form-wrapper iframe {
        height: 400px !important;
    }
    
    .form-header h3 {
        font-size: 1.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;
}

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

/* Accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section,
    .page-header {
        background: none !important;
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #004499;
        --text-dark: #000000;
        --text-muted: #333333;
    }
}

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

/* Owner Photo Styling */
.owner-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.owner-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Feature Icon Styling for About Page */
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon-wrapper i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Mega Menu Styling - Complete Rewrite */
.mega-menu {
    min-width: 800px !important;
    width: 800px;
    padding: 2rem;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    margin-top: 1rem;
    position: absolute !important;
    z-index: 1000;
    left: 0 !important;
    transform: none !important;
}

.mega-menu .container {
    max-width: 100%;
    padding: 0;
}

.mega-menu .row {
    margin: 0;
    gap: 2rem;
}

.mega-menu .col-md-6 {
    flex: 1;
    padding: 0;
    min-width: 350px;
}

.mega-menu .dropdown-header {
    font-size: 1.1rem !important;
    padding: 0.5rem 0 1rem 0 !important;
    border-bottom: 2px solid var(--primary-color) !important;
    margin-bottom: 1rem !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-transform: none !important;
    display: block !important;
}

.mega-menu .dropdown-item {
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 0.25rem !important;
    transition: all 0.3s ease !important;
    color: #374151 !important;
    font-weight: 500 !important;
    display: block !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 0.95rem !important;
}

.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6) !important;
    color: white !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    text-decoration: none !important;
}

/* Fix dropdown text duplication issues */
.dropdown-menu .dropdown-item::before,
.dropdown-menu .dropdown-item::after {
    display: none !important;
}

.mega-menu .col-md-6 {
    position: relative;
    min-width: 280px;
}

.mega-menu .dropdown-item {
    position: relative;
    overflow: visible;
    min-width: 220px;
    line-height: 1.4;
}

/* Ensure proper Bootstrap dropdown behavior */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

@media (max-width: 768px) {
    .mega-menu {
        min-width: 320px;
        padding: 1rem;
    }
    
    .mega-menu .row {
        flex-direction: column;
    }
    
    .mega-menu .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}

/* Service Page Styling */
.service-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.process-step {
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    position: relative;
}

.process-number::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.process-step h5 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.process-step p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .service-detail-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .process-step {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .process-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .process-step h5 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .process-step p {
        font-size: 1rem;
    }
}
