/* ============================================================
   SITE FOOTER STYLES (shared) — contractorcss.css se EXACT same
   footer rules ka extract, un pages ke liye jo poori
   contractorcss.css load nahi karte (list-your-business.php etc.).
   Homepage par contractorcss.css hi footer style karti hai — design
   badalna ho to DONO files me badlo (ya sab pages ko is file par le aao).
   footer.php partial ke saath use hoti hai.
   ============================================================ */

.footer-section2 {
    background: #001bb3;
    color: #fff;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
    border-top: 2px solid rgba(255,255,255,.35);
}

/* TITLE */
#footerh2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.3;
    padding: 0 10px;   /* breathing room so it never touches the screen edge */
}

@media (max-width:599px){
  .footer-section2{padding:32px 16px 16px;}
  #footerh2{font-size:21px;margin-bottom:16px;}
}

/* CITY GRID */
.city-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.55) rgba(255,255,255,.12);
}
.city-grid::-webkit-scrollbar{ width: 6px; }
.city-grid::-webkit-scrollbar-track{ background: rgba(255,255,255,.12); border-radius: 6px; }
.city-grid::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.55); border-radius: 6px; }
.city-grid::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.75); }

/* CITY TAG STYLE — light glass pill so it stays visible on the blue footer */
.city-grid span,
.city-grid a {
    display: inline-block;
    background: rgba(255,255,255,.12);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    cursor: pointer;
    transition: 0.3s;
}

/* Hover sirf MOUSE wale devices par — mobile par chipakta nahi */
@media (hover: hover) and (pointer: fine) {
    .city-grid span:hover,
    .city-grid a:hover {
        background: #fff;
        color: #001bb3;
        border-color: #fff;
        transform: scale(1.05);
    }
}

/* Touch par: dabao to pop, ungli uthao to wapas — instant */
.city-grid span:active,
.city-grid a:active {
    background: #fff;
    color: #001bb3;
    border-color: #fff;
    transform: scale(1.05);
}

/* FOOTER BOTTOM */
.lfooter{
  display: flex; flex-wrap: wrap; flex-direction: row;
  justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 25px; padding: 10px 20px 30px;
}

/* Logo chhota rakha gaya hai (page request) — homepage par 140px hai,
   yahan 100px => height ~50px (aspect ratio same rehta hai). */
.lfooter img {
    width: 100px;
    max-width: 40vw;
    margin-bottom: 0;
}

.lfooter p {
    font-size: 13px;
    color: #fff;
}

/* LINE — divider (homepage par contractorcss ki BAAD wali .line2 rule
   jeetti hai — background .2 / margin 15px — wahi values yahan) */
.line2 {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-top: 15px;
}

/* Logo + "Verified contractor network" badge, side by side */
.lfooter-brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.sf-verified2{display:inline-flex;align-items:center;gap:7px;color:#8bd4a5;font-size:12.5px;font-weight:600;white-space:nowrap;}
.sf-verified2 i,.sf-verified2 .material-icons-outlined{color:#37c871;}

@media (max-width:599px){
  .lfooter{flex-wrap:wrap;justify-content:space-between;gap:8px 14px;padding:0px 2px 2px; width: 100%;}
  .lfooter-brand{gap:8px;}
  .lfooter img{width:50px;max-width:50px;margin-bottom:0;}
  .sf-verified2{font-size:6px;}
  .lfooter p{font-size:6px;}
}

/* ---- Copyright text: hover sirf mouse par ---- */
.act {
    transition: color .3s, font-size .3s;
    margin-top: 1%;
}
@media (hover: hover) and (pointer: fine) {
    .act:hover {
        color: rgb(128, 152, 228);
        font-size: 12px;
    }
}
.act:active {
    color: rgb(58, 84, 186);
}

/* ---- Bottom logo: transition + hover(mouse only) + tap-and-return(touch) ---- */
.footerlogo {
    transition: transform .3s ease;
    height: 50px;
}
@media (hover: hover) and (pointer: fine) {
    .footerlogo:hover {
        transform: scale(1.2);
    }
}
.footerlogo:active {
    transform: scale(1.2);
}


.footer-section {
    background: #001bb3 !important;
    color: #fff;
    padding: 50px 20px 53px;
    font-family: Arial, sans-serif;
    border-radius: 10px;
}

/* GRID LAYOUT */
.footer-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.footer-column{
    margin-top: 20px;
    margin-left: 10px;
    color: white;
}

/* FOOTER HEADINGS */
.footer-column h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #f5c542;
}

/* LINKS */
.footer-column .a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 8px 0;
    font-size: 14px;
    transition: 0.3s;
}

.footer-column .a:hover {
    color: #fff;
    padding-left: 5px;
}

/* OUR SERVICES — scrolls within its own box */
.services-scroll{
    max-height: 164px;   /* ~6 links visible before scrolling */
    overflow-y: auto;
    padding-right: 6px;
}
.services-scroll .a{
    color: #fff;
    line-height: 18px;
}
.services-scroll .a:hover{
    color: #f5c542;
}
.services-scroll::-webkit-scrollbar{ width: 6px; }
.services-scroll::-webkit-scrollbar-track{ background: rgba(255,255,255,.08); border-radius: 6px; }
.services-scroll::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.35); border-radius: 6px; }
.services-scroll::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.55); }

/* OFFICE BOXES */
.headoffice,
.techoffice {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    padding: 10px;
    border-left: 2px solid #f5c542;
    margin-top: 20px;
}

/* LINE (footer-section grid ke andar full-width) */
.footer-section .line2 {
    grid-column: 1 / -1;
}


@media (max-width:500px) {
  /* FOOTER 1 */
    .footer-section{
        grid-template-columns:1fr;
        gap:18px;
        padding:30px 15px;
    }

    .footer-column{
        margin:0;
    }

    .footer-column h3{
        font-size:15px;
    }

    .footer-column .a{
        font-size:13px;
    }

    .services-scroll{
        max-height: 170px;
    }

    .headoffice,
    .techoffice{
        font-size:12px;
        margin-top:10px;
        border-left:3px solid #f5c542;
    }
}
