/* Custom CSS Overrides for EG Construction */

/* Center CTA box content - theme sets display:flex without justify-content */
.call-to-action-area-service {
    justify-content: center !important;
}

/* Header One Navigation Spacing */
.heder-one {
    margin-top: 20px !important;
}




/* Fix sticky header overrides on mobile */
.heder-one.header--sticky {
    margin: 0 !important;
}

/* Fix go-to-top icon */
.progress-wrap::after {
    font-family: "Material Symbols Outlined" !important;
    font-weight: 900 !important;
    content: "\f062" !important; /* fa-arrow-up */
}

/* Fix contact form textarea font size */
.contact-form textarea, .contact-form input, .contact-form select {
    font-size: 16px !important;
}

/* Header cleanup */
.top .single-info.no-icon-location .icon {
    display: none !important;
}

.top .single-info.no-icon-location {
    display: flex !important;
    align-items: center !important;
}

.top .single-info.no-icon-location span {
    display: inline-block !important;
    line-height: 1.4 !important;
}

.top .single-info .fa-phone-alt,
.top .single-info .fa-phone-volume {
    font-family: "Material Symbols Outlined" !important;
    font-weight: 900 !important;
}

/* Keep the desktop top bar on a single clean row */
@media (min-width: 992px) {
    .heder-one .top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .heder-one .top .end-top {
        display: flex !important;
        align-items: center !important;
        gap: 36px !important;
        flex-wrap: nowrap !important;
        flex: 0 0 auto !important;
        min-width: max-content !important;
    }

    .heder-one .header-two-container .header-main-wrapper .rts-header-right .top .end-top .single-info:first-child::after {
        right: -21px !important;
    }

    .heder-one .top .start-top {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .heder-one .top .single-info {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
    }

    .heder-one .top .single-info .icon {
        flex: 0 0 auto !important;
        line-height: 1 !important;
    }

    .heder-one .top .single-info a,
    .heder-one .top .single-info span {
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
    }

    .heder-one .top .end-top .single-info a {
        font-size: 15px !important;
    }

    .heder-one .top .start-top .single-info span {
        font-size: 14px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Homepage headline sizing */
@media (min-width: 1200px) {
    .single-fun-facts-area .title {
        font-size: 56px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.02em !important;
    }

    .banner-inner-content-one .title {
        font-size: 72px !important;
        line-height: 1.05 !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .single-fun-facts-area .title {
        font-size: 44px !important;
        line-height: 1.1 !important;
    }
}

/* Homepage service cards */
.service-card-enhanced .water-mark {
    display: none !important;
}

.service-card-enhanced .inner {
    padding-top: 22px !important;
}

.service-card-thumb {
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.service-card-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card-enhanced .title {
    font-size: 30px !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
}

@media (max-width: 991px) {
    .service-card-thumb img {
        height: 160px;
    }

    .service-card-enhanced .title {
        font-size: 26px !important;
    }
}

/* Hide original go to top */
.progress-wrap {
    display: none !important;
}

/* Chat Widget Styles */
#custom-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
}

#chat-widget-button {
    width: 60px;
    height: 60px;
    background-color: #111111;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: bounce 5s infinite;
    transition: transform 0.3s;
}

#chat-widget-button:hover {
    transform: scale(1.1);
    animation: none;
}

#chat-widget-button img {
    width: 40px;
    height: auto;
    object-fit: contain;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

#chat-widget-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

#chat-widget-box.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.chat-header {
    background: #111111;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

#chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
}

.chat-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

#chat-contact-form input,
#chat-contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#chat-contact-form button {
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    #custom-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    #chat-widget-box {
        width: 300px;
        right: -10px; /* adjust for mobile padding */
    }
}

/* Fix chat success message */
#chat-success-msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#chat-success-msg.hidden {
    display: none !important;
}

/* Mobile Header UI */
@media (max-width: 768px) {
    /* Hide search icon on mobile */
    .header-main-wrapper .icon-area {
        display: none !important;
    }
    
    /* Make button yellow with phone icon */
    
    
    
}

/* Chat widget tweaks */
.chat-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    padding: 15px !important;
}
.chat-header h4 {
    white-space: nowrap !important;
    margin: 0 !important;
    text-align: left !important;
}
#chat-close-btn {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    text-align: right !important;
}

/* Mobile Quote/Phone Button */
.mobile-phone-btn {
    display: none !important;
}
@media (max-width: 768px) {
    .desktop-quote-btn {
        display: none !important;
    }
    .mobile-phone-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: #D4AF37 !important;
        color: #fff !important;
        border: none !important;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        flex-shrink: 0 !important;
        flex: 0 0 45px !important;
        max-width: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        line-height: 45px !important;
        border-radius: 5px !important;
        padding: 0 !important;
        margin-left: 10px !important;
        text-align: center !important;
    }
    .mobile-phone-btn i {
        font-size: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Tablet / Small Desktop Header Fixes */
@media (max-width: 1400px) {
    /* Hide the 'Serving...' text on smaller desktops to prevent squishing */
    .heder-one .top .start-top {
        display: none !important;
    }
    
    /* Prevent the logo from shrinking down to an unreadable size */
    .header-main-wrapper .logo-area, 
    .header-main-wrapper .logo-area a.logo {
        flex-shrink: 0 !important;
    }
    .header-main-wrapper .logo-area img {
        min-width: 140px;
    }
    
    /* Prevent the right area (quote button/search) from shrinking */
    .rts-header-right .bottom .right-area {
        flex-shrink: 0 !important;
    }
}

/* Convert to mobile menu sooner (1200px instead of 992px) to prevent nav overlapping */
@media (max-width: 1200px) {
    .heder-one .nav-area {
        display: none !important;
    }
    .heder-one .menu-btn {
        display: flex !important;
    }
}

/* Global Material Symbols Override */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased !important;
  color: #D4AF37 !important;
}

/* Header Icons Fixes */
.heder-one .top .single-info .icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  margin-right: 8px !important;
}
.heder-one .top .single-info .icon::before,
.heder-one .top .single-info .icon::after {
  display: none !important;
}
.heder-one .top .single-info .icon .material-symbols-outlined {
  font-size: 18px !important;
}

/* Header Search Fix */
.header-main-wrapper .icon-area .search .material-symbols-outlined {
  font-size: 22px !important;
  color: #fff !important; /* Keep search icon white if header is dark */
}

/* Mobile Menu Icon Fix */
.menu-btn .material-symbols-outlined {
  font-size: 28px !important;
  color: #D4AF37 !important;
}

/* Process Icons Fix */
.single-choose-us-one .icon .material-symbols-outlined {
  position: static !important;
  height: auto !important;
  width: auto !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 40px !important;
  color: #D4AF37 !important;
  z-index: 10 !important;
  display: block !important;
}
.single-choose-us-one .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mobile Icon Fixes */
.mobile-phone-btn {
  background: #D4AF37 !important;
}
.mobile-phone-btn .material-symbols-outlined {
  color: #fff !important;
}
.side-bar button.close-icon-menu {
  background: #D4AF37 !important;
}
.side-bar button.close-icon-menu .material-symbols-outlined {
  color: #fff !important;
}

/* Footer Icon Fixes */
.single-contact-area-box .icon .material-symbols-outlined {
  color: #fff !important;
}

/* Privacy Policy & Terms pages - fix white headings on white bg */
.service-details-content-wrapper {
  color: #111111 !important;
}
.service-details-content-wrapper h1,
.service-details-content-wrapper h2,
.service-details-content-wrapper h3,
.service-details-content-wrapper h4,
.service-details-content-wrapper h5,
.service-details-content-wrapper h6 {
  color: #111111 !important;
}
.service-details-content-wrapper p,
.service-details-content-wrapper li,
.service-details-content-wrapper strong {
  color: #111111 !important;
}

/* Blog article headings - ADA compliance (theme overrides heading colors to white) */
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6,
.service-details-inner-area-wrapper article h2,
.service-details-inner-area-wrapper article h3,
.service-details-inner-area-wrapper article h4,
.service-details-inner-area-wrapper article h5,
.service-details-inner-area-wrapper article h6 {
  color: #111111 !important;
}
