.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 {
  /* was 2 1 600px — widened so the 4-column layout (incl. contact info)
     actually stretches to fill the space next to the logo instead of
     leaving a gap on the right */
  flex: 3 1 800px;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
}

.maclec-footer-col {
  min-width: 140px;
  flex: 1 1 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;
}

/* Contact column: address + phone numbers, fills the previously empty
   right-hand space in the footer */
.maclec-footer-col--contact {
  min-width: 220px;
  flex: 1 1 220px;
}

.maclec-footer-address {
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.75rem;
}

.maclec-footer-col--contact a {
  margin-bottom: 0.4rem;
}

.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);
}

.maclec-footer-credit-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.maclec-footer-credit-link:hover {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
}

/* Legal links row (Privacy / Cookie / Terms / Cookie settings) */
.maclec-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin-bottom: 0.75rem;
}

.maclec-footer-legal a,
.maclec-cookie-settings-link {
  font: inherit;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.maclec-footer-legal a:hover,
.maclec-cookie-settings-link:hover {
  color: #fbbf24;
}

/* ===== Cookie consent banner + settings dialog ===== */
.maclec-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  font-size: 0.9rem;
  line-height: 1.55;
}

.maclec-cookie-banner[hidden] {
  display: none;
}

.maclec-cookie-banner p {
  flex: 1 1 380px;
  margin: 0;
}

.maclec-cookie-banner a,
.maclec-cookie-more a {
  color: #1e3a8a;
  text-decoration: underline;
}

.maclec-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.maclec-cookie-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid #1e3a8a;
  background: #ffffff;
  color: #1e3a8a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.maclec-cookie-btn:hover {
  background: #eef2ff;
}

.maclec-cookie-btn--primary {
  background: #1e3a8a;
  color: #ffffff;
}

.maclec-cookie-btn--primary:hover {
  background: #16306e;
}

.maclec-cookie-btn--link {
  border-color: transparent;
  text-decoration: underline;
}

.maclec-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.maclec-cookie-modal.open {
  display: flex;
}

.maclec-cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.maclec-cookie-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 1.6rem;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.maclec-cookie-dialog h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #1e3a8a;
}

.maclec-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid #e2e8f0;
}

.maclec-cookie-row p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.maclec-cookie-always {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #039846;
}

.maclec-cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.maclec-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.maclec-cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  pointer-events: none;
}

.maclec-cookie-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.maclec-cookie-switch input:checked + span {
  background: #1e3a8a;
}

.maclec-cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

.maclec-cookie-switch input:focus-visible + span {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.maclec-cookie-more {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
}

/* ===== Form consent checkbox + privacy notice (contact, careers, atlas) ===== */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}

.form-group .form-consent {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
}

.form-consent input[type="checkbox"],
.form-group .form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #1e3a8a;
  cursor: pointer;
}

.form-consent a,
.privacy-notice a {
  color: #1e3a8a;
  text-decoration: underline;
}

.privacy-notice {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
  margin: 0.25rem 0 0.75rem;
}
@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-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-col--contact {
    flex: 1 1 100%;
  }

  .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;
  }
}

.maclec-main-nav a.active {
  color: #0bcef5;
}

.maclec-main-nav a.active::after {
  width: 100%;
  background: #f59e0b;
}

@media (max-width: 768px) {
  .maclec-logo {
    width: 42% !important;
    max-width: 190px;
  }

  .maclec-logo img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .maclec-logo {
    width: 48% !important;
    max-width: 170px;
  }

  .maclec-logo img {
    max-height: 52px;
  }
}