/* Shared site chrome — header + footer (How It Works template pattern) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 42, 77, 0.93);
  border-bottom: 1px solid rgba(216, 178, 108, 0.22);
}

.site-header .wrap.hdr,
.hdr.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 17px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
  color: inherit;
  text-decoration: none !important;
  flex: none;
}

.site-header__brand:hover {
  color: inherit !important;
}

.site-header__logo {
  width: 40px;
  height: auto;
  display: block;
  flex: none;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.site-header__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: #f7f3ed;
  white-space: nowrap;
}

.site-header__mark {
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: #d8b26c;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.site-header .nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .nav a {
  color: rgba(247, 243, 237, 0.78);
  text-decoration: none !important;
}

.site-header .nav a:hover {
  color: #f7f3ed !important;
}

.site-header .nav a.is-active {
  color: #d8b26c !important;
  border-bottom: 1px solid rgba(216, 178, 108, 0.6);
  padding-bottom: 3px;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  border: 1px solid rgba(216, 178, 108, 0.45);
  border-radius: 5px;
  flex: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.hdr-cta {
  background: #d8b26c;
  color: #0f2a4d !important;
  padding: 11px 20px;
  border-radius: 4px;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
  text-decoration: none !important;
  transition:
    background 0.2s,
    transform 0.2s;
}

.hdr-cta:hover {
  background: #e6c98d;
  color: #0f2a4d !important;
  transform: translateY(-1px);
}

/* Language dropdown */
.lang,
.langf {
  position: relative;
}

.ltrig {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 178, 108, 0.55);
  border-radius: 5px;
  color: #d8b26c;
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  background: transparent;
  font-family: inherit;
}

.ltrig:hover {
  border-color: #d8b26c;
  background: rgba(216, 178, 108, 0.1);
}

.open .ltrig {
  border-color: #d8b26c;
  background: rgba(216, 178, 108, 0.12);
}

.lchev {
  transition: transform 0.25s ease;
}

.open .lchev {
  transform: rotate(180deg);
}

.lmenu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 218px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #12365f;
  border: 1px solid rgba(216, 178, 108, 0.34);
  border-radius: 6px;
  box-shadow: 0 20px 46px rgba(6, 20, 40, 0.5);
  transition:
    max-height 0.26s ease,
    opacity 0.2s ease;
  z-index: 60;
}

.up .lmenu {
  top: auto;
  bottom: calc(100% + 10px);
}

.open .lmenu {
  max-height: 300px;
  opacity: 1;
}

.llist {
  padding: 7px 0;
}

.lrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.16s;
  color: inherit;
  text-decoration: none !important;
}

.lrow:hover {
  background: rgba(247, 243, 237, 0.07);
  color: inherit !important;
}

.lrow .lc {
  width: 24px;
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(216, 178, 108, 0.72);
}

.lrow .ln {
  color: rgba(247, 243, 237, 0.86);
  font-size: 14.5px;
  font-weight: 300;
}

.lrow.on {
  background: rgba(216, 178, 108, 0.13);
}

.lrow.on .lc {
  color: #d8b26c;
}

.lrow.on .ln {
  color: #d8b26c;
  font-weight: 400;
}

/* Footer */
.site-footer {
  background: #0b2140;
  padding: 50px 40px;
  border-top: 1px solid rgba(216, 178, 108, 0.22);
}

.site-footer .wrap.ftr,
.ftr.wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: 1 1 420px;
  max-width: 560px;
  min-width: min(100%, 320px);
}

.site-footer__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: #f7f3ed;
}

.site-footer__tagline {
  font-size: 13px;
  color: rgba(247, 243, 237, 0.6);
  font-weight: 300;
  margin-top: 10px;
  max-width: 300px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  margin-left: auto;
}

.ftr-link {
  color: #d8b26c !important;
  text-decoration: none !important;
}

.ftr-link:hover {
  color: #e6c98d !important;
}

.site-footer__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.ftr-btn {
  display: inline-block;
  background: #d8b26c;
  color: #0f2a4d !important;
  padding: 14px 26px;
  border-radius: 5px;
  border: 0;
  font-family: Jost, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
}

.ftr-btn:hover {
  color: #0f2a4d !important;
  background: #e6c98d;
}

.site-footer__legal {
  font-size: 12px;
  color: rgba(247, 243, 237, 0.4);
  width: 100%;
  padding-top: 6px;
}

@media (max-width: 1100px) {
  .site-header .nav {
    order: 3;
    width: 100%;
    margin-left: 0 !important;
    gap: 22px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-header .nav::-webkit-scrollbar {
    display: none;
  }
  .hdr {
    flex-wrap: wrap;
  }
  .site-header .lang {
    order: 1;
    margin-left: auto;
  }
  .hdr-cta {
    order: 2;
  }
}

@media (max-width: 900px) {
  .site-header .wrap.hdr,
  .hdr.wrap,
  .site-footer .wrap.ftr,
  .ftr.wrap {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
  .site-header .wrap.hdr,
  .hdr.wrap {
    gap: 14px !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }
  .site-header .nav {
    order: 3;
    width: 100%;
    margin-left: 0 !important;
    gap: 20px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ftr {
    gap: 34px !important;
  }
  .site-footer__links {
    margin-left: 0 !important;
  }
  .site-footer {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 700px) {
  .burger {
    display: flex !important;
    order: 3;
  }
  .site-header .nav {
    display: none !important;
  }
  .hdr-cta {
    display: none !important;
  }
  #site-header.is-open .nav {
    display: flex !important;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0 !important;
    white-space: normal;
    overflow: visible;
  }
  #site-header.is-open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(247, 243, 237, 0.1);
  }
  #site-header.is-open .hdr-cta {
    display: block !important;
    order: 5;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding: 14px 20px !important;
    font-size: 12px !important;
  }
  .hdr {
    gap: 12px !important;
  }
  .site-header .lang {
    order: 1;
  }
  .site-header__logo {
    width: 30px;
  }
}

@media (max-width: 640px) {
  .site-header .wrap.hdr,
  .hdr.wrap,
  .site-footer .wrap.ftr,
  .ftr.wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
