/* ── Site Footer ── */
body > .site-footer {
  margin-top: auto;
}
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  position: relative;
  background: linear-gradient(180deg, #060708 0%, #0a1a38 50%, #0d2f7a 100%);
  padding-top: 64px;
}
.site-footer > .container {
  padding-left: clamp(16px, 1.8vw, 28px);
  padding-right: clamp(16px, 1.8vw, 28px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* Nav grid */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)) minmax(
      0,
      1.5fr
    );
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-iso-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  height: 100%;
}
.footer-get-in-touch {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-git-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.footer-brand {
  color: rgba(255, 255, 255, 0.7);
}
.footer-brand img {
  opacity: 0.9;
  margin: 0 0 16px -38px;
  display: block;
}
.footer-brand-tagline {
  margin: 0 0 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.2s,
    color 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.footer-col h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}

/* Certifications */
.footer-certifications {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Newsletter band */
.footer-newsletter-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.footer-newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 24px;
}
.footer-newsletter-form .field-error {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0 !important;
  flex: none;
  width: 100%;
}
.footer-newsletter-form input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: none;
}
.footer-newsletter-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.footer-newsletter-form input[type='email']:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.footer-newsletter-form input[type='email']:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
/* Only show :invalid styling AFTER the user has interacted with the field, so
   the input doesn't paint red on first render while it's empty. */
.footer-newsletter-form input[type='email']:user-invalid {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.footer-newsletter-form button {
  padding: 11px 24px;
  background: #4f46e5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  white-space: nowrap;
}
.footer-newsletter-form button:hover {
  background: #4338ca;
}
.footer-newsletter-form button:active {
  transform: translateY(1px);
}
@media (max-width: 480px) {
  .footer-newsletter-form button {
    flex: 1 1 100%;
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .site-footer {
    padding-top: 40px;
    padding-bottom: 24px;
  }
  .site-footer > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    border-bottom: none;
  }
  .footer-brand {
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 0;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
  }
  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
    padding-bottom: 0;
  }
  .footer-col.open ul {
    max-height: 400px;
    padding-bottom: 12px;
  }
  .footer-col-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
  }
  .footer-col-icon::after {
    content: '+';
  }
  .footer-col.open .footer-col-icon::after {
    content: '\2212';
  }
  .footer-certifications {
    padding: 24px 0;
  }
}


/* ── Additional footer styles (offices, certifications, newsletter, bottom) ── */
/* Footer */
/* content-visibility: auto skips layout/paint of the footer until it nears the
   viewport. contain-intrinsic-size gives the browser a placeholder height so
   scrollbar height and anchor links stay accurate before the footer renders. */
.footer-cert-iso-group {
  margin-left: -8px;
}
.footer-git-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-git-item svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: color 0.2s;
}
.footer-git-item:hover {
  color: #fff;
}
.footer-git-item:hover svg {
  color: #fff;
}

/* Office locations */
.footer-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-office {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 28px;
}
.footer-office-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-office-country {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.footer-office-address {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.footer-office-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-office-phone:hover {
  color: #fff;
}

/* Contact row */
.footer-contact-row {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item:hover {
  color: #fff;
}
.footer-contact-item svg {
  flex-shrink: 0;
}

/* Certifications */
.footer-cert-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}
.footer-cert-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  row-gap: 24px;
}
.footer-cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 4px;
}
.footer-cert-item {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-cert-item:hover {
  opacity: 1;
}
.footer-cert-row .footer-cert-item svg {
  height: 44px;
  width: auto;
}
.footer-cert-item svg,
.footer-cert-item svg text {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir='rtl'] .footer-cert-item svg {
  direction: ltr;
}
.footer-cert-iso-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-cert-iso {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
  min-height: 56px;
}
.footer-cert-iso-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.footer-cert-iso-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  gap: 2px;
}
.footer-cert-iso-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
  margin: 0;
}
.footer-cert-iso-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
@media (max-width: 640px) {
  .footer-cert-iso-group {
    margin-left: 0;
    width: 100%;
  }
}

/* Newsletter band */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-newsletter-copy {
  max-width: 640px;
}
.footer-newsletter-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-bottom-logo {
  opacity: 0.6;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Footer responsive ── */
/* about-hero 640px responsive consolidated above */

@media (max-width: 991px) {
  .footer-offices {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact-row {
    flex-wrap: wrap;
  }
  .footer-cert-logos {
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .footer-offices {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .footer-office {
    padding: 20px;
  }
  .footer-contact-row {
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }
  .footer-cert-logos {
    gap: 16px;
  }
  .footer-bottom {
    margin-top: 0;
    padding: 16px 0;
    flex-direction: column;
    gap: 8px;
  }
}
