/*
   Custom Stylesheet for Your Renovation Your Way
   Author: [Your Name/Company]
   Version: 1.1 (with enhancements)
   Date: <?php echo date('Y-m-d'); ?>
*/

/* ----------------------------------------------------------------
    [Table of Contents]

    1. General Styles
    2. Typography
    3. Topbar
    4. Header / Navigation
    5. Hero Section / Carousel
    6. Section Styles (Padding, Titles)
    7. Buttons
    8. Feature Boxes
    9. Service Cards & Page Specifics
    10. Portfolio Styles
    11. Testimonial Styles
    12. Guide Styles (General & Individual)
    13. Contact Page Styles
    14. Footer Styles
    15. Utility Classes (e.g., Back to Top)
    16. Media Queries
------------------------------------------------------------------- */

/* ----------------------------------------------------------------
    1. General Styles
------------------------------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    color: #333; /* Standard text color */
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for the body */
}

a {
    color: #007bff; /* Primary link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker shade for link hover */
    text-decoration: none; /* Keep underline off on hover for consistency */
}

img {
    max-width: 100%;
    height: auto;
}

.card {
    border: none; /* Remove default card borders for a cleaner look with shadows */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow on hover */
}


/* ----------------------------------------------------------------
    2. Typography
------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #343a40; /* Darker color for headings */
}

.display-4, .display-5 { /* For prominent page titles */
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

/* Icon specific styling */
i.fas, i.far, i.fab {
    line-height: inherit; /* Ensure icons align well with text */
}

/* ----------------------------------------------------------------
    3. Topbar
------------------------------------------------------------------- */
.topbar {
    font-size: 0.85rem;
    background-color: #343a40; /* Ensure dark background */
    color: #f8f9fa; /* Light text for contrast */
}
.topbar a {
    color: #f8f9fa;
    transition: color 0.2s ease-in-out;
}
.topbar a:hover {
    color: #007bff; /* Primary color on hover */
}
.topbar .fab { /* Social icons in topbar */
    font-size: 1rem; /* Slightly larger for better visibility */
}

/* ----------------------------------------------------------------
    4. Header / Navigation
------------------------------------------------------------------- */
header.sticky-top .navbar {
    transition: padding 0.3s ease-in-out;
}

header.sticky-header .navbar { /* If you add a sticky-header class via JS */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #007bff !important; /* Primary color for brand */
}

.navbar-light .navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #007bff; /* Primary color for active/hover links */
}

.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dropdown-item {
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
    background-color: #007bff;
    color: white;
}
.dropdown-item i.fas, .nav-link i.fas {
    width: 1.2em; /* Consistent width for nav icons */
}

/* ----------------------------------------------------------------
    5. Hero Section / Carousel
------------------------------------------------------------------- */
.hero-carousel .hero-slide { /* Corrected from hero-slider */
    height: 600px; /* Default height */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.hero-content h1 {
    /* font-size: 3.5rem; already covered by display-4 */
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Subtle text shadow for readability */
}

.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
}
.carousel-indicators button.active {
    background-color: #007bff;
}

/* ----------------------------------------------------------------
    6. Section Styles (Padding, Titles)
------------------------------------------------------------------- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Space for the underline */
    margin-bottom: 20px; /* Original margin */
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0; /* Aligned to the bottom of h2 padding */
    left: 50%; /* Centered underline */
    transform: translateX(-50%);
    width: 80px; /* Slightly wider underline */
    height: 4px; /* Thicker underline */
    background: #007bff;
    border-radius: 2px; /* Rounded underline */
}
.section-title .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Page Header (for individual pages) */
.page-header {
    /* background-color: #007bff; already done by bg-primary */
    /* color: white; already done by text-white */
    padding: 60px 0; /* Adjust padding as needed */
}
.page-header h1 {
    color: white; /* Ensure h1 is white */
}
.page-header .breadcrumb-item a {
    /* color: #e9ecef; already text-white */
    opacity: 0.8;
}
.page-header .breadcrumb-item.active {
    /* color: white; already text-white */
    opacity: 1;
}


/* ----------------------------------------------------------------
    7. Buttons
------------------------------------------------------------------- */
.btn {
    padding: 10px 25px; /* Standard button padding */
    border-radius: 50px; /* Pill-shaped buttons */
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.75);
    color: white;
}
.btn-outline-light:hover {
    background-color: white;
    color: #007bff;
    border-color: white;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}
.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}


/* ----------------------------------------------------------------
    8. Feature Boxes (Used in multiple pages)
------------------------------------------------------------------- */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px; /* Slightly more rounded */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    background-color: white; /* Ensure background for shadow visibility */
    /* transition: all 0.3s ease; - covered by .card */
    /* height: 100%; - applied with Bootstrap class */
}

.feature-icon {
    font-size: 2.8rem; /* Slightly smaller for balance */
    color: #007bff;
    margin-bottom: 20px;
    line-height: 1;
}

.feature-box h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}
.feature-box p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ----------------------------------------------------------------
    9. Service Cards & Page Specifics
------------------------------------------------------------------- */
.service-card { /* Used on homepage */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    /* transition: all 0.3s ease; - covered by .card */
    display: flex;
    flex-direction: column;
}
.service-card .service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}
.service-card .service-content {
    padding: 25px;
    flex-grow: 1; /* Allows button to be pushed to bottom */
    display: flex;
    flex-direction: column;
}
.service-card .service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.service-card .service-content p {
    font-size: 0.9rem;
    flex-grow: 1;
}
.service-card .service-content .btn {
    margin-top: auto; /* Pushes button to bottom */
}

/* Specific service page cards (e.g., service-bathroom.php) */
.service-details-card .card-title i { /* For icons in service detail card titles */
    margin-right: 0.5em;
}
.service-details-card .list-unstyled i {
    width: 1.3em; /* Consistent icon spacing in lists */
    color: #007bff; /* Primary color for checkmarks */
}

/* Process step cards */
.process-icon span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.process-icon i { /* If icon is directly used instead of number */
    font-size: 1.75rem;
}


/* ----------------------------------------------------------------
    10. Portfolio Styles
------------------------------------------------------------------- */
.portfolio-filter button {
    /* border: none; - already done by btn btn-outline-primary */
    /* background: none; - already done by btn btn-outline-primary */
    font-weight: 600;
    /* padding: 8px 15px; - already done by btn */
    margin: 0 5px 10px; /* Added bottom margin for wrapping */
    /* border-radius: 3px; - already done by btn */
    cursor: pointer;
    transition: all 0.3s ease;
}
.portfolio-filter button.active {
    background: #007bff !important; /* Ensure override */
    color: white !important;
}

.portfolio-item .card-body { /* Ensure consistent padding for portfolio cards */
    padding: 1.25rem;
}

.portfolio-item .portfolio-img {
    height: 250px; /* Standardized height for portfolio grid images */
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--bs-card-inner-border-radius); /* Match card rounding */
    border-top-right-radius: var(--bs-card-inner-border-radius);
    /* transition: all 0.5s ease; - Handled by .card hover if needed */
}

/* Style for placeholder icons within images */
.portfolio-img div[style*="background-color"],
.service-featured-image div[style*="background-color"],
.guide-featured-image div[style*="background-color"],
.guide-img div[style*="background-color"] { /* For placeholder divs */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------------
    11. Testimonial Styles
------------------------------------------------------------------- */
.testimonial-item { /* Used for individual testimonial blocks */
    /* background: #f8f9fa; - Now using card class */
    padding: 20px; /* Reduced padding as it's now a card */
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
}
.testimonial-item .card-body { /* Specific padding for card structure */
    padding: 1.5rem;
}

.testimonial-item::after { /* Optional: Decorative quote */
    content: "\f10d"; /* FontAwesome quote-left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    color: rgba(0, 123, 255, 0.1); /* Lighter, branded quote */
    line-height: 1;
    z-index: 0;
}
.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    margin-bottom: 20px;
    /* font-style: italic; - applied with Bootstrap class fst-italic */
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #e9ecef; /* Placeholder bg */
}
.testimonial-author-img img { /* If actual image is used */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    margin-bottom: 3px;
    font-size: 1.1rem;
}
.testimonial-author-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 50% 50%;
}

/* ----------------------------------------------------------------
    12. Guide Styles (General & Individual)
------------------------------------------------------------------- */
.guide-card { /* Used on guides.php */
    /* border-radius: 10px; - inherited from .card */
    /* overflow: hidden; - inherited from .card */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); - inherited from .card */
    margin-bottom: 30px;
    /* transition: all 0.3s ease; - inherited from .card */
}

.guide-img.card-img-top { /* For guide listing page */
    height: 200px;
    background-size: cover;
    background-position: center;
}

.guide-card .card-body {
    padding: 20px;
}
.guide-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.guide-card .card-text {
    font-size: 0.9rem;
    color: #555;
}

/* Individual Guide Page (guide-1.php, etc.) */
.guide-featured-image div[style*="background-color"] {
    height: 350px; /* Specific height for individual guide feature image */
}
.challenge-item .card-title, .step-item .card-title, .strategy-item .card-title {
    color: #007bff; /* Primary color for challenge/step titles */
}
.challenge-item ul, .step-item ul, .strategy-item ul {
    padding-left: 1.2rem; /* Indent lists */
}
.challenge-item ul i, .step-item ul i, .strategy-item ul i {
    width: 1.4em; /* Spacing for list icons */
}
.related-guides ul {
    padding-left: 0;
}
.related-guides ul li a {
    color: #007bff;
}
.related-guides ul li a:hover {
    color: #0056b3;
}

/* ----------------------------------------------------------------
    13. Contact Page Styles
------------------------------------------------------------------- */
.contact-form {
    /* background: #f8f9fa; - now using .bg-white */
    padding: 30px;
    border-radius: 10px;
}

.contact-form .form-control, .contact-form .form-select {
    /* border-radius: 50px; - default Bootstrap rounding is fine */
    padding: 10px 15px; /* Standardized padding */
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-form textarea.form-control {
    /* border-radius: 20px; */
    resize: vertical; /* Allow vertical resize */
}

.contact-info-item {
    margin-bottom: 30px;
}
.contact-info-item i.fa-3x { /* For the large icons above text */
    margin-bottom: 15px;
}
.contact-info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.map-container div[style*="background-color"] { /* Map Placeholder */
    height: 300px;
    border-radius: 10px;
}


/* ----------------------------------------------------------------
    14. Footer Styles
------------------------------------------------------------------- */
footer.bg-dark { /* Ensure footer is dark */
    background-color: #212529 !important; /* Darker shade if #343a40 isn't enough */
    color: #adb5bd; /* Softer white for text */
}

footer h5 {
    color: white; /* Brighter for headings */
    margin-bottom: 1.25rem; /* More space below footer headings */
    font-size: 1.1rem;
}
footer h5 i {
    margin-right: 0.5em;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}
footer a:hover, .hover-white:hover { /* Combined hover style */
    color: white !important;
    text-decoration: none;
}
footer .fab { /* Social icons in footer */
    font-size: 1.25rem; /* Make them a bit larger */
    transition: transform 0.2s ease-in-out;
}
footer .fab:hover {
    transform: scale(1.2);
}
footer .border-top {
    border-color: rgba(255,255,255,0.15) !important; /* Lighter border in footer */
}


/* ----------------------------------------------------------------
    15. Utility Classes
------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default, shown by JS */
    z-index: 1030;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    visibility: hidden;
}
.back-to-top.show { /* Class added by JS to show button */
    display: inline-block;
    opacity: 1;
    visibility: visible;
}

.bg-primary-subtle { /* Custom class if not using BS 5.3+ */
    background-color: #e6f2ff; /* Example: a light blue */
}
.border-danger-subtle { border-color: #fde2e2 !important; }
.border-success-subtle { border-color: #dff0d8 !important; }
.border-info-subtle { border-color: #e2f3f5 !important; }
.border-warning-subtle { border-color: #fff3cd !important; }


/* ----------------------------------------------------------------
    16. Media Queries
------------------------------------------------------------------- */
@media (max-width: 991.98px) { /* Medium devices (tablets, less than 992px) */
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 1.8rem; /* 30px -> 28.8px */
    }
    .hero-carousel .hero-slide {
        height: 500px;
    }
}

@media (max-width: 767.98px) { /* Small devices (landscape phones, less than 768px) */
    .topbar {
        text-align: center;
    }
    .topbar .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
    .hero-carousel .hero-slide {
        height: 450px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 1.6rem; /* ~26px */
    }
    .section-title h2:after {
        width: 60px;
        height: 3px;
    }
    .btn, .btn-lg {
        padding: 10px 20px; /* Slightly smaller buttons on small screens */
        font-size: 0.95rem;
    }
    .feature-box, .service-card .service-content, .guide-card .card-body, .contact-form, .testimonial-item {
        padding: 20px; /* Reduce padding on smaller cards */
    }
}

@media (max-width: 575.98px) { /* Extra small devices (portrait phones, less than 576px) */
    .hero-carousel .hero-slide {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.5rem; /* ~24px */
    }
    .page-header h1 {
        font-size: 2rem; /* Reduce page header title size */
    }
    footer .col-md-3 { /* Stack footer columns nicely */
        text-align: center;
    }
    footer .col-md-3 ul {
        padding-left: 0;
    }
     footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}





/* From your style.css or the previously generated one */
.hero-carousel .hero-slide {
    height: 600px; /* Default height, adjust as needed */
    background-size: cover; /* This makes the image cover the area, cropping if necessary */
    background-position: center center; /* This centers the image */
    position: relative; /* For the overlay and content positioning */
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed for text readability */
}

/* Media queries for adjusting hero height on smaller screens (examples) */
@media (max-width: 991.98px) {
    .hero-carousel .hero-slide {
        height: 500px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .hero-slide {
        height: 450px;
    }
    /* You might also want to adjust font sizes for hero content here */
    .hero-content h1 {
        font-size: 2.2rem; /* Example adjustment */
    }
    .hero-content p {
        font-size: 1rem; /* Example adjustment */
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .hero-slide {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 1.8rem; /* Example adjustment */
    }
}


/* From your style.css (or the color-harmonized version) */
/* 9. Service Cards & Page Specifics */
.service-card { /* Used on homepage */
    border-radius: 10px;
    overflow: hidden; /* Important for ensuring rounded corners apply to the image div */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    background-color: var(--white); /* Or your card background color */
}

.service-card .service-img {
    height: 250px; /* Or your desired height for these images */
    background-size: cover;   /* Ensures the image covers the div, cropping if necessary */
    background-position: center center; /* Centers the image within the div */
    /* No background-color needed here if an image is present */
}

.service-card .service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* ... other service-card styles ... */