Park Smart • Hire Drivers • Wash Cars
/* ———- Responsive layout fixes (paste into your theme CSS / Custom CSS) ———- */
/* 1) Ensure page wrapper reserves space for sticky header (prevent hero overlap) */
.wrap { padding-top: 82px; } /* increase if your sticky nav is taller */
/* 2) Make hero safe: limit height, ensure video covers without pushing text */
.hero { position:relative; overflow:visible !important; padding-bottom: 18px; }
.hero video.hero-video,
.hero video { max-height: 56vh !important; width:100% !important; height:auto !important; object-fit:cover; display:block; }
/* 3) Hero content stacking on smaller screens (force vertical and avoid overlap) */
.hero-inner { display:flex; gap:20px; align-items:center; justify-content:space-between; }
@media (max-width: 980px) {
.hero-inner { flex-direction:column; align-items:stretch; gap:14px; }
.hero-right { width:100% !important; min-width:0 !important; }
.hero-left { text-align:center; }
}
/* 4) Card / services safe sizes — prevent fixed min-widths that cause overflow */
.service-card, .service, .card, .feature, .hero-card { box-sizing:border-box; min-width:0 !important; width:100%; }
/* 5) Tables / matrices responsive: allow horizontal scroll but make content wrap */
.matrix-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.matrix th, .matrix td { white-space:normal; word-break:break-word; }
/* 6) Prevent hero-right card from overlapping hero text (z-index & margin) */
.hero-right { z-index:6; margin-top:0; margin-left:0; box-shadow: var(–shadow); }
/* 7) Make sure grid of services stacks and text does not float behind elements */
.services, .features, .examples { grid-auto-rows: 1fr; align-items:stretch; }
/* 8) Text wrapping & font scaling for very small screens */
@media (max-width:420px) {
body { font-size:16px; }
.hero-title { font-size:1.4rem !important; line-height:1.18; }
h2 { font-size:1.1rem; }
.hero-left .lead, .hero-sub { font-size:0.98rem; }
.badge { padding:6px 10px; font-size:0.9rem; }
.hero-right { padding:14px !important; }
}
/* 9) Ensure iframes and embeds are responsive */
iframe, embed, video { max-width:100%; height:auto; display:block; }
/* 10) Fix potential z-index stacking where sticky nav overlays content incorrectly */
.topbar, .nav-wrap { z-index:1200; position:sticky; top:0; }
.hero-overlay { z-index:2; } /* ensures overlay is below hero content */
.hero-content, .hero-inner, .hero-left, .hero-right { z-index:3; position:relative; }
/* 11) Avoid fixed width anywhere in layout that can cause overflow on narrow viewports */
[class*=”min-width”], .fixed-width, .hero-card[style] { min-width:0 !important; }
/* 12) Accessibility & browser quirks: force reflow-friendly properties for mobile */
* { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
/* Optional: small smoothing for reveal animations on mobile to avoid jump */
@media (max-width:720px) {
.reveal { transition:opacity .35s ease, transform .35s ease; }
}
/* ———- End of patch ———- */