/* Meridian Cross - layout chrome */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 70;
  background: var(--white);
  color: var(--dark-900);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 0.5rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
}

.site-nav__bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-100);
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

html.dark .site-nav__bg {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--neutral-800);
}

.site-nav.is-top .site-nav__bg {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

html.dark .site-nav.is-top .site-nav__bg {
  background: transparent;
  border-bottom-color: transparent;
}

.site-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 1.5rem, var(--max-7xl));
  margin-inline: auto;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .site-nav__inner {
    width: min(100% - 3rem, var(--max-7xl));
    gap: 1rem;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .nav-logo { gap: 0.75rem; }
}

.nav-logo:hover { color: inherit; opacity: 0.85; }

.nav-logo__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark-800);
}

@media (min-width: 900px) {
  .nav-logo__mark {
    width: 2rem;
    height: 2rem;
  }
}

.nav-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo__text {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
}

@media (min-width: 900px) {
  .nav-logo__text {
    font-size: 0.95rem;
    max-width: 18rem;
  }
}

.site-nav.is-top .nav-logo__text {
  color: var(--white);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.site-nav.is-top .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.site-nav.is-top .nav-links a:hover,
.site-nav.is-top .nav-links a.is-active {
  color: var(--white);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav.is-top .theme-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.nav-inquire {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--neutral-900);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-inquire:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.site-nav.is-top .nav-inquire {
  background: var(--white);
  color: var(--neutral-900);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  flex-shrink: 0;
}

.site-nav.is-top .nav-toggle { color: var(--white); }

@media (min-width: 900px) {
  .nav-links,
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-logo__text { max-width: 18rem; }
}

@media (min-width: 1100px) {
  .nav-logo__text { max-width: none; }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}

.mobile-menu.is-open:not([hidden]) { display: flex; }

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text);
  padding: 0.35rem 0;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

html.dark .bottom-nav {
  background: rgba(10, 10, 10, 0.95);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.625rem;
  color: var(--text-muted);
  padding: 0.35rem;
}

.bottom-nav a.is-active,
.bottom-nav a:hover {
  color: var(--burgundy);
}

.bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

.site-footer {
  background: var(--dark-900);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-20) var(--space-6) var(--space-10);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  width: min(100%, var(--max-7xl));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
  max-width: 22rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: var(--text-sm);
}

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

.footer-visit li,
.footer-hours li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-bottom {
  width: min(100%, var(--max-7xl));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-legal {
  max-width: 40rem;
  line-height: 1.5;
}

.toast-host {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-nav-h) + 1rem);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .toast-host { bottom: 1.5rem; }
}

.toast {
  background: var(--dark-800);
  color: var(--white);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 20rem;
}
