:root {
  --mb-primary: #1d3557;
  --mb-secondary: #495057;
  --mb-navy: #172a78;
  --mb-light: #f8f9fa;
  --mb-border: #dee2e6;
  --navbar-height: 64px;
}

@font-face {
  font-family: 'OpenDyslexic';
  src:
    url('../fonts/OpenDyslexic-Bold.woff2') format('woff2'),
    url('../fonts/OpenDyslexic-Bold.woff') format('woff'),
    url('../fonts/OpenDyslexic-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src:
    url('../fonts/OpenDyslexic-Bold-Italic.woff2') format('woff2'),
    url('../fonts/OpenDyslexic-Bold-Italic.woff') format('woff'),
    url('../fonts/OpenDyslexic-Bold-Italic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'OpenDyslexic';
  src:
    url('../fonts/OpenDyslexic-Italic.woff2') format('woff2'),
    url('../fonts/OpenDyslexic-Italic.woff') format('woff'),
    url('../fonts/OpenDyslexic-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'OpenDyslexic';
  src:
    url('../fonts/OpenDyslexic-Regular.woff2') format('woff2'),
    url('../fonts/OpenDyslexic-Regular.woff') format('woff'),
    url('../fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #212529;
  line-height: 1.7;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

body.font-dyslexia {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
  letter-spacing: 0.03em;
  word-spacing: 0.05em;
  line-height: 1.7;
  font-size: 0.95rem;
}

body.font-dyslexia h1 {
  font-size: 2.9rem;
}

body.font-dyslexia h2 {
  font-size: 1.9rem;
}

body.font-dyslexia h3 {
  font-size: 1.3rem;
}

section {
  scroll-margin-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--mb-primary);
  font-weight: 700;
}

#toggleDyslexia {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#toggleDyslexia i {
  margin: 0;
}

h2 {
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar {
  backdrop-filter: blur(8px);
}

.navbar-brand {
  color: var(--mb-primary) !important;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-link {
  font-weight: 500;
}

.nav-link:hover {
  color: var(--mb-primary);
}

#hero {
  min-height: calc(100vh - 76px);
}

#hero h1 {
  line-height: 1.1;
}

#hero .lead {
  font-size: 1.35rem;
}

#hero blockquote {
  border-left: 4px solid var(--mb-primary);
  font-style: italic;
  font-weight: 700;
  color: var(--mb-navy);
}

#hero img {
  max-height: 550px;
  object-fit: cover;
}

.hero-photo {
  width: 100%;
  max-width: 380px;
}

.btn-dark {
  background-color: var(--mb-primary);
  border-color: var(--mb-primary);
}

.btn-dark:hover {
  background-color: #162944;
  border-color: #162944;
}

.card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);

  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.card i {
  color: var(--mb-primary);
}

.card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#clients-logo,
.clients-logo {
  filter: grayscale(100%);
  opacity: 0.8;
}

.clients-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bg-light {
  background-color: #f8fafc !important;
}

.footer-main {
  background-color: var(--mb-primary);
}

footer h2 {
  color: white;
}

footer a {
  color: white;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  padding-top: var(--navbar-height);

  #hero {
    text-align: center;
  }

  #hero img {
    max-height: 400px;
  }

  #hero .btn {
    width: 100%;
  }
}
