/* Shared header, footer, inquiry-form and responsive behaviour. */

/* Grid children must be allowed to shrink around long machine names and tables. */
.page-hero .hero-inner,
.layout > article,
.layout > aside {
  min-width: 0 !important;
  max-width: 100%;
}

.page-hero h1,
.page-hero p {
  overflow-wrap: anywhere;
}

.layout > article .table-wrap {
  max-width: 100%;
}

.site-footer {
  position: relative;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-top: 3px solid #f58220 !important;
  background: linear-gradient(135deg, #071b2b 0%, #0a2537 58%, #071b2b 100%) !important;
  color: #dce7ed !important;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr) minmax(320px, 1.15fr) !important;
  gap: clamp(24px, 3.5vw, 44px) !important;
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: 30px 24px 24px !important;
}

.site-footer .footer-col {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.site-footer .footer-inner > .footer-col + .footer-col {
  padding-left: clamp(22px, 3vw, 36px) !important;
  border-left: 1px solid rgba(255, 255, 255, .13) !important;
}

/* Page headers use generic nav rules; keep the footer navigation independent. */
.site-footer nav.footer-col {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: initial !important;
  justify-content: initial !important;
  flex-direction: initial !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.site-footer nav.footer-col a,
.site-footer nav.footer-col a:hover,
.site-footer nav.footer-col a:focus {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transform: none !important;
}

.site-footer h2 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font: 700 .98rem/1.25 Arial, Helvetica, sans-serif !important;
  letter-spacing: .01em;
}

.site-footer h2::after {
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: #f58220;
  content: "";
}

.site-footer p,
.site-footer address,
.site-footer span {
  margin: 0 !important;
  color: #dce7ed !important;
  font: normal .88rem/1.58 Arial, Helvetica, sans-serif !important;
}

.site-footer address {
  padding-top: 4px;
}

.site-footer a {
  display: flex !important;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 7px 0 !important;
  color: #eef5f8 !important;
  font: 600 .86rem/1.4 Arial, Helvetica, sans-serif !important;
  overflow-wrap: anywhere;
  text-decoration: none !important;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffb574 !important;
  text-decoration: underline !important;
}

.site-footer a:focus-visible,
.site-footer .hm-consent-settings:focus-visible {
  border-radius: 4px;
  outline: 2px solid #ffb574 !important;
  outline-offset: 3px;
}

.site-footer .footer-col > p {
  max-width: 440px;
}

.site-footer .footer-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.site-footer .footer-links a {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-footer .footer-contact {
  display: grid !important;
  grid-template-columns: minmax(130px, .9fr) minmax(130px, 1fr);
  grid-template-areas:
    "phone whatsapp"
    "email email"
    "address address";
  gap: 0 16px;
  align-items: start;
}

.site-footer .footer-contact > a:nth-of-type(1) { grid-area: phone; }
.site-footer .footer-contact > a:nth-of-type(2) { grid-area: email; }
.site-footer .footer-contact > a:nth-of-type(3) { grid-area: whatsapp; }

.site-footer .footer-contact address {
  grid-area: address;
  margin-top: 8px !important;
  padding: 8px 0 0 12px !important;
  border-left: 2px solid #f58220;
}

.site-footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4px 22px !important;
  margin: 0 !important;
  padding: 6px 24px !important;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 15, 24, .72) !important;
  color: #c6d5dd !important;
  text-align: center !important;
}

.site-footer .footer-bottom > span {
  color: #c6d5dd !important;
  font-size: .82rem !important;
}

.site-footer .footer-bottom a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 5px 0 !important;
  font-size: .82rem !important;
}

.site-footer .footer-bottom .hm-consent-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 5px 0 !important;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #eef5f8 !important;
  font: 600 .82rem/1.4 Arial, Helvetica, sans-serif !important;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  cursor: pointer;
}

.site-footer .footer-bottom .hm-consent-settings:hover {
  color: #fff !important;
}

.site-footer .footer-bottom .hm-consent-settings:focus-visible {
  color: #ffb574 !important;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle::after {
  content: " \25BE";
  font-size: .72em;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 120;
  display: none;
  min-width: 210px;
  padding: 7px;
  border: 1px solid rgba(16, 42, 67, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 42, 67, .16);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px !important;
  color: #0b2734 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a.active {
  background: #fff1e6 !important;
  color: #8c3700 !important;
}

.hm-inquiry-form {
  display: grid;
  gap: 0;
}

.hm-inquiry-form .form-label,
.hm-inquiry-form > label {
  display: block;
  margin: 12px 0 6px;
  color: #102a43;
  font-weight: 700;
  line-height: 1.35;
}

.hm-inquiry-form input:not([type="hidden"]),
.hm-inquiry-form select,
.hm-inquiry-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #9eafbb;
  border-radius: 6px;
  background: #fff;
  color: #102a43;
  font: inherit;
}

.hm-inquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.hm-inquiry-form input:focus-visible,
.hm-inquiry-form select:focus-visible,
.hm-inquiry-form textarea:focus-visible {
  border-color: #a84400;
  outline: 3px solid rgba(168, 68, 0, .24);
  outline-offset: 1px;
}

.hm-inquiry-form .hm-form-help,
.hm-inquiry-form .hm-privacy-notice {
  margin: 7px 0 0;
  color: #415d6d;
  font-size: .88rem;
  line-height: 1.55;
}

.hm-inquiry-form .hm-file-field {
  margin-top: 4px;
}

.hm-inquiry-form .hm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hm-inquiry-form .hm-submit-button {
  width: fit-content;
  min-width: 160px;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  body > header .nav-dropdown,
  body > .site-header .nav-dropdown {
    display: block !important;
    width: 100% !important;
  }

  body > header .nav-dropdown-menu,
  body > .site-header .nav-dropdown-menu {
    position: static !important;
    min-width: 0 !important;
    margin: 2px 0 5px 10px !important;
    padding: 2px 0 2px 8px !important;
    border: 0 !important;
    border-left: 3px solid #a84400 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body > header .nav-dropdown-menu a,
  body > .site-header .nav-dropdown-menu a {
    white-space: normal !important;
  }
}

@media (max-width: 980px) {
  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 32px !important;
    width: min(820px, 100%) !important;
    padding: 28px 24px 24px !important;
  }

  .site-footer .footer-inner > .footer-col,
  .site-footer .footer-inner > .footer-col + .footer-col {
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .site-footer .footer-inner > .footer-col:first-child {
    grid-column: 1 / -1;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .13) !important;
  }

  .site-footer .footer-inner > .footer-col:nth-child(3) {
    padding-left: 32px !important;
    border-left: 1px solid rgba(255, 255, 255, .13) !important;
  }
}

@media (max-width: 760px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: min(620px, 100%) !important;
    padding: 26px 20px 22px !important;
  }

  .site-footer .footer-inner > .footer-col,
  .site-footer .footer-inner > .footer-col + .footer-col,
  .site-footer .footer-inner > .footer-col:nth-child(3) {
    grid-column: auto;
    padding: 20px 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .13) !important;
  }

  .site-footer .footer-inner > .footer-col:first-child {
    padding-top: 0 !important;
    border: 0 !important;
  }

  .site-footer .footer-inner > .footer-col:last-child {
    padding-bottom: 0 !important;
  }

  .site-footer .footer-bottom {
    gap: 2px 18px !important;
    padding: 6px 20px !important;
  }

  .hm-inquiry-form .hm-submit-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-inner,
  .site-footer .footer-bottom {
    padding-inline: 16px !important;
  }

  .site-footer .footer-links {
    gap-inline: 14px;
  }

  .site-footer .footer-contact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "phone"
      "email"
      "whatsapp"
      "address";
  }

  .site-footer .footer-bottom > span {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
