/* Your Bootstrap overrides go here */

/* Fonts */
html body {
    font-family: 'Roboto', sans-serif;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
    font-family: 'Roboto', sans-serif;
}
p, ul {
    font-size: 1.2em;
}
li {
    padding-bottom: 1.2em;
}
html body a {
    color: #cc3333;
}
html body a:hover {
    color: #ab2828;
}


/* Navigation & Footer */
html body .navbar-expand-xl .navbar-collapse {
    padding-top: 1em;
}
html body nav.navbar .navbar-nav .nav-link {
    border-radius: 0.375rem !important;
    transition: all 0.3s ease !important;
}
html body nav.navbar .navbar-nav .nav-link.active {
    background-color: #cc3333;
    border: #cc3333;
    color: white;
    border-radius: 0.375rem !important;
}
html body nav.navbar .navbar-nav .nav-link:hover {
    background-color: #ab2828;
    border: #ab2828;
    color: white;
    border-radius: 0.375rem !important;
}
html body nav.navbar .navbar-nav .nav-link:focus,
html body nav.navbar .navbar-nav .nav-link:active {
    background-color: #cc3333;
    border: #cc3333;
    color: white;
    border-radius: 0.375rem !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Mobile navigation text color */
@media (max-width: 1199px) {
    nav.navbar .navbar-nav .nav-link:hover,
    nav.navbar .navbar-nav .nav-link:focus,
    nav.navbar .navbar-nav .nav-link.active {
        color: #ab2828 !important;
    }
}
html body footer .nav .nav-link:hover {
    color: #ab2828;
}
html body footer .nav .nav-link {
    color: white;
}
html body .back-top {
    background-color: #cc3333;
}
html body .back-top:hover {
    background-color: #ab2828;
}
/* Forms */
.field {
    padding-top: 1.2em;
}
/* Buttons */
html body .btn {
    background-color: #cc3333;
    border: #cc3333;
    color: white;
    border-radius: 0.375rem !important;
}
html body .btn:hover {
    background-color: #ab2828;
    border: #ab2828;
    color: white;
    border-radius: 0.375rem !important;
}

/* Specific PageType Overrides */

/* Services Page */
/* Mobile styles for services */
@media (max-width: 767px) {
    .service-item {
        margin-bottom: 2rem;
    }
    
    .service-image {
        margin-bottom: 1rem;
    }
}

/* Optional styling for services */
.service-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-title {
    margin-bottom: 1rem;
}

/* Custom CSS for Projects Teaser */

/* Custom 5-column grid for larger screens */
@media (min-width: 992px) {
    .row .col-lg-2-4 {
        flex: 0 0 auto !important;
        width: 20% !important;
        max-width: 20% !important;
    }
}

/* Project teaser container */
.project-teaser-item {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
}

.project-teaser-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Project image styling */
.project-teaser-item .project-image {
    transition: transform 0.3s ease !important;
    height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block !important;
    border-radius: 0.5rem !important;
}

.project-teaser-item:hover .project-image {
    transform: scale(1.05) !important;
}

/* Project overlay styling */
.project-teaser-item .project-overlay {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    padding: 1rem !important;
}

.project-teaser-item:hover .project-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure the link covers the entire card */
.project-teaser-item .stretched-link::after {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    content: "" !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-teaser-item .project-image {
        height: 200px !important;
    }
    
    .project-teaser-item .project-overlay {
        padding: 0.75rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .project-teaser-item .project-image {
        height: 220px !important;
    }
}

/* Project Navigation Pills and Badges */

/* Navigation pills for project filtering */
html body .project-filters .nav-pills .nav-link {
    color: #6c757d !important;
    background-color: transparent !important;
    border: 1px solid #dee2e6 !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

html body .project-filters .nav-pills .nav-link:hover {
    color: #cc3333 !important;
    background-color: rgba(204, 51, 51, 0.1) !important;
    border-color: #cc3333 !important;
}

html body .project-filters .nav-pills .nav-link.active {
    color: white !important;
    background-color: #cc3333 !important;
    border-color: #cc3333 !important;
}

/* Badge colors */
html body .badge.bg-primary {
    background-color: #cc3333 !important;
    border-color: #cc3333 !important;
}

html body .badge.bg-secondary {
    background-color: #ab2828 !important;
    border-color: #ab2828 !important;
}

html body .badge.bg-primary-subtle {
    background-color: rgba(204, 51, 51, 0.1) !important;
    border-color: rgba(204, 51, 51, 0.1) !important;
}

html body .text-primary {
    color: #cc3333 !important;
}

/* Alert colors for consistency */
html body .alert-primary {
    background-color: rgba(204, 51, 51, 0.1) !important;
    border-color: rgba(204, 51, 51, 0.2) !important;
    color: #cc3333 !important;
}

/* Link colors in alerts */
html body .alert-primary .alert-link {
    color: #ab2828 !important;
}

/* Outline button styling for projects */
html body .btn-outline-primary {
    color: white !important;
    background-color: #cc3333 !important;
    border-color: #cc3333 !important;
}

html body .btn-outline-primary:hover {
    color: white !important;
    background-color: #ab2828 !important;
    border-color: #ab2828 !important;
}

html body .btn-outline-primary:focus,
html body .btn-outline-primary:active {
    color: white !important;
    background-color: #ab2828 !important;
    border-color: #ab2828 !important;
}
