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

/* Base — WCAG AA contrast: all text meets 4.5:1 minimum */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* Skip link — visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #0f2b46;
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 200;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* Focus indicators — visible outline for keyboard navigation */
a:focus,
button:focus {
  outline: 3px solid #c9963b;
  outline-offset: 2px;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
header {
  background-color: #0f2b46;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
}

.nav-logo:hover {
  color: #c9963b;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Hero */
.hero {
  background-color: #0f2b46;
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: #d1d5db;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Sections */
main section {
  padding: 4rem 0;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #0f2b46;
  text-align: center;
}

h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
  color: #0f2b46;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #c9963b;
  color: #0f2b46;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: #b8872f;
  color: #0f2b46;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid #c9963b;
  color: #0f2b46;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  background: transparent;
}

.btn-secondary:hover {
  background-color: #f7f8fa;
  color: #0f2b46;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background-color: #f7f8fa;
  border-radius: 8px;
  padding: 2rem;
  border-top: 3px solid #c9963b;
}

.card p {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* About */
.about {
  background-color: #f7f8fa;
}

.about p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #374151;
}

/* Page header — inner pages */
.page-header {
  background-color: #0f2b46;
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

/* Active nav state */
.nav-links a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 2px solid #c9963b;
  padding-bottom: 2px;
}

/* Service detail sections */
.service-detail {
  padding: 3rem 0;
}

.service-detail:nth-child(even) {
  background-color: #f7f8fa;
}

.service-detail h2 {
  text-align: left;
}

.service-detail p {
  max-width: 720px;
  color: #374151;
}

.service-detail ul {
  margin: 0 0 1rem 1.5rem;
  color: #374151;
}

.service-detail li {
  margin-bottom: 0.25rem;
}

/* Values grid — about page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.values-grid .card {
  text-align: center;
}

/* CTA section */
.cta-section {
  background-color: #0f2b46;
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #d1d5db;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact info */
.contact-info dl {
  max-width: 480px;
  margin: 2rem auto;
}

.contact-info dt {
  font-weight: 700;
  color: #0f2b46;
  margin-top: 1.5rem;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin-left: 0;
  color: #374151;
}

/* Links — WCAG: distinguishable by color + underline */
a {
  color: #0056b3;
  text-decoration: underline;
}

a:hover {
  color: #003d80;
}

/* Contact (accessibility page) */
address {
  font-style: normal;
}

address p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #0f2b46;
  padding: 2rem 0;
  text-align: center;
  color: #d1d5db;
  font-size: 0.875rem;
}

footer a {
  color: #d1d5db;
}

footer a:hover {
  color: #ffffff;
}

/* Accessibility page content styles */
.accessibility-content ul {
  margin: 0 0 1rem 1.5rem;
}

.accessibility-content li {
  margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .service-detail {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .card-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
