/*
 Theme Name:   Salient Child
 Theme URI:    https://scafin.in
 Description:  Salient Child Theme for Scafin Auto Finance
 Author:       Bizfury Dev Team
 Template:     salient
 Version:      1.0.0
*/

/* #header-space {
    height: 0 !important;
    display: none !important;
} */

html,
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force WP Admin Bar to stay visible always */
#wpadminbar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* -----------------------------------------------------------------
   1. Typography & General Layout Rules
   ----------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
}

p,
li,
.wpb_wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------------------
   2. Header & Logo Strict Controls (Replaces Inline Styles)
   ----------------------------------------------------------------- */
#header-secondary-outer {
    display: none !important;
}

body #header-outer,
body.using-secondary-header #header-outer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: top 0.2s ease !important;
}

/* Offset fixed header when WP Admin Bar is present */
/* body.admin-bar #header-outer,
body.admin-bar.using-secondary-header #header-outer {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #header-outer,
    body.admin-bar.using-secondary-header #header-outer {
        top: 46px !important;
    }
} */

#header-outer #logo {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 60px !important;
    height: auto !important;
}

#header-outer #logo img,
#header-outer #logo img.stnd,
#header-outer #logo img.default-logo,
#header-outer #logo img.dark-version,
#header-outer #logo img.mobile-only-logo {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

#top .row {
    display: flex !important;
    align-items: center !important;
}

#top .span_3 {
    display: flex !important;
    align-items: center !important;
}

#top .span_9 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Active navigation item highlighting */
.sf-menu li.current-menu-item > a,
.sf-menu li.current-menu-item > a .menu-title-text {
    color: #69b839 !important; /* theme green color for active item */
    font-weight: 700 !important;
}

/* Hover highlights */
.sf-menu li > a:hover,
.sf-menu li > a:hover .menu-title-text {
    color: #69b839 !important;
    transition: color 0.25s ease !important;
}

/* -----------------------------------------------------------------
   3. "Loan Process" Tab & Nav Elements
   ----------------------------------------------------------------- */
.wpb_tabs_nav li a {
    font-weight: 600;
    color: #2c4178;
}

.wpb_tabs_nav li a.active-tab {
    border-bottom: 2px solid #2c4178;
    color: #2c4178;
}

/* -----------------------------------------------------------------
   4. Buttons & Badges
   ----------------------------------------------------------------- */
.nectar-button.extra-color-2 {
    background-color: #29abe2 !important;
    border-color: #29abe2 !important;
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: 600;
    padding: 10px 24px;
    text-decoration: none;
    display: inline-block;
}

.nectar-button.extra-color-2:hover {
    background-color: #1f8cba !important;
}

/* -----------------------------------------------------------------
   5. Fancy List & Icon Wrappers
   ----------------------------------------------------------------- */
.nectar-fancy-ul ul {
    list-style: none;
    padding-left: 0;
}

.nectar-fancy-ul li {
    margin-bottom: 8px;
}

.nectar-fancy-ul .accent-color {
    color: #2c4178;
}

.nectar-fancy-ul .extra-color-2 {
    color: #69b839;
}

.nectar_icon_wrap .nectar_icon i {
    color: #2c4178;
}

/* -----------------------------------------------------------------
   6. Footer & Centered Copyright Section
   ----------------------------------------------------------------- */
#footer-outer {
    background-color: #ffffff !important;
}

#footer-outer,
#footer-outer a:not(.nectar-button) {
    color: #898989 !important;
}

#footer-widgets h4 {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
}

#footer-widgets a,
#footer-widgets .textwidget {
    color: #b5b5b5;
}

#footer-widgets a:hover {
    color: #69b839;
}

body #footer-outer #copyright,
.ascend #footer-outer #copyright {
    border: none;
    background-color: #2c4178;
    color: #ffffff;
}

#ajax-content-wrap #footer-outer #copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

#footer-outer #copyright[data-layout="centered"] {
    padding: 45px 0;
    text-align: center !important;
}

#footer-outer #copyright {
    text-align: center !important;
}

#footer-outer #copyright .container {
    text-align: center !important;
    width: 100% !important;
}

#footer-outer #copyright p {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
}

/* -----------------------------------------------------------------
   7. Inner Page Hero Banner (Premium Custom Style)
   ----------------------------------------------------------------- */
.inner-page-hero {
    background: linear-gradient(135deg, rgba(44, 65, 120, 0.9) 0%, rgba(20, 31, 62, 0.96) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-page-hero h1 {
    color: #ffffff;
    font-size: 46px;
    margin: 0 0 15px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.inner-page-hero p {
    color: #69b839;
    font-size: 18px;
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------
   8. Responsive Flex Grid & Layouts (Backup Utilities)
   ----------------------------------------------------------------- */
.scafin-section {
    padding: 70px 0;
}

.scafin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.scafin-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.scafin-col-12 {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.scafin-col-6 {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
}

.scafin-col-4 {
    width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .scafin-col-6,
    .scafin-col-4 {
        width: 100%;
    }
}

/* -----------------------------------------------------------------
   9. Premium Content Cards (Glassmorphism & Micro-animations)
   ----------------------------------------------------------------- */
.scafin-card-premium {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(44, 65, 120, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #f0f3f8;
    position: relative;
    overflow: hidden;
}

.scafin-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2c4178;
    transition: transform 0.3s ease;
}

.scafin-card-premium.green::before {
    background: #69b839;
}

.scafin-card-premium.cyan::before {
    background: #29abe2;
}

.scafin-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 65, 120, 0.1);
    border-color: #e2e8f0;
}

.scafin-card-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(44, 65, 120, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.scafin-card-premium.green .scafin-card-icon-wrap {
    background: rgba(105, 184, 57, 0.06);
}

.scafin-card-premium.cyan .scafin-card-icon-wrap {
    background: rgba(41, 171, 226, 0.06);
}

.scafin-card-premium:hover .scafin-card-icon-wrap {
    transform: scale(1.08);
}

.scafin-card-premium .scafin-card-icon-wrap i {
    font-size: 50px; /* Matched to Home Page Services size */
    color: #2c4178;
    line-height: 1;
}

.scafin-card-premium.green .scafin-card-icon-wrap i {
    color: #69b839;
}

.scafin-card-premium.cyan .scafin-card-icon-wrap i {
    color: #29abe2;
}

.scafin-card-premium h4 {
    font-size: 20px;
    color: #2c4178;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.scafin-card-premium p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Us Items */
.scafin-feature-item-modern {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 24px rgba(44, 65, 120, 0.01);
    transition: all 0.3s ease;
    height: calc(100% - 30px);
    box-sizing: border-box;
}

.scafin-feature-item-modern:hover {
    box-shadow: 0 12px 30px rgba(44, 65, 120, 0.06);
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.scafin-feature-icon-modern {
    background: rgba(44, 65, 120, 0.05);
    color: #2c4178;
    width: 80px; /* Enlarged wrapper */
    height: 80px; /* Enlarged wrapper */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* Enlarged icon font size */
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.scafin-feature-item-modern:hover .scafin-feature-icon-modern {
    background: #2c4178;
    color: #ffffff;
}

.scafin-feature-text-modern h5 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #2c4178;
    font-weight: 700;
}

.scafin-feature-text-modern p {
    margin: 0;
    color: #666666;
    font-size: 14.5px;
    line-height: 1.5;
}

/* -----------------------------------------------------------------
   10. Call to Action (CTA) Box
   ----------------------------------------------------------------- */
.scafin-cta-modern {
    background: linear-gradient(135deg, #2c4178 0%, #1e2e5c 100%);
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    padding: 60px 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 65, 120, 0.15);
}

.scafin-cta-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(105, 184, 57, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.scafin-cta-modern h3 {
    color: #ffffff;
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.scafin-cta-modern p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

/* -----------------------------------------------------------------
   11. Contact Premium Components (Form & Info Cards)
   ----------------------------------------------------------------- */
.scafin-contact-card-premium {
    background: #ffffff;
    border-radius: 12px;
    padding: 45px 40px;
    box-shadow: 0 15px 40px rgba(44, 65, 120, 0.04);
    border: 1px solid #eef2f6;
    height: 100%;
    box-sizing: border-box;
}

.scafin-contact-card-premium h3 {
    color: #2c4178;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
}

.scafin-contact-detail-item {
    display: flex;
    margin-bottom: 25px;
}

.scafin-contact-detail-item:last-child {
    margin-bottom: 0;
}

.scafin-contact-detail-item .icon-box {
    background: rgba(105, 184, 57, 0.08);
    color: #69b839;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.scafin-contact-detail-item .content-box h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #2c4178;
    font-weight: 700;
}

.scafin-contact-detail-item .content-box p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

.scafin-label-premium {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c4178;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scafin-input-premium {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dcdcdc;
    background-color: #fcfcfc;
    border-radius: 8px;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.scafin-input-premium:focus {
    outline: none;
    border-color: #2c4178;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 65, 120, 0.08);
}

textarea.scafin-input-premium {
    resize: vertical;
    min-height: 110px;
}

.scafin-submit-premium {
    background: linear-gradient(135deg, #2c4178 0%, #1e2e5c 100%);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(44, 65, 120, 0.1);
}

.scafin-submit-premium:hover {
    background: linear-gradient(135deg, #1e2e5c 0%, #141f3d 100%);
    box-shadow: 0 12px 25px rgba(44, 65, 120, 0.2);
    transform: translateY(-2px);
}

.scafin-map-container-premium {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 65, 120, 0.05);
    border: 1px solid #eef2f6;
}

.scafin-map-container-premium iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* -----------------------------------------------------------------
   12. Legal Page (Privacy Policy & Terms) Styles
   ----------------------------------------------------------------- */
.scafin-legal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(44, 65, 120, 0.04);
    color: #444444;
    line-height: 1.8;
    border: 1px solid #eef2f6;
}

.scafin-legal-content h2, 
.scafin-legal-content h3 {
    color: #2c4178;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.scafin-legal-content h2 {
    font-size: 24px;
    border-bottom: 2px solid rgba(44, 65, 120, 0.08);
    padding-bottom: 10px;
}

.scafin-legal-content h3 {
    font-size: 19px;
}

.scafin-legal-content p, 
.scafin-legal-content li {
    font-size: 15.5px;
    color: #555555;
    margin-bottom: 15px;
}

.scafin-legal-content ul,
.scafin-legal-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.scafin-legal-content li {
    margin-bottom: 10px;
}

.scafin-legal-content .last-updated {
    font-style: italic;
    color: #888888;
    margin-bottom: 35px;
    font-size: 14px;
    border-left: 3px solid #69b839;
    padding-left: 10px;
}

.scafin-legal-content .highlight-box {
    background: #f8fafc;
    border-left: 4px solid #29abe2;
    padding: 18px 24px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.scafin-legal-content .highlight-box p {
    margin: 0;
    font-size: 15px;
    color: #475569;
}