/* Medicus Diagnostic — shared styles */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; }
img { max-width: 100%; }
a { color: #1766B5; }
a:hover { color: #214478; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #009EE2;
  outline-offset: 2px;
}
input, select, textarea, button { font: inherit; color: #1B2733; }
button { cursor: pointer; }
section[id], article[id] { scroll-margin-top: 16px; }

/* Card links lift slightly on hover */
a[style*="border-radius: 16px"]:hover { box-shadow: 0 6px 20px rgba(33, 68, 120, 0.12); }

/* Phones */
@media (max-width: 640px) {
  h1 { font-size: 38px !important; }
  h2 { font-size: 30px !important; }
  section > div { padding-top: 56px !important; padding-bottom: 56px !important; }
  #contact-form { grid-template-columns: minmax(0, 1fr) !important; padding: 24px !important; }
  #contact-form > label { grid-column: 1 / -1; }
  img[style*="height: 520px"], img[style*="height: 440px"] { height: 320px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
