/* Shared header / footer — fixed, simple, cinematic */

body {
  padding-top: var(--header-h);
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom-color: color-mix(in srgb, var(--gold) 18%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.nav {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav--pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  justify-self: start;
  transition: transform 0.35s var(--ease);
}

.brand-lockup:hover {
  transform: translateY(-1px);
}

.brand-lockup img.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: var(--logo-filter) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .brand-lockup img.brand-logo {
  height: 36px;
}

/* Theme control — docked into the page edge */
.theme-dock,
.theme-fab {
  position: fixed;
  inset-inline-start: 0;
  top: 50%;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 3.6rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-inline-start: 0;
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--ink-elevated) 92%, transparent);
  color: var(--gold-bright);
  cursor: pointer;
  box-shadow: 6px 0 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transform: translateY(-50%) translateX(0);
  transition: width 0.3s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

[dir="rtl"] .theme-dock,
[dir="rtl"] .theme-fab {
  border-radius: 14px 0 0 14px;
  border-inline-start: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-inline-end: 0;
  box-shadow: -6px 0 22px rgba(0, 0, 0, 0.28);
}

.theme-dock:hover,
.theme-dock:focus-visible,
.theme-fab:hover,
.theme-fab:focus-visible {
  width: 2.55rem;
  color: #fff;
  background: color-mix(in srgb, var(--gold) 18%, var(--ink-elevated));
  outline: none;
}

.theme-dock svg,
.theme-fab svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.theme-dock .icon-sun,
.theme-fab .icon-sun {
  display: none;
}

[data-theme="light"] .theme-dock .icon-moon,
[data-theme="light"] .theme-fab .icon-moon {
  display: none;
}

[data-theme="light"] .theme-dock .icon-sun,
[data-theme="light"] .theme-fab .icon-sun {
  display: block;
}

.brand-text {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: 0;
  color: var(--sand);
  padding: 0;
  cursor: pointer;
}

.menu-toggle__bars {
  display: inline-grid;
  gap: 5px;
  width: 1.2rem;
}

.menu-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-links,
.nav-links--desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link--soon,
.mobile-menu__link.nav-link--soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 55%, var(--line, #2a3540));
  background: color-mix(in srgb, var(--gold, #c9a227) 14%, transparent);
  color: var(--gold, #c9a227);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-links a.nav-link--soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a,
.nav-links--desktop a {
  position: relative;
  color: var(--sand-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.42rem;
  text-decoration: none;
  border-bottom: 0;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.nav-links a::after,
.nav-links--desktop a::after {
  content: none;
  display: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.nav-links--desktop a:hover,
.nav-links--desktop a:focus-visible,
.nav-links--desktop a[aria-current="page"] {
  color: var(--gold-bright);
  outline: none;
  text-decoration: none;
}

.nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}

.nav-phone:hover,
.nav-phone:focus-visible {
  opacity: 0.8;
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border-color: var(--gold-bright);
  outline: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* Show only the alternate language — hide the active one */
.lang-toggle button.is-active {
  display: none;
}

/* Mobile menu — transparent, large text only */
.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: rgba(7, 6, 5, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: #efe6d6;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  text-align: center;
  width: min(100%, 22rem);
}

.mobile-menu__list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
}

.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__link {
  display: block;
  padding: 0.55rem 0.25rem;
  border: 0;
  background: transparent;
  color: #efe6d6;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible,
.mobile-menu__link[aria-current="page"] {
  color: var(--gold-bright);
  outline: none;
}

.mobile-menu__actions {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
}

.mobile-menu.is-open .mobile-menu__actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__lang {
  gap: 0.35rem;
}

.mobile-menu__lang button {
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  color: rgba(239, 230, 214, 0.7);
}

.mobile-menu__lang button.is-active {
  color: var(--gold-bright);
}

.mobile-menu__phone {
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-menu__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 1.35rem;
  background: linear-gradient(135deg, #e8c45a, #c9a227 60%, #8a6f1a);
  color: #0b0a09;
  font-weight: 700;
  font-size: 0.95rem;
}

body.menu-open {
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--smoke);
  font-size: 0.72rem;
  color: var(--sand-muted);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand-muted);
}

.status-pill.is-ok {
  color: var(--ok);
  border-color: rgba(111, 159, 122, 0.35);
}

.status-pill.is-ok .dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(111, 159, 122, 0.65);
}

.status-pill.is-err {
  color: var(--danger);
}

.status-pill.is-err .dot {
  background: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--sand-muted);
  font-size: 0.85rem;
}

.site-footer--cinematic {
  position: relative;
  padding: 0 0 2rem;
  background: color-mix(in srgb, var(--ink-elevated) 80%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line));
}

.footer-panel {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-panel--simple {
  grid-template-columns: 1fr 1.05fr;
}

.footer-panel--quad {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(180px, 0.95fr);
  gap: 1.35rem 1.35rem;
  align-items: start;
}

.footer-col--map {
  min-width: 0;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sand);
}

.footer-col--brand p {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  line-height: 1.7;
  color: var(--sand-muted);
  font-size: 0.92rem;
}

.footer-brand-block p {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.85rem;
}

.footer-contact--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.footer-contact a {
  color: var(--sand-muted);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: var(--gold-bright);
}

.footer-links--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1rem;
}

.footer-map-frame {
  position: relative;
  min-height: 200px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  overflow: hidden;
  background: var(--ink-soft);
}

.footer-map-frame--compact {
  min-height: 210px;
}

.footer-map-frame--mini {
  min-height: 0;
  height: 148px;
  border-radius: 2px;
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
  filter: grayscale(0.15) contrast(1.04) brightness(0.94);
}

.footer-map-frame--mini iframe {
  min-height: 0;
  height: 148px;
}

.footer-map-chip {
  position: absolute;
  inset-inline-start: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: calc(100% - 1.1rem);
  line-height: 1.35;
}

.footer-map-chip:hover {
  color: #fff;
  border-color: var(--gold-bright);
}

.footer-brand {
  height: 68px;
  width: auto;
  opacity: 0.95;
  filter: var(--logo-filter);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.footer-cols h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sand);
}

.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--sand-muted);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.8rem;
}

.footer-credit {
  color: var(--gold-bright);
  font-weight: 600;
  transition: opacity 0.25s var(--ease);
}

.footer-credit:hover,
.footer-credit:focus-visible {
  opacity: 0.85;
  outline: none;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 1100px) {
  .footer-panel--quad {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-col--map {
    grid-column: 1 / -1;
    max-width: 280px;
  }
}

@media (max-width: 800px) {
  .site-footer--cinematic {
    padding-bottom: 1.2rem;
  }

  .footer-panel,
  .footer-panel--simple,
  .footer-panel--quad,
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    padding: 1.35rem 0 0.85rem;
    align-items: start;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0;
  }

  .footer-col--brand p {
    max-width: 26rem;
    margin: 0.45rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .footer-contact--stack {
    align-items: center;
    margin-top: 0.55rem;
    gap: 0.2rem;
  }

  .footer-contact--stack a {
    font-size: 0.86rem;
  }

  .footer-col--map {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 0.15rem;
  }

  .footer-brand {
    height: 42px;
  }

  .footer-col h3 {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
  }

  .footer-links {
    gap: 0.22rem;
  }

  .footer-links a {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .footer-map-frame,
  .footer-map-frame iframe,
  .footer-map-frame--compact,
  .footer-map-frame--compact iframe {
    min-height: 132px;
  }

  .footer-map-frame--mini,
  .footer-map-frame--mini iframe {
    height: 124px;
    min-height: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.28rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 520px) {
  .footer-panel--quad {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
  }

  .footer-col--brand,
  .footer-col--map {
    grid-column: 1 / -1;
  }

  .footer-col:not(.footer-col--brand):not(.footer-col--map) {
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .nav-phone span {
    display: none;
  }

  .nav-phone {
    padding: 0.45rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
  }

  .nav,
  .nav--pro {
    width: min(100% - 1rem, var(--max));
    display: flex;
    grid-template-columns: none;
  }

  .brand-lockup img.brand-logo,
  .site-header.is-scrolled .brand-lockup img.brand-logo {
    height: 34px;
  }

  .nav-links--desktop {
    display: none;
  }

  .nav-end > .nav-phone,
  .nav-end > .nav-cta,
  .nav-end > .lang-toggle {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    touch-action: manipulation;
  }

  .theme-dock,
  .theme-fab {
    width: 1.95rem;
    height: 3.25rem;
  }
}

@media (max-width: 480px) {
  .brand-lockup img.brand-logo,
  .site-header.is-scrolled .brand-lockup img.brand-logo {
    height: 30px;
  }
}
