/* Custom Styles for Junk & Debris Industry Blog */

/* Logo sizing - always enforce max size */
.logo-img {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 600;
}

.site-title {
    font-size: 1.25rem;
    color: white;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-section img {
    max-width: 1024px !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Content sections */
.content-section {
    padding: 4rem 0;
}

/* Card enhancements - Uniform sizing */
.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-text {
    flex-grow: 1;
}

/* Ensure all cards in a row have equal height */
.row .card {
    height: 100%;
}

/* Card with images - uniform sizing */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Ensure cards with images maintain uniform height */
.card:has(.card-img-top) {
    display: flex;
    flex-direction: column;
}

.card:has(.card-img-top) .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Image styling */
.img-fluid {
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure images in rows are properly centered */
.row img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Center images in columns */
.col-md-6 img.img-fluid,
.col-md-8 img.img-fluid {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
}

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

/* Active nav link */
.navbar-nav .nav-link.active {
    color: #6b9f78 !important;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 300px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.contact-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Thank You Message Styles */
.thank-you-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.thank-you-box {
    background: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thank-you-icon {
    color: #28a745;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-icon svg {
    width: 64px;
    height: 64px;
}

.thank-you-title {
    color: #28a745;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.thank-you-text {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}
