/* ==========================================================================
   LANDMARK MAHINDRA HYDERABAD - CUSTOM STYLESHEET (new-style.css)
   Includes: Floating Dock, JSP Kia Style Quick Panel, Sticky Bottom Bar, & Theme Overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Typography
   -------------------------------------------------------------------------- */
:root {
    --lm-red: #e31837;
    --lm-red-dark: #b81028;
    --lm-ink: #0f172a;
    --lm-ink-soft: #1a1a2e;
    --lm-muted: #64748b;
    --lm-surface: #f4f6f9;
}

.lm-section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lm-red);
    margin-bottom: 10px;
}

.lm-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lm-ink);
    line-height: 1.15;
}

.lm-section-sub {
    color: var(--lm-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   2. Sticky Bottom Bar (Mobile Navigation)
   -------------------------------------------------------------------------- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
}

.sticky-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sticky-bar-btn i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #e31837;
}

.sticky-bar-btn:hover {
    color: #e31837;
    transform: translateY(-2px);
}

.sticky-bar-btn:hover i {
    color: #e31837;
}

@media (min-width: 768px) {
    .sticky-bottom-bar {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   3. Floating Action Dock (Left Side Desktop Action Dock)
   -------------------------------------------------------------------------- */
.lm-floating-dock {
    position: fixed;
    bottom: -250px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(242, 244, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lm-floating-dock.open {
    bottom: 0px;
    opacity: 1;
    visibility: visible;
}

.lm-float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.lm-float-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lm-float-btn i {
    font-size: 18px;
}

.lm-float-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.lm-float-btn.call {
    background: #e31837;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
}

.lm-float-btn.test-drive {
    background: #111111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lm-float-btn.quick-grid-trigger {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   4. Side Tab Trigger (Pinned to Left Edge)
   -------------------------------------------------------------------------- */
.lm-side-tab-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #e31837;
    color: #fff;
    padding: 12px 10px;
    border-radius: 0 8px 8px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 9997;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lm-side-tab-trigger:hover {
    background: #c10d29;
    padding-left: 14px;
}

/* --------------------------------------------------------------------------
   5. Floating 3x3 Services Grid Overlay Panel (JSP Kia Style)
   -------------------------------------------------------------------------- */
.lm-grid-panel-wrapper {
    position: fixed;
    left: 25px;
    bottom: 90px;
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lm-grid-panel-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lm-grid-card-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    width: 330px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid #f0f0f0;
}

.lm-grid-close-btn {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 36px;
    background: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    border-left: none;
}

.lm-grid-close-btn:hover {
    background: #e31837;
    color: #ffffff;
}

.lm-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lm-grid-item {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 16px 6px;
    text-align: center;
    text-decoration: none !important;
    color: #111111 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    border: 1px solid #eaeaea;
    height: 100%;
    min-height: 92px;
}

.lm-grid-item:hover {
    background: #ffffff;
    border-color: #e31837;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 24, 55, 0.12);
}

.lm-grid-item i {
    font-size: 22px;
    color: #111111;
    transition: color 0.25s ease;
}

.lm-grid-item:hover i {
    color: #e31837;
}

.lm-grid-item span {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

/* --------------------------------------------------------------------------
   6. Trust Bar & Quick Actions
   -------------------------------------------------------------------------- */
.lm-trust-bar {
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
}

.lm-trust-bar .lm-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 12px;
}

.lm-trust-bar .lm-trust-item i {
    color: var(--lm-red);
    font-size: 1rem;
}

.lm-trust-bar .lm-trust-item strong {
    color: #ffffff;
    font-weight: 800;
}

.quick-actions-section {
    background: var(--lm-surface) !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

.quick-action-card .qa-card-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quick-action-card .qa-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lm-red), #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-card:hover .qa-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(227, 24, 55, 0.3);
}

.quick-action-card:hover .qa-card-inner::before {
    opacity: 1;
}

.quick-action-card .qa-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.08), rgba(227, 24, 55, 0.12));
    color: var(--lm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.15);
}

.quick-action-card:hover .qa-icon {
    background: linear-gradient(135deg, var(--lm-red), #ff6b6b);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.4);
}

.quick-action-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--lm-ink);
    letter-spacing: 0.3px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.quick-action-card .qa-desc {
    color: var(--lm-muted);
    font-size: 0.85rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
    min-height: 42px;
}

.quick-action-card .qa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lm-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
}

.quick-action-card .qa-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lm-red);
    transition: width 0.3s ease;
}

.quick-action-card:hover .qa-link {
    gap: 12px;
    color: #b81028;
}

.quick-action-card:hover .qa-link::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. September Offers & Model Cards
   -------------------------------------------------------------------------- */
.september-offers-section {
    background: #ffffff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.offer-strip-badge {
    background: #fff8e6;
    border: 1.5px solid #facc15;
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.15);
}

.offer-section-title {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: #111827 !important;
}

.offer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(227, 24, 55, 0.4);
    box-shadow: 0 18px 40px rgba(227, 24, 55, 0.14);
}

.offer-card .offer-badge {
    background: linear-gradient(135deg, #e31837 0%, #b81028 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.offer-model-title {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.offer-benefit-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
}

.btn-view-offer {
    background: linear-gradient(135deg, #e31837 0%, #b81028 100%);
    border: 1px solid #e31837;
    color: #ffffff !important;
    border-radius: 30px;
    padding: 11px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(227, 24, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-offer:hover {
    background: linear-gradient(135deg, #ff1a3d 0%, #d40e29 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(227, 24, 55, 0.5);
}

/* --------------------------------------------------------------------------
   8. Contact Section Styling
   -------------------------------------------------------------------------- */
.contact-section {
    background: #f8fafc;
    padding: 70px 0;
    position: relative;
    border-top: 1px solid #f0f0f0;
}

.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.custom-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.custom-input:focus {
    border-color: #e31837;
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.12);
}

.btn-submit-message {
    background: linear-gradient(135deg, #e31837 0%, #b81028 100%);
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    padding: 14px 28px;
    border: none;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-submit-message:hover {
    background: linear-gradient(135deg, #ff1a3d 0%, #d40e29 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(227, 24, 55, 0.4);
}

@media (max-width: 767px) {
    .lm-floating-dock {
        display: none !important;
    }

    .lm-grid-panel-wrapper {
        left: 12px;
        right: auto;
        bottom: 130px;
        width: calc(100vw - 24px);
        max-width: 340px;
    }

    .lm-grid-card-container {
        width: 100%;
        padding: 16px;
    }

    .lm-grid-close-btn {
        top: -12px;
        right: 12px;
        transform: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        border: 1px solid #eee;
    }

    .lm-side-tab-trigger {
        display: none;
    }

    .scroll-top {
        display: block !important;
        position: fixed !important;
        right: 15px !important;
        bottom: -200px;
        z-index: 10000 !important;
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        border-radius: 50% !important;
        background-color: var(--lm-red, #e31837) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4) !important;
        transition: all 0.4s ease !important;
    }

    .scroll-top.open {
        bottom: 75px !important;
    }

    /* Mobile Container & Typography Scaling */
    .container,
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .display-4,
    .display-5,
    .display-6 {
        font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
    }

    .form-control,
    .form-select {
        font-size: 14px !important;
    }
}

/* Hide Scroll to Top on Desktop */
@media (min-width: 768px) {
    .scroll-top {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   9. Global Responsive System & Layout Reset
   -------------------------------------------------------------------------- */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

img,
iframe,
video {
    max-width: 100%;
    height: auto;
}

/* Mobile & Tablet Specific Layout Tweaks */
@media (max-width: 991px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .test-drive-form-card,
    .contact-form-card,
    .contact-info-card {
        padding: 1.25rem !important;
    }

    .header-logo img {
        max-height: 45px;
        width: auto;
    }
}

@media (max-width: 575px) {
    .btn-lg {
        padding: 12px 18px !important;
        font-size: 0.9rem !important;
    }

    .lm-floating-dock {
        width: calc(100% - 32px);
        padding: 6px 10px;
        gap: 6px;
    }

    .lm-float-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .lm-float-btn i {
        font-size: 14px;
    }
}