/* MSM Networking Solutions, Inc. - site-wide styles.
   Page layout is defined inline in each page; this file holds the base rules,
   accessibility helpers, and small-screen adjustments. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: #0E1726;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

img, svg { max-width: 100%; }

a { color: #1F56C4; }
a:hover { color: #163F91; }

input, textarea, select, button { font: inherit; }

:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: #0E1726;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

#site-header { position: relative; z-index: 10; }
.menu-panel[hidden] { display: none !important; }

/* Menu button: shown on phones and tablets in portrait */
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid #CBD5E1; background: #FFFFFF; color: #0E1726; font-weight: 600; font-size: 15px; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: #F5F7FA; border-color: #1F56C4; }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  #primary-nav { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important;
                 padding: 8px 0 4px; border-top: 1px solid #E3E7EE; }
  #primary-nav.open { display: flex !important; }
  #primary-nav > a, #primary-nav > button { width: 100%; justify-content: space-between; min-height: 52px !important;
                 padding: 0 4px !important; font-size: 17px !important; border-bottom: 1px solid #EEF1F5 !important; }
  #primary-nav > [aria-current="page"] { color: #1F56C4 !important; font-weight: 600 !important; }
  #primary-nav > a:last-child { justify-content: center; margin: 14px 0 8px !important; border-bottom: 0 !important; color: #FFFFFF !important; }
  .menu-panel > div { grid-template-columns: 1fr !important; padding: 12px 16px !important; gap: 10px !important; }
}

/* Comfortable touch targets on touch screens */
@media (pointer: coarse) {
  footer a, dd a { display: inline-flex; align-items: center; min-height: 44px !important; }
  #f-sms { width: 24px !important; height: 24px !important; }
}

[data-carousel] .slide[hidden] { display: none; }

/* Hero slideshow: fade in, then a slow zoom */
[data-carousel] .slide img { animation: hero-fade 0.9s ease both, hero-zoom 9s ease-out both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

#form-status:empty { display: none; }
#contact-form button[disabled] { opacity: 0.7; cursor: progress; }

/* Spam trap field: hidden from people, visible to form-filling bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  section > div, section > article, article { padding-top: 56px !important; padding-bottom: 56px !important; }
  #site-header img { height: 48px !important; }
  /* keep hero text readable when it spans the full width */
  [data-carousel] > div:nth-child(2) { background: rgba(14, 23, 38, 0.84) !important; }
  [data-carousel] > div:nth-child(3) { padding-top: 72px !important; padding-bottom: 180px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-carousel] .slide img { animation: none; }
}

@media print {
  #site-header nav, .skip-link, [data-carousel] button { display: none !important; }
}
