/* PA Provide — stylesheet. WCAG 2.2 AAA target. */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  max-width: 100%;
}

/* Skip link — visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #004a8f;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  font-size: 1rem;
}
.skip-link:focus { top: 0; }

/* Focus ring — high contrast, AAA */
:focus-visible {
  outline: 3px solid #004a8f;
  outline-offset: 3px;
}

/* Header */
.site-header {
  background: #ffffff;
  padding: 1.75rem 1rem;
  text-align: center;
}
.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
}
.site-logo-link {
  display: inline-block;
}
.site-logo-link:focus {
  outline: 3px solid #004a8f;
  outline-offset: 6px;
}
.site-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Navigation */
.site-nav {
  background: #003d70;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.site-nav__inner {
  max-width: 960px;
  margin: 0 auto;
}
.site-nav ul {
  list-style: none;
  white-space: nowrap;
  overflow-x: auto;
  padding: 0;
  margin: 0;
}
.site-nav li {
  display: inline-block;
}
.site-nav a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav a:hover { background: #002c52; color: #ffffff; text-decoration: underline; }
.site-nav a:focus { background: #002c52; color: #ffffff; }
.site-nav a[aria-current="page"] {
  background: #002c52;
  color: #ffffff;
  border-bottom: 3px solid #f0a500;
}

/* Main */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Constrain line length for readability (WCAG AAA 1.4.8) */
main p, main li {
  max-width: 75ch;
}

/* Page headings */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #004a8f;
}
.page-header h1 {
  font-size: 2rem;
  color: #004a8f;
  line-height: 1.2;
}

/* Body text */
p { margin-bottom: 1rem; }
h2 {
  font-size: 1.375rem;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.125rem;
  color: #1a1a1a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
li { margin-bottom: 0.5rem; }
a { color: #004a8f; }
a:hover { color: #002c52; }

/* Home — intro */
.intro {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 70ch;
}

/* Home — service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.service-card {
  border: 2px solid #004a8f;
  border-radius: 4px;
  padding: 1.5rem;
}
.service-card h2 {
  font-size: 1.0625rem;
  color: #004a8f;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 1rem; }
.service-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Contact info box */
.contact-box {
  background: #eef3f9;
  border-left: 4px solid #004a8f;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.contact-box p { margin-bottom: 0.4rem; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box a { font-weight: 600; }

/* Team list */
.team-member {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}
.team-member:last-child { border-bottom: none; padding-bottom: 0; }
.team-member h3 { margin-top: 0; }

/* Testimonial */
.testimonial {
  border-left: 4px solid #004a8f;
  padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  margin: 2rem 0;
  background: #f8f9fa;
}
.testimonial p:last-child { margin-bottom: 0; }

/* Contact form */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) {
  .contact-columns { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-form { max-width: 480px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 1rem;
}
.required { color: #c0000c; margin-left: 0.2rem; }
.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #555;
  border-radius: 4px;
  background: #ffffff;
  color: #1a1a1a;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #004a8f;
  outline: 3px solid #004a8f;
  outline-offset: 0;
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* Honeypot — hidden from humans, bots fill it in */
.hp-field { display: none; }

.btn {
  display: inline-block;
  background: #004a8f;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { background: #003d70; color: #ffffff; }
.btn:focus { background: #003d70; outline: 3px solid #004a8f; outline-offset: 3px; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid;
  max-width: 70ch;
}
.alert--success { background: #e6f4ea; border-color: #1e7e34; color: #0d4a1e; }
.alert--error   { background: #fdecea; border-color: #c0000c; color: #6b0007; }
.alert ul { margin: 0.5rem 0 0; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #e8e8e8;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9375rem;
}
.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
}
.site-footer p { margin-bottom: 0.5rem; max-width: none; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #ffffff; }
