/* Main Styles for Fresh Coat Painting */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(to right, #3a8999, #5ba7b6, #3a8999);
    padding: 12px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding: 5px 0;
}

.logo img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.contact-phone {
    text-align: center;
    flex-grow: 1;
}

.contact-phone a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-phone a:hover {
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.main-nav {
    margin-right: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

.main-nav a:hover {
    color: #f0f0f0;
}

.main-nav li.active a {
    border-bottom: 2px solid white;
}

.main-nav li:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.main-nav li:hover:after {
    width: 100%;
}

.main-nav li.active:after {
    width: 100%;
}

.login-button a {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-button a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bootstrap Overrides and Custom Styles */
.bg-primary {
    background-color: #5ba7b6 !important;
}

.btn-primary {
    background-color: #5ba7b6 !important;
    border-color: #5ba7b6 !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4a96a5 !important;
    border-color: #4a96a5 !important;
}

.btn-outline-light:hover {
    color: #5ba7b6 !important;
}

.bg-image-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Form Styles */
.form-control:focus {
    border-color: #5ba7b6;
    box-shadow: 0 0 0 0.25rem rgba(91, 167, 182, 0.25);
}

.form-label.small {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Navbar Styles */
.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
    font-size: 1.15rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #5ba7b6;
}

.navbar-light .navbar-nav .nav-link.active {
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background-color: #5ba7b6;
}

/* Enhanced Header Styles */
header.bg-white {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
    margin-right: 0;
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

@media (min-width: 992px) {
    .navbar .container {
        max-width: 1140px;
        margin: 0 auto;
    }
}

.navbar-nav .nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:not(:last-child):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #5ba7b6;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover:not(:last-child):after {
    width: 80%;
    left: 10%;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 60px;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 1.1rem;
    }

    .navbar-light .navbar-nav .nav-link.active:after {
        left: 0.7rem;
        right: 0.7rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        margin-right: 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-light .navbar-nav .nav-item {
        text-align: center;
    }

    .navbar-light .navbar-nav .nav-link.active:after {
        display: none;
    }

    .navbar-light .navbar-nav .nav-link.active {
        background-color: rgba(91, 167, 182, 0.1);
        border-radius: 4px;
    }

    .card:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 50px;
    }

    .bg-image-cover {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Main content area */
main {
    flex: 1 0 auto;
    padding-bottom: 2rem; /* Add space between content and footer */
    min-height: 50vh; /* Ensure there's always some minimum height */
}

/* Enhanced Footer Styles */
.footer-gradient {
    background: #1a4a53; /* Solid teal color matching the image */
    flex-shrink: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    background-color: white;
    padding: 10px 15px;
    border-radius: 12px;
}

footer a:hover .footer-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-heading {
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links li, .footer-contact li {
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: #5ba7b6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Homepage Specific Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

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

.card {
    overflow: hidden;
}

.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.testimonial-quote {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote .bi-quote {
    opacity: 0.3;
}

/* Testimonial Carousel Styles */
#testimonialCarousel {
    padding-bottom: 50px;
}

#testimonialCarousel .carousel-indicators {
    bottom: 0;
}

#testimonialCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

#testimonialCarousel .carousel-indicators button.active {
    background-color: white;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#testimonialCarousel .carousel-control-prev {
    left: -50px;
}

#testimonialCarousel .carousel-control-next {
    right: -50px;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

#testimonialCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 991.98px) {
    #testimonialCarousel .carousel-control-prev {
        left: -20px;
    }

    #testimonialCarousel .carousel-control-next {
        right: -20px;
    }
}

@media (max-width: 767.98px) {
    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }

    .testimonial-quote {
        min-height: 300px;
    }
}

/* Service Cards */
.services-section .card {
    border-radius: 8px;
    overflow: hidden;
}

.services-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Welcome Section */
.welcome-section .bi {
    color: #5ba7b6;
}

footer .list-unstyled li a {
    font-size: 1rem;
    padding: 0.25rem 0;
    display: inline-block;
}

footer img {
    transition: transform 0.3s ease;
}

footer a:hover img {
    transform: scale(1.02);
}

footer .border-top {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 991.98px) {
    footer img {
        max-height: 60px;
    }

    footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer-gradient {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    .footer-heading {
        margin-top: 1rem;
    }

    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section {
        text-align: center;
    }

    .footer-links, .footer-contact {
        display: inline-block;
        text-align: left;
    }

    .social-icons {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .list-inline {
        margin-top: 0.75rem;
    }

    /* Ensure proper spacing on mobile */
    main {
        padding-bottom: 1rem;
    }
}
