/* Exodus 8 Pest Control - Custom Styles */

/* Color Variables */
:root {
    --primary-red: #C41E3A;
    --dark-red: #B22222;
    --dark-charcoal: #2C2C2C;
    --light-gray: #F5F5F5;
    --warm-gray: #666666;
    --white: #FFFFFF;
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

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

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

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-charcoal);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-charcoal);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
}

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-section h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-outline-light:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-red);
}

/* Services Section */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

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

.service-icon {
    transition: transform 0.3s ease;
}

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

.card-title {
    color: var(--dark-charcoal);
}

.card-text {
    color: var(--warm-gray);
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

.about-section img {
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Values Section */
.values-section {
    background-color: var(--white);
}

.values-section .bg-primary {
    transition: transform 0.3s ease;
}

.values-section .text-center:hover .bg-primary {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
}

.form-label {
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Footer */
footer {
    background-color: var(--dark-charcoal) !important;
}

footer .text-muted {
    color: var(--warm-gray) !important;
}

/* Utility Classes */
.text-muted {
    color: var(--warm-gray) !important;
}

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

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--dark-charcoal) !important;
        min-height: auto !important;
    }
    
    .hero-section h1,
    .hero-section .lead {
        color: var(--dark-charcoal) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Animation for Icons */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.service-icon i {
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Hover Effects */
.card-body:hover {
    background-color: rgba(196, 30, 58, 0.02);
}

.values-section .text-center:hover h5 {
    color: var(--primary-red);
    transition: color 0.3s ease;
}

/* Contact Info Hover Effects */
.contact-section a:hover {
    color: var(--primary-red) !important;
    transition: color 0.3s ease;
}

/* Form Validation Styling */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Loading State for Form */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success Message Styling */
.alert-success .fas {
    color: #28a745;
}

.alert-danger .fas {
    color: #dc3545;
}

.alert-warning .fas {
    color: #ffc107;
}