/* MinistryWorksCPA site styles. Most layout lives inline in each page; this file holds shared basics. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #FAF6EC; overflow-x: hidden; }
a { color: #1B3A6B; }
a:hover { color: #142C52; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #BF9000; outline-offset: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #1B3A6B; color: #fff; padding: 10px 16px; border-radius: 8px; font: 700 16px Calibri, Carlito, 'Segoe UI', Arial, sans-serif; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }
#sent-msg:not([hidden]) { display: flex; }
.tool-panel:not([hidden]) { display: flex; }
.tool-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 16px 20px; min-height: 44px; border-radius: 10px; cursor: pointer; font-family: inherit;
  border: 2px solid #E4DCC8; background: #FFFFFF; color: #1B3A6B;
}
.tool-tab[aria-selected="true"] { border-color: #1B3A6B; background: #1B3A6B; color: #FFFFFF; }
/* Contact form fields */
#contact-form input, #contact-form select, #contact-form textarea {
  font: inherit; color: #1F2430; border: 1.5px solid #B9AE93; border-radius: 8px; padding: 11px 14px;
  background: #FFFFFF; box-sizing: border-box; width: 100%;
}
#contact-form label { font-weight: 700; font-size: 16px; color: #1B3A6B; display: flex; flex-direction: column; gap: 6px; }
#contact-form { position: relative; }
/* Phones and small tablets */
@media (max-width: 640px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="minmax(380px"], [style*="minmax(480px"] { min-width: 0 !important; }
  section > div[style*="padding: 80px"], section[style*="padding: 80px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  img[style*="height: 560px"], img[style*="height: 520px"], img[style*="height: 500px"] { height: 360px !important; }
}
@media (max-width: 640px) {
  #client-menu > div { left: 0 !important; right: auto !important; }
}
