/* Custom CSS for White Bear Lake Home Inspections */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.service-icon {
    padding: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Property Type Cards */
.property-type-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.property-type-card:hover {
    transform: translateY(-3px);
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300, #ffa000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e4a8c);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e4a8c, #164080);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-info {
    text-align: center;
}

.contact-info i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Form Styling */
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: rgba(255, 255, 255, 0.95);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Navbar responsiveness */
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-link.btn {
        margin: 0.5rem 0;
        text-align: center;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hero content responsiveness */
    .hero-content .d-flex {
        flex-direction: column;
    }
    
    .hero-content .btn {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Ensure buttons don't overflow */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        max-width: 100%;
    }
}

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

.service-card, .property-type-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Background Patterns */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4a8c 100%) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    color: #495057 !important;
    border-top: 1px solid #dee2e6;
}

footer .text-light {
    color: #495057 !important;
}

footer .text-muted {
    color: #6c757d !important;
}

footer h5, footer h6 {
    color: #343a40 !important;
}

footer a.text-muted {
    color: #6c757d !important;
}

/* Sponsor Logo */
.sponsor-logo {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* Contact Footer */
.contact-footer .btn {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sponsor Header Logo */
.sponsor-header-logo {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.sponsor-header-logo:hover {
    transform: scale(1.1);
}

/* Sponsor Banner */
.sponsor-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.sponsor-banner a {
    transition: all 0.3s ease;
}

.sponsor-banner a:hover {
    transform: translateY(-1px);
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not(.loaded) {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Custom List Styling */
.list-unstyled li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

/* Icon Colors */
.text-primary { color: var(--primary-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }