/* Shared responsive form and touch improvements. */
.form-grid > *, .product-showcase-grid > *, .product-enquiry-grid > *, .contact-experience-grid > * { min-width:0; }
.form-grid input, .form-grid select, .form-grid textarea { max-width:100%; }
.blog-rich-content img, .blog-rich-content video, .blog-rich-content iframe { max-width:100%; }
.blog-rich-content, .contact-detail-list strong { overflow-wrap:anywhere; }
@media(max-width:991px) {
  /* Readable fields also prevent automatic zoom when focusing inputs on iOS. */
  main .form-grid input:not([type=checkbox]):not([type=radio]):not([type=hidden]), main .form-grid select, main .form-grid textarea, main .iti input.iti__tel-input { font-size:16px!important; }
  main .form-grid input:not([type=checkbox]):not([type=radio]):not([type=hidden]), main .form-grid select { min-height:48px!important; height:auto; }
  main .form-grid textarea { min-height:120px!important; }
  main .btn, .mosaic-menu-toggle, .mosaic-mobile-contact, .mosaic-category-child, .mega-product-link { min-height:44px; }
  .mosaic-menu-toggle { min-width:44px; justify-content:center; }
  .mosaic-mobile-contact { min-width:44px; }
  .mosaic-links { overscroll-behavior:contain; }
}
@media(max-width:575px) {
  .product-enquiry-form .form-grid { grid-template-columns:minmax(0,1fr); }
  .product-enquiry-form .form-grid .full { grid-column:1/-1; }
  .product-summary-actions .btn, .contact-form-submit .btn { width:100%; min-width:0; white-space:normal; }
  .site-popup { max-height:calc(100dvh - 32px); }
}

/* Keep the mobile logo inside its rail and give contact details a stable layout. */
@media(max-width:991px) {
  .site-header.mosaic-header, .site-header.mosaic-header.scrolled { height:108px; }
  .mosaic-header .mosaic-utility { height:30px; min-height:30px; flex:0 0 30px; width:100%; }
  .mosaic-header .mosaic-nav { width:100%; max-width:720px; height:76px; flex:0 0 76px; grid-template-columns:minmax(44px,1fr) 96px minmax(44px,1fr); padding:0 18px; gap:8px; }
  .mosaic-header .mosaic-brand { width:96px; height:76px; }
  .mosaic-header .mosaic-logo-crop { width:74px; height:64px; transform:none!important; }
  .mosaic-header .mosaic-brand .mosaic-logo-crop img { width:74px; height:auto; max-width:none; margin:0; }
  .mosaic-header .mosaic-menu-toggle { padding:6px 0; }
  .mosaic-header .mosaic-mobile-contact { width:44px; height:44px; }
}
@media(max-width:575px) {
  .mosaic-header .mosaic-utility { height:42px; min-height:42px; flex-basis:42px; }
  .mosaic-header .mosaic-utility > .container { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:4px 16px; flex-wrap:nowrap; }
  .mosaic-header .mosaic-utility-contacts { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:0; }
  .mosaic-header .mosaic-utility-contacts a { font-size:11px; line-height:17px; white-space:nowrap; gap:7px; }
  .mosaic-header .mosaic-utility-socials { margin:0; gap:4px; max-width:72px; flex-wrap:wrap; justify-content:flex-end; }
  .mosaic-header .utility-social-label { display:none; }
  .mosaic-header .mosaic-utility .mosaic-utility-socials a { width:28px; min-width:28px; height:28px; font-size:14px; }
  .mosaic-header .mosaic-nav { height:64px; flex-basis:64px; padding:0 16px; }
  .mosaic-header .mosaic-brand { height:64px; }
  .mosaic-header .mosaic-logo-crop { width:62px; height:54px; }
  .mosaic-header .mosaic-brand .mosaic-logo-crop img { width:62px; }
}

/* Mobile footer: brand first, paired link groups, then contact and credits. */
@media(max-width:650px) {
  .mosaic-footer-v2 { padding-top:24px; }
  .mosaic-footer-v2 > .container { width:calc(100% - 32px); }
  .mosaic-footer-v2 .mf-top { padding:22px 18px; border-radius:14px; margin:0; }
  .mosaic-footer-v2 .mf-eyebrow { display:block; font-size:9px; line-height:1.7; letter-spacing:1.2px; max-width:250px; }
  .mosaic-footer-v2 .mf-top h2 { font-size:clamp(22px,5.8vw,28px); line-height:1.22; letter-spacing:-.5px; margin-top:10px; }
  .mosaic-footer-v2 .mf-contact-button { display:flex; justify-content:space-between; width:100%; gap:12px; margin-top:20px; padding:11px 14px; min-height:48px; font-size:12px; }
  .mosaic-footer-v2 .mf-contact-button > span { flex:0 0 28px; }
  .mosaic-footer-v2 .mf-body { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; padding:26px 0 24px; }
  .mosaic-footer-v2 .mf-body > * { min-width:0; }
  .mosaic-footer-v2 .mf-brand { grid-column:1/-1; display:grid; grid-template-columns:84px minmax(0,1fr); align-items:center; gap:12px 20px; padding-bottom:22px; border-bottom:1px solid #c8cbbb; }
  .mosaic-footer-v2 .mf-brand > a { grid-row:1/3; align-self:center; }
  .mosaic-footer-v2 .mf-brand img { display:block; width:84px; height:auto; }
  .mosaic-footer-v2 .mf-brand p { margin:0; font-size:13px; max-width:180px; }
  .mosaic-footer-v2 .mf-socials:empty { display:none; }
  .mosaic-footer-v2 .mf-socials a { width:36px; height:36px; }
  .mosaic-footer-v2 .mf-links { padding:0; }
  .mosaic-footer-v2 .mf-links h3 { margin:0 0 10px; font-size:10px; letter-spacing:1px; }
  .mosaic-footer-v2 .mf-links > a { display:flex; align-items:center; min-height:40px; margin:0; font-size:13px; line-height:1.5; }
  .mosaic-footer-v2 .mf-contact { grid-column:1/-1; padding:20px; }
  .mosaic-footer-v2 .mf-contact > a { font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
  .mosaic-footer-v2 .mf-contact .mf-phone { font-size:21px; }
  .mosaic-footer-v2 .mf-contact p { font-size:12px; }
  .mosaic-footer-v2 .mf-bottom { padding:18px 0 calc(88px + env(safe-area-inset-bottom,0px)); gap:12px; align-items:stretch; }
  .mosaic-footer-v2 .mf-bottom .mf-copyright { padding:0; border:0; background:none; border-radius:0; font-size:11px; line-height:1.8; }
  .mosaic-footer-v2 .mf-bottom .mf-developer-credit { width:100%; padding:10px; gap:3px 6px; border-radius:10px; font-size:10px; line-height:1.7; }
  .mosaic-footer-v2 .mf-developer-credit a { font-size:11px; }
}

/* Mobile navigation starts at the top without the utility/contact strip. */
@media(max-width:991px) {
  body { --mobile-header-height:78px; }
  .mosaic-header .mosaic-utility { display:none; }
  .site-header.mosaic-header, .site-header.mosaic-header.scrolled { height:var(--mobile-header-height); }
  .mosaic-header .mosaic-links { max-height:calc(100svh - var(--mobile-header-height)); }
  main .film-hero, main .hero-cinematic { margin-top:var(--mobile-header-height); }
  body .page-hero.mosaic-page-banner { padding-top:calc(var(--mobile-header-height) + 40px)!important; }
  .breadcrumbs { padding-top:calc(var(--mobile-header-height) + 20px); }
}
@media(max-width:575px) {
  body { --mobile-header-height:66px; }
}
