/* ========================================================================
   SHARED GLOBAL NAVIGATION
   One identical header/menu system for Home, About, Services, Real Estate,
   Work, Process and Contact at every responsive breakpoint.
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(17, 17, 15, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}

.site-header .nav-row {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  box-sizing: border-box;
}

.site-header .brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #f5f1e8;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-header .brand span {
  color: #e2c48f;
}

.site-header .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.site-header .desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0;
  color: #a8a39a;
  text-decoration: none;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-header .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 1px;
  background: #c6a16a;
  transition: right 180ms ease;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a.active {
  color: #f5f1e8;
}

.site-header .desktop-nav a:hover::after,
.site-header .desktop-nav a.active::after {
  right: 0;
}

.site-header .header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid rgba(226, 196, 143, 0.28);
  border-radius: 999px;
  background: rgba(226, 196, 143, 0.06);
  color: #f4ead7;
  text-decoration: none;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header .header-cta span {
  font-size: 14px;
  line-height: 1;
}

.site-header .header-cta:hover {
  transform: translateY(-2px);
  background: rgba(226, 196, 143, 0.10);
  border-color: rgba(226, 196, 143, 0.42);
}

/* The actual hamburger control. Exactly the same on tablet + mobile. */
.site-header .menu-button {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #f5f1e8;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header .menu-button:hover,
.site-header .menu-button:focus-visible {
  border-color: rgba(226, 196, 143, 0.44);
  background: rgba(226, 196, 143, 0.07);
  outline: none;
}

.site-header .menu-button .menu-icon {
  width: 18px;
  height: 14px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header .menu-button .menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 140ms ease;
}

.site-header .menu-button.is-open .menu-icon span:nth-child(1) {
  transform: translateY(6.2px) rotate(45deg);
}

.site-header .menu-button.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-header .menu-button.is-open .menu-icon span:nth-child(3) {
  transform: translateY(-6.2px) rotate(-45deg);
}

/* Hidden by default. The open state is controlled only by shared menu.js. */
.site-header .mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - 100px);
  margin: 0;
  padding: 12px max(14px, calc((100% - 1180px) / 2)) 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: rgba(17, 17, 15, 0.985);
  border-bottom: 1px solid rgba(245, 241, 232, 0.10);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.site-header .mobile-nav.open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.site-header .mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #d5cfc4;
  text-decoration: none;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header .mobile-nav a::after {
  content: "↗";
  color: #77736c;
  font-size: 14px;
  transition: color 180ms ease, transform 180ms ease;
}

.site-header .mobile-nav a:hover,
.site-header .mobile-nav a.active {
  color: #f5f1e8;
  background: rgba(226, 196, 143, 0.06);
  border-color: rgba(226, 196, 143, 0.28);
}

.site-header .mobile-nav a:hover::after,
.site-header .mobile-nav a.active::after {
  color: #e2c48f;
}

.site-header .mobile-nav a[data-contact="true"] {
  justify-content: center;
  margin-top: 4px;
  border-color: rgba(226, 196, 143, 0.30);
  background: rgba(226, 196, 143, 0.07);
  color: #f4ead7;
  font-weight: 600;
}

.site-header .mobile-nav a[data-contact="true"]::after {
  display: none;
}

/* Tablet + mobile: exact same navigation model and exact same hamburger. */
@media (max-width: 1100px) {
  .site-header .nav-row {
    width: min(1180px, calc(100% - 38px));
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .site-header .desktop-nav,
  .site-header .header-cta {
    display: none;
  }

  .site-header .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .site-header .nav-row {
    width: calc(100% - 28px);
    min-height: 64px;
  }

  .site-header .brand {
    font-size: 24px;
  }

  .site-header .menu-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .site-header .mobile-nav {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 360px) {
  .site-header .nav-row {
    width: calc(100% - 24px);
  }

  .site-header .brand {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .desktop-nav a,
  .site-header .desktop-nav a::after,
  .site-header .header-cta,
  .site-header .menu-button,
  .site-header .menu-button .menu-icon span,
  .site-header .mobile-nav a,
  .site-header .mobile-nav a::after {
    transition: none !important;
  }
}

body.menu-open {
  overflow: hidden;
}
