@import url("../fonts/footer-font.css");

.ar-footer,
.ar-footer * {
  box-sizing: border-box;
}

.ar-footer {
  --ar-footer-blue: var(--ar-header-navy-900, #003986);
  --ar-footer-blue-hover: var(--ar-header-navy-850, #064592);
  --ar-footer-blue-soft: #155bab;
  --ar-footer-line: rgba(255, 255, 255, 0.18);
  --ar-footer-line-strong: rgba(255, 255, 255, 0.28);
  --ar-footer-text: #ffffff;
  --ar-footer-muted: rgba(255, 255, 255, 0.76);
  --ar-footer-muted-strong: rgba(255, 255, 255, 0.88);
  --ar-footer-light-text: #00194a;
  --ar-footer-light-muted: #4d6084;
  --ar-footer-white: #ffffff;
  --ar-footer-surface: #f4f7fb;
  --ar-footer-border: #dfe7f3;
  --ar-footer-shadow: 0 20px 50px rgba(0, 34, 84, 0.18);
  --ar-footer-radius: 22px;
  --ar-footer-radius-sm: 16px;
  --ar-footer-transition: 180ms cubic-bezier(.2, .7, .2, 1);
  --ar-footer-font: "AR Footer UI", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  font-family: var(--ar-footer-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: var(--ar-footer-text);
}

.ar-footer a,
.ar-footer button,
.ar-footer input {
  font: inherit;
}

.ar-footer a {
  color: inherit;
  text-decoration: none;
}

.ar-footer button {
  border: 0;
  cursor: pointer;
}

.ar-footer button:focus,
.ar-footer input:focus {
  outline: none;
}

.ar-footer a:focus-visible,
.ar-footer button:focus-visible,
.ar-footer input:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 0 0 5px rgba(0, 57, 134, 0.18);
}

.ar-footer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ar-footer-icon {
  flex: 0 0 auto;
}

.ar-footer-logo {
  display: block;
  width: 198px;
  max-width: 100%;
  height: auto;
}

.ar-footer-logo-set {
  display: inline-block;
  width: 198px;
  max-width: 100%;
  line-height: 0;
}

.ar-footer-logo-set .ar-footer-logo {
  width: 100%;
}

.ar-footer-desktop {
  display: block;
  width: 100%;
  background: var(--ar-footer-blue);
  color: var(--ar-footer-text);
  border-radius: 0;
  box-shadow: 0 -18px 52px rgba(0, 34, 84, 0.14);
  overflow-x: clip;
  overflow-y: visible;
}

.ar-footer-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px 56px 0;
}

.ar-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .8fr .9fr .85fr 1.25fr;
  gap: 30px;
  align-items: start;
}

.ar-footer-brand p {
  margin: 14px 0 18px;
  color: var(--ar-footer-muted);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.ar-footer h3 {
  margin: 0 0 12px;
  color: #4fa3ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
}

.ar-footer-newsletter p {
  margin: 0 0 9px;
  color: var(--ar-footer-muted-strong);
  font-size: 13px;
}

.ar-footer-newsletter-form {
  display: flex;
  align-items: stretch;
  width: min(100%, 320px);
  height: 42px;
  border: 1px solid var(--ar-footer-line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color var(--ar-footer-transition), box-shadow var(--ar-footer-transition);
}

.ar-footer-newsletter-form:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.ar-footer-newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ar-footer-text);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
  appearance: none;
}

.ar-footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.ar-footer-newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  background: #256fff;
  color: #fff;
  transition: background-color var(--ar-footer-transition), transform var(--ar-footer-transition);
}

.ar-footer-newsletter-form button:hover {
  background: #3b7fff;
}

.ar-footer-newsletter-form button:hover svg {
  transform: translateX(2px);
}

.ar-footer-newsletter-form button svg {
  transition: transform var(--ar-footer-transition);
}

.ar-footer-policy-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--ar-footer-muted);
  font-size: 12px;
  line-height: 1.2;
}

.ar-footer-policy-check input {
  width: 14px;
  height: 14px;
  accent-color: #fff;
}

.ar-footer-column ul,
.ar-footer-contact ul,
.ar-footer-accordion-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ar-footer-column li + li,
.ar-footer-contact li + li {
  margin-top: 8px;
}

.ar-footer-column a {
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.18;
  transition: color var(--ar-footer-transition), transform var(--ar-footer-transition);
  display: inline-block;
}

.ar-footer-column a:hover {
  color: #fff;
  transform: translateX(2px);
}

.ar-footer-contact li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.ar-footer-contact li svg {
  color: #fff;
  margin-top: 1px;
}

.ar-footer-contact-divider {
  height: 1px;
  background: var(--ar-footer-line);
  margin: 18px 0 16px;
}

.ar-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ar-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ar-footer-line-strong);
  border-radius: 50%;
  color: var(--ar-footer-text);
  background: rgba(255, 255, 255, .03);
  transition: background-color var(--ar-footer-transition), transform var(--ar-footer-transition), border-color var(--ar-footer-transition);
}

.ar-footer-socials a:hover {
  background: var(--ar-footer-blue-hover);
  border-color: rgba(255, 255, 255, .48);
  transform: translateY(-1px);
}

.ar-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(56px, calc((100vw - 1480px) / 2 + 56px));
  padding-right: max(56px, calc((100vw - 1480px) / 2 + 56px));
  background: rgba(0, 0, 0, .12);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

@supports (width: 100dvw) {
  .ar-footer-bottom {
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    padding-left: max(56px, calc((100dvw - 1480px) / 2 + 56px));
    padding-right: max(56px, calc((100dvw - 1480px) / 2 + 56px));
  }
}

.ar-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 500;
}

.ar-footer-bottom nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.ar-footer-bottom nav a {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 500;
  transition: color var(--ar-footer-transition);
}

.ar-footer-bottom nav a:hover {
  color: #fff;
}

.ar-footer-language {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.ar-footer-language-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 10px;
  border-radius: 20px;
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--ar-footer-transition);
}

.ar-footer-language-button:hover,
.ar-footer-language-button[aria-expanded="true"] {
  background: var(--ar-footer-blue-hover);
}

.ar-footer-language-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 132px;
  padding: 8px;
  border-radius: 14px;
  color: var(--ar-footer-light-text);
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 34, 84, .2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--ar-footer-transition), transform var(--ar-footer-transition);
  z-index: 4;
}

.ar-footer-language-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ar-footer-language-menu button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ar-footer-light-text);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.ar-footer-language-menu button:hover {
  background: #eef4ff;
}

/* Desktop compaction: keeps the new footer visually aligned with the header while reducing vertical height. */
@media (min-width: 1180px) {
  .ar-footer-desktop .ar-footer-icon {
    width: 20px;
    height: 20px;
  }

  .ar-footer-desktop .ar-footer-contact li .ar-footer-icon {
    width: 20px;
    height: 20px;
  }
}

/* Mobile */
.ar-footer-mobile {
  display: none;
}

.ar-footer-mobile-compact,
.ar-footer-mobile-menu {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.ar-footer-mobile-compact {
  background: var(--ar-footer-blue);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -18px 44px rgba(0, 34, 84, .14);
  padding: 24px 24px 22px;
}

.ar-footer-mobile-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: transparent;
  padding: 0;
}

.ar-footer-mobile-head .ar-footer-logo {
  width: 198px;
}

.ar-footer-mobile-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--ar-footer-transition), transform var(--ar-footer-transition);
}

.ar-footer-mobile-head:hover .ar-footer-mobile-head-icon {
  background: var(--ar-footer-blue-hover);
  transform: translateY(-1px);
}

.ar-footer-mobile-compact .ar-footer-socials {
  justify-content: center;
  margin: 32px 0 26px;
}

.ar-footer-mobile-compact .ar-footer-socials a {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
}

.ar-footer-mobile-compact .ar-footer-socials a:hover {
  color: #fff;
  background: var(--ar-footer-blue-hover);
  border-color: rgba(255, 255, 255, .46);
}

.ar-footer-mobile-legal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--ar-footer-line);
  border-bottom: 1px solid var(--ar-footer-line);
  text-align: center;
}

.ar-footer-mobile-legal a {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 550;
}

.ar-footer-mobile-legal a:hover {
  color: #fff;
}

.ar-footer-mobile-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.ar-footer-mobile-bottomline p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  line-height: 1.35;
}

.ar-footer-language-mobile,
.ar-footer-language-mobile-menu {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.ar-footer-mobile-compact .ar-footer-language-button {
  color: #fff;
  padding-left: 0;
}

.ar-footer-mobile-compact .ar-footer-language-button:hover,
.ar-footer-mobile-compact .ar-footer-language-button[aria-expanded="true"] {
  background: var(--ar-footer-blue-hover);
  color: #fff;
}

.ar-footer-mobile-compact .ar-footer-language-menu {
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
}



@media (max-width: 380px) {
  .ar-footer-mobile-bottomline {
    align-items: flex-start;
    gap: 12px;
  }

  .ar-footer-mobile-bottomline p {
    max-width: 210px;
    font-size: 12px;
  }
}

.ar-footer-mobile-open .ar-footer-mobile-compact {
  display: none;
}

.ar-footer-mobile-menu {
  background: var(--ar-footer-blue);
  color: #fff;
  padding: 24px;
  overflow: hidden;
  transition: opacity var(--ar-footer-transition), transform var(--ar-footer-transition);
}

.ar-footer-mobile-menu[hidden] {
  display: none;
}

.ar-footer-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.ar-footer-mobile-menu-head .ar-footer-logo {
  width: 205px;
}

.ar-footer-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  transition: background-color var(--ar-footer-transition), transform var(--ar-footer-transition);
}

.ar-footer-mobile-close:hover {
  background: var(--ar-footer-blue-hover);
  transform: translateY(-1px);
}

.ar-footer-mobile-accordion {
  border-top: 1px solid var(--ar-footer-line);
}

.ar-footer-accordion-section {
  border-bottom: 1px solid var(--ar-footer-line);
}

.ar-footer-accordion-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: transparent;
  padding: 0;
  transition: color var(--ar-footer-transition);
}

.ar-footer-accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.ar-footer-accordion-trigger > svg {
  transition: transform var(--ar-footer-transition);
}

.ar-footer-accordion-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.ar-footer-accordion-panel {
  padding: 0 0 18px 34px;
}

.ar-footer-accordion-panel[hidden] {
  display: none;
}

.ar-footer-accordion-panel li + li {
  margin-top: 11px;
}

.ar-footer-accordion-panel a,
.ar-footer-accordion-panel li {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.35;
}

.ar-footer-newsletter-mobile {
  padding-top: 24px;
  margin-bottom: 24px;
}

.ar-footer-newsletter-mobile .ar-footer-newsletter-form {
  width: 100%;
  max-width: none;
}

.ar-footer-mobile-menu .ar-footer-socials {
  padding: 24px 0;
  border-top: 1px solid var(--ar-footer-line);
  border-bottom: 1px solid var(--ar-footer-line);
}

.ar-footer-mobile-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
}

.ar-footer-mobile-menu-bottom nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.ar-footer-mobile-menu-bottom nav a {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 550;
}

@media (max-width: 1179px) {
  .ar-footer-inner {
    padding: 28px 32px 0;
  }

  .ar-footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 26px;
  }

  .ar-footer-contact {
    grid-column: span 2;
  }


  .ar-footer-bottom {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(32px, calc((100vw - 1480px) / 2 + 32px));
    padding-right: max(32px, calc((100vw - 1480px) / 2 + 32px));
  }

  @supports (width: 100dvw) {
    .ar-footer-bottom {
      margin-left: calc(50% - 50dvw);
      margin-right: calc(50% - 50dvw);
      padding-left: max(32px, calc((100dvw - 1480px) / 2 + 32px));
      padding-right: max(32px, calc((100dvw - 1480px) / 2 + 32px));
    }
  }
}

@media (max-width: 767px) {
  .ar-footer-desktop {
    display: none;
  }

  .ar-footer-mobile {
    display: block;
  }
}

@media (max-width: 420px) {
  .ar-footer-mobile-compact,
  .ar-footer-mobile-menu {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ar-footer-mobile-head .ar-footer-logo,
  .ar-footer-mobile-menu-head .ar-footer-logo {
    width: 180px;
  }

  .ar-footer-mobile-legal {
    gap: 4px;
  }

  .ar-footer-mobile-legal a,
  .ar-footer-mobile-menu-bottom nav a {
    font-size: 12px;
  }

  .ar-footer-mobile-menu-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
