:root {
  --ms-red: #dc3545;
  --ms-red-dark: #b02a37;
  --ms-black: #111111;
  --ms-black-soft: #1b1b1b;
  --ms-white: #ffffff;
  --ms-offwhite: #f8f9fa;
  --ms-gray: #6c757d;
  --ms-border: rgba(0, 0, 0, 0.08);
  --ms-shadow-sm: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --ms-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  --ms-radius: 1rem;
  --ms-radius-lg: 1.5rem;
  --ms-transition: 220ms ease;
}

html {
  scroll-behavior: smooth;
}

body.brand-body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ms-black);
  background-color: var(--ms-white);
}

img {
  max-width: 100%;
  height: auto;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

.brand-navbar {
  background: linear-gradient(90deg, #181818 0%, #222831 100%);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.brand-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color var(--ms-transition);
}

.brand-navbar .nav-link:hover,
.brand-navbar .nav-link:focus,
.brand-navbar .nav-link.active {
  color: var(--ms-white);
}

.brand-logo {
  height: 2.5rem;
  width: auto;
}

.hero-logo {
  max-width: 110px;
  width: 100%;
}

.hero-section {
  min-height: calc(100vh - 80px);
  background:
    linear-gradient(rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.82)),
    radial-gradient(circle at top right, rgba(220, 53, 69, 0.28), transparent 30%),
    linear-gradient(135deg, #101010 0%, #242424 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -5rem -5rem auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  max-width: 42rem;
}

.brand-panel {
  color: var(--ms-white);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(220, 53, 69, 0.12));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ms-radius-lg);
}

.metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ms-white);
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.section-light {
  background-color: var(--ms-offwhite);
}

.icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  font-size: 1.25rem;
}

.service-card,
.team-card,
.about-highlight,
.contact-panel,
.map-frame {
  border-radius: var(--ms-radius);
}

.service-card {
  transition: transform var(--ms-transition), box-shadow var(--ms-transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ms-shadow-lg);
}

.about-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
}

.map-frame {
  overflow: hidden;
  background-color: var(--ms-white);
  border: 1px solid var(--ms-border);
}

#viewDiv {
  width: 100%;
  height: 520px;
}

.team-card {
  transition: transform var(--ms-transition), box-shadow var(--ms-transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ms-shadow-sm);
}

.team-avatar {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.brand-footer-section {
  background: linear-gradient(135deg, #121212 0%, #1f1f1f 100%);
}

.contact-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(220, 53, 69, 0.12));
  color: var(--ms-white);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  #viewDiv {
    height: 420px;
  }
}

@media (max-width: 767.98px) {
  .brand-logo {
    height: 2rem;
  }

  .hero-logo {
    max-width: 90px;
  }

  #viewDiv {
    height: 340px;
  }
  .team-avatar{
    max-width:7rem;
    max-height: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .service-card,
  .team-card,
  .brand-navbar .nav-link {
    transition: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
