:root {
  --header-h: 82px;
  --shell-accent: #e6d4ad;
  --shell-line: rgba(238, 244, 234, .2);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 1.9vw, 36px);
  max-width: 1720px;
  padding-inline: clamp(22px, 2.8vw, 52px);
}

.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-header .brand__name,
.site-footer .brand__name {
  font-size: 1.26rem;
  letter-spacing: .065em;
  white-space: nowrap;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 24px);
  margin: 0;
}

.site-header .nav .nav__link {
  position: relative;
  min-height: 44px;
  padding: 0 1px;
  gap: 8px;
  font-size: .9rem;
  letter-spacing: .005em;
  text-transform: none;
  white-space: nowrap;
}

.site-header .nav .nav__link.is-on,
.site-header .nav .nav__link:hover,
.site-header .nav__item.is-open > .nav__link {
  color: var(--shell-accent);
}

.site-header .nav .nav__link.is-on::after {
  content: "";
  position: absolute;
  inset: auto 1px 3px;
  height: 1px;
  background: var(--shell-accent);
}

.site-header .nav__company .mega {
  position: absolute;
  inset: calc(100% + 13px) 0 auto auto;
  width: max-content;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  transform: translateY(-4px);
}

.site-header .nav__company.is-open .mega { transform: translateY(0); }

.site-header .header-tools {
  margin: 0;
  gap: 10px;
}

.site-header .account-nav {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .86rem;
  font-weight: 500;
  margin-inline-end: 6px;
}

.site-header .lang-switch__current {
  min-height: 42px;
  padding-inline: 9px;
  font-size: .82rem;
}

.site-header .lang-switch__code { letter-spacing: .025em; }

.site-header .header-list,
.site-header .header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--shell-line);
  border-radius: 6px;
  background: transparent;
  color: #f4f4ec;
  font: 500 .85rem/1.2 var(--font);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-header .header-whatsapp {
  padding-inline: 13px;
  background: #f4f0e5;
  border-color: #f4f0e5;
  color: #213537;
}

.site-header .header-whatsapp:hover { background: #e8ddc6; color: #213537; }
.site-header .header-list:hover,
.site-header .burger:hover { background: rgba(244, 244, 236, .08); }
.site-header .header-whatsapp span { display: inline; }
.site-header .header-whatsapp svg { width: 16px; height: 16px; }

.header-list [data-header-list-count] {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(244, 244, 236, .12);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.site-header .burger {
  display: none;
  flex: none;
  border-color: var(--shell-line);
  border-radius: 6px;
}

.site-header :is(button, a):focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--shell-accent);
  outline-offset: 3px;
}

/* Keep the three journey menus visible on tablets and the other links in Menu. */
@media (max-width: 1399px) {
  :root { --header-h: 76px; }
  .site-header .nav > :is(.nav__company, .nav__assistant),
  .site-header .account-nav { display: none; }
  .site-header .burger { display: inline-flex; }
  .site-header .header-inner { padding-inline: clamp(18px, 2.5vw, 34px); }
}

@media (max-width: 1120px) {
  .site-header .nav .nav__home { display: none; }
  .site-header .header-whatsapp { width: 42px; padding: 0; }
  .site-header .header-whatsapp span { display: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 70px; }
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .site-header .nav { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .site-header .header-inner { padding-inline: 16px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand__mark { width: 32px; height: 32px; }
  .site-header .brand__name { font-size: 1.02rem; }
  .site-header .header-tools { gap: 5px; }
  .site-header :is(.header-list, .header-whatsapp) { display: none; }
}

.site-footer {
  background: #182c2e;
  color: #e8ede5;
  margin-top: clamp(32px, 4vw, 60px);
  padding: clamp(35px, 4.2vw, 64px) 0 24px;
}

.site-footer .footer-grid {
  grid-template-columns: minmax(210px, 1.35fr) repeat(2, minmax(110px, .8fr)) minmax(215px, 1.15fr);
  gap: clamp(20px, 3vw, 52px);
}

.site-footer .footer-col--brand { grid-column: auto; }
.site-footer .brand { padding: 0; }
.site-footer .brand__mark { width: 36px; height: 36px; }
.site-footer .footer-tagline { max-width: 32ch; margin: 12px 0 0; padding: 0; color: #c1d0c7; line-height: 1.65; }

.site-footer .footer-col h2 {
  margin: 0 0 7px;
  color: var(--shell-accent);
  font: 600 .87rem/1.4 var(--font);
}

.site-footer .footer-col h2 a { color: inherit; font: inherit; padding: 0; }
.site-footer .footer-col > a:not(.brand) { width: fit-content; padding: 5px 0; color: #e4ebe3; line-height: 1.55; }
.site-footer .footer-col > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-col > .brand:hover { text-decoration: none; }
.site-footer .footer-col--contact > a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.site-footer .footer-col--contact svg { width: 16px; height: 16px; flex: none; }

.site-footer .footer-bottom {
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 17px;
  border-color: var(--shell-line);
  gap: 6px 22px;
  color: #b9c8be;
  font-size: .8rem;
}

@media (max-width: 800px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}

@media (max-width: 540px) {
  .site-footer :is(.footer-col--brand, .footer-col--contact) { grid-column: 1 / -1; }
  .site-footer .footer-tagline { max-width: none; }
}
