/*
Theme Name: Up N Above SS Theme
Theme URI: http://localhost/upnabovess
Author: Digitalaraa
Author URI: https://digitalaraa.com
Description: Custom WordPress theme for Up N Above Steel Products — designed for industrial and product showcase.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upnabovessthme
*/

.content-inner-2 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.custom-call-section {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 50px !important;
}

:root {
  --color-primary: #374c51 !important; 
  --color-secondry: #2F2F2F !important;
  --color-hover: #374c51 !important;  
  --text-sec: #F5F5DC !important; 
}

/* Example override */
.btn-primary {
  background-color: var(--color-primary) !important;
  color: white !important;
}


/* More specific override */
body .header.dark, 
body .header.dark .main-bar {
    background: #374c51 !important;
}

body .header-nav .nav > li.active > a:after {
    background: #e2a73a !important;
}

.header.dark, 
.header.dark .main-bar {
    background: #374c51 !important;
}

.header-nav .nav > li.active > a:after {
    background: #e2a73a !important;
}

body .exhibition-carousel:after {
    content: "";
    position: absolute !important;
    width: calc(100% - 70px) !important;
    height: 100% !important;
    right: 0 !important;
    top: 0 !important;
    background-color: #374c51 !important; /* Bagis Brown */
    z-index: -1 !important;
}
/* ==========  INDUSTRY CONTACT FORM STYLING ========== */
/* Main Form Container */
.wpcf7-form {
    background: #f9f5f0; /* Parchment-like background */
    padding: 25px;
    border-radius: 5px;
}

/* Input Fields */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1c7b7; 
    background: #fff;
    border-radius: 3px;
}

/* Focus State */
.wpcf7-form-control:focus {
    border-color: #b49c6c;
    box-shadow: 0 0 0 2px rgba(37, 150, 190, 0.2);
}

.wpcf7-submit {
    background: #b49c6c !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s !important;
    border-bottom: 3px solid #b49c6c !important;
}

.wpcf7-submit:hover {
    background: #b49c6c !important;
    transform: translateY(-2px);
}

.wpcf7-response-output {
    border-left: 4px solid #b49c6c !important;
    background: #f9f5f0 !important;
    color: #5a4a3a !important; 
}

.wpcf7-form-control {
    transition: all 0.3s ease;
}

/* CTA Button Styles */
.site-button {
    background: #b49c6c;
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    border-bottom: 3px solid #b49c6c;
}

.site-button:hover {
    background: #b49c6c;
    transform: translateY(-2px);
}

.btnhover15 {
    position: relative;
    z-index: 1;
}

.btnhover15:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.4s;
    z-index: -1;
}

.btnhover15:hover:after {
    transform: translateX(100%);
}

.m-r10 { margin-right: 10px; }
.m-b10 { margin-bottom: 10px; }

@media only screen and (max-width: 767px) {
    .dlab-topbar-center, .dlab-topbar-left, .dlab-topbar-right {
        width: 100%;
        text-align: center;
        padding: 3px 15px;
        padding-left: 15px;
        display: none !important;
        padding-right: 15px;
        font-size: 14px;
    }
}
@media only screen and (max-width: 767px) {
    .logo-header img, .logo-footer img {
        max-width: 260px !important;
        width: 260px !important;
    }
}

@media screen and (max-width: 991px) {
    .mo-left .header-nav .logo-header img {
        max-width: unset;
        width: 260px;
        vertical-align: middle;
    }
}
@media only screen and (max-width: 1200px) {
    .logo-header img, .logo-footer img {
        width: 260px !important;
    }
}

.middle-bar .logo-header, .middle-bar .logo-header img {
    width: 260px !important;
    max-width: 260px !important;
}

.contact-style-1 .p-lr20 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.icon-bx-sm {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 100% !important;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important
;
        flex-basis: auto;
    }
}

.tp-caption {
    color: #ece4e4 !important;
}
.tp-mask-wrap {
    color: #ece4e4 !important;
}
/* WordPress Menu Dropdown Styling */
.header-nav .nav.navbar-nav li.has-mega-menu {
    position: relative;
}

.header-nav .nav.navbar-nav li.has-mega-menu > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 2px solid #374c51;
}

.header-nav .nav.navbar-nav li.has-mega-menu:hover > ul.sub-menu {
    display: block;
}

.header-nav .nav.navbar-nav li.has-mega-menu > a .fas.fa-chevron-down {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.header-nav .nav.navbar-nav li.has-mega-menu:hover > a .fas.fa-chevron-down {
    transform: rotate(180deg);
}

/* Sub-menu items */
.header-nav .nav.navbar-nav ul.sub-menu li {
    border-bottom: 1px solid #374c51;
}

.header-nav .nav.navbar-nav ul.sub-menu li:last-child {
    border-bottom: none;
}

.header-nav .nav.navbar-nav ul.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* .header-nav .nav.navbar-nav ul.sub-menu li a:hover {
    background: #f8f9fa;
    color: #e53e29;
} */

/* Nested sub-menus */
.header-nav .nav.navbar-nav ul.sub-menu li.menu-item-has-children {
    position: relative;
}

.header-nav .nav.navbar-nav ul.sub-menu li.menu-item-has-children > ul.sub-menu {
    left: 100%;
    top: 0;
}

.header-nav .nav > li.menu-item-has-children:before {
    display: none;
}

.lg-outer.lg-thumb-open .lg-thumb-outer {
    display: none !important;
}

.testimonial-pic.radius img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    -webkit-border-radius: 100%;
}

@media (max-width: 490px) {
    .logo-header > a, .logo-footer > a {
        padding-top: 0px !important;
    }
     .latest-project-info.style1
    {
        padding: 30px 0px 0px;
    }
    .latest-project-info.style1 .p-5 {
        padding: 1rem !important;
    }
}

@media (max-width: 992px) {
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .logo-header > a, .logo-footer > a {
        padding-top: 8px;
    }
}

.extra-nav {
    padding: 5px 0;
}
.extra-nav .extra-cell {
    margin-top: 5px;
}
/* WhatsApp Modern Style */
.whatsapp-modern {
  position: fixed;
  bottom: 80px;
  right: 17px;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  border-radius: 50px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 50px;
  height: 50px;
  animation: ring-pulse 2s infinite;
}

.whatsapp-modern:hover {
  width: 140px;
  background: #128C7E;
  animation: none;
}

.whatsapp-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #25D366;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.whatsapp-modern:hover .whatsapp-circle {
  background: #128C7E;
}

.phone-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon svg {
  width: 100%;
  height: 100%;
  color: white;
}

.whatsapp-message {
  font-weight: 600;
  font-size: 14px;
  color: white;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  padding-right: 15px;
}

.whatsapp-modern:hover .whatsapp-message {
  opacity: 1;
  transform: translateX(0);
}

/* Ring pulse animation */
@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-modern {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .whatsapp-circle {
    width: 45px;
    height: 45px;
  }
  
  .phone-icon {
    width: 20px;
    height: 20px;
  }
}


/* Hide icons and banners on mobile devices only - Show on desktop */
@media (max-width: 767px) {
    .vision-mission-section .icon-bx-lg,
    .vision-mission-section .icon-bx-xs,
    .vision-mission-section .m-t30 img {
        display: none !important;
    }
    
    /* Adjust spacing after hiding elements */
    .vision-mission-section .icon-bx-wraper.left.style-3 {
        padding-left: 0 !important;
    }
    
    .vision-mission-section .icon-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Center align feature containers */
    .vision-mission-section .feature-container {
        justify-content: center !important;
        text-align: center !important;
    }
}

.project-owbx.active {
    background: #47737d !important;
    color: white;
    border-color: #47737d !important;
}

/* Quick Color Override - Add this to override existing styles */
.site-button,
.btnhover15,
.btnhover16,
.bg-primary,
.text-primary,
.icon-bx-lg.bg-primary,
.icon-bx-sm.bg-primary,
.dz-next.bg-primary,
.dz-prev.bg-primary,
.project-owbx.active,
.btn.btn-lg.bg-primary {
    background-color: #ffe66d !important;
    color: #222 !important;
    border-color: #ffe66d !important;
}

.site-button:hover,
.btnhover15:hover,
.btnhover16:hover,
.btn.btn-lg.bg-primary:hover {
    background-color: #ffe66d80 !important;
    color: #222 !important;
}

.bg-secondry,
.text-secondary {
    background-color: #374c51 !important;
    color: white !important;
}

.overlay-black-dark {
    background-color: rgba(55, 76, 81, 0.9) !important;
}

.site-button, .btnhover15, .btnhover16, .bg-primary, .text-primary, .icon-bx-lg.bg-primary, .icon-bx-sm.bg-primary, .dz-next.bg-primary, .dz-prev.bg-primary, .project-owbx.active, .btn.btn-lg.bg-primary {
    background-color: #ffe66d !important;
    color: #222 !important;
    border-color: #ffe66d !important;
}
/*i.fas {*/
/*    margin-top: 20px;*/
/*}*/

/*.fab{*/
/*    margin-top: 13px;*/
/*}*/

/* Show only feature containers and hide everything else on mobile */
@media (max-width: 767px) {
    /* Hide main icons */
    .vision-mission-section .icon-bx-lg {
        display: none !important;
    }
    
    /* Hide banner images */
    .vision-mission-section .m-t30 img {
        display: none !important;
    }
    
    /* Show only the feature containers with small icons */
    .vision-mission-section .feature-container,
    .vision-mission-section .icon-bx-xs,
    .vision-mission-section .icon-cell,
    .vision-mission-section .feature-text {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Adjust feature container layout for mobile */
    .vision-mission-section .feature-container {
        align-items: center !important;
        margin-bottom: 15px !important;
    }
    
    .vision-mission-section .icon-bx-xs {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        margin-right: 12px !important;
    }
    
    .vision-mission-section .icon-bx-xs .icon-cell i {
        font-size: 18px !important;
    }
    
    .vision-mission-section .feature-text {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* Ensure proper column layout */
    .vision-mission-section .col-md-6 {
        margin-bottom: 10px !important;
    }
    
    /* Adjust spacing */
    .vision-mission-section .m-t30 {
        margin-top: 20px !important;
    }
    
    .vision-mission-section .m-b20 {
        margin-bottom: 10px !important;
    }
}

/* Mobile layout with strict left alignment */
@media (max-width: 767px) {
    /* Hide main icons and banners */
    .vision-mission-section .icon-bx-lg,
    .vision-mission-section .m-t30 img {
        display: none !important;
    }
    
    /* Force left alignment for all feature containers */
    .vision-mission-section .feature-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    .vision-mission-section .icon-bx-xs {
        margin-right: 12px !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    
    .vision-mission-section .icon-bx-xs .icon-cell i {
        font-size: 16px !important;
    }
    
    .vision-mission-section .feature-text {
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }
    
    /* Ensure columns don't center content */
    .vision-mission-section .col-md-6 {
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 8px !important;
        padding-left: 0 !important;
        padding-right: 15px !important;
    }
    
    /* Remove any centering from rows */
    .vision-mission-section .row {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Font Size Only for Mobile - No Alignment Changes */
@media (max-width: 767px) {
    .tp-caption.Creative-Title.tp-resizeme.rs-parallaxlevel-1 {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .tp-caption.Creative-Title.tp-resizeme.rs-parallaxlevel-1 {
        font-size: 16px !important;
    }
}

@media (max-width: 360px) {
    .tp-caption.Creative-Title.tp-resizeme.rs-parallaxlevel-1 {
        font-size: 14px !important;
    }
}

:root {
    --color-primary: #374c51 !important;
    --color-secondry: #2F2F2F !important;
    --color-hover: #374c51 !important;
    --text-sec: #2a2a2a !important; /* Dark charcoal */
}

/* Hide Vision & Mission images on mobile */
@media (max-width: 767px) {
    #vision-mission .img-cover {
        display: none !important;
    }
    
    #vision-mission .col-lg-6.col-md-6.col-sm-6:has(img) {
        display: none !important;
    }
}

.footer-top .dzSubscribe .input-group-addon {
    background: #fff;
    border-color: #e1e1e1;
    padding: 0px 0px;
    font-size: 16px;
}

/* Mobile Submenu Overlap Fix */
@media (max-width: 991px) {
  /* Ensure proper stacking context */
  .sticky-header.main-bar-wraper {
    position: relative;
    z-index: 9999;
  }
  
  /* Fix for navbar collapse */
  .header-nav.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10000;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  /* Ensure submenus display properly */
  .header-nav .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: #f8f9fa;
  }
  
  /* Fix for nested submenus */
  .header-nav .navbar-nav .dropdown-menu .dropdown-menu {
    margin-left: 15px;
    background: #e9ecef;
  }
  
  /* Prevent content shift */
  body {
    overflow-x: hidden;
  }
  
  /* Ensure proper spacing */
  .header-nav .navbar-nav > li {
    border-bottom: 1px solid #eee;
  }
  
  .header-nav .navbar-nav > li:last-child {
    border-bottom: none;
  }
  
  /* Fix for social icons */
  .dlab-social-icon {
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
  }
}

/* Additional z-index fixes */
.site-header {
  position: relative;
  z-index: 1000;
}

.main-bar-wraper {
  z-index: 1001;
}

.header-nav {
  z-index: 1002;
}

/* Ensure dropdowns don't cause horizontal scroll */
.dropdown-menu {
  max-width: 100vw;
}

/* Fix for WP Bootstrap Navwalker specific issues */
.navbar-nav .dropdown-menu {
  min-width: 200px;
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    min-width: 100%;
  }
}
/* Disable Services menu link but keep submenu */
.menu-item-has-children > a[href*="services"],
.menu-item-has-children > a[href*="service"] {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}

/* Alternative: Target by menu item ID or specific text */
li.menu-item > a:contains("Services"),
li.menu-item > a:contains("services") {
    pointer-events: none !important;
    cursor: default !important;
}

.input-group-addon .site-button {
    padding: 9px 30px !important;
}    


/* Mobile optimization for Revolution Slider subtitles */
@media (max-width: 767px) {
    .tp-caption.Creative-SubTitle {
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tp-caption.Creative-SubTitle {
        font-size: 13px !important;
        line-height: 16px !important;
    }
}
/* Make text clear and visible on ALL devices */
.tp-caption.Creative-SubTitle {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Optional: Add subtle text shadow for better contrast (remove if not needed) */
.tp-caption.Creative-SubTitle {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* For even better clarity on all main titles */
.tp-caption.Creative-Title {
    font-weight: 700 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Ensure all text in slider is clear */
.rev_slider .tp-caption {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}
@media (max-width: 991px) {

    /* hide by default */
    .header-nav .sub-menu {
        display: none;
        position: relative !important;
    }

    /* open state */
    .menu-item-has-children.open > .sub-menu {
        display: block;
    }

    /* Add arrow only once (optional) */
    .menu-item-has-children > a {
        position: relative;
    }

    .menu-item-has-children > a:after {
        content: "\f107"; /* FontAwesome chevron-down */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-item-has-children.open > a:after {
        transform: translateY(-50%) rotate(180deg);
    }
    .mo-left .header-nav.show {
        width: 261px;
    }
    .header.dark .header-nav .nav > li > a {
        font-size: 14px;
    }
}

.header-nav .nav > li .sub-menu li a:after, .header-nav .nav > li .mega-menu > li ul a:after {
    display: none;
}

.tp-caption.Creative-SubTitle {
    text-shadow: none !important;
    padding: 10px !important;
}


.service-box-5 .dlab-info p {
    line-height: 26px;
    display: flex;
}

.service-box-5 .icon-bx {
    margin-top: 20px;
}


.button-md {
    font-size: 12px;
}
.section-full.content-inner.const-about {
    margin-bottom: 0px !important;
}

@media (max-width: 767px) {
    .tp-caption.Creative-Title {
        text-wrap: auto !important;
        white-space: normal !important;
    }
}

@media only screen and (max-width: 767px) {
    .site-header .extra-nav, .site-header .is-fixed .extra-nav {
        padding: 28px 5px;
    }
}

@media only screen and (max-width: 767px) {
    .site-header .navbar-toggler, .site-header .is-fixed .navbar-toggler {
        margin: 18px 0 14px 10px;
        top: 15px;
        right: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .logo-header img, .logo-footer img {
        width: 200px !important;
    }
    .new-logo-placed {
        display: none !important;
    }
}




body .header.dark, body .header.dark .main-bar {
    background: #fff !important;
}

.header.dark .dlab-topbar-left ul li a, .header.dark .dlab-topbar-right ul li a, .header.dark .header-nav .nav > li > a, .header.dark .extra-nav .site-button-link, .header.dark .navbar-toggler {
    color: #020d26 !important; 
}


@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
     .logo-header.logo-dark.new-logo-placed {
        margin-top: 0px !important;
        position: relative !important;
        top: -1px !important;
    }
}