@font-face {
  font-family: 'Ethnocentric';
  src: url('../assets/fonts/ethnocentric-rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ethnocentric';
  src: url('../assets/fonts/ethnocentric-rg-it.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --white: #FFFFFF;
  --gray-bg: #F8FAFC;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #DBEAFE;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Ethnocentric', sans-serif;
  line-height: 1.2;
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ─────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
  color: var(--blue);
}

.navbar__links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.navbar__toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #3B82F6 100%);
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.btn--cta {
  background: var(--orange);
  color: var(--white);
}

.btn--cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ── Section common ─────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--gray-bg);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Services ───────────────────────────────────────── */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border-top: 3px solid var(--blue);
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--blue);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ── About ──────────────────────────────────────────── */

.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Stats ──────────────────────────────────────────── */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 16px;
  text-align: center;
}

.stat-card__number {
  font-family: 'Ethnocentric', sans-serif;
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Projects ───────────────────────────────────────── */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-card__img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue-light) 0%, #E0E7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.project-card__body {
  padding: 24px;
}

.project-card__body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.project-card__body p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Testimonials ───────────────────────────────────── */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-size: 48px;
  line-height: 1;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

.testimonial-card__author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Contact ────────────────────────────────────────── */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.contact-card h3 {
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 4px;
}

.contact-card__badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: block;
}

.contact-card__address {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-card__row i {
  color: var(--blue);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.contact-card__row a {
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s;
}

.contact-card__row a:hover {
  color: var(--blue-dark);
}

.contact-card__row a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  cursor: pointer;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--white);
}

.footer__links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.footer__socials a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.footer__copy {
  font-size: 13px;
}

/* ── Fade-in animation ──────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile nav ─────────────────────────────────────── */

.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.navbar__mobile-menu a:hover,
.navbar__mobile-menu a:focus-visible {
  color: var(--blue);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid .contact-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__links {
    display: none;
  }

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

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero__tagline {
    font-size: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid .contact-card:last-child {
    max-width: 100%;
  }

  .stat-card__number {
    font-size: 28px;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .section__title {
    font-size: 24px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }
}
