/* ==========================================================================
   JMC Azerbaijan – site-wide styles
   (layout chrome, lead modals, sticky navigation, shared helpers)
   Loaded on every page after style.css / homepage.css / product-custom.css.
   ========================================================================== */

/* lazysizes was removed: make sure nothing stays invisible because of its class */
img.lazyload { opacity: 1; }

/* Placeholder used when a record has no picture */
img.is-placeholder { object-fit: contain !important; background: #f2f4f7; }

/* Header offset for pages that start with a title (replaces <br> stacks) */
.page-offset { padding-top: 96px; }
.page-title { text-align: center; }
.section-gap { height: 48px; }

/* Google Tag Manager noscript frame */
.gtm-noscript { display: none; visibility: hidden; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.product-submenu img { margin: auto; }
.navbar-mobile .dropdown-item img { margin: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer__top { background-color: #f9f9fa; color: #323b4f; }
.footer__bottom { background-color: #262f36; }
.footer .follow-title { margin-right: 10px; font-size: 20px; }
.footer-mobile .follow-title { font-size: 16px; }
.footer-mobile .follow-heading { margin-top: 10px; }
.footer .icon-wrapper { height: 60px; }
.footer .icon-wrapper .footer-icon { font-size: 28px; color: #fff; }
.footer .icon-link img { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   WhatsApp floating button
   -------------------------------------------------------------------------- */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    z-index: 1000;
    text-decoration: none;
}
.whatsapp-button svg { width: 44px; height: 44px; }
.whatsapp-button:hover { background-color: #1ebe57; box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }
@media (max-width: 768px) {
    .whatsapp-button { bottom: 12%; }
}

/* --------------------------------------------------------------------------
   Sticky side navigation (desktop) – base rules live in homepage.css
   -------------------------------------------------------------------------- */
.stickySideNav .btn-icon-wrapper img { width: 32px; height: 32px; }
.stickySideNav .toogle-button { padding: 15px 25px 30px !important; }
.stickySideNav.is-collapsed .toogle-button { padding: 25px 29px 30px !important; }
.stickyBottomNav a img { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   Lead modals (Bitrix24 CRM forms)
   Own class names so they never collide with Bootstrap's .modal
   -------------------------------------------------------------------------- */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, .5);
}
.lead-modal[hidden] { display: none; }
.lead-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 20px 20px;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 8px;
}
.lead-modal__close {
    position: absolute;
    top: 4px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.lead-modal__close:hover,
.lead-modal__close:focus { color: #000; outline: none; }
.lead-modal__body { min-height: 120px; }
body.lead-modal-open { overflow: hidden; }
@media (max-width: 768px) {
    .lead-modal__dialog { padding: 24px 15px 15px; }
    .lead-modal__close { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   Loan calculator (Bootstrap modal + inline block on the product page)
   -------------------------------------------------------------------------- */
.loan-calc-modal .modal-header { background: #c3002f; color: #fff; }
.loan-calc-modal .modal-header .btn-close { position: static; }
.loan-calc-modal .modal-content { border-radius: 12px; background: #f9f9f9; }
.loan-calc-results {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
}
.loan-calc-results p { margin-bottom: .5rem; }

/* --------------------------------------------------------------------------
   Brochure modal
   -------------------------------------------------------------------------- */
#productModal .list-group-item b { color: #123a63; }

/* --------------------------------------------------------------------------
   Homepage bits that used to be inline
   -------------------------------------------------------------------------- */
.banner .banner-caption { position: absolute; top: 0; width: 100%; max-width: 100vw; height: auto; }
.banner .hbd-img { width: 100%; }
.banner .banner-mobile-caption { white-space: normal; background: #f9f9fa; }
.banner .hbm-btn { border: 1px solid #ec1c24; }

#product .car-desc-wrapper { text-align: left; }
#product .car-desc-label.no-indent { padding-left: 0; }
#product .explore-btn { border: 1px solid #c3002f; }
#product .price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#product .old-price { opacity: .7; font-size: 18px; font-weight: 500; margin: 0; }
#product .old-price .discount-badge { opacity: 1; }
#product .new-price { color: #1d3557; font-size: 35px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
#product .discount-badge { background-color: #ffce00; color: #000; font-size: 14px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

#technology .banner-img img { width: 100%; max-height: unset; }
#technology .tech-icon { font-size: 56px; line-height: 1; color: #fff; display: block; margin-bottom: 12px; }
#technology .btn-icon-wrapper { display: flex; align-items: center; justify-content: center; min-height: 72px; }

/* --------------------------------------------------------------------------
   "Also interesting" section (all pages)
   -------------------------------------------------------------------------- */
.section-iminterested .btn-white { width: 100%; }
