/* ============================================================
   PREMIUM THEME LAYER — Landmark Mahindra
   Loads AFTER style.css / responsive.css.
   Purpose: elevate the existing black + red template to feel
   Premium, Powerful, Trustworthy, Modern and Local — without
   altering the underlying template structure or layout.
   Scope (per request): header, footer, and shared color language.
   ============================================================ */

/* ---------- 1. GLOBAL COLOR REFINEMENTS ---------- */
/* Bootstrap's .btn-danger is used across the site for primary CTAs.
   Align it with the brand red + add a premium gradient/shadow instead
   of a flat fill, so every "danger" button site-wide reads as premium. */
.btn-danger,
.btn.btn-danger {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-deep) 100%) !important;
    border-color: var(--theme-color-deep) !important;
    box-shadow: var(--premium-shadow-red);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-danger:hover,
.btn.btn-danger:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(227, 24, 55, 0.45);
}
.btn-outline-danger {
    border-color: var(--theme-color) !important;
    color: var(--theme-color) !important;
    transition: all 0.25s ease;
}
.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-deep) 100%) !important;
    border-color: var(--theme-color-deep) !important;
    box-shadow: var(--premium-shadow-red);
    transform: translateY(-2px);
}

/* A subtle gold underline used for "premium" emphasis without
   overriding the site's core red brand identity. */
.premium-gold-accent {
    background: linear-gradient(90deg, var(--premium-gold), transparent);
}

/* ---------- 2. HEADER: PREMIUM / TRUSTWORTHY / MODERN ---------- */
.header-top-one {
    background: linear-gradient(90deg, var(--premium-black) 0%, var(--premium-black-soft) 100%) !important;
    border-bottom: 1px solid var(--premium-line);
}
.header-top-info p {
    color: #d9d9d9;
}
.header-top-info i {
    color: var(--premium-gold);
}
.header-top-social-icon ul li strong {
    color: #f2f2f2;
    font-weight: 600;
}
.header-top-social-icon ul li a {
    color: #d9d9d9;
}
.header-top-social-icon ul li a:hover {
    color: var(--theme-color);
}

/* NOTE: .main_header / .sticky_header background + top hairline are set
   directly in header.php's inline <style> block (that block already uses
   !important and loads after this file, so it must own those rules to
   avoid a cascade conflict). This file adds the remaining premium touches. */

/* Nav links — add a refined underline + trust weight on hover/active */
.main-menu .navigation > li > a {
    position: relative;
}
.main-menu .navigation > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color), var(--premium-gold));
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-menu .navigation > li:hover > a::after,
.main-menu .navigation > li.active > a::after {
    width: 100%;
}

/* NOTE: .header-cta-call / -whatsapp / -testdrive gradients + hover states
   are defined directly in header.php's inline <style> block (that block
   loads after this file with matching specificity, so it must own them). */

/* ---------- 3. FOOTER: TRUSTWORTHY / LOCAL / MODERN ---------- */
/* The template renders the footer's actual background via the
   .main_footer:before pseudo-element (a full-bleed absolutely
   positioned layer) rather than .main_footer itself — so that is
   the rule we deepen here, keeping the same technique intact. */
.main_footer:before {
    background: linear-gradient(180deg, var(--premium-black-soft) 0%, var(--premium-black) 100%) !important;
}
.main_footer {
    border-top: 1px solid var(--premium-line);
}
/* Gold hairline echoing the header trim, ties the two together.
   Uses :after (the :before slot is already the background layer). */
.main_footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color-deep), var(--premium-gold), var(--theme-color-deep));
    opacity: 0.85;
    z-index: 2;
}

h4.footer_widget_title {
    position: relative;
    padding-bottom: 10px;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.footer_widget_title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color), var(--premium-gold));
}

.footer_about_widget p {
    color: #b7b7b7;
}
.footer-info-list a,
.resources_page_list a,
.community_page_list a {
    color: #b7b7b7;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-info-list a:hover,
.resources_page_list a:hover,
.community_page_list a:hover {
    color: var(--premium-gold);
    padding-left: 3px;
}

/* "Local" trust cue — location/phone/hours block gets a quiet card feel */
.footer_location_widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--premium-line);
    border-radius: 10px;
    padding: 18px;
}
.footer_location_widget i {
    color: var(--theme-color) !important;
}

.footer-bottom-outer {
    border-top: 1px solid var(--premium-line);
}
.copyright {
    color: #9a9a9a;
}
.social-links a {
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}
.social-links a:hover {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-deep) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--premium-shadow-red);
}

/* ---------- 4. STICKY BAR / FLOATING WHATSAPP — premium polish ---------- */
.sticky-bottom-bar {
    background: #ffffff !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

/* ---------- 5. SCROLL TO TOP — align with brand gradient ---------- */
.scroll-top {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-deep) 100%) !important;
    color: #ffffff !important;
    border-color: var(--theme-color-deep) !important;
    box-shadow: var(--premium-shadow-red);
}
.scroll-top:hover {
    filter: brightness(1.1);
}
