/* ══════════════════════════════════════════════════
   MONOLITH RESIDENCES — LAYOUT
   Preloader · Navbar · Footer
   (shared across all pages)
   ══════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}
.preloader.out {
  animation: preloaderShrink 0.7s cubic-bezier(0.8, 0, 1, 0.2) forwards;
  pointer-events: none;
}
.preloader.expanding {
  animation: preloaderExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes preloaderShrink {
  0%   { clip-path: inset(0); visibility: visible; }
  100% { clip-path: inset(50%); visibility: hidden; }
}

@keyframes preloaderExpand {
  0%   { clip-path: inset(50%); }
  100% { clip-path: inset(0);   }
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader-logo {
  width: 240px;
  opacity: 0.75;
  animation: plPulse 1.4s ease-in-out infinite alternate;
}

@keyframes plPulse {
  from { opacity: 0.4; }
  to   { opacity: 0.85; }
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: transparent;
  transition: background 0.35s ease;
}
.navbar.solid {
  background: rgba(4,9,12,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-grid {
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.nav-group {
  display: flex;
  align-items: center;
}
.nav-right { justify-content: flex-end; }

.nav-link {
  color: var(--text-soft);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 18px;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: calc(100% - 36px); }

.nav-link-line {
  width: 36px;
  height: 1px;
  background: rgba(239,249,252,0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-brand:hover { transform: scale(1.15); }
.nav-brand-word {
  display: none;
  color: #fff;
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
}
.nav-brand-logo {
  background-image: url('../assets/logos/monolith-logo-white.svg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 100%;
}

.nav-hamburger {
  display: none;
  padding: 6px;
  grid-column: 4;
}
.hamburger-icon { width: 28px; height: 28px; }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(4,9,12,0.92);
  backdrop-filter: blur(14px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 490;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s ease;
  padding: 18px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: #fff; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
}
.footer-brand-word {
  display: none;
}
.footer-brand-logo {
  background-image: url('../assets/logos/monolith-logo-white.svg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  max-width: 100px;
  height: 20px;
  opacity: 0.7;
}

.footer-copy { text-align: right; }

/* ══════════════════════════════════════
   RESPONSIVE — layout
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner   { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-nav     { justify-content: center; }
  .footer-copy    { text-align: center; }
}

@media (max-width: 768px) {
  .gw             { padding: 0 24px; }
  .nav-group      { display: none; }
  .nav-hamburger  { display: block; }
  .nav-grid       { grid-template-columns: 1fr auto auto; }
  .footer-nav     { gap: 16px; }
  .preloader-logo { width: 160px; }
  .nav-brand      { width: 80px; height: 16px; }
}
