/* LOADMATE H1 extraction v2 — from inline <style> in lm-footer.php */

/* ==========================================================================
   1. HIDE ORIGINAL ASTRA FOOTER — for every lm-template-* page
   ========================================================================== */
body[class*="lm-template-"] .site-footer,
body[class*="lm-template-"] footer.site-footer,
body[class*="lm-template-"] #colophon,
body[class*="lm-template-"] .ast-small-footer,
body[class*="lm-template-"] .ast-small-footer-wrap,
body[class*="lm-template-"] .ast-small-footer-section-1,
body[class*="lm-template-"] .ast-small-footer-section-2,
body[class*="lm-template-"] .ast-footer-overlay,
body[class*="lm-template-"] .footer-widget-area,
body[class*="lm-template-"] .footer-widget-area-inner,
body[class*="lm-template-"] .footer-sml-section-1,
body[class*="lm-template-"] .footer-sml-section-2,
body[class*="lm-template-"] [data-section="section-footer-builder"],
body[class*="lm-template-"] [class*="ast-builder-footer"],
body[class*="lm-template-"] [class*="ast-builder-grid-row-container"][class*="footer"],
body[class*="lm-template-"] [class*="ast-builder-grid-row"][class*="footer"],
body[class*="page-template-tpl-"] .site-footer,
body[class*="page-template-tpl-"] footer.site-footer,
body[class*="page-template-tpl-"] #colophon,
body[class*="page-template-tpl-"] .ast-small-footer,
body[class*="page-template-tpl-"] .ast-small-footer-wrap,
body[class*="page-template-tpl-"] .ast-small-footer-section-1,
body[class*="page-template-tpl-"] .ast-small-footer-section-2,
body[class*="page-template-tpl-"] .ast-footer-overlay,
body[class*="page-template-tpl-"] .footer-widget-area,
body[class*="page-template-tpl-"] .footer-widget-area-inner,
body[class*="page-template-tpl-"] .footer-sml-section-1,
body[class*="page-template-tpl-"] .footer-sml-section-2,
body[class*="page-template-tpl-"] [data-section="section-footer-builder"],
body[class*="page-template-tpl-"] [class*="ast-builder-footer"],
body[class*="page-template-tpl-"] [class*="ast-builder-grid-row-container"][class*="footer"],
body[class*="page-template-tpl-"] [class*="ast-builder-grid-row"][class*="footer"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

/* ==========================================================================
   2. CUSTOM LOADMATE FOOTER
   ========================================================================== */
.lm-footer {
    background: #f1f1f1;
    color: #000000;
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    box-sizing: border-box;
    border-top: 4px solid #ffb600;
}
.lm-footer * { box-sizing: border-box; }

.lm-footer__inner { padding: 3.5rem 0 0; }
@media (min-width: 768px)  { .lm-footer__inner { padding: 4rem 0 0; } }
@media (min-width: 1024px) { .lm-footer__inner { padding: 4.5rem 0 0; } }

.lm-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}
@media (min-width: 768px) { .lm-footer__container { padding: 0 2rem; } }

/* ----- 4-COLUMN GRID ----- */
.lm-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
    .lm-footer__main { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}
@media (min-width: 1024px) {
    .lm-footer__main {
        grid-template-columns: 1fr 1fr 1.2fr 1.3fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
}

/* Shared column title — yellow underline */
body[class*="lm-template-"] .lm-footer__column-title,
.lm-footer__column-title,
body[class*="page-template-tpl-"] .lm-footer__column-title {
    font-family: var(--lm-font-heading) !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 1.5rem !important;
    padding-bottom: 0.875rem !important;
    border-bottom: 3px solid #ffb600 !important;
    display: inline-block !important;
    background: none !important;
    line-height: 1 !important;
}

/* ==========================================================================
   COL 1: BROCHURES (PDF icons inline)
   ========================================================================== */
.lm-footer__brochures-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lm-footer__brochure-item {
    margin-bottom: 0.875rem;
}
.lm-footer__brochure-item:last-child { margin-bottom: 0; }

.lm-footer__brochure-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #000000;
    text-decoration: none;
    font-family: var(--lm-font-body);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 200ms ease, padding-left 200ms ease;
}
.lm-footer__brochure-item a:hover {
    color: inherit;
    padding-left: 4px;
}
.lm-footer__brochure-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: #ffb600;
    transition: color 200ms ease;
}
.lm-footer__brochure-icon svg { width: 18px; height: 18px; }
.lm-footer__brochure-item a:hover .lm-footer__brochure-icon {
    color: #ffb600;
}

/* ==========================================================================
   COL 2: COMPANY LINKS (chevron prefix)
   ========================================================================== */
.lm-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lm-footer__links li { margin-bottom: 0.75rem; }
.lm-footer__links li:last-child { margin-bottom: 0; }

.lm-footer__links a {
    color: #000000;
    text-decoration: none;
    font-family: var(--lm-font-body);
    font-size: 0.875rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 200ms ease, padding-left 200ms ease;
}
.lm-footer__links a::before {
    content: '»';
    color: #ffb600;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    transition: color 200ms ease;
}
.lm-footer__links a:hover {
    color: inherit;
    padding-left: 4px;
}
.lm-footer__links a:hover::before {
    color: #ffb600;
}

/* ==========================================================================
   COL 3: CONTACT (yellow circular icon badges)
   ========================================================================== */
.lm-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}
.lm-footer__contact-item:last-child { margin-bottom: 0; }

.lm-footer__contact-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: #ffb600;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    transition: background 200ms ease, transform 200ms ease;
}
.lm-footer__contact-item:hover .lm-footer__contact-icon {
    background: #f1f1f1;
    color: #ffb600;
    transform: scale(1.05);
}
.lm-footer__contact-icon svg { width: 14px; height: 14px; }
body[class*="lm-template-"] .lm-footer__contact-text,
.lm-footer__contact-text,
body[class*="page-template-tpl-"] .lm-footer__contact-text {
    color: #000000 !important;
    font-family: var(--lm-font-body);
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    background: none !important;
}
body[class*="lm-template-"] .lm-footer__contact-name,
.lm-footer__contact-name,
body[class*="page-template-tpl-"] .lm-footer__contact-name {
    color: #000000 !important;
    font-family: var(--lm-font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    display: block !important;
    margin: 0 0 0.4rem !important;
    background: none !important;
    line-height: 1.3 !important;
}

.lm-footer__contact-text a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
}
.lm-footer__contact-text a:hover { color: inherit; }

/* Sales / Service line labels */
.lm-footer__contact-label {
    font-family: var(--lm-font-heading) !important;
    font-weight: 700;
    color: #000000;
}

/* No colour change on hover anywhere in the footer — links keep their resting colour */
.lm-footer a:hover, .lm-footer a:hover *,
.lm-footer a:focus, .lm-footer a:focus * { color: inherit !important; }

/* ==========================================================================
   COL 4: CONTACT FORM (compact, fits in column)
   ========================================================================== */
.lm-ff__form { display: block; }

.lm-ff__field { margin-bottom: 0.75rem; }
.lm-ff__field:last-of-type { margin-bottom: 0.875rem; }

.lm-ff__input,
.lm-ff__textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,0.18);
    color: #000000;
    font-family: var(--lm-font-body);
    font-size: 0.875rem;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.lm-ff__input::placeholder,
.lm-ff__textarea::placeholder {
    color: rgba(0,0,0,0.50);
    opacity: 1;
}
.lm-ff__input:focus,
.lm-ff__textarea:focus {
    border-color: #ffb600;
    box-shadow: 0 0 0 3px rgba(255,182,0,0.20);
}
.lm-ff__textarea {
    resize: vertical;
    min-height: 90px;
}

.lm-ff__submit {
    width: 100%;
    display: inline-block;
    background: #ffb600;
    color: #000000 !important;
    border: 2px solid #ffb600;
    padding: 0.875rem 1.5rem;
    font-family: var(--lm-font-heading);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    margin-top: 0.25rem;
    transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lm-ff__submit:hover {
    background: #ffb600;
    border-color: #ffb600;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255,182,0,0.30);
}

/* Visually hidden labels — readable by screen-readers */
.lm-ff__label-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. BOTTOM COPYRIGHT BAR (certs + copyright in one row)
   ========================================================================== */
.lm-footer__bottom {
    border-top: 1px solid #f1f1f1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 768px) {
    .lm-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 1.5rem;
    }
}

.lm-footer__certs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .lm-footer__certs { justify-content: flex-start; }
}
.lm-footer__cert {
    color: #000000;
    font-family: var(--lm-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.lm-footer__cert::before {
    content: '';
    width: 6px; height: 6px;
    background: #ffb600;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
body[class*="lm-template-"] .lm-footer__copyright,
.lm-footer__copyright,
body[class*="page-template-tpl-"] .lm-footer__copyright {
    color: #000000 !important;
    font-size: 0.8125rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    background: none !important;
}
