/* Custom styles for A. Nathan Brickwork */

:root {
    --brick-red: #8B4513;
    --warm-brown: #A0522D;
    --earthy-orange: #CD853F;
    --stone-gray: #696969;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--brick-red) 100%);
}

/* Custom card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Service icons styling */
.service-icon {
    background: linear-gradient(135deg, var(--bs-primary), var(--brick-red));
    color: white;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Custom button styling */
.btn-warning {
    background-color: var(--earthy-orange);
    border-color: var(--earthy-orange);
    color: white;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--warm-brown);
    border-color: var(--warm-brown);
    color: white;
}

/* Testimonial cards */
.testimonial-card {
    border-left: 4px solid var(--bs-primary);
}

/* Form styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #212529 0%, var(--stone-gray) 100%);
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    font-weight: 600;
    color: var(--earthy-orange) !important;
}

/* Badge styling for service areas */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--brick-red)) !important;
}

/* Process steps styling */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--bs-primary);
    z-index: -1;
}

/* Image overlay for better text readability */
.img-overlay {
    position: relative;
}

.img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.img-overlay > * {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease-in-out;
}

/* Standardized image sizes */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.carousel .img-fluid {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.hero-section .img-fluid,
.about-section .img-fluid {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

/* Gallery images in services */
.carousel-inner .img-fluid {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-section .img-fluid,
    .about-section .img-fluid {
        height: 250px;
    }
    
    .carousel-inner .img-fluid {
        height: 150px;
    }
}

/* Contact form enhancements */
.contact-info-item {
    transition: background-color 0.2s ease;
}

.contact-info-item:hover {
    background-color: var(--bs-light) !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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