/* ========================================
   IMPrenovation Custom Theme
   Colors from Logo: Navy Blue #0D2847 & Gold/Beige #D4A574
   Professional construction & renovation design
   ======================================== */

:root {
    /* Brand Colors */
    --primary-navy: #0d2847;
    --primary-gold: #d4a574;
    --accent-blue: #1a4d7a;
    --accent-gold: #c99456;

    /* Override template theme/orange variables to brand */
    --theme: var(--primary-gold) !important;
    --theme2: #f2d3b1 !important; /* lighter gold accent */
    --title: #131313 !important; /* strong readable text color */
    --orange: #d4a574 !important;
    --bs-orange: #d4a574 !important;
}

/* =========================
   BUTTONS & CTAs
   ========================= */

/* Base typography for readability */
body,
p {
    color: #1a1a1a !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--title) !important;
}

/* Links: readable default and accessible hover */
a {
    color: var(--primary-navy);
}
a:hover {
    color: var(--accent-blue) !important;
}

/* All primary buttons - Navy Blue background */
.gt-btn.style1,
.gt-btn.style2,
.gt-btn.style3 {
    background-color: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
    color: #fff !important;
}

.gt-btn.style1:hover,
.gt-btn.style2:hover,
.gt-btn.style3:hover {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 40, 71, 0.3);
}

/* Outlined buttons */
.gt-btn.style4 {
    background-color: transparent !important;
    border-color: var(--primary-navy) !important;
    color: var(--primary-navy) !important;
}

.gt-btn.style4:hover {
    background-color: var(--primary-navy) !important;
    color: #fff !important;
}

/* Replace orange colors */
.bg-orange {
    background-color: var(--primary-gold) !important;
}

.text-orange-color {
    color: var(--primary-gold) !important;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */

.header-section-2 .header-2 {
    background-color: var(--primary-navy) !important;
}

#header-sticky.sticky {
    background-color: var(--primary-navy) !important;
    box-shadow: 0 4px 20px rgba(13, 40, 71, 0.2);
}

.main-menu ul li a:hover,
.main-menu ul li.active a {
    color: var(--primary-gold) !important;
}

/* Header logo sizing and vertical centering */
.header-logo img,
.header-section-2 .logo img {
    max-height: 46px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .header-logo img,
    .header-section-2 .logo img {
        max-height: 38px;
    }
}

/* =========================
   SECTIONS & TITLES
   ========================= */

.title-section .sub-title,
.title-content .sub-title {
    color: var(--primary-navy) !important;
    background-color: rgba(212, 165, 116, 0.15);
    border-left: 3px solid var(--primary-gold);
    padding-left: 15px !important;
}

/* Section title underlines */
.title-section h2::after,
.title-section h3::after {
    background-color: var(--primary-gold) !important;
}

/* =========================
   COUNTERS
   ========================= */

.counter-card.style2 .counter-box span {
    color: var(--primary-gold) !important;
    font-weight: 700;
}

.counter-bg svg path {
    stroke: var(--primary-gold) !important;
}

.counter-card.style2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
}

/* =========================
   SERVICE CARDS
   ========================= */

.service-card.style2 {
    transition: all 0.4s ease;
}

.service-card.style2:hover {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 10px 40px rgba(212, 165, 116, 0.2);
    transform: translateY(-10px);
}

/* Fix dark backgrounds on service cards (style2) */
.service-card.style2 {
    background: #ffffff !important;
    border-color: var(--primary-navy) !important;
}
.service-card.style2 .content h3 {
    color: var(--title) !important;
}
.service-card.style2 .content p {
    color: #565969 !important;
}

.service-card.style2 .thumb img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(36%) saturate(1542%)
        hue-rotate(183deg) brightness(94%) contrast(95%);
}

.service-card.style2:hover .thumb img {
    filter: brightness(0) saturate(100%) invert(68%) sepia(16%) saturate(1248%)
        hue-rotate(358deg) brightness(90%) contrast(88%);
}

/* =========================
   PROJECTS
   ========================= */

.project-item .thumb::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(13, 40, 71, 0.9) 100%
    );
}

.project-item:hover .thumb::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(212, 165, 116, 0.9) 100%
    );
}

.project-item .thumb-content h4 a:hover {
    color: var(--primary-gold) !important;
}

/* Ensure project thumbnails are visible and consistent */
.project-item .thumb {
    position: relative;
}
.project-item .thumb img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.project-item .thumb .thumb-content {
    position: absolute;
    left: 16px;
    bottom: 16px;
}

/* =========================
   TESTIMONIALS
   ========================= */

.testimonial-card.style2 {
    background: #ffffff !important;
}
.testimonial-card .star-rating i {
    color: var(--primary-gold) !important;
}

.testimonial-card.style2 {
    border: 2px solid rgba(212, 165, 116, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card.style2:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.15);
    transform: translateY(-5px);
}

/* Testimonial cards - centered, narrower, taller with proper text wrapping */
.testimonial-section .swiper {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card.style2 {
    padding: 2.5rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card.style2 .testimonial-content {
    width: 100%;
}

.testimonial-card.style2 .testimonial-text {
    margin: 1.5rem 0;
    line-height: 1.8;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card.style2 .client-info {
    margin-top: auto;
    padding-top: 1rem;
}

/* =========================
   CONTACT SECTION
   ========================= */

.company-contact-menu .contact-item .icon {
    background-color: var(--primary-navy) !important;
}

.company-contact-menu .contact-item:hover .icon {
    background-color: var(--primary-gold) !important;
}

.contact-form .input-field:focus,
.contact-form .textarea-field:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

/* =========================
   FOOTER
   ========================= */

.footer-section {
    background-color: var(--primary-navy) !important;
}

.footer-single-wid .title h3::after {
    background-color: var(--primary-gold);
}

.footer-menu li a:hover,
.services-list li a:hover {
    color: var(--primary-gold) !important;
    padding-left: 5px;
}

/* Footer logo sizing and centering */
.footer-single-wid .thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-single-wid .thumb img {
    max-height: 56px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 991.98px) {
    .footer-single-wid .thumb img {
        max-height: 44px;
    }
}

/* Footer typography and spacing */
.footer-section .footer-single-wid .title h3 {
    color: #ffffff !important;
    margin-bottom: 18px;
}
.footer-section .content p,
.footer-section .footer-contact-menu .content a,
.footer-section .footer-contact-menu .content h4,
.footer-section .footer-contact-menu .titles p,
.footer-section .footer-menu li a,
.footer-section .services-list li a {
    color: rgba(255, 255, 255, 0.88) !important;
}
.footer-section .footer-menu li,
.footer-section .services-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Footer social icons base + hover already gold */
.footer-section .social-icon.style1 ul li a {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Footer contact icons styling */
.footer-section .footer-contact-menu .contact-item .icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--primary-gold) !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    line-height: 1;
    font-size: 18px;
    position: relative;
    overflow: visible;
}

/* Remove any theme pseudo shapes leaking on icons */
.footer-section .footer-contact-menu .contact-item .icon::before,
.footer-section .footer-contact-menu .contact-item .icon::after {
    content: none !important;
}

/* Ensure the Font Awesome element has no background */
.footer-section .footer-contact-menu .contact-item .icon i {
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
    line-height: 1;
}
.footer-section .footer-contact-menu .contact-item .icon i::after {
    content: none !important;
}

/* Hover state: fill gold, icon navy for contrast */
.footer-section .footer-contact-menu .contact-item:hover .icon {
    color: var(--primary-gold) !important; /* keep color only, no background */
    transform: translateY(-1px);
}

/* Nuke any leftover half-circle decorations on the contact item itself */
.footer-section .footer-contact-menu .contact-item::before,
.footer-section .footer-contact-menu .contact-item::after {
    content: none !important;
    background: none !important;
}

/* Footer bottom bar consistency */
.footer-section .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}
.footer-section .footer-bottom p,
.footer-section .footer-bottom a {
    color: rgba(255, 255, 255, 0.88) !important;
}

.social-icon.style1 ul li a:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* =========================
   BACK TO TOP
   ========================= */

.back-to-top {
    background-color: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
}

.back-to-top:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* =========================
   HERO SECTION
   ========================= */

/* Ensure proper spacing on left content */
.intro-section .inner-left-part {
    padding-right: 1.5rem;
}

/* Consistent padding bottom for hero section */
.intro-section {
    padding-bottom: 120px;
}

/* Make hero image larger to fill available space */
.intro-section .intro-right-part .thumb-box {
    overflow: hidden;
    margin-left: -3rem;
    margin-right: -2rem;
}

.intro-section .intro-right-part .thumb-box .main-thumb img {
    width: 100%;
    min-height: 600px;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .intro-section .inner-left-part {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .intro-section .intro-right-part .thumb-box .main-thumb img {
        min-height: 400px;
        max-height: 500px;
    }
}

.intro-section .gt-btn {
    box-shadow: 0 8px 25px rgba(13, 40, 71, 0.3);
}

.intro-section .thumb-content {
    background-color: var(--primary-gold) !important;
}

/* =========================
   ABOUT SECTION
   ========================= */

.thumb-content {
    background-color: var(--primary-gold) !important;
    color: #fff;
}

.content-item .icon {
    color: var(--primary-navy);
}

/* =========================
   SLIDERS & ARROWS
   ========================= */

.slider-arrow,
.swiper-button-prev,
.swiper-button-next {
    background-color: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
}

.slider-arrow:hover,
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* =========================
   FORMS & ALERTS
   ========================= */

.alert-success {
    background-color: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--primary-gold);
    color: var(--accent-gold);
}

/* =========================
   SMOOTH TRANSITIONS
   ========================= */

.gt-btn,
.service-card,
.project-item,
.testimonial-card,
.counter-card,
.social-icon.style1 ul li a,
.footer-menu li a,
.services-list li a {
    transition: all 0.3s ease;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
}

/* =========================
   LEGAL PAGES STYLING
   ========================= */

.page-content {
    background: #fff;
}

.legal-content h1 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    color: var(--primary-navy);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-navy);
}

.legal-content .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #666;
}

.legal-content section {
    margin-bottom: 3rem;
}

/* =========================
   OVERRIDE ALL HOVER STATES
   ========================= */

/* Links hover (refined above) */

/* Menu links hover */
.main-menu ul li a:hover,
.main-menu ul li.active a,
.main-menu ul li:hover > a {
    color: var(--primary-gold) !important;
}

/* Service card hover */
.service-card:hover .content h3,
.service-card:hover .content h3 a {
    color: var(--primary-navy) !important;
}

/* Project links hover */
.project-item .thumb-content h4 a:hover,
.project-item:hover .thumb-content h4 a {
    color: var(--primary-gold) !important;
}

/* Footer links hover */
.footer-menu li a:hover,
.services-list li a:hover,
.footer-services li a:hover {
    color: var(--primary-gold) !important;
}

/* Ensure footer links are clickable (no nesting) */
.footer-services li a,
.footer-menu li a,
.services-list li a {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

/* Lift the footer-bottom above decorative shapes */
.footer-section .footer-bottom {
    position: relative;
    z-index: 100;
}

/* Prevent footer decorative shapes from intercepting clicks */
.footer-section .footer-shape,
.footer-section .footer-shape img {
    pointer-events: none !important;
}

/* =========================
   SECTION BACKGROUNDS
   ========================= */
/* Alternating backgrounds: white vs. light brand grey */
.section-bg {
    background-color: #ffffff !important;
}

.section-bg2 {
    background: #f4f7fa !important; /* subtle light grey/tint */
}

/* Ensure footer stays navy even if it has section-bg2 */
.footer-section.section-bg2 {
    background-color: var(--primary-navy) !important;
}

/* =========================
   TEMPLATE ORANGE PATCHES
   ========================= */
/* Newsletter send button (was #ff6a00) */
.news-later .email-container .send-button {
    background-color: var(--primary-gold) !important;
    color: #fff !important;
}

/* Any element using .bg-orange/.text-orange-color */
.bg-orange {
    background-color: var(--primary-gold) !important;
}
.text-orange-color {
    color: var(--primary-gold) !important;
}

/* Progress/lines that relied on var(--theme) now gold */
.progress,
.progress-bar,
.line-shape,
.divider {
    border-color: var(--primary-gold) !important;
    background-color: var(--primary-gold) !important;
}

/* Remove background/border from generic highlight containers */
.highlight,
.title-section .highlight,
.title-section .highlight p {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Button icon hover */
.gt-btn:hover i,
.gt-btn:hover .icon {
    color: #fff !important;
}

/* Counter hover */
.counter-card:hover .counter-box span {
    color: var(--primary-gold) !important;
}

/* Force all hover backgrounds that were orange to be navy */
.gt-btn:hover:not(.style4) {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* Offcanvas links */
.offcanvas__contact ul li a:hover {
    color: var(--primary-gold) !important;
}

/* Social icons */
.social-icon ul li a:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
    color: #fff !important;
}

/* Feature cards */
.feature-card:hover {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.15);
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-gold) !important;
    outline-color: var(--primary-gold) !important;
}

/* Fix dark backgrounds on generic "card-box" (wch-section) */
.wch-card-section.style1 .card-box {
    background: #ffffff !important;
    border-color: var(--primary-navy) !important;
}
.wch-card-section.style1 .card-box .content h3,
.wch-card-section.style1 .card-box .content p {
    color: var(--title) !important;
}

/* Ensure highlight text is readable on light bg */
.title-section .highlight p {
    color: #565969 !important;
}

/* Safety: map any dark utility backgrounds to brand or light */
.bg-dark,
.bg-black,
.text-bg-dark {
    background-color: #ffffff !important;
    color: var(--title) !important;
}

/* Pagination hover */
.pagination li a:hover {
    background-color: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
    color: #fff !important;
}

/* Breadcrumb links */
.breadcrumb-item a:hover {
    color: var(--primary-gold) !important;
}

/* Tab navigation hover */
.nav-tabs .nav-link:hover {
    border-color: var(--primary-gold) !important;
    color: var(--primary-navy) !important;
}

/* Accordion hover */
.accordion-button:hover {
    background-color: rgba(212, 165, 116, 0.1) !important;
}

/* Video play button hover */
.video-play-btn:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* Search button hover */
.search-btn:hover {
    background-color: var(--primary-navy) !important;
    color: #fff !important;
}

/* Mobile menu toggle hover */
.header__hamburger:hover,
.sidebar__toggle:hover {
    color: var(--primary-gold) !important;
}

/* Contact item hover */
.contact-item:hover .icon {
    background-color: var(--primary-gold) !important;
}

.contact-item:hover h4,
.contact-item:hover a {
    color: var(--primary-navy) !important;
}

/* Replace remaining template dark backgrounds that used var(--title) */
.offcanvas__info,
.intro-section
    .intro-wrapper.style1
    .inner-left-part
    .btn-content
    .video-btn
    a
    i,
.about-wrapper.style1 .btn-content .contact-way .icon,
.about-wrapper.style3 .about-left-content .content .experiences,
.contact-form.style3,
.contact-form.style3 form .form-row .form-group .input-field,
.contact-form.style3 form .form-row .form-group .textarea-field,
.testimonial-wrapper.style3 .main-testimonial {
    background-color: var(--primary-navy) !important;
}
.contact-form.style3 form .form-row .form-group .input-field,
.contact-form.style3 form .form-row .form-group .textarea-field {
    color: #ffffff !important;
}

/* Header dropdown primary button color */
a.blue__color {
    background-color: var(--primary-navy) !important;
    color: #ffffff !important;
}
a.blue__color:hover {
    background-color: var(--primary-gold) !important;
    color: #ffffff !important;
}

/* =========================
   ICON COLOR FILTERS
   Apply gold tint to orange/red icon images
   ========================= */

/* Hero phone icon */
.intro-section .meta-info .icon img,
/* About section icons */
.about-section .content .content-item .icon img,
/* Services section icons */
.service-section .service-card .thumb img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(25%) saturate(557%)
        hue-rotate(352deg) brightness(91%) contrast(86%);
}

/* Hover state - slightly lighter gold */
.service-card:hover .thumb img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(838%)
        hue-rotate(352deg) brightness(95%) contrast(90%);
    transition: filter 0.3s ease;
}

/* Removed old Bootstrap modal gallery styles (now using LightGallery) */
