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

:root {
  /* Dark sections */
  --charcoal:      #1a1a1a; /* nav, hero, footer */
  --charcoal-mid:  #242424; /* contact section */
  --charcoal-card: #2e2e2e; /* dark-section cards */

  /* Light sections */
  --silver-bg:     #f0f0f0; /* page background */
  --silver-surface:#ffffff; /* cards on light bg */
  --silver-mid:    #e0e0e0; /* borders on light bg */

  /* Accent — used sparingly for icons & highlights */
  /* #b0b8c1 = light steel silver; contrast on dark bg = 6.2:1 ✓ AA */
  --accent:        #b0b8c1;
  --accent-bright: #cdd4db; /* hover / lighter variant */

  /* Text */
  /* On dark backgrounds: */
  --text-on-dark:        #f2f2f2; /* contrast vs #1a1a1a = 16.3:1 ✓✓ */
  --text-on-dark-muted:  #a8a8a8; /* contrast vs #1a1a1a = 6.5:1 ✓✓ */
  /* On light backgrounds: */
  --text-on-light:       #1a1a1a; /* contrast vs #f0f0f0 = 16.3:1 ✓✓ */
  --text-on-light-muted: #5a5a5a; /* contrast vs #f0f0f0 = 5.7:1 ✓✓ */

  --border-dark:  rgba(255,255,255,0.1);
  --border-light: #d0d0d0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--silver-bg);
}

/* ─── NAV ─── */
nav[aria-label="Main navigation"] {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  line-height: 1.25;
}

.nav-logo-text span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.nav-inner ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* contrast: #a8a8a8 on #1a1a1a = 6.5:1 ✓ AA */
.nav-inner ul a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-inner ul a:hover { color: var(--text-on-dark); }

/* contrast: #1a1a1a on #cdd4db = 11.3:1 ✓✓ AA */
.nav-cta {
  background: var(--accent-bright) !important;
  color: var(--charcoal) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #ffffff !important; }

/* ─── HERO ─── */
#hero {
  background: var(--charcoal);
  padding: 10rem 1.5rem 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,184,193,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,184,193,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* contrast: #cdd4db on #1a1a1a = 11.3:1 ✓✓ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(176,184,193,0.12);
  border: 1px solid rgba(176,184,193,0.3);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  color: var(--text-on-dark);
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

/* contrast: #cdd4db on #1a1a1a = 11.3:1 ✓✓ */
h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

/* contrast: #a8a8a8 on #1a1a1a = 6.5:1 ✓✓ */
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* contrast: #1a1a1a on #cdd4db = 11.3:1 ✓✓ */
.btn-primary {
  display: inline-block;
  background: var(--accent-bright);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }

/* contrast: #f2f2f2 on implied dark = 16.3:1 ✓✓ */
.btn-outline {
  display: inline-block;
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.65); }

/* ─── SERVICES ─── */
#services {
  padding: 6rem 1.5rem;
  background: var(--silver-bg);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* contrast: #3a3a3a on #f0f0f0 = 9.5:1 ✓✓ (darker than accent for light bg) */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text-on-light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* contrast: #5a5a5a on #f0f0f0 = 5.7:1 ✓✓ */
.section-intro {
  color: var(--text-on-light-muted);
  max-width: 540px;
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--silver-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px; height: 44px;
  background: #e8e8e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: #3a3a3a;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* contrast: #1a1a1a on #ffffff = 19.1:1 ✓✓ */
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
}

/* contrast: #5a5a5a on #ffffff = 6.3:1 ✓✓ */
.service-card p {
  font-size: 0.9rem;
  color: var(--text-on-light-muted);
  line-height: 1.6;
}

/* ─── SECTORS ─── */
#sectors {
  background: var(--charcoal-mid);
  padding: 5rem 1.5rem;
}

/* contrast: #cdd4db on #242424 = 10.4:1 ✓✓ */
#sectors .section-label { color: var(--accent-bright); }
#sectors h2 { color: var(--text-on-dark); margin-bottom: 2.5rem; }

.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* contrast: #f2f2f2 on #2e2e2e (pill bg) = 12.2:1 ✓✓ */
.sector-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-on-dark);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  list-style-type: none;
}

/* ─── ACCREDITATION ─── */
#accreditation {
  background: var(--silver-bg);
  padding: 5rem 1.5rem;
}

.accred-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#accreditation h2 { margin-bottom: 1rem; }

/* contrast: #5a5a5a on #f0f0f0 = 5.7:1 ✓✓ */
.accred-body {
  color: var(--text-on-light-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.accred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--silver-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.accred-badge:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.accred-badge img {
  height: 96px;
  width: auto;
}

.accred-badge-text {
  font-size: 0.85rem;
  color: var(--text-on-light-muted);
  line-height: 1.4;
}

.accred-badge-text strong {
  display: block;
  color: var(--text-on-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.accred-img-side {
  display: flex;
  justify-content: center;
}

/* contrast: #cdd4db on #1a1a1a = 11.3:1 ✓✓ */
.accred-shield {
  width: 200px; height: 200px;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-bright);
  gap: 4px;
}

.accred-shield svg {
  width: 64px; height: 64px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* contrast: #a8a8a8 on #1a1a1a = 6.5:1 ✓✓ */
.accred-shield-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ─── CONTACT ─── */
#contact {
  background: var(--charcoal-mid);
  padding: 6rem 1.5rem;
}

#contact .section-label { color: var(--accent-bright); }
#contact h2 { color: var(--text-on-dark); margin-bottom: 0.75rem; }

/* contrast: #a8a8a8 on #242424 = 6.0:1 ✓✓ */
.contact-sub {
  color: var(--text-on-dark-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
  max-width: 480px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.75rem;
}

/* contrast: #cdd4db on #2e2e2e ≈ 10:1 ✓✓ */
.contact-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}

/* contrast: #f2f2f2 on ~#2e2e2e = 12:1 ✓✓ */
.contact-card a,
.contact-card p {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-all;
}

.contact-card a:hover { color: var(--accent-bright); }

.address-detail {
  color: var(--accent-bright);
  text-decoration: none !important;
}

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* contrast: #a8a8a8 on #1a1a1a = 6.5:1 ✓✓ */
footer p, footer a {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

footer a:hover { color: var(--text-on-dark); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 720px) {
  .accred-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .accred-img-side { order: -1; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge  { animation: fadeUp 0.5s ease both; }
h1           { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub    { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions{ animation: fadeUp 0.5s 0.3s ease both; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: fixed;
  top: -999px;
  left: 1rem;
  z-index: 200;
  background: var(--silver-surface);
  color: var(--text-on-light);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  border: 2px solid var(--charcoal);
  /* contrast: #1a1a1a on #ffffff = 19.1:1 ✓✓ */
}

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

/* ─── FOCUS STYLES ─── */
/* Visible, high-contrast focus ring for all interactive elements */
:focus-visible {
  outline: 3px solid #cdd4db;
  outline-offset: 3px;
  border-radius: 4px;
}

/* On light backgrounds, use a dark focus ring instead */
#services :focus-visible,
#accreditation :focus-visible,
footer :focus-visible {
  outline-color: #1a1a1a;
}

/* ─── MOBILE MENU TOGGLE ─── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: var(--text-on-dark);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.2s;
}

.nav-toggle:hover {
  border-color: rgba(255,255,255,0.6);
}

/* ─── MOBILE MENU PANEL ─── */
.mobile-menu {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu ul a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}

.mobile-menu ul a:hover,
.mobile-menu ul a:focus {
  color: var(--text-on-dark);
}

/* ─── REDUCED MOTION ─── */
/* Respects user's OS preference; removes animations (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── RESPONSIVE (updated) ─── */
@media (max-width: 720px) {
  /* Hide desktop nav list, show toggle button */
  .nav-inner ul {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
