/* ==========================================================
   metalbelts.co.za – design refresh (Oct 2026)
   Loaded after main.css. Keeps the UpConstruction template,
   modernises colours, buttons, cards and product pages.
   ========================================================== */

:root {
  --accent-color: #1565c0;          /* deeper steel blue, readable on white */
  --accent-soft: #e8f1fb;
  --heading-color: #16263a;
  --default-color: #3a4a59;
  --steel-900: #0f1c2b;
  --steel-700: #24384d;
  --line: #e3e8ee;
  --wa-green: #128c4b;
  --radius: 12px;
  --nav-dropdown-hover-color: #1565c0;
}

body { color: var(--default-color); }
h1, h2, h3, h4, h5 { color: var(--heading-color); }

/* Logo: the site name is no longer an H1 (one H1 per page) */
.header .logo .sitename { font-size: 24px; margin: 0; padding: 0; font-weight: 700; font-family: var(--heading-font); color: var(--heading-color); }
.footer .footer-about .logo .sitename { color: var(--heading-color); }

/* ---------- Buttons ---------- */
.mb-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 8px; font-family: var(--nav-font); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.mb-btn:hover { transform: translateY(-1px); }
.mb-btn-primary { background: var(--accent-color); color: #fff; }
.mb-btn-primary:hover { background: #0d4f9c; color: #fff; }
.mb-btn-wa { background: #fff; color: var(--wa-green); border-color: var(--wa-green); }
.mb-btn-wa:hover { background: var(--wa-green); color: #fff; }
.mb-btn-ghost { background: transparent; color: var(--heading-color); border-color: var(--line); }
.mb-btn-ghost:hover { border-color: var(--accent-color); color: var(--accent-color); }
.mb-btn i { font-size: 1.1em; }

/* ---------- Compact page title (product pages) ---------- */
.page-title.page-title-compact { padding: 130px 0 36px; text-align: left; }
.page-title.page-title-compact:before { background: linear-gradient(90deg, rgba(15,28,43,.92) 0%, rgba(15,28,43,.7) 100%); }
.page-title.page-title-compact .eyebrow { color: #9cc3ef; font-family: var(--nav-font); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.page-title.page-title-compact h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.page-title.page-title-compact .breadcrumbs ol { justify-content: flex-start; }

/* ---------- Product intro ---------- */
.mb-product-intro { padding: 56px 0 40px; }
.mb-product-intro .mb-main-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(15,28,43,.12); background: #fff; border: 1px solid var(--line); }
.mb-product-intro .mb-main-img img { width: 100%; height: auto; display: block; }
.mb-lead { font-size: 1.12rem; line-height: 1.7; color: var(--default-color); }
.mb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.mb-chips li { background: var(--accent-soft); color: #0d3f7a; border-radius: 999px; padding: .4rem .85rem; font-size: .88rem; font-weight: 600; }
.mb-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.mb-note { font-size: .88rem; color: #6b7a88; margin-top: .9rem; }

/* ---------- Sections ---------- */
.mb-section { padding: 56px 0; }
.mb-section.alt { background: #f5f7fa; }
.mb-section h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: .75rem; }
.mb-section .mb-sub { color: #6b7a88; max-width: 720px; margin-bottom: 1.75rem; }

.mb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; }

/* Spec table */
.mb-spec-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mb-spec-table th, .mb-spec-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .97rem; }
.mb-spec-table tr:last-child th, .mb-spec-table tr:last-child td { border-bottom: 0; }
.mb-spec-table th { width: 38%; background: #f8fafc; color: var(--heading-color); font-weight: 600; }

/* Feature list */
.mb-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.mb-feature-list li { position: relative; padding-left: 2rem; line-height: 1.6; }
.mb-feature-list li > i { position: absolute; left: 0; top: .1rem; color: var(--accent-color); font-size: 1.15rem; }

/* Industries */
.mb-industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.mb-industry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; }
.mb-industry i { font-size: 1.6rem; color: var(--accent-color); display: block; margin-bottom: .6rem; }
.mb-industry span { font-weight: 600; color: var(--heading-color); }

/* Gallery */
.mb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mb-gallery a { display: block; border-radius: 10px; overflow: hidden; background: #eef1f4; aspect-ratio: 4 / 3; }
.mb-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mb-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 575px) { .mb-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Catalogue download box */
.mb-download { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--steel-900); color: #dbe6f2; border-radius: var(--radius); padding: 24px 28px; }
.mb-download h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .25rem; }
.mb-download p { margin: 0; }
.mb-download .mb-btn-primary { background: #fff; color: var(--steel-900); }
.mb-download .mb-btn-primary:hover { background: var(--accent-soft); }

/* FAQ */
.mb-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0; margin-bottom: .75rem; }
.mb-faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; color: var(--heading-color); position: relative; }
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary:after { content: "+"; position: absolute; right: 1.25rem; top: .8rem; font-size: 1.4rem; color: var(--accent-color); }
.mb-faq details[open] summary:after { content: "–"; }
.mb-faq details p { padding: 0 1.25rem 1.1rem; margin: 0; }

/* Quote card (re-uses the template's php-email-form behaviour) */
.mb-quote { background: linear-gradient(135deg, var(--steel-900), var(--steel-700)); color: #dbe6f2; }
.mb-quote h2, .mb-quote h3 { color: #fff; }
.mb-quote .mb-quote-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.mb-quote .mb-quote-points i { color: #9cc3ef; margin-right: .5rem; }
.mb-quote .mb-quote-points a { color: #fff; }
.mb-quote .php-email-form { background: #fff; color: var(--default-color); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.mb-quote .php-email-form h3 { color: var(--heading-color); font-size: 1.15rem; margin-bottom: 1rem; }
.mb-quote .php-email-form .form-control, .mb-quote .php-email-form .form-select { border-radius: 8px; padding: .7rem .9rem; border-color: #ced6df; }
.mb-quote .php-email-form .form-control:focus, .mb-quote .php-email-form .form-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.mb-quote .php-email-form label { font-size: .88rem; font-weight: 600; color: var(--heading-color); margin-bottom: .3rem; }
.mb-quote .php-email-form button[type=submit] { background: var(--accent-color); color: #fff; border: 0; border-radius: 8px; padding: .85rem 2rem; font-weight: 600; width: 100%; }
.mb-quote .php-email-form button[type=submit]:hover { background: #0d4f9c; }
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; }
.php-email-form .loading.d-block, .php-email-form .error-message.d-block, .php-email-form .sent-message.d-block { display: block; }
.php-email-form .error-message { background: #df1529; color: #fff; padding: 10px; border-radius: 6px; margin-bottom: 12px; text-align: left; }
.php-email-form .loading { color: var(--accent-color); margin-bottom: 12px; }

/* Related belts */
.mb-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.mb-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--heading-color); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.mb-related a:hover { box-shadow: 0 12px 30px rgba(15,28,43,.12); transform: translateY(-2px); }
.mb-related img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.mb-related .mb-related-body { padding: 1rem 1.1rem 1.2rem; }
.mb-related h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; }
.mb-related span { color: var(--accent-color); font-weight: 600; font-size: .9rem; }

/* Sticky mobile call-to-action */
.mb-sticky-cta { display: none; }
@media (max-width: 991px) {
  .mb-sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(15,28,43,.12); }
  .mb-sticky-cta .mb-btn { flex: 1; justify-content: center; padding: .75rem .5rem; }
  body.has-sticky-cta { padding-bottom: 76px; }
  body.has-sticky-cta .scroll-top { bottom: 90px; }
}

/* ---------- Products overview grid ---------- */
.mb-belt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.mb-belt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; scroll-margin-top: 100px; }
.mb-belt-card:hover { box-shadow: 0 14px 34px rgba(15,28,43,.12); transform: translateY(-3px); }
.mb-belt-card .mb-belt-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.mb-belt-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.mb-belt-body h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .4rem; }
.mb-belt-body h3 a { color: var(--heading-color); }
.mb-belt-body h3 a:hover { color: var(--accent-color); }
.mb-belt-body p { margin-bottom: .75rem; }
.mb-chips.mb-chips-sm { margin: 0 0 1rem; }
.mb-chips.mb-chips-sm li { font-size: .78rem; padding: .3rem .65rem; }
.mb-belt-actions { display: flex; gap: .6rem; margin-top: auto; }
.mb-belt-actions .mb-btn { flex: 1; justify-content: center; padding: .65rem .9rem; font-size: .9rem; }

/* ---------- Home page ---------- */
.hero .info .hero-sub { color: rgba(255,255,255,.9); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.hero .info .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .info .hero-ctas .mb-btn { padding: 13px 26px; }

.mb-usp { background: var(--steel-900); color: #fff; padding: 22px 0; }
.mb-usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mb-usp-item { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.mb-usp-item i { font-size: 26px; color: #6fb1ff; flex-shrink: 0; }
.mb-usp-item strong { display: block; color: #fff; font-family: var(--heading-font); font-size: 15px; }
.mb-usp-item span { display: block; color: rgba(255,255,255,.72); font-size: 13.5px; }
@media (max-width: 991px) { .mb-usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .mb-usp-grid { grid-template-columns: 1fr; gap: 14px; } }

.services .service-item h3 a { color: inherit; }
.mb-range-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

.mb-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 10px; }
.mb-app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; transition: box-shadow .2s, transform .2s; }
.mb-app:hover { box-shadow: 0 10px 30px rgba(15,28,43,.08); transform: translateY(-2px); }
.mb-app .mb-app-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.mb-app h3 { font-size: 19px; margin: 0 0 6px; }
.mb-app p { font-size: 15px; margin: 0 0 14px; }
.mb-app ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mb-app ul a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-color); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.mb-app ul a:hover { background: var(--accent-color); color: #fff; }

.constructions video { display: block; background: #0f1c2b; aspect-ratio: auto 16 / 9; }

.mb-thanks { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 30px; }
.mb-thanks > i { font-size: 54px; color: var(--wa-green); display: block; margin-bottom: 12px; }
.mb-thanks .mb-cta-row { justify-content: center; }
.constructions .card-item .card-bg { display: flex; align-items: center; background: #0f1c2b; }
@media (max-width: 1199px) { .constructions .card-item .card-bg { min-height: 0; } }
@media (max-width: 575px) {
  .hero .info h1 { font-size: 28px; }
  .hero .info .hero-sub { font-size: 15.5px; margin-bottom: 20px; }
}
.footer .footer-contact a { color: #fff; }
.footer .footer-contact a:hover { color: #6fb1ff; }
.footer .credits a { color: #6fb1ff; }

/* ---------- Speed & accessibility pass (Oct 2026) ---------- */
/* Above-the-fold content shows straight away and still "rolls in" (CSS only, no waiting for the page to load) */
@keyframes mbRise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mb-rise { animation: mbRise .7s ease-out both; }
.mb-rise-d1 { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .mb-rise { animation: none; } }
/* Footer photo only loads when the footer comes near the screen */
.footer { background-image: none; background-color: var(--background-color); }
.footer.bg-in { background-image: url("../img/footer-bg-1200.webp"); }
/* Stronger text contrast */
:root { --wa-green: #0f7f44; }
.mb-note, .mb-section .mb-sub { color: #5f6e7b; }
/* Headings re-levelled for screen readers - same look as before */
.alt-services .about-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.alt-services .about-title:after { content: ""; background: var(--accent-color); position: absolute; display: block; width: 50px; height: 3px; left: 0; bottom: 0; }
.alt-services .icon-box h3 { font-weight: 700; margin-bottom: 10px; font-size: 18px; }
.alt-services .icon-box h3 a { color: var(--heading-color); transition: 0.3s; }
.alt-services .icon-box h3 a:hover { color: var(--accent-color); }
.constructions .card-item h3 { font-weight: 700; font-size: 20px; margin-bottom: 15px; }
.footer .footer-title { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }
