/* ==========================================================================
   Site Footer — Responsive Layout (Mobile-first friendly, all devices)
   ========================================================================== */

.site-footer {
  --footer-bg: #034295;
  --footer-bg-dark: #022f68;
  --footer-text: #ffffff;
  --footer-text-soft: rgba(255, 255, 255, 0.86);
  --footer-border: rgba(255, 255, 255, 0.18);

  margin-top: auto;
  width: 100%;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: inherit;
  overflow-x: hidden;
}

.footer-accent-bar {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.22);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  padding: 2.5rem 0 2.1rem;
}

/* ---------- Grid ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr) minmax(0, 1.02fr) minmax(0, 1.2fr);
  grid-template-areas:
    "brand links offices contact";
  gap: 1.5rem;
  align-items: start;
}

.footer-col {
  min-width: 0;
  padding: 0.35rem 0.5rem;
}

.footer-col--brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-grid > .footer-col:nth-child(2) { grid-area: links; }
.footer-grid > .footer-col:nth-child(3) { grid-area: offices; }
.footer-grid > .footer-col:nth-child(4) { grid-area: contact; }
.footer-grid > .footer-col:nth-child(4) { min-width: 0; }

.footer-heading {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--footer-text);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Brand ---------- */
.footer-brand {
  display: inline-flex;
  margin-bottom: 0;
}

.footer-brand-block {
  display: grid;
  gap: 0.75rem;
}

.footer-brand__logo {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
}

.footer-company-name {
  margin: 0;
  color: var(--footer-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.footer-tagline {
  margin: 0;
  max-width: 34ch;
  color: var(--footer-text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Lists (shared) ---------- */
.footer-links,
.footer-offices,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

/* ---------- Offices ---------- */
.footer-offices {
  display: grid;
  gap: 0.85rem;
}

.footer-office {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-office__icon {
  flex: none;
  margin-top: 0.2rem;
  color: var(--footer-text);
  font-size: 0.9rem;
}

.footer-office strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--footer-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.footer-office p {
  margin: 0;
  color: var(--footer-text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.footer-contact-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--footer-text);
  font-size: 0.9rem;
}

.footer-contact-link {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  text-decoration: underline;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: auto;
  min-width: 190px;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background-color: transparent;
  color: var(--footer-text);
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  text-decoration: none;
}

/* ---------- Social ---------- */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--footer-text);
  text-decoration: none;
}

.social-link:hover,
.social-link:focus-visible {
  text-decoration: underline;
}

/* ---------- Bottom bar ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background-color: var(--footer-bg-dark);
}

.footer-bottom__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
}

.footer-copyright,
.footer-powered {
  margin: 0;
  color: var(--footer-text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-powered {
  text-align: right;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-legal-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  text-decoration: underline;
}

.footer-legal-divider {
  color: var(--footer-text-soft);
}

/* ---------- Scroll to top ---------- */
.sk-footer-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--footer-bg);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.sk-footer-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.sk-footer-scroll-top:hover {
  background-color: var(--footer-bg-dark);
}

/* ==========================================================================
   Responsive Breakpoints — Large tablets / small laptops
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand offices"
      "links contact";
  }

  .footer-bottom__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-powered {
    text-align: center;
  }
}

/* ---------- Tablets (portrait) ---------- */
@media (max-width: 768px) {
  .footer-top {
    padding: 2.25rem 0 1.75rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-grid {
    gap: 1rem 1.1rem;
  }

  .footer-col {
    padding: 0.45rem 0.25rem;
  }

  .footer-heading {
    font-size: 0.95rem;
  }
}

/* ---------- Mobile phones ---------- */
@media (max-width: 640px) {
  .footer-top {
    padding: 2rem 0;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "offices"
      "contact";
    gap: 1rem;
  }

  .footer-col {
    padding: 0.5rem 0;
  }

  .footer-col--brand,
  .social-links {
    margin-top: 0;
  }

  .footer-contact-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-bottom__inner {
    padding: 1rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-cta {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .sk-footer-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

body.shared-index-page .site-footer .footer-company-name,
body.shared-index-page .site-footer .footer-heading,
body.shared-index-page .site-footer .footer-office strong,
body.shared-index-page .site-footer .footer-links a,
body.shared-index-page .site-footer .footer-contact-link,
body.shared-index-page .site-footer .footer-cta,
body.shared-index-page .site-footer .social-link,
body.shared-index-page .site-footer .footer-legal-links a,
body.itinerary-page .site-footer .footer-company-name,
body.itinerary-page .site-footer .footer-heading,
body.itinerary-page .site-footer .footer-office strong,
body.itinerary-page .site-footer .footer-links a,
body.itinerary-page .site-footer .footer-contact-link,
body.itinerary-page .site-footer .footer-cta,
body.itinerary-page .site-footer .social-link,
body.itinerary-page .site-footer .footer-legal-links a {
  color: var(--footer-text);
  text-decoration: none;
}

body.shared-index-page .site-footer .footer-tagline,
body.shared-index-page .site-footer .footer-office p,
body.shared-index-page .site-footer .footer-copyright,
body.shared-index-page .site-footer .footer-powered,
body.shared-index-page .site-footer .footer-legal-divider,
body.itinerary-page .site-footer .footer-tagline,
body.itinerary-page .site-footer .footer-office p,
body.itinerary-page .site-footer .footer-copyright,
body.itinerary-page .site-footer .footer-powered,
body.itinerary-page .site-footer .footer-legal-divider {
  color: var(--footer-text-soft);
}

body.shared-index-page .site-footer .footer-links a:hover,
body.shared-index-page .site-footer .footer-links a:focus-visible,
body.shared-index-page .site-footer .footer-contact-link:hover,
body.shared-index-page .site-footer .footer-contact-link:focus-visible,
body.shared-index-page .site-footer .footer-cta:hover,
body.shared-index-page .site-footer .footer-cta:focus-visible,
body.shared-index-page .site-footer .footer-legal-links a:hover,
body.shared-index-page .site-footer .footer-legal-links a:focus-visible,
body.shared-index-page .site-footer .social-link:hover,
body.shared-index-page .site-footer .social-link:focus-visible,
body.itinerary-page .site-footer .footer-links a:hover,
body.itinerary-page .site-footer .footer-links a:focus-visible,
body.itinerary-page .site-footer .footer-contact-link:hover,
body.itinerary-page .site-footer .footer-contact-link:focus-visible,
body.itinerary-page .site-footer .footer-cta:hover,
body.itinerary-page .site-footer .footer-cta:focus-visible,
body.itinerary-page .site-footer .footer-legal-links a:hover,
body.itinerary-page .site-footer .footer-legal-links a:focus-visible,
body.itinerary-page .site-footer .social-link:hover,
body.itinerary-page .site-footer .social-link:focus-visible {
  text-decoration: underline;
}

/* ---------- Small mobile phones ---------- */
@media (max-width: 480px) {
  .footer-container {
    padding: 0 0.85rem;
  }

  .footer-brand__logo {
    width: 150px;
  }

  .footer-company-name {
    font-size: 1rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-heading {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-links a,
  .footer-contact-link {
    font-size: 0.9rem;
  }

  .footer-office p {
    font-size: 0.85rem;
  }

  .footer-copyright,
  .footer-powered,
  .footer-legal-links a {
    font-size: 0.8rem;
  }

  .footer-legal-links {
    gap: 0.4rem;
  }
}

/* ---------- Extra small devices ---------- */
@media (max-width: 360px) {
  .footer-container {
    padding: 0 0.65rem;
  }

  .footer-brand__logo {
    width: 130px;
  }

  .footer-contact-icon,
  .footer-office__icon {
    width: 28px;
    height: 28px;
  }

  .social-link {
    width: 26px;
    height: 26px;
  }

  .sk-footer-scroll-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
}

/* ---------- Landscape orientation (short viewport height) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .sk-footer-scroll-top {
    bottom: 12px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sk-footer-scroll-top {
    transition: none;
  }
}
