/* Custom Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    /* Light blue background inspired by original */
    background-color: #f0f9ff;
}

/* Header/Navbar Styling */
.custom-navbar-bg {
    background-color: #2c4b32; /* Dark blue background */
    backdrop-filter: blur(10px);
}

.custom-navbar-bg .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.custom-navbar-bg .nav-link:hover {
    color: #38bdf8; /* Light blue on hover */
}

/* Main Carousel Styling */
.custom-carousel-split-height {
    /* Adjust this value based on desired look */
    height: 600px; 
    /* The parent element (section#hero) already has position: relative */
}

.carousel-track {
    display: flex;
    transition: transform 0.7s ease-in-out; /* Smooth slide transition */
}

.carousel-slide {
    flex: 0 0 100%; /* Each slide takes exactly 100% of the container width */
    min-width: 100%; /* Important for the transform logic */
    position: relative; /* REQUIRED: Makes the slide the positioning context for captions */
}

.custom-carousel-img {
    display: block; /* Ensures it behaves like a block element */
    width: 100%; /* Ensures it spans the full width */
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.6); 
}

/* === NEW/MODIFIED CAPTION STYLES === */

/* This class positions the caption container absolutely over the image */
.caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Helps center or position content inside */
    align-items: center; /* Vertically align text */
    justify-content: flex-start; /* Start text from the left */
    text-align: left;
    z-index: 5; /* Ensure it is above the image (which has z-index 1, implicitly) */
    pointer-events: none; /* Allows clicks to go through to buttons if needed */
    max-width: 500px;
}

.custom-caption-pos {
    /* Now that it's in the overlay, we use a Bootstrap container for standard width */
    /* Use padding to push content slightly off the edge */
    padding-left: 10%;
    padding-right: 10%;
    /* Override width to ensure it spans the container's width, if needed */
    width: 100%; 
    
    
    /* Ensure the text itself is visible */
    color: #ffffff; 
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
/* Button Shadow for Success Buttons */
.custom-btn-shadow {
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -2px rgba(5, 150, 105, 0.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* Custom arrow style */
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e");
}


/* Features Section */
.feature-icon {
    font-size: 3rem;
    color: #10b981; /* Success Green */
    transition: color 0.3s;
}

.feature-icon:hover {
    color: #059669; /* Darker Green */
}

/* Call to Action button shadow */
.custom-btn-shadow {
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -2px rgba(5, 150, 105, 0.2);
}

/* Services Card Styling */
.custom-card-img {
    height: 200px;
    object-fit: cover;
}

.custom-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* Testimonials Section */
.custom-bg-light {
    background-color: #e0f2fe; /* Lighter background for contrast */
}

.testimonial-carousel-track {
    /* Custom track setup for testimonial slides */
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%; /* Each slide takes 100% of the container width */
    min-width: 100%; /* Required for custom JS carousel logic */
}

.custom-star-rating {
    color: gold;
    font-size: 1.5rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #10b981; /* Green border for accent */
}

/* Testimonial Navigation (Reusing main carousel style where possible, but adjusting for placement) */
.custom-testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(16, 185, 129, 0.7); 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.custom-testimonial-nav:hover {
    opacity: 1;
    background-color: #10b981;
}
.testimonial-carousel-track + .carousel-control-prev { left: 0; }
.testimonial-carousel-track + .carousel-control-prev + .carousel-control-next { right: 0; }

.custom-map-placeholder {
    height: 200px;
    overflow: hidden;
}

/* Calculator specific styles */
.calculator-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.calculator-card:hover {
    transform: translateY(-3px);
}
.input-group-text {
    background-color: #10b981; /* Success Green */
    color: white;
    font-weight: 600;
    border: none;
}
.result-box {
    background-color: #e6ffed; /* Lighter success green */
    border: 2px solid #10b981;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}
/* Services Page Custom Styles */
.step-card:hover { transform: translateY(-5px); transition: transform 0.3s; }
