/* JCatJanitorial Custom CSS */

/* Color Variables */
:root {
    --primary-black: #000000;
    --accent-red: #dc3545;
    --support-navy: #1a365d;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary-black);
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-custom {
    background-color: var(--primary-black) !important;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-brand img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--support-navy) 100%);
    padding: 120px 0 80px 0;
    margin-top: 76px;
    color: white;
    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 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Button Styles */
.btn-primary-custom {
    background: var(--accent-red);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Section Titles */
.section-title {
    color: var(--primary-black);
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* Card Styles */
.card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Before/After Gallery Styles */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.comparison-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.comparison-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.comparison-container:hover .comparison-image {
    filter: brightness(1.1);
}

.comparison-label {
    position: absolute;
    top: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.before-label {
    left: 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.after-label {
    right: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.comparison-container:hover .comparison-label {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Google Reviews Section */
.reviews-container {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.reviews-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-red), var(--support-navy));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reviews-container:hover::before {
    opacity: 1;
}

.review-placeholder {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px dashed var(--medium-gray);
    transition: all 0.3s ease;
}

.review-placeholder:hover {
    border-color: var(--accent-red);
    background: #fafafa;
}

/* Contact Section */
.contact-card {
    background: var(--support-navy);
    color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.contact-icon {
    background: var(--accent-red);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.is-invalid {
    border: 2px solid var(--accent-red) !important;
}

.invalid-feedback {
    color: var(--accent-red);
    font-weight: 500;
}

/* Footer Styles */
.footer-custom {
    background: var(--primary-black);
    color: white;
    padding: 50px 0 30px;
    position: relative;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--support-navy), var(--accent-red));
}

.footer-custom h5 {
    color: var(--accent-red);
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-custom a {
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: var(--accent-red) !important;
}

/* Utility Classes */
.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Icons */
.social-icon {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0;
        margin-top: 76px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .comparison-image {
        height: 200px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .comparison-image {
        height: 150px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .reviews-container {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-custom,
    .btn,
    .contact-card {
        display: none !important;
    }
    
    .hero-section {
        margin-top: 0;
        background: white !important;
        color: black !important;
    }
    
    .section-title::after {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--primary-black);
    }
    
    .btn-primary-custom {
        border: 2px solid var(--primary-black);
    }
    
    .comparison-label {
        border: 2px solid white;
    }
}

/* 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;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}