/* =========================================================
   HONEY DO HELPER — UNIFIED STYLESHEET
   Merged and optimized for desktop & mobile
   ========================================================= */

/* ---------------- HERO SECTION ---------------- */
.hero {
    height: 100vh;
    background: url("/assets/backyard1.jpeg") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero > div {
    position: relative;
    z-index: 1;
}

.hero img {
    max-width: 300px;
    width: 80%;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero img {
        max-width: 200px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* ---------------- NAVBAR ---------------- */
.navbar img {
    max-width: 50px;
    height: auto;
}

#mainNav {
    transition: background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.6);
}

#mainNav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

#mainNav:hover {
    background-color: rgba(0, 0, 0, 1);
}

/* Desktop navbar - left aligned logo, right aligned menu */
@media (min-width: 992px) {
    .navbar-brand {
        margin-right: auto;
    }

    .navbar-collapse {
        justify-content: flex-end;
    }
}

/* Mobile Navbar Alignment */
@media (max-width: 991px) {
    /* Center the logo on mobile */
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1;
    }

    /* Keep toggler on the right */
    .navbar-toggler {
        margin-left: auto;
        position: relative;
        z-index: 2;
    }

    /* Center all menu items when expanded */
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav {
        align-items: center !important;
        width: 100%;
        text-align: center;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1.1rem;
        display: block;
        text-align: center;
    }

    /* Center and style the Call Now button */
    .navbar-nav .btn,
    .navbar-nav .btn-outline-light {
        width: 80% !important;
        max-width: 250px;
        margin: 0.75rem auto !important;
        display: block !important;
        text-align: center;
    }

    /* Ensure Facebook icon is centered */
    .nav-item .nav-link i {
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 575px) {
    .navbar-brand img {
        width: 40px;
        height: 32px;
    }

    .navbar-nav .nav-link {
        font-size: 1rem !important;
    }
}

/* ---------------- SERVICES SECTION ---------------- */
#services {
    background: #f5f5f5;
    color: #333;
    text-align: center;
}

#services h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

#services .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    flex: 1 1 280px;
    max-width: 320px;
    margin: 0 auto;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h4 {
    color: #333;
    font-weight: 600;
    margin: 1rem 0;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---------------- PROJECTS SECTION ---------------- */
#projects {
    background-color: #4a4a4a;
    color: #ffffff;
}

.card {
    transition: transform 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-body img:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ---------------- ABOUT SECTION ---------------- */
#about .col-md-5,
#about .col-md-7 {
    text-align: left;
}

#about img {
    border-radius: 12px;
}

/* ---------------- CONTACT SECTION ---------------- */
#contact {
    background: linear-gradient(180deg, #eeeeee, #dddddd);
    color: #333333;
}

/* ---------------- REVIEW FORM ---------------- */
.logo-header {
    text-align: center;
}

.review-form-container {
    margin: 0 auto;
    max-width: 700px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .review-form-container {
        padding: 1.5rem;
    }
}

/* ---------------- CAROUSEL CONTROLS ---------------- */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background-size: 70%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ---------------- FOOTER ---------------- */
footer .col-md-4 {
    text-align: left;
}

footer h5 {
    font-size: 1.25rem;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

/* Mobile Footer */
@media (max-width: 767px) {
    footer .col-md-4 {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    footer p,
    footer li {
        font-size: 0.95rem;
    }

    footer ul {
        padding-left: 0 !important;
    }

    footer .btn {
        display: block;
        width: 80%;
        max-width: 250px;
        margin: 1rem auto 0;
    }
}

/* ---------------- GLOBAL MOBILE OPTIMIZATION ---------------- */
@media (max-width: 767px) {
    section h2,
    section h3,
    section h4,
    section h5,
    section p,
    section .lead {
        text-align: center !important;
    }

    #services .row,
    #projects .row {
        flex-wrap: wrap !important;
    }

    .service-card,
    .card {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    #about .col-md-5,
    #about .col-md-7 {
        text-align: center !important;
    }

    #about img {
        max-width: 250px;
        margin: 0 auto 2rem;
    }

    #contact {
        text-align: center !important;
    }

    #contact .form-label {
        text-align: center !important;
        display: block;
    }

    #contact .form-control,
    #contact button {
        width: 100%;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline-light {
        display: inline-block;
        margin: 0 auto;
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    section {
        padding: 2rem 0 !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card .btn {
        display: inline-block;
        margin: 0 auto;
    }

    /* Project pages specific */
    main h1 {
        font-size: 1.75rem !important;
        text-align: center;
        padding: 0 15px;
        margin-bottom: 2rem !important;
    }

    .list-unstyled {
        text-align: left !important;
        padding-left: 0 !important;
    }

    .list-unstyled li {
        text-align: left !important;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: flex-start;
    }

    .list-unstyled li i {
        flex-shrink: 0;
        margin-top: 0.25rem;
    }

    .card-body p {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .card-title {
        text-align: center;
        font-size: 1.1rem;
    }

    .card-text {
        text-align: center;
        font-size: 0.95rem;
    }
}