/* ==========================================================================
   MetaMap landing — additions on top of the identiq.com stylesheet set
   (brand logo sizing, EN/ES switcher, 404 page, small-screen header fixes).
   ========================================================================== */

/* Brand lockup ("MetaMap · An Incode Company", 507x82 artwork) */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.lang-switcher a {
  padding: 7px 8px;
  border-radius: 6px;
  color: #A9A9A9;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switcher a:hover {
  color: #FFF;
}

.lang-switcher a[aria-current="true"] {
  color: #FFF;
  background: rgba(255, 255, 255, 0.10);
}

.lang-switcher .sep {
  color: #6E6E6E;
}

.lang-switcher--light a {
  color: #6E6E6E;
}

.lang-switcher--light a:hover {
  color: #111;
}

.lang-switcher--light a[aria-current="true"] {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

/* Header CTA: the template fixes it at 171px, which wraps the Spanish label */
.header-cta {
  width: auto;
  min-width: 171px;
  padding: 0 14px;
  white-space: nowrap;
}

/* The hero sits under a fixed header; give it room on every viewport */
.responsive-hero-container {
  padding-top: 96px;
  padding-bottom: 40px;
  min-height: 720px;
  /* flex item inside a flex section: keep its min-width from being the hero
     image's natural width (defensive; the image is also capped below) */
  min-width: 0;
}

.responsive-hero-image {
  min-width: 0;
}

.responsive-hero-image img {
  max-width: 100%;
  height: auto;
}

/* Badges: the template fixes them at 32px high, which breaks when the label wraps */
.stats-badge,
.features-badge {
  height: auto;
  min-height: 32px;
  text-align: left;
}

/* Between phones and the 1280px design canvas the template keeps fixed pixel
   widths (1240px wrappers, 494 + 619px stats columns); make them fluid. */
@media (min-width: 769px) and (max-width: 1280px) {
  .responsive-logos-wrapper,
  .responsive-cta1-wrapper,
  .responsive-features-container,
  .responsive-form-container,
  .responsive-cta3-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
  }

  .responsive-glow,
  .responsive-features-heading,
  .responsive-cta-heading,
  .responsive-cta-text,
  .responsive-cta3-heading,
  .responsive-cta3-text,
  .responsive-stats-paragraph {
    width: 100% !important;
    max-width: 100% !important;
  }

  .stats-section > div {
    padding-left: 24px;
    padding-right: 24px !important;
  }

  .responsive-stats-container {
    gap: 64px !important;
  }

  .responsive-stats-left {
    width: 44% !important;
  }

  .responsive-stats-right {
    width: 56% !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .responsive-hero-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .responsive-hero-image img {
    max-height: 520px;
  }

  .responsive-stats-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 40px !important;
  }

  .responsive-stats-left,
  .responsive-stats-right {
    width: 100% !important;
    margin-top: 0 !important;
  }
}

/* 404 page */
.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 160px 24px 80px;
  background: #010101;
  color: #FFF;
  text-align: center;
}

.notfound h1 {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.56px;
  margin-bottom: 20px;
}

.notfound p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #A9A9A9;
  max-width: 560px;
  margin: 0 auto 16px;
}

.notfound p strong {
  color: #EEE;
  font-weight: 600;
}

.notfound-link {
  color: #FFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small screens: logo + switcher + CTA must fit on one row */
@media (max-width: 768px) {
  .brand-logo {
    height: 22px;
  }

  .header-cta {
    min-width: 0;
    height: 36px;
    font-size: 14px;
  }

  .responsive-hero-container {
    min-height: 0;
  }

  .responsive-hero-image {
    width: 100%;
    max-height: none !important;
  }

  .responsive-hero-image img {
    max-height: 420px;
  }
}

@media (max-width: 480px) {
  header nav {
    gap: 10px !important;
  }

  header nav .flex {
    gap: 8px !important;
  }

  .brand-logo {
    height: 18px;
  }

  .header-cta {
    font-size: 13px;
    padding: 0 10px;
    gap: 4px;
  }

  .header-cta img {
    width: 14px;
    height: 14px;
  }

  .lang-switcher {
    font-size: 13px;
  }

  .lang-switcher a {
    padding: 6px 5px;
  }

  .notfound h1 {
    font-size: 36px;
  }
}
