/* Contact accessibility and mobile layout */
html { scroll-padding-top: 96px; }
#contact { scroll-margin-top: 88px; }
#contact a[href^="tel:"], footer a[href^="tel:"] { text-decoration: underline; text-underline-offset: 4px; }
#contact input, #contact select, #contact textarea { min-width: 0; max-width: 100%; font-size: 16px; }
#contact input, #contact select, #contact button { min-height: 48px; }
#contact textarea { resize: vertical; min-height: 148px; }
#contact a:focus-visible, .contact-shortcuts a:focus-visible { outline: 3px solid #67e8f9; outline-offset: 4px; }
.mobile-contact-bar { display: none; }
.desktop-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: #16a34a; color: white; font-weight: 600; box-shadow: 0 8px 24px #0005; }
.desktop-whatsapp:hover { background: #15803d; }
@media (max-width: 639px) {
 body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
 #contact { padding: 32px 16px; scroll-margin-top: 80px; }
 #contact > div { padding: 24px 16px; gap: 28px; min-width: 0; }
 #contact > div > div { min-width: 0; }
 #contact > div > div:nth-child(2) { padding: 24px 16px; }
 #contact h3 { font-size: 28px; line-height: 1.25; }
 #contact h4 { font-size: 23px; line-height: 1.3; }
 #contact p { overflow-wrap: anywhere; }
 #contact form { margin-top: 20px; }
 #contact form input, #contact form select, #contact form textarea { width: 100%; padding-left: 12px; padding-right: 12px; }
 #contact a[href^="tel:"] { display: inline-flex; min-height: 48px; align-items: center; font-weight: 600; }
 #contact a[href^="mailto:"], #contact a[href*="wa.me"] { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
 .desktop-whatsapp { display: none; }
 .mobile-contact-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #080e20; border-top: 1px solid #ffffff24; box-shadow: 0 -4px 24px #0004; }
 .mobile-contact-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: white; font-size: 16px; font-weight: 700; }
 .mobile-call { background: #2563eb; }
 .mobile-whatsapp { background: #15803d; }
 body:has(#contact input:focus, #contact textarea:focus, #contact select:focus) .mobile-contact-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
