/* ============================================================
   custom.css — DNA Home Solutions
   Place this file at: css/custom.css
   Link it AFTER style.css in header.php
   ============================================================ */


/* ----------------------------------------------------------
   1. NAVBAR LOGO HEIGHT FIX
   Inline style `height:100px` moved here for maintainability
   ---------------------------------------------------------- */
.navbar-brand img {
    height: 100px;
    width: auto;
}


/* ----------------------------------------------------------
   2. ABOUT SECTION — IMAGE BORDER RADIUS FIX
   Inline styles on <img> moved to CSS
   ---------------------------------------------------------- */
.about-img-top {
    margin-bottom: -7px;
}

.about-img-bottom {
    border-top-right-radius: 300px;
    border-top-left-radius: 300px;
}


/* ----------------------------------------------------------
   3. TOPBAR HEIGHT FIX
   Inline style `height:45px` on social icons wrapper
   ---------------------------------------------------------- */
.topbar-social {
    height: 45px;
}


/* ----------------------------------------------------------
   4. CLIENT / BRAND LOGO SLIDER
   Infinite horizontal scroll animation
   ---------------------------------------------------------- */
.client-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

.client-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    margin: 0 30px;
}

.client-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: none;      /* always color */
    opacity: 1;        /* full visibility */
    transition: 0.3s ease;
}

.client-logo img:hover {
    transform: scale(1.05); /* only zoom effect */
}

@keyframes scrollLogos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   5. COUNTER SECTION
   Ensure counters are readable and bold
   ---------------------------------------------------------- */
.counter-box .display-5 {
    font-weight: 700;
}


/* ----------------------------------------------------------
   6. WHY CHOOSE US CARDS
   Equal height hover effect
   ---------------------------------------------------------- */
#why-choose-us .col-md-4 > div {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#why-choose-us .col-md-4 > div:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px);
}


/* ----------------------------------------------------------
   7. FAQ / ACCORDION CUSTOM STYLING
   Removes default Bootstrap accordion border-radius issues
   ---------------------------------------------------------- */
.custom-faq .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: #f0f4ff;
    box-shadow: none;
}

.custom-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.custom-faq .accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    border-radius: 6px !important;
    overflow: hidden;
}


/* ----------------------------------------------------------
   8. CONTACT FORM — INPUT TYPE FIX
   `type="phone"` is not a valid HTML attribute; fixed to `type="tel"` in PHP.
   Style phone input same as others (no extra fix needed).
   ---------------------------------------------------------- */


/* ----------------------------------------------------------
   9. FOOTER LINK STYLES
   Ensure footer links have consistent spacing and hover color
   ---------------------------------------------------------- */
.footer-item a {
    display: block;
    padding: 4px 0;
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #fff;
}


/* ----------------------------------------------------------
   10. BACK TO TOP BUTTON
   Ensure it stays above everything
   ---------------------------------------------------------- */
.back-to-top {
    z-index: 9999;
}


/* ----------------------------------------------------------
   11. TESTIMONIAL AVATAR FIX
   Inline width/height on wrapper moved to CSS
   ---------------------------------------------------------- */
.testimonial-item .rounded-circle {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-item .rounded-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ----------------------------------------------------------
   12. CAROUSEL CAPTION MAX-WIDTH
   Inline `max-width:900px` moved here
   ---------------------------------------------------------- */
.carousel-caption .text-center {
    max-width: 900px;
    margin: 0 auto;
}


/* ----------------------------------------------------------
   13. CONTACT PAGE SOCIAL SHARE BOX
   Inline width/height/border-radius moved here
   ---------------------------------------------------------- */
.contact-social-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 10px;
}


/* ----------------------------------------------------------
   14. GENERAL RESPONSIVE FIXES
   ---------------------------------------------------------- */

/* Prevent horizontal overflow on mobile */
body {
    overflow-x: hidden;
}

/* Fix navbar toggler on mobile */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 70px;
    }

    .carousel-caption h3.display-3 {
        font-size: 1.8rem;
    }

    .carousel-caption h4,
    .carousel-caption h5 {
        font-size: 1rem;
    }

    .carousel-caption p.fs-5 {
        font-size: 0.95rem !important;
    }
}

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