.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,225,216,.82);
  transition: transform 0.28s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.site-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
}
.site-header__inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}
.brand img { max-height: 58px; width: auto; }
.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-weight: 600;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-navy);
}
.site-nav a:hover { color: var(--color-primary); }
.mobile-menu-phone {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brokerage-mark img { max-height: 48px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
}
.floating-admin-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(11, 37, 69, .22);
}
.floating-admin-link:hover {
  background: var(--color-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-edge);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(223, 23, 43, .22);
}
.btn-outline {
  border-color: rgba(0, 75, 155, .24);
  color: var(--color-secondary);
  background: rgba(255,255,255,.94);
}
.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: .95rem;
}

.site-footer {
  padding: 80px 0 40px;
  background: #051528;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .7fr;
  gap: 28px;
  align-items: start;
}
.footer-brand,
.footer-contact,
.footer-brokerage-block,
.footer-socials {
  display: grid;
  gap: 12px;
}
.footer-brand p,
.footer-contact p,
.footer-brokerage-block p {
  color: #b0c2de;
}
.footer-logo { max-height: 74px; filter: brightness(0) invert(1); } /* invert brand logo for dark background if needed, or let it load */
.footer-brokerage { max-height: 60px; width: auto; }
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: var(--color-primary);
}
.footer-socials a {
  width: fit-content;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.footer-socials a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  width: min(var(--container), calc(100% - 40px));
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b0c2de;
  font-size: .92rem;
}
.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.zentyx-link {
  color: #b0c2de;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.zentyx-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }
  .nav-toggle {
    display: block;
    justify-self: end;
  }
  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0 16px;
  }
  .site-nav.is-open { display: flex; }
  .header-actions {
    display: none;
  }
  .mobile-menu-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 75, 155, 0.14);
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-menu-phone span {
    line-height: 1.3;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .site-header__inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, var(--container));
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .footer-bottom {
    display: flex;
  }
  .footer-bottom__links {
    justify-content: flex-start;
  }
  .btn-sm {
    width: 100%;
  }
  .floating-admin-link {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 14px;
    font-size: .92rem;
  }
}
