.maclec-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: whitesmoke;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.maclec-site-header--solid,
.maclec-site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.1);
}

.maclec-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.maclec-logo {
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
}

.maclec-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.maclec-main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.maclec-main-nav a {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a8a;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.maclec-main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f59e0b;
  transition: width 0.25s ease;
}

.maclec-main-nav a:hover {
  color: #0bcef5;
}

.maclec-main-nav a:hover::after {
  width: 100%;
}

.maclec-btn-contact-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.maclec-btn-contact-nav:hover {
  background: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
}

.maclec-btn-contact-nav svg {
  transition: transform 0.25s ease;
}

.maclec-btn-contact-nav:hover svg {
  transform: translateX(3px);
}

.maclec-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.maclec-nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1e3a8a;
  border-radius: 2px;
  transition: 0.3s ease;
}

.maclec-site-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #16306e 45%, #0f4c3a 75%, #b45309 100%);
  color: #f8fafc;
  padding: 4rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.maclec-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.maclec-footer-brand {
  flex: 1 1 200px;
}

.maclec-footer-logo {
  max-height: 52px;
  width: auto;
  display: block;
  /* keeps the logo crisp/legible against the dark gradient */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.maclec-footer-links {
  flex: 2 1 600px;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.maclec-footer-col {
  min-width: 140px;
}

.maclec-footer-col strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.maclec-footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.maclec-footer-col a:hover {
  color: #fbbf24;
  padding-left: 4px;
}

.maclec-footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 768px) {
  .maclec-main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(30, 58, 138, 0.15);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    z-index: 999;
  }

  .maclec-main-nav.open {
    right: 0;
  }

  .maclec-main-nav a {
    font-size: 1.1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
  }

  .maclec-main-nav a::after {
    display: none;
  }

  .maclec-btn-contact-nav {
    display: none;
  }

  .maclec-nav-toggle {
    display: flex;
  }

  .maclec-nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .maclec-nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .maclec-nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .maclec-header-inner {
    padding: 1rem;
  }

  .maclec-footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .maclec-footer-links {
    gap: 2rem;
  }
}


@media (max-width: 768px) {
  .maclec-site-footer {
    padding: 3rem 1.5rem 0;
  }

  .maclec-footer-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .maclec-footer-brand {
    flex: none;
    width: 100%;
  }

  .maclec-footer-logo {
    max-height: 44px;
  }

  .maclec-footer-links {
    flex: none;
    width: 100%;
    gap: 2rem;
    justify-content: flex-start;
  }

  .maclec-footer-col {
    flex: 1 1 45%;
    min-width: 120px;
  }

  .maclec-footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .maclec-site-footer {
    padding: 2.5rem 1.25rem 0;
  }

  .maclec-footer-links {
    flex-direction: column;
    gap: 1.75rem;
  }

  .maclec-footer-col {
    flex: none;
    width: 100%;
  }

  .maclec-footer-col strong {
    margin-bottom: 0.75rem;
  }

  .maclec-footer-col a {
    margin-bottom: 0.5rem;
  }

  .maclec-footer-bottom p {
    font-size: 0.8rem;
  }
}

