/* =====================================================================
   Additions for the CMS version of the site (loaded on every page).
   Colours follow the design: Charcoal #22272F / #14171C, Graphite #58585A,
   Racing Yellow #FFB800.
   ===================================================================== */

/* form result messages ([data-form-msg]) */
.cms-form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.cms-form-msg:empty { display: none; }
.cms-form-msg.is-ok { background: #ECFDF3; color: #166534; border: 1px solid #BBF7D0; }
.cms-form-msg.is-error { background: #FFF7E6; color: #92400E; border: 1px solid #FCD9A0; }
.cms-form-msg a { font-weight: 700; color: inherit; text-decoration: underline; }
.cms-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* draft preview ribbon (staff only) */
.cms-draft-note { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 99999;
    background: #FFB800; color: #14171C; font: 600 13px/1.3 'DM Sans', sans-serif; padding: 8px 16px;
    border-radius: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---------------------------------------------------------------------
   Mobile app bar (phones only): Home / Products / Call / WhatsApp / Email
   --------------------------------------------------------------------- */
.cms-tabbar { display: none; }
@media (max-width: 767px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
    .cms-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
        height: calc(64px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
        background: #ffffff; border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 20px rgba(20, 23, 28, .10);
    }
    .cms-tabbar a {
        flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        font: 500 11.5px/1.1 'DM Sans', sans-serif; color: #58585A !important; text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }
    .cms-tabbar .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round; display: block; }
    .cms-tabbar a.is-active { color: #14171C !important; font-weight: 700; }
    .cms-tabbar a.tab-wa .ic { color: #25D366; }
    .cms-tabbar a.tab-call { color: #14171C !important; font-weight: 700; justify-content: flex-end; padding-bottom: 8px; }
    .cms-tabbar a.tab-call .ic {
        width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        background: linear-gradient(145deg, #2C323C, #14171C); color: #FFB800;
        border: 4px solid #ffffff; box-shadow: 0 6px 16px rgba(20, 23, 28, .35);
    }
    .cms-tabbar a.tab-call .ic svg { width: 26px; height: 26px; }
    /* mobile: WhatsApp lives in the bottom bar only - hide the design's floating one */
    .floating-whatsapp-btn, .floating-whatsapp, .floating-wa-btn, .whatsapp-float { display: none !important; }
    /* back-to-top stays, above the bar */
    .floating-whatsapp, .floating-wa-btn, .whatsapp-float, .gallery-floating-actions, .floating-quick-actions,
    .scroll-to-top, #back-to-top, .back-to-top, .scroll-up { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}
@media print { .cms-tabbar, .cms-draft-note { display: none !important; } }

/* Rich text from the admin editor: quotes look like the design's callout box */
.bd-article-body blockquote, .cms-rich blockquote {
    background: #F8FAFC; border-left: 4px solid #F5C518; border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 34px 0;
    border-top: 1px solid #E2E8F0; border-right: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0;
    color: #58585A; font-size: .98rem; line-height: 1.65;
}
.bd-article-body blockquote strong:first-child, .cms-rich blockquote strong:first-child {
    display: block; font-family: 'Marcellus', serif; font-weight: 400; color: #22272F; font-size: 1.2rem; margin-bottom: 6px;
}
.bd-article-body img, .cms-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.cms-rich h2, .cms-rich h3 { font-family: 'Marcellus', serif; color: #22272F; margin: 18px 0 10px; }
.cms-rich p, .cms-rich li { color: #58585A; font-size: 14px; line-height: 1.7; }
.cms-initials { width: 50px; height: 50px; border-radius: 50%; background: #FFB800; color: #14171C; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700; }
.cms-dev-credit { color: #FFB800 !important; font-weight: 600; }

/* ---- legal + error pages (base_simple.html) ---- */
.cms-simple-section { padding: 70px 0 90px; background: #fff; }
.cms-legal { max-width: 860px; color: #3d434c; font-size: 16px; line-height: 1.75; }
.cms-legal h2 { font-size: 21px; color: #14171C; margin: 34px 0 10px; font-weight: 700; }
.cms-legal ul { padding-left: 20px; margin-bottom: 16px; }
.cms-legal li { margin-bottom: 6px; }
.cms-legal a { color: #14171C; text-decoration: underline; text-decoration-color: #FFB800; text-underline-offset: 3px; }
.cms-legal-updated { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #58585A; }
.cms-simple-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cms-btn-dark, .cms-btn-outline { display: inline-block; padding: 13px 26px; border-radius: 4px; font-weight: 600; text-decoration: none; transition: .2s; }
.cms-btn-dark { background: #14171C; color: #fff; } .cms-btn-dark:hover { background: #FFB800; color: #14171C; }
.cms-btn-outline { border: 1px solid #14171C; color: #14171C; } .cms-btn-outline:hover { background: #14171C; color: #fff; }
@media (max-width: 767px) { .cms-simple-section { padding: 44px 0 60px; } .cms-legal { font-size: 15px; } }
.cms-legal p, .cms-legal li { font-size: 16px; line-height: 1.75; color: #3d434c; }
@media (max-width: 767px) { .cms-legal p, .cms-legal li { font-size: 15px; } }

/* Footer: charcoal like the testimonials band (was graphite #58585A) */
footer .elementor-element.elementor-element-ecae855 { background-color: #22272F !important; }
footer .elementor-element.elementor-element-e0c3cbc { background-color: #14171C !important; border: 1px solid rgba(255,255,255,.08); }
footer .elementor-element.elementor-element-ecae855::before { background-color: #22272F !important; background-image: none !important; }
