/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-glass);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  max-width: 180px;
}

.footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

.footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Force white color */
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.footer__social a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Footer Links - Column Layout */
.footer__links {
  display: grid;
  grid-template-columns: 8fr 2fr 2fr 2fr;
  column-gap: var(--space-4xl);
  row-gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}

.footer__column h4 {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer__column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__column ul li {
  margin-bottom: var(--space-sm);
}

.footer__column ul li:last-child {
  margin-bottom: 0;
}

.footer__column ul a {
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer__column ul a:hover {
  color: var(--color-primary);
}

/* Footer Bottom */
/* Footer Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  /* Optional separation if needed */
}

.footer__bottom p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.footer__legal-links {
  display: flex;
  align-items: center;
}

.footer__legal-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer__legal-links a:hover {
  color: var(--color-primary);
}

.footer__legal-links a + a::before {
  content: "\2022";
  margin: 0 var(--space-md);
  color: var(--color-text-muted);
}

/* Footer Language Selector */
.footer__lang {
  position: relative;
  flex-shrink: 0;
}

.footer__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: 0.5rem 0.85rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.footer__lang-toggle:hover {
  border-color: var(--color-border-light);
}

.footer__lang.is-open .footer__lang-toggle {
  border-color: var(--color-primary);
}

.footer__lang-toggle:focus-visible,
.footer__lang-option:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.footer__lang-flag {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Generic globe for "English (International)" — same 22px slot as a flag so the
   option labels stay aligned, but contained (not cropped) and without the flag chrome. */
.footer__lang-globe {
  display: block;
  width: 22px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__lang-name {
  white-space: nowrap;
}

.footer__lang-caret {
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.footer__lang.is-open .footer__lang-caret {
  transform: rotate(180deg);
}

/* Dropdown — opens upward (footer sits at page bottom), right-aligned */
.footer__lang-menu {
  position: absolute;
  bottom: calc(100% + var(--space-sm));
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 30;
}

.footer__lang.is-open .footer__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer__lang-menu li {
  margin: 0;
}

.footer__lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base);
}

.footer__lang-option:hover {
  background: rgba(128, 128, 140, 0.14);
  color: var(--color-text);
}

.footer__lang-option.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* "Change country or region" — a distinct action below the two locales. */
.footer__lang-more-item {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border);
}

.footer__lang-more {
  color: var(--color-text-secondary);
}

/* Footer Responsive - Tablet */

/* Footer Responsive - Mobile */

/* Footer Responsive - Small Mobile */

