/* Mobile QA r1 (Mobile Bandit) fixes, reconciled with Gate R1 (css/marco-r1.css).
   Loads after marco-r1.css. Marco's colors are kept where they pass 4.5:1:
   teal text #1F7A74 (5.13:1 on white, 4.80:1 on #f4f8fa) and coral #D12F45 (5.0:1 with white). */

/* H1: contact at 320, email link must wrap */
.contact-grid > *{ min-width:0; }
.info-line-text{ min-width:0; }
.info-line-text a{ overflow-wrap:anywhere; word-break:break-word; }

/* L3: contact info icons centred on their 48px link rows */
.info-line{ align-items:center !important; }
.info-line .ap-ico, .info-line i{ margin-top:0 !important; }

/* H2(e): projects featured title was white on the white featured card */
.sec-color .featured-body h2{ color:#1e293b !important; }

/* H2(c): teal bands use Teal Text / Teal Dark so white text passes */
.quick-bar{ background:#1F7A74 !important; }
.cta-band{ background:linear-gradient(135deg,#1F7A74 0%,#17605B 100%) !important; }
.cta-band .btn-white, .btn-white{ color:#1F7A74 !important; }

/* M3: form field borders (UI contrast 3:1+) */
.form-group input, .form-group select, .form-group textarea,
#contact-form input, #contact-form select, #contact-form textarea,
#home-quote-form input, #home-quote-form select, #home-quote-form textarea{ border-color:#7b8fa1 !important; }
.field-error{ display:block; margin-top:4px; font-size:1rem; color:#B02238; font-weight:600; }
[aria-invalid="true"]{ border-color:#B02238 !important; box-shadow:0 0 0 2px rgba(176,34,56,.18) !important; }
.form-status{ margin-top:12px; font-size:1rem; font-weight:600; color:#1F7A74; }

/* L1: buttons, labels, tabs and small links at 16px */
.btn-primary, .btn-outline, .btn-white, .form-submit, .prod-link, .filter-tab,
.form-group label, #contact-form label, #home-quote-form label, .rep-name, .rep-role, .footer-bar{ font-size:1rem !important; }

/* L2: desktop footer "DPA Branding" tap target */
.footer-bar a{ display:inline-flex; align-items:center; min-height:48px; }

/* L7: centre partial last rows on category grids */
.prod-grid{ display:flex !important; flex-wrap:wrap; justify-content:center; }
.prod-grid > *{ flex:0 1 calc((100% - 3rem) / 3); max-width:calc((100% - 3rem) / 3); }
@media (max-width:900px){ .prod-grid > *{ flex-basis:calc((100% - 1.5rem) / 2); max-width:calc((100% - 1.5rem) / 2); } }
@media (max-width:600px){ .prod-grid > *{ flex-basis:100%; max-width:100%; } }

/* M1: reserve the trust bar height (filled by home.js after first paint) */
#trust-bar .trust-bar-inner{ min-height:98px; }
@media (max-width:1100px){ #trust-bar .trust-bar-inner{ min-height:121px; } }
@media (max-width:600px){ #trust-bar .trust-bar-inner{ min-height:0; } }
