/* Custom CSS for Chris Bailey Handyman Website */

:root {
    --primary-color: #1e3a2e;
    --secondary-color: #2d5016;
    --accent-color: #d2691e;
    --light-color: #f5f5dc;
    --dark-color: #1e3a2e;
    --success-color: #228b22;
    --warning-color: #ffd700;
    --danger-color: #dc143c;
    --earth-brown: #8b4513;
    --forest-green: #355e3b;
    --pine-green: #01796f;
    --maryland-gold: #ffd700;
    --maryland-red: #dc143c;
    --warm-gray: #696969;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #d35400;
    border-color: #d35400;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--forest-green) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 76px; /* Account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

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

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.badge-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-item i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.hero-actions {
    margin-top: 2rem;
}

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

.image-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Value Cards */
.value-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--forest-green);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top-color: var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--forest-green), var(--pine-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.3rem;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Outdoor/Lifestyle Section */
.outdoor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.outdoor-badge {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.outdoor-badge:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.3);
}

.outdoor-badge i {
    color: white;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.outdoor-badge span {
    font-weight: 600;
    color: white;
}

.outdoor-image {
    margin-left: 2rem;
}

.outdoor-image img {
    border: 3px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outdoor-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Hero Image Styling */
.hero-image img {
    border: 3px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Maryland Map */
.maryland-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.maryland-map {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.maryland-map:hover {
    transform: scale(1.05);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--forest-green);
}

.location-item:hover {
    transform: translateY(-2px);
    border-left-color: var(--maryland-gold);
}

.location-item i {
    color: var(--forest-green);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    position: relative;
}

.stars {
    color: var(--warning-color);
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light-color);
}

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-form .form-control {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--dark-color);
}

.contact-form .form-control:focus {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color) !important;
}

/* Footer */
.veteran-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 600;
}

.veteran-badge i {
    color: var(--maryland-gold);
}

.maryland-mini-flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(
        45deg,
        var(--maryland-gold) 0%,
        var(--maryland-gold) 50%,
        var(--maryland-red) 50%,
        var(--maryland-red) 100%
    );
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
}

.maryland-mini-flag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--forest-green);
    border-radius: 50%;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .badge-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
        justify-content: center;
    }
    
    .section-title::after {
        left: 50%;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .veteran-badge {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .outdoor-badges {
        justify-content: center;
    }
    
    .outdoor-badge {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
        justify-content: center;
    }
    
    .outdoor-image-placeholder {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .maryland-map {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .badge-item {
        flex: 1 1 100%;
    }
    
    .outdoor-badge {
        flex: 1 1 100%;
    }
    
    .maryland-map {
        max-width: 200px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

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

/* Alert Styling */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

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