/* AMARINE — Header & Footer chrome */

/* ==========================================================
   HEADER
========================================================== */

.amarine-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);

  padding: 1.375rem var(--gutter);

  background: transparent;
  border-bottom: 0.0625rem solid transparent;

  transition:
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    padding var(--t-base) var(--ease);
}

.amarine-header.solid {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: var(--rule);

  padding-top: 1rem;
  padding-bottom: 1rem;

  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.amarine-header.on-dark {
  color: var(--ivory);
}

.amarine-header.on-dark.solid {
  background: rgba(15, 54, 64, 0.92);
  border-bottom-color: rgba(184, 147, 94, 0.2);
}

/* ==========================================================
   LOGO / WORDMARK
========================================================== */

.amarine-header .wordmark {
  display: flex;
  align-items: center;
  justify-self: start;

  height: 2.5rem;
  width: auto;

  color: inherit;
  text-decoration: none;

  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;

  transition: all var(--t-base) var(--ease);

  padding-right: var(--gutter);
}

.wordmark .amarine-logo {
  height: 100%;
  width: auto;
  max-width: 15rem;
}

.wordmark .header-logo {
  display: block;
  width: 8rem;
  height: auto;
}

.amarine-logo path {
  fill: var(--ivory);
}

.wordmark .dot {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */

.amarine-nav {
  display: flex;
  gap: var(--s-7);
  justify-self: center;
}

.amarine-nav a {
  position: relative;

  display: flex;
  align-items: center;

  padding: 0.375rem 0;

  color: inherit;
  opacity: 0.86;

  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;

  transition: opacity var(--t-fast) var(--ease);
}

.amarine-nav a:hover,
.amarine-nav a.active {
  opacity: 1;
}

.amarine-nav a.active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.125rem;

  height: 0.0625rem;
  background: var(--gold);
}

/* ==========================================================
   RIGHT SIDE
========================================================== */

.amarine-header .right {
  display: flex;
  align-items: center;
  gap: var(--s-5);

  justify-self: end;
}

/* ==========================================================
   LANGUAGE SWITCHER
========================================================== */

.lang-switch,
.mobile-menu-lang {
  display: flex;
  align-items: center;
  gap: 0.375rem;

  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-switch button,
.mobile-menu-lang button {
  background: transparent;
  border: 0;

  color: inherit;
  cursor: pointer;

  padding: 0.25rem 0.375rem;

  font: inherit;
  letter-spacing: inherit;

  opacity: 0.75;

  transition: opacity var(--t-fast) var(--ease);
}

.lang-switch button:hover,
.mobile-menu-lang button:hover {
  opacity: 1;
}

.lang-switch button.on,
.mobile-menu-lang button.on {
  opacity: 1;
  color: var(--gold);
}

.lang-switch .sep,
.mobile-menu-lang .sep {
  opacity: 0.5;
}

/* ==========================================================
   HEADER CTA
========================================================== */

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.625rem 1.125rem;

  white-space: nowrap;

  border: 0.0625rem solid currentColor;

  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  opacity: 0.85;

  transition:
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    opacity var(--t-base) var(--ease);
}

.header-cta:hover {
  opacity: 1;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}

/* ==========================================================
  PAGE LOGO BLEND MODE
========================================================== */

.blend-header-logo .amarine-header .wordmark {
  background: rgba(250, 250, 247, 0.92);
}

.blend-header-logo .solid .wordmark {
  background: unset;
  mix-blend-mode: unset;
}

.blend-header-logo .solid .wordmark .amarine-logo svg *{
  fill: #000000;
}

.blend-header-logo .amarine-header .wordmark .amarine-logo {
  mix-blend-mode: difference;
}

/* ==========================================================
   MOBILE MENU TOGGLE
========================================================== */

.menu-toggle {
  display: none;

  width: 2.5rem;
  height: 2.5rem;

  padding: 0.5rem;

  position: relative;
  z-index: 51;

  justify-content: center;
  align-items: center;

  background: transparent;
  border: 0;

  color: inherit;
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.hamburger-line {
  transform-origin: 6px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.open .hamburger-line-1 {
  transform: rotate(45deg);
}

.menu-toggle.open .hamburger-line-2 {
  opacity: 0;
}

.menu-toggle.open .hamburger-line-3 {
  transform: rotate(-45deg);
}

/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu {
  display: none;

  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;

  z-index: 49;

  background: rgba(250, 250, 247, 0.95);
  border-bottom: 0.0625rem solid var(--rule);

  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.amarine-header.on-dark.solid ~ .mobile-menu {
  background: rgba(15, 54, 64, 0.95);
  border-bottom-color: rgba(184, 147, 94, 0.2);
  color: var(--ivory);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;

  gap: 0.0625rem;
  padding: 1rem 1.5rem;
}

.mobile-menu-item {
  padding: 0.75rem 0;

  border-bottom: 0.0625rem solid var(--rule);

  color: inherit;
  opacity: 0.94;

  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  transition: opacity var(--t-fast) var(--ease);
}

.mobile-menu-item:last-of-type {
  border-bottom: none;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  opacity: 1;
  color: var(--gold);
}

/* Accessible keyboard focus styles across chrome links and buttons. */
.amarine-header a:focus-visible,
.amarine-header button:focus-visible,
.amarine-footer a:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.amarine-header.on-dark a:focus-visible,
.amarine-header.on-dark button:focus-visible {
  outline-color: var(--gold-soft);
}

.mobile-menu-item.mobile-cta {
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.mobile-menu-lang {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 0.0625rem solid var(--rule);
}

/* ==========================================================
   MOBILE MENU ANIMATION
========================================================== */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.625rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   HEADER SPACER
========================================================== */

.header-spacer {
  height: 5.5rem;
}

/* ==========================================================
   FOOTER
========================================================== */

.amarine-footer {
  background: var(--teal-dark);
  color: var(--ivory);

  padding: var(--s-10) var(--gutter) var(--s-7);
}

.amarine-footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;

  gap: var(--s-7);

  padding-bottom: var(--s-9);

  border-bottom: 0.0625rem solid rgba(184, 147, 94, 0.25);
}

.amarine-footer .wordmark {
  margin-bottom: var(--s-4);

  font-family: var(--serif);
  font-size: 2.25rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.amarine-footer .amarine-logo {
  display: block;

  width: auto;
  height: 7rem;

  margin-bottom: var(--s-4);
}

.amarine-footer .tagline {
  max-width: 28ch;

  color: var(--gold-soft);

  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.4;
}

.amarine-footer h4 {
  margin: 0 0 var(--s-4);

  color: var(--gold);

  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.amarine-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);

  margin: 0;
  padding: 0;
  list-style: none;
}

.amarine-footer ul a {
  color: rgba(250, 250, 247, 0.85);
  font-size: 0.875rem;

  transition: color var(--t-fast) var(--ease);
}

.amarine-footer ul a:hover {
  color: var(--gold);
}

.amarine-footer .city {
  margin-bottom: 0.25rem;

  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
}

.amarine-footer .city + .meta {
  color: var(--gold-soft);
  opacity: 0.85;

  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.amarine-footer .meta + .addr {
  margin-top: var(--s-3);

  color: rgba(250, 250, 247, 0.78);

  font-size: 0.8125rem;
  line-height: 1.6;
}

.amarine-footer .legal {
  display: flex;
  justify-content: space-between;

  padding-top: var(--s-5);

  color: rgba(250, 250, 247, 0.65);

  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1350px) {
  .amarine-header {
    grid-template-columns: 1fr auto;
    padding: 1.125rem 1.5rem;
  }

  .wordmark .amarine-logo {
    max-width: 11.7rem;
  }

  .amarine-nav,
  .amarine-header .right {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-menu {
    display: block;
  }

  .amarine-footer {
    padding: var(--s-9) 1.5rem var(--s-6);
  }

  .amarine-footer .row {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-7);
  }

  .amarine-footer .amarine-logo {
    height: 5rem;
  }
}

@media (max-width: 700px) {
  .amarine-footer .legal {
    flex-direction: column;
    gap: var(--s-3);
  }
}

@media (max-width: 600px) {
  .amarine-header {
    padding: 1rem 1.125rem;
  }

  .mobile-menu-content {
    padding: 0.75rem 1.125rem;
  }
}
